From b4b6abe990cd7e3fe313ba5da5981dcb72db5910 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 20 Jun 2024 23:15:34 +0000 Subject: [PATCH 1/2] docs: remove allowlist note from Folders RPCs build: promote launch stage to GA PiperOrigin-RevId: 644101055 Source-Link: https://github.com/googleapis/googleapis/commit/ee990e98a7422ad7928447c2f225714757525c91 Source-Link: https://github.com/googleapis/googleapis-gen/commit/70146c5e5283b3030097852f21ba425c3176b59c Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzAxNDZjNWU1MjgzYjMwMzAwOTc4NTJmMjFiYTQyNWMzMTc2YjU5YyJ9 --- .../control/v2/StorageControlGrpc.java | 1462 -- .../com/google/storage/v2/StorageClient.java | 0 .../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/reflect-config.json | 0 .../com/google/storage/v2/gapic_metadata.json | 114 + .../com/google/storage/v2/MockStorage.java | 0 .../google/storage/v2/MockStorageImpl.java | 0 .../google/storage/v2/StorageClientTest.java | 0 .../control/v2/StorageControlClient.java | 59 +- .../control/v2/StorageControlSettings.java | 1 + .../storage/control/v2/gapic_metadata.json | 0 .../storage/control/v2/package-info.java | 0 .../GrpcStorageControlCallableFactory.java | 0 .../v2/stub/GrpcStorageControlStub.java | 1 + .../control/v2/stub/StorageControlStub.java | 0 .../v2/stub/StorageControlStubSettings.java | 0 .../reflect-config.json | 0 .../storage/control/v2/gapic_metadata.json | 0 .../control/v2/MockStorageControl.java | 0 .../control/v2/MockStorageControlImpl.java | 0 .../control/v2/StorageControlClientTest.java | 0 .../control/v2/StorageControlGrpc.java | 1125 ++ .../com/google/storage/v2/StorageGrpc.java | 2950 ++--- .../google/storage/control/v2/BucketName.java | 0 .../CommonLongRunningOperationMetadata.java | 801 +- ...LongRunningOperationMetadataOrBuilder.java | 84 +- .../control/v2/CreateFolderRequest.java | 681 +- .../v2/CreateFolderRequestOrBuilder.java | 81 +- .../v2/CreateManagedFolderRequest.java | 664 +- .../CreateManagedFolderRequestOrBuilder.java | 81 +- .../control/v2/DeleteFolderRequest.java | 529 +- .../v2/DeleteFolderRequestOrBuilder.java | 64 +- .../v2/DeleteManagedFolderRequest.java | 564 +- .../DeleteManagedFolderRequestOrBuilder.java | 67 +- .../com/google/storage/control/v2/Folder.java | 758 +- .../google/storage/control/v2/FolderName.java | 0 .../storage/control/v2/FolderOrBuilder.java | 84 +- .../storage/control/v2/GetFolderRequest.java | 522 +- .../control/v2/GetFolderRequestOrBuilder.java | 64 +- .../control/v2/GetManagedFolderRequest.java | 530 +- .../v2/GetManagedFolderRequestOrBuilder.java | 64 +- .../control/v2/GetStorageLayoutRequest.java | 522 +- .../v2/GetStorageLayoutRequestOrBuilder.java | 61 +- .../control/v2/ListFoldersRequest.java | 842 +- .../v2/ListFoldersRequestOrBuilder.java | 100 +- .../control/v2/ListFoldersResponse.java | 479 +- .../v2/ListFoldersResponseOrBuilder.java | 46 +- .../control/v2/ListManagedFoldersRequest.java | 627 +- .../ListManagedFoldersRequestOrBuilder.java | 73 +- .../v2/ListManagedFoldersResponse.java | 472 +- .../ListManagedFoldersResponseOrBuilder.java | 45 +- .../storage/control/v2/ManagedFolder.java | 613 +- .../storage/control/v2/ManagedFolderName.java | 0 .../control/v2/ManagedFolderOrBuilder.java | 64 +- .../storage/control/v2/PendingRenameInfo.java | 315 +- .../v2/PendingRenameInfoOrBuilder.java | 27 +- .../control/v2/RenameFolderMetadata.java | 529 +- .../v2/RenameFolderMetadataOrBuilder.java | 47 +- .../control/v2/RenameFolderRequest.java | 601 +- .../v2/RenameFolderRequestOrBuilder.java | 73 +- .../control/v2/StorageControlProto.java | 457 + .../storage/control/v2/StorageLayout.java | 1503 +-- .../storage/control/v2/StorageLayoutName.java | 0 .../control/v2/StorageLayoutOrBuilder.java | 91 +- .../storage/control/v2/storage_control.proto | 11 - .../storage/v2/BidiWriteObjectRequest.java | 946 +- .../v2/BidiWriteObjectRequestOrBuilder.java | 74 +- .../storage/v2/BidiWriteObjectResponse.java | 433 +- .../v2/BidiWriteObjectResponseOrBuilder.java | 32 +- .../java/com/google/storage/v2/Bucket.java | 11041 ++++++---------- .../storage/v2/BucketAccessControl.java | 915 +- .../v2/BucketAccessControlOrBuilder.java | 98 +- .../com/google/storage/v2/BucketName.java | 0 .../google/storage/v2/BucketOrBuilder.java | 354 +- .../v2/CancelResumableWriteRequest.java | 319 +- .../CancelResumableWriteRequestOrBuilder.java | 27 +- .../v2/CancelResumableWriteResponse.java | 245 +- ...CancelResumableWriteResponseOrBuilder.java | 10 + .../google/storage/v2/ChecksummedData.java | 306 +- .../storage/v2/ChecksummedDataOrBuilder.java | 27 +- .../storage/v2/CommonObjectRequestParams.java | 390 +- .../CommonObjectRequestParamsOrBuilder.java | 33 +- .../storage/v2/ComposeObjectRequest.java | 1966 +-- .../v2/ComposeObjectRequestOrBuilder.java | 96 +- .../com/google/storage/v2/ContentRange.java | 338 +- .../storage/v2/ContentRangeOrBuilder.java | 27 +- .../storage/v2/CreateBucketRequest.java | 644 +- .../v2/CreateBucketRequestOrBuilder.java | 70 +- .../storage/v2/CreateHmacKeyRequest.java | 412 +- .../v2/CreateHmacKeyRequestOrBuilder.java | 44 +- .../storage/v2/CreateHmacKeyResponse.java | 369 +- .../v2/CreateHmacKeyResponseOrBuilder.java | 29 +- .../v2/CreateNotificationConfigRequest.java | 499 +- ...ateNotificationConfigRequestOrBuilder.java | 57 + .../com/google/storage/v2/CryptoKeyName.java | 0 .../google/storage/v2/CustomerEncryption.java | 342 +- .../v2/CustomerEncryptionOrBuilder.java | 30 +- .../storage/v2/DeleteBucketRequest.java | 420 +- .../v2/DeleteBucketRequestOrBuilder.java | 47 +- .../storage/v2/DeleteHmacKeyRequest.java | 412 +- .../v2/DeleteHmacKeyRequestOrBuilder.java | 44 +- .../v2/DeleteNotificationConfigRequest.java | 353 +- ...eteNotificationConfigRequestOrBuilder.java | 30 + .../storage/v2/DeleteObjectRequest.java | 722 +- .../v2/DeleteObjectRequestOrBuilder.java | 79 +- .../google/storage/v2/GetBucketRequest.java | 495 +- .../storage/v2/GetBucketRequestOrBuilder.java | 55 +- .../google/storage/v2/GetHmacKeyRequest.java | 409 +- .../v2/GetHmacKeyRequestOrBuilder.java | 44 +- .../v2/GetNotificationConfigRequest.java | 347 +- ...GetNotificationConfigRequestOrBuilder.java | 34 + .../google/storage/v2/GetObjectRequest.java | 838 +- .../storage/v2/GetObjectRequestOrBuilder.java | 93 +- .../storage/v2/GetServiceAccountRequest.java | 340 +- .../v2/GetServiceAccountRequestOrBuilder.java | 32 + .../google/storage/v2/HmacKeyMetadata.java | 963 +- .../storage/v2/HmacKeyMetadataOrBuilder.java | 114 +- .../google/storage/v2/ListBucketsRequest.java | 594 +- .../v2/ListBucketsRequestOrBuilder.java | 64 +- .../storage/v2/ListBucketsResponse.java | 474 +- .../v2/ListBucketsResponseOrBuilder.java | 46 +- .../storage/v2/ListHmacKeysRequest.java | 551 +- .../v2/ListHmacKeysRequestOrBuilder.java | 59 +- .../storage/v2/ListHmacKeysResponse.java | 469 +- .../v2/ListHmacKeysResponseOrBuilder.java | 45 +- .../v2/ListNotificationConfigsRequest.java | 453 +- ...stNotificationConfigsRequestOrBuilder.java | 47 +- .../v2/ListNotificationConfigsResponse.java | 464 +- ...tNotificationConfigsResponseOrBuilder.java | 45 +- .../google/storage/v2/ListObjectsRequest.java | 1020 +- .../v2/ListObjectsRequestOrBuilder.java | 112 +- .../storage/v2/ListObjectsResponse.java | 582 +- .../v2/ListObjectsResponseOrBuilder.java | 64 +- .../v2/LockBucketRetentionPolicyRequest.java | 387 +- ...BucketRetentionPolicyRequestOrBuilder.java | 41 + .../google/storage/v2/NotificationConfig.java | 929 +- .../storage/v2/NotificationConfigName.java | 0 .../v2/NotificationConfigOrBuilder.java | 111 +- .../java/com/google/storage/v2/Object.java | 2972 ++--- .../storage/v2/ObjectAccessControl.java | 915 +- .../v2/ObjectAccessControlOrBuilder.java | 98 +- .../google/storage/v2/ObjectChecksums.java | 306 +- .../storage/v2/ObjectChecksumsOrBuilder.java | 27 +- .../google/storage/v2/ObjectOrBuilder.java | 348 +- .../java/com/google/storage/v2/Owner.java | 362 +- .../com/google/storage/v2/OwnerOrBuilder.java | 36 +- .../com/google/storage/v2/ProjectName.java | 0 .../com/google/storage/v2/ProjectTeam.java | 377 +- .../storage/v2/ProjectTeamOrBuilder.java | 36 +- .../storage/v2/QueryWriteStatusRequest.java | 428 +- .../v2/QueryWriteStatusRequestOrBuilder.java | 35 +- .../storage/v2/QueryWriteStatusResponse.java | 433 +- .../v2/QueryWriteStatusResponseOrBuilder.java | 32 +- .../google/storage/v2/ReadObjectRequest.java | 870 +- .../v2/ReadObjectRequestOrBuilder.java | 93 +- .../google/storage/v2/ReadObjectResponse.java | 610 +- .../v2/ReadObjectResponseOrBuilder.java | 50 +- .../storage/v2/RestoreObjectRequest.java | 762 +- .../v2/RestoreObjectRequestOrBuilder.java | 85 +- .../storage/v2/RewriteObjectRequest.java | 1695 +-- .../v2/RewriteObjectRequestOrBuilder.java | 198 +- .../google/storage/v2/RewriteResponse.java | 492 +- .../storage/v2/RewriteResponseOrBuilder.java | 44 +- .../com/google/storage/v2/ServiceAccount.java | 305 +- .../storage/v2/ServiceAccountOrBuilder.java | 30 + .../google/storage/v2/ServiceConstants.java | 415 +- .../storage/v2/ServiceConstantsOrBuilder.java | 10 + .../v2/StartResumableWriteRequest.java | 604 +- .../StartResumableWriteRequestOrBuilder.java | 54 +- .../v2/StartResumableWriteResponse.java | 319 +- .../StartResumableWriteResponseOrBuilder.java | 27 +- .../com/google/storage/v2/StorageProto.java | 1535 +++ .../storage/v2/UpdateBucketRequest.java | 675 +- .../v2/UpdateBucketRequestOrBuilder.java | 73 +- .../storage/v2/UpdateHmacKeyRequest.java | 468 +- .../v2/UpdateHmacKeyRequestOrBuilder.java | 46 +- .../storage/v2/UpdateObjectRequest.java | 796 +- .../v2/UpdateObjectRequestOrBuilder.java | 84 +- .../google/storage/v2/WriteObjectRequest.java | 873 +- .../v2/WriteObjectRequestOrBuilder.java | 68 +- .../storage/v2/WriteObjectResponse.java | 433 +- .../v2/WriteObjectResponseOrBuilder.java | 32 +- .../google/storage/v2/WriteObjectSpec.java | 617 +- .../storage/v2/WriteObjectSpecOrBuilder.java | 65 +- .../proto/google/storage/v2/storage.proto | 0 .../control/v2/StorageControlProto.java | 511 - ...CancelResumableWriteResponseOrBuilder.java | 25 - ...ateNotificationConfigRequestOrBuilder.java | 96 - ...eteNotificationConfigRequestOrBuilder.java | 55 - ...GetNotificationConfigRequestOrBuilder.java | 59 - .../v2/GetServiceAccountRequestOrBuilder.java | 57 - ...BucketRetentionPolicyRequestOrBuilder.java | 69 - .../storage/v2/ServiceAccountOrBuilder.java | 51 - .../storage/v2/ServiceConstantsOrBuilder.java | 25 - .../com/google/storage/v2/StorageProto.java | 1830 --- 201 files changed, 26966 insertions(+), 46196 deletions(-) delete mode 100644 grpc-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlGrpc.java rename {gapic-google-cloud-storage-v2 => owl-bot-staging/v2/gapic-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/StorageClient.java (100%) 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%) rename {gapic-google-cloud-storage-v2 => owl-bot-staging/v2/gapic-google-cloud-storage-v2}/src/main/resources/META-INF/native-image/com.google.storage.v2/reflect-config.json (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 {google-cloud-storage-control => owl-bot-staging/v2/google-cloud-storage-control}/src/main/java/com/google/storage/control/v2/StorageControlClient.java (97%) rename {google-cloud-storage-control => owl-bot-staging/v2/google-cloud-storage-control}/src/main/java/com/google/storage/control/v2/StorageControlSettings.java (99%) rename {google-cloud-storage-control => owl-bot-staging/v2/google-cloud-storage-control}/src/main/java/com/google/storage/control/v2/gapic_metadata.json (100%) rename {google-cloud-storage-control => owl-bot-staging/v2/google-cloud-storage-control}/src/main/java/com/google/storage/control/v2/package-info.java (100%) rename {google-cloud-storage-control => owl-bot-staging/v2/google-cloud-storage-control}/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlCallableFactory.java (100%) rename {google-cloud-storage-control => owl-bot-staging/v2/google-cloud-storage-control}/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlStub.java (99%) rename {google-cloud-storage-control => owl-bot-staging/v2/google-cloud-storage-control}/src/main/java/com/google/storage/control/v2/stub/StorageControlStub.java (100%) rename {google-cloud-storage-control => owl-bot-staging/v2/google-cloud-storage-control}/src/main/java/com/google/storage/control/v2/stub/StorageControlStubSettings.java (100%) rename {google-cloud-storage-control => owl-bot-staging/v2/google-cloud-storage-control}/src/main/resources/META-INF/native-image/com.google.storage.control.v2/reflect-config.json (100%) rename {google-cloud-storage-control => owl-bot-staging/v2/google-cloud-storage-control}/src/main/resources/com/google/storage/control/v2/gapic_metadata.json (100%) rename {google-cloud-storage-control => owl-bot-staging/v2/google-cloud-storage-control}/src/test/java/com/google/storage/control/v2/MockStorageControl.java (100%) rename {google-cloud-storage-control => owl-bot-staging/v2/google-cloud-storage-control}/src/test/java/com/google/storage/control/v2/MockStorageControlImpl.java (100%) rename {google-cloud-storage-control => owl-bot-staging/v2/google-cloud-storage-control}/src/test/java/com/google/storage/control/v2/StorageControlClientTest.java (100%) create mode 100644 owl-bot-staging/v2/grpc-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlGrpc.java rename {grpc-google-cloud-storage-v2 => owl-bot-staging/v2/grpc-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/StorageGrpc.java (50%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/BucketName.java (100%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadata.java (66%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadataOrBuilder.java (72%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/CreateFolderRequest.java (69%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/CreateFolderRequestOrBuilder.java (69%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/CreateManagedFolderRequest.java (65%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/CreateManagedFolderRequestOrBuilder.java (60%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/DeleteFolderRequest.java (68%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/DeleteFolderRequestOrBuilder.java (63%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/DeleteManagedFolderRequest.java (69%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/DeleteManagedFolderRequestOrBuilder.java (66%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/Folder.java (66%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/FolderName.java (100%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/FolderOrBuilder.java (71%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/GetFolderRequest.java (68%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/GetFolderRequestOrBuilder.java (63%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/GetManagedFolderRequest.java (68%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/GetManagedFolderRequestOrBuilder.java (64%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequest.java (65%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequestOrBuilder.java (54%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/ListFoldersRequest.java (73%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/ListFoldersRequestOrBuilder.java (74%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/ListFoldersResponse.java (71%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/ListFoldersResponseOrBuilder.java (67%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/ListManagedFoldersRequest.java (68%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/ListManagedFoldersRequestOrBuilder.java (62%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/ListManagedFoldersResponse.java (72%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/ListManagedFoldersResponseOrBuilder.java (68%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/ManagedFolder.java (66%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/ManagedFolderName.java (100%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/ManagedFolderOrBuilder.java (71%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/PendingRenameInfo.java (66%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/PendingRenameInfoOrBuilder.java (51%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/RenameFolderMetadata.java (67%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/RenameFolderMetadataOrBuilder.java (67%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/RenameFolderRequest.java (70%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/RenameFolderRequestOrBuilder.java (68%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlProto.java rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/StorageLayout.java (66%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/StorageLayoutName.java (100%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/StorageLayoutOrBuilder.java (63%) rename {proto-google-cloud-storage-control-v2 => owl-bot-staging/v2/proto-google-cloud-storage-control-v2}/src/main/proto/google/storage/control/v2/storage_control.proto (97%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/BidiWriteObjectRequest.java (76%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/BidiWriteObjectRequestOrBuilder.java (89%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/BidiWriteObjectResponse.java (70%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/BidiWriteObjectResponseOrBuilder.java (71%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/Bucket.java (75%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/BucketAccessControl.java (74%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/BucketAccessControlOrBuilder.java (81%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/BucketName.java (100%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/BucketOrBuilder.java (86%) 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 (56%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/CancelResumableWriteResponse.java (62%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteResponseOrBuilder.java rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ChecksummedData.java (68%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ChecksummedDataOrBuilder.java (57%) 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 (64%) 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 (66%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ContentRangeOrBuilder.java (55%) 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 (78%) 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 (62%) 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 (55%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/DeleteBucketRequest.java (68%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/DeleteBucketRequestOrBuilder.java (61%) 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 (54%) 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 (72%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/GetBucketRequestOrBuilder.java (72%) 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 (54%) 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 (75%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/GetObjectRequestOrBuilder.java (83%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/GetServiceAccountRequest.java (63%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequestOrBuilder.java rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/HmacKeyMetadata.java (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 (76%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListObjectsRequestOrBuilder.java (83%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListObjectsResponse.java (72%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListObjectsResponseOrBuilder.java (71%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequest.java (63%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequestOrBuilder.java rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/NotificationConfig.java (71%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/NotificationConfigName.java (100%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/NotificationConfigOrBuilder.java (77%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/Object.java (73%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ObjectAccessControl.java (74%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ObjectAccessControlOrBuilder.java (81%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ObjectChecksums.java (72%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ObjectChecksumsOrBuilder.java (69%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ObjectOrBuilder.java (82%) 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 (54%) 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 (52%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/QueryWriteStatusRequest.java (68%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/QueryWriteStatusRequestOrBuilder.java (70%) 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 (74%) 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 (74%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ReadObjectResponseOrBuilder.java (85%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/RestoreObjectRequest.java (74%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/RestoreObjectRequestOrBuilder.java (81%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/RewriteObjectRequest.java (77%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/RewriteObjectRequestOrBuilder.java (86%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/RewriteResponse.java (73%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/RewriteResponseOrBuilder.java (76%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ServiceAccount.java (66%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccountOrBuilder.java rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ServiceConstants.java (71%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstantsOrBuilder.java rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/StartResumableWriteRequest.java (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 (74%) 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 (53%) 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 (76%) rename {proto-google-cloud-storage-v2 => owl-bot-staging/v2/proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/UpdateBucketRequestOrBuilder.java (83%) 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 (88%) 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 (100%) delete mode 100644 proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlProto.java delete mode 100644 proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteResponseOrBuilder.java delete mode 100644 proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequestOrBuilder.java delete mode 100644 proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequestOrBuilder.java delete mode 100644 proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequestOrBuilder.java delete mode 100644 proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequestOrBuilder.java delete mode 100644 proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequestOrBuilder.java delete mode 100644 proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccountOrBuilder.java delete mode 100644 proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstantsOrBuilder.java delete mode 100644 proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageProto.java diff --git a/grpc-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlGrpc.java b/grpc-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlGrpc.java deleted file mode 100644 index 9456b81715..0000000000 --- a/grpc-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlGrpc.java +++ /dev/null @@ -1,1462 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.storage.control.v2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * StorageControl service includes selected control plane operations.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/storage/control/v2/storage_control.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class StorageControlGrpc { - - private StorageControlGrpc() {} - - public static final java.lang.String SERVICE_NAME = "google.storage.control.v2.StorageControl"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.storage.control.v2.CreateFolderRequest, com.google.storage.control.v2.Folder> - getCreateFolderMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateFolder", - requestType = com.google.storage.control.v2.CreateFolderRequest.class, - responseType = com.google.storage.control.v2.Folder.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.storage.control.v2.CreateFolderRequest, com.google.storage.control.v2.Folder> - getCreateFolderMethod() { - io.grpc.MethodDescriptor< - com.google.storage.control.v2.CreateFolderRequest, com.google.storage.control.v2.Folder> - getCreateFolderMethod; - if ((getCreateFolderMethod = StorageControlGrpc.getCreateFolderMethod) == null) { - synchronized (StorageControlGrpc.class) { - if ((getCreateFolderMethod = StorageControlGrpc.getCreateFolderMethod) == null) { - StorageControlGrpc.getCreateFolderMethod = - getCreateFolderMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFolder")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.CreateFolderRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.Folder.getDefaultInstance())) - .setSchemaDescriptor( - new StorageControlMethodDescriptorSupplier("CreateFolder")) - .build(); - } - } - } - return getCreateFolderMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.storage.control.v2.DeleteFolderRequest, com.google.protobuf.Empty> - getDeleteFolderMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteFolder", - requestType = com.google.storage.control.v2.DeleteFolderRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.storage.control.v2.DeleteFolderRequest, com.google.protobuf.Empty> - getDeleteFolderMethod() { - io.grpc.MethodDescriptor< - com.google.storage.control.v2.DeleteFolderRequest, com.google.protobuf.Empty> - getDeleteFolderMethod; - if ((getDeleteFolderMethod = StorageControlGrpc.getDeleteFolderMethod) == null) { - synchronized (StorageControlGrpc.class) { - if ((getDeleteFolderMethod = StorageControlGrpc.getDeleteFolderMethod) == null) { - StorageControlGrpc.getDeleteFolderMethod = - getDeleteFolderMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFolder")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.DeleteFolderRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new StorageControlMethodDescriptorSupplier("DeleteFolder")) - .build(); - } - } - } - return getDeleteFolderMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.storage.control.v2.GetFolderRequest, com.google.storage.control.v2.Folder> - getGetFolderMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetFolder", - requestType = com.google.storage.control.v2.GetFolderRequest.class, - responseType = com.google.storage.control.v2.Folder.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.storage.control.v2.GetFolderRequest, com.google.storage.control.v2.Folder> - getGetFolderMethod() { - io.grpc.MethodDescriptor< - com.google.storage.control.v2.GetFolderRequest, com.google.storage.control.v2.Folder> - getGetFolderMethod; - if ((getGetFolderMethod = StorageControlGrpc.getGetFolderMethod) == null) { - synchronized (StorageControlGrpc.class) { - if ((getGetFolderMethod = StorageControlGrpc.getGetFolderMethod) == null) { - StorageControlGrpc.getGetFolderMethod = - getGetFolderMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFolder")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.GetFolderRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.Folder.getDefaultInstance())) - .setSchemaDescriptor(new StorageControlMethodDescriptorSupplier("GetFolder")) - .build(); - } - } - } - return getGetFolderMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.storage.control.v2.ListFoldersRequest, - com.google.storage.control.v2.ListFoldersResponse> - getListFoldersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFolders", - requestType = com.google.storage.control.v2.ListFoldersRequest.class, - responseType = com.google.storage.control.v2.ListFoldersResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.storage.control.v2.ListFoldersRequest, - com.google.storage.control.v2.ListFoldersResponse> - getListFoldersMethod() { - io.grpc.MethodDescriptor< - com.google.storage.control.v2.ListFoldersRequest, - com.google.storage.control.v2.ListFoldersResponse> - getListFoldersMethod; - if ((getListFoldersMethod = StorageControlGrpc.getListFoldersMethod) == null) { - synchronized (StorageControlGrpc.class) { - if ((getListFoldersMethod = StorageControlGrpc.getListFoldersMethod) == null) { - StorageControlGrpc.getListFoldersMethod = - getListFoldersMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFolders")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.ListFoldersRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.ListFoldersResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new StorageControlMethodDescriptorSupplier("ListFolders")) - .build(); - } - } - } - return getListFoldersMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.storage.control.v2.RenameFolderRequest, com.google.longrunning.Operation> - getRenameFolderMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RenameFolder", - requestType = com.google.storage.control.v2.RenameFolderRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.storage.control.v2.RenameFolderRequest, com.google.longrunning.Operation> - getRenameFolderMethod() { - io.grpc.MethodDescriptor< - com.google.storage.control.v2.RenameFolderRequest, com.google.longrunning.Operation> - getRenameFolderMethod; - if ((getRenameFolderMethod = StorageControlGrpc.getRenameFolderMethod) == null) { - synchronized (StorageControlGrpc.class) { - if ((getRenameFolderMethod = StorageControlGrpc.getRenameFolderMethod) == null) { - StorageControlGrpc.getRenameFolderMethod = - getRenameFolderMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RenameFolder")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.RenameFolderRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new StorageControlMethodDescriptorSupplier("RenameFolder")) - .build(); - } - } - } - return getRenameFolderMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.storage.control.v2.GetStorageLayoutRequest, - com.google.storage.control.v2.StorageLayout> - getGetStorageLayoutMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetStorageLayout", - requestType = com.google.storage.control.v2.GetStorageLayoutRequest.class, - responseType = com.google.storage.control.v2.StorageLayout.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.storage.control.v2.GetStorageLayoutRequest, - com.google.storage.control.v2.StorageLayout> - getGetStorageLayoutMethod() { - io.grpc.MethodDescriptor< - com.google.storage.control.v2.GetStorageLayoutRequest, - com.google.storage.control.v2.StorageLayout> - getGetStorageLayoutMethod; - if ((getGetStorageLayoutMethod = StorageControlGrpc.getGetStorageLayoutMethod) == null) { - synchronized (StorageControlGrpc.class) { - if ((getGetStorageLayoutMethod = StorageControlGrpc.getGetStorageLayoutMethod) == null) { - StorageControlGrpc.getGetStorageLayoutMethod = - getGetStorageLayoutMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetStorageLayout")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.GetStorageLayoutRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.StorageLayout.getDefaultInstance())) - .setSchemaDescriptor( - new StorageControlMethodDescriptorSupplier("GetStorageLayout")) - .build(); - } - } - } - return getGetStorageLayoutMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.storage.control.v2.CreateManagedFolderRequest, - com.google.storage.control.v2.ManagedFolder> - getCreateManagedFolderMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateManagedFolder", - requestType = com.google.storage.control.v2.CreateManagedFolderRequest.class, - responseType = com.google.storage.control.v2.ManagedFolder.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.storage.control.v2.CreateManagedFolderRequest, - com.google.storage.control.v2.ManagedFolder> - getCreateManagedFolderMethod() { - io.grpc.MethodDescriptor< - com.google.storage.control.v2.CreateManagedFolderRequest, - com.google.storage.control.v2.ManagedFolder> - getCreateManagedFolderMethod; - if ((getCreateManagedFolderMethod = StorageControlGrpc.getCreateManagedFolderMethod) == null) { - synchronized (StorageControlGrpc.class) { - if ((getCreateManagedFolderMethod = StorageControlGrpc.getCreateManagedFolderMethod) - == null) { - StorageControlGrpc.getCreateManagedFolderMethod = - getCreateManagedFolderMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateManagedFolder")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.CreateManagedFolderRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.ManagedFolder.getDefaultInstance())) - .setSchemaDescriptor( - new StorageControlMethodDescriptorSupplier("CreateManagedFolder")) - .build(); - } - } - } - return getCreateManagedFolderMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.storage.control.v2.DeleteManagedFolderRequest, com.google.protobuf.Empty> - getDeleteManagedFolderMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteManagedFolder", - requestType = com.google.storage.control.v2.DeleteManagedFolderRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.storage.control.v2.DeleteManagedFolderRequest, com.google.protobuf.Empty> - getDeleteManagedFolderMethod() { - io.grpc.MethodDescriptor< - com.google.storage.control.v2.DeleteManagedFolderRequest, com.google.protobuf.Empty> - getDeleteManagedFolderMethod; - if ((getDeleteManagedFolderMethod = StorageControlGrpc.getDeleteManagedFolderMethod) == null) { - synchronized (StorageControlGrpc.class) { - if ((getDeleteManagedFolderMethod = StorageControlGrpc.getDeleteManagedFolderMethod) - == null) { - StorageControlGrpc.getDeleteManagedFolderMethod = - getDeleteManagedFolderMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteManagedFolder")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.DeleteManagedFolderRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new StorageControlMethodDescriptorSupplier("DeleteManagedFolder")) - .build(); - } - } - } - return getDeleteManagedFolderMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.storage.control.v2.GetManagedFolderRequest, - com.google.storage.control.v2.ManagedFolder> - getGetManagedFolderMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetManagedFolder", - requestType = com.google.storage.control.v2.GetManagedFolderRequest.class, - responseType = com.google.storage.control.v2.ManagedFolder.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.storage.control.v2.GetManagedFolderRequest, - com.google.storage.control.v2.ManagedFolder> - getGetManagedFolderMethod() { - io.grpc.MethodDescriptor< - com.google.storage.control.v2.GetManagedFolderRequest, - com.google.storage.control.v2.ManagedFolder> - getGetManagedFolderMethod; - if ((getGetManagedFolderMethod = StorageControlGrpc.getGetManagedFolderMethod) == null) { - synchronized (StorageControlGrpc.class) { - if ((getGetManagedFolderMethod = StorageControlGrpc.getGetManagedFolderMethod) == null) { - StorageControlGrpc.getGetManagedFolderMethod = - getGetManagedFolderMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetManagedFolder")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.GetManagedFolderRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.ManagedFolder.getDefaultInstance())) - .setSchemaDescriptor( - new StorageControlMethodDescriptorSupplier("GetManagedFolder")) - .build(); - } - } - } - return getGetManagedFolderMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.storage.control.v2.ListManagedFoldersRequest, - com.google.storage.control.v2.ListManagedFoldersResponse> - getListManagedFoldersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListManagedFolders", - requestType = com.google.storage.control.v2.ListManagedFoldersRequest.class, - responseType = com.google.storage.control.v2.ListManagedFoldersResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.storage.control.v2.ListManagedFoldersRequest, - com.google.storage.control.v2.ListManagedFoldersResponse> - getListManagedFoldersMethod() { - io.grpc.MethodDescriptor< - com.google.storage.control.v2.ListManagedFoldersRequest, - com.google.storage.control.v2.ListManagedFoldersResponse> - getListManagedFoldersMethod; - if ((getListManagedFoldersMethod = StorageControlGrpc.getListManagedFoldersMethod) == null) { - synchronized (StorageControlGrpc.class) { - if ((getListManagedFoldersMethod = StorageControlGrpc.getListManagedFoldersMethod) - == null) { - StorageControlGrpc.getListManagedFoldersMethod = - getListManagedFoldersMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListManagedFolders")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.ListManagedFoldersRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.ListManagedFoldersResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new StorageControlMethodDescriptorSupplier("ListManagedFolders")) - .build(); - } - } - } - return getListManagedFoldersMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static StorageControlStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public StorageControlStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new StorageControlStub(channel, callOptions); - } - }; - return StorageControlStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static StorageControlBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public StorageControlBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new StorageControlBlockingStub(channel, callOptions); - } - }; - return StorageControlBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static StorageControlFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public StorageControlFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new StorageControlFutureStub(channel, callOptions); - } - }; - return StorageControlFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * StorageControl service includes selected control plane operations.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Creates a new folder. This operation is only applicable to a hierarchical
-     * namespace enabled bucket.
-     * Hierarchical namespace buckets are in allowlist preview.
-     * 
- */ - default void createFolder( - com.google.storage.control.v2.CreateFolderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateFolderMethod(), responseObserver); - } - - /** - * - * - *
-     * Permanently deletes an empty folder. This operation is only applicable to a
-     * hierarchical namespace enabled bucket.
-     * Hierarchical namespace buckets are in allowlist preview.
-     * 
- */ - default void deleteFolder( - com.google.storage.control.v2.DeleteFolderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteFolderMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns metadata for the specified folder. This operation is only
-     * applicable to a hierarchical namespace enabled bucket.
-     * Hierarchical namespace buckets are in allowlist preview.
-     * 
- */ - default void getFolder( - com.google.storage.control.v2.GetFolderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFolderMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves a list of folders. This operation is only applicable to a
-     * hierarchical namespace enabled bucket.
-     * Hierarchical namespace buckets are in allowlist preview.
-     * 
- */ - default void listFolders( - com.google.storage.control.v2.ListFoldersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListFoldersMethod(), responseObserver); - } - - /** - * - * - *
-     * Renames a source folder to a destination folder. This operation is only
-     * applicable to a hierarchical namespace enabled bucket. During a rename, the
-     * source and destination folders are locked until the long running operation
-     * completes.
-     * Hierarchical namespace buckets are in allowlist preview.
-     * 
- */ - default void renameFolder( - com.google.storage.control.v2.RenameFolderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRenameFolderMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the storage layout configuration for a given bucket.
-     * 
- */ - default void getStorageLayout( - com.google.storage.control.v2.GetStorageLayoutRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetStorageLayoutMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new managed folder.
-     * 
- */ - default void createManagedFolder( - com.google.storage.control.v2.CreateManagedFolderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateManagedFolderMethod(), responseObserver); - } - - /** - * - * - *
-     * Permanently deletes an empty managed folder.
-     * 
- */ - default void deleteManagedFolder( - com.google.storage.control.v2.DeleteManagedFolderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteManagedFolderMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns metadata for the specified managed folder.
-     * 
- */ - default void getManagedFolder( - com.google.storage.control.v2.GetManagedFolderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetManagedFolderMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves a list of managed folders for a given bucket.
-     * 
- */ - default void listManagedFolders( - com.google.storage.control.v2.ListManagedFoldersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListManagedFoldersMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service StorageControl. - * - *
-   * StorageControl service includes selected control plane operations.
-   * 
- */ - public abstract static class StorageControlImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return StorageControlGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service StorageControl. - * - *
-   * StorageControl service includes selected control plane operations.
-   * 
- */ - public static final class StorageControlStub - extends io.grpc.stub.AbstractAsyncStub { - private StorageControlStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected StorageControlStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new StorageControlStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new folder. This operation is only applicable to a hierarchical
-     * namespace enabled bucket.
-     * Hierarchical namespace buckets are in allowlist preview.
-     * 
- */ - public void createFolder( - com.google.storage.control.v2.CreateFolderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateFolderMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Permanently deletes an empty folder. This operation is only applicable to a
-     * hierarchical namespace enabled bucket.
-     * Hierarchical namespace buckets are in allowlist preview.
-     * 
- */ - public void deleteFolder( - com.google.storage.control.v2.DeleteFolderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteFolderMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns metadata for the specified folder. This operation is only
-     * applicable to a hierarchical namespace enabled bucket.
-     * Hierarchical namespace buckets are in allowlist preview.
-     * 
- */ - public void getFolder( - com.google.storage.control.v2.GetFolderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetFolderMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Retrieves a list of folders. This operation is only applicable to a
-     * hierarchical namespace enabled bucket.
-     * Hierarchical namespace buckets are in allowlist preview.
-     * 
- */ - public void listFolders( - com.google.storage.control.v2.ListFoldersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFoldersMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Renames a source folder to a destination folder. This operation is only
-     * applicable to a hierarchical namespace enabled bucket. During a rename, the
-     * source and destination folders are locked until the long running operation
-     * completes.
-     * Hierarchical namespace buckets are in allowlist preview.
-     * 
- */ - public void renameFolder( - com.google.storage.control.v2.RenameFolderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRenameFolderMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the storage layout configuration for a given bucket.
-     * 
- */ - public void getStorageLayout( - com.google.storage.control.v2.GetStorageLayoutRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetStorageLayoutMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new managed folder.
-     * 
- */ - public void createManagedFolder( - com.google.storage.control.v2.CreateManagedFolderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateManagedFolderMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Permanently deletes an empty managed folder.
-     * 
- */ - public void deleteManagedFolder( - com.google.storage.control.v2.DeleteManagedFolderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteManagedFolderMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns metadata for the specified managed folder.
-     * 
- */ - public void getManagedFolder( - com.google.storage.control.v2.GetManagedFolderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetManagedFolderMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieves a list of managed folders for a given bucket.
-     * 
- */ - public void listManagedFolders( - com.google.storage.control.v2.ListManagedFoldersRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListManagedFoldersMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service StorageControl. - * - *
-   * StorageControl service includes selected control plane operations.
-   * 
- */ - public static final class StorageControlBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private StorageControlBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected StorageControlBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new StorageControlBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new folder. This operation is only applicable to a hierarchical
-     * namespace enabled bucket.
-     * Hierarchical namespace buckets are in allowlist preview.
-     * 
- */ - public com.google.storage.control.v2.Folder createFolder( - com.google.storage.control.v2.CreateFolderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateFolderMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Permanently deletes an empty folder. This operation is only applicable to a
-     * hierarchical namespace enabled bucket.
-     * Hierarchical namespace buckets are in allowlist preview.
-     * 
- */ - public com.google.protobuf.Empty deleteFolder( - com.google.storage.control.v2.DeleteFolderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteFolderMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns metadata for the specified folder. This operation is only
-     * applicable to a hierarchical namespace enabled bucket.
-     * Hierarchical namespace buckets are in allowlist preview.
-     * 
- */ - public com.google.storage.control.v2.Folder getFolder( - com.google.storage.control.v2.GetFolderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetFolderMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves a list of folders. This operation is only applicable to a
-     * hierarchical namespace enabled bucket.
-     * Hierarchical namespace buckets are in allowlist preview.
-     * 
- */ - public com.google.storage.control.v2.ListFoldersResponse listFolders( - com.google.storage.control.v2.ListFoldersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFoldersMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Renames a source folder to a destination folder. This operation is only
-     * applicable to a hierarchical namespace enabled bucket. During a rename, the
-     * source and destination folders are locked until the long running operation
-     * completes.
-     * Hierarchical namespace buckets are in allowlist preview.
-     * 
- */ - public com.google.longrunning.Operation renameFolder( - com.google.storage.control.v2.RenameFolderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRenameFolderMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the storage layout configuration for a given bucket.
-     * 
- */ - public com.google.storage.control.v2.StorageLayout getStorageLayout( - com.google.storage.control.v2.GetStorageLayoutRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetStorageLayoutMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new managed folder.
-     * 
- */ - public com.google.storage.control.v2.ManagedFolder createManagedFolder( - com.google.storage.control.v2.CreateManagedFolderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateManagedFolderMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Permanently deletes an empty managed folder.
-     * 
- */ - public com.google.protobuf.Empty deleteManagedFolder( - com.google.storage.control.v2.DeleteManagedFolderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteManagedFolderMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns metadata for the specified managed folder.
-     * 
- */ - public com.google.storage.control.v2.ManagedFolder getManagedFolder( - com.google.storage.control.v2.GetManagedFolderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetManagedFolderMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves a list of managed folders for a given bucket.
-     * 
- */ - public com.google.storage.control.v2.ListManagedFoldersResponse listManagedFolders( - com.google.storage.control.v2.ListManagedFoldersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListManagedFoldersMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service StorageControl. - * - *
-   * StorageControl service includes selected control plane operations.
-   * 
- */ - public static final class StorageControlFutureStub - extends io.grpc.stub.AbstractFutureStub { - private StorageControlFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected StorageControlFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new StorageControlFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a new folder. This operation is only applicable to a hierarchical
-     * namespace enabled bucket.
-     * Hierarchical namespace buckets are in allowlist preview.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createFolder(com.google.storage.control.v2.CreateFolderRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateFolderMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Permanently deletes an empty folder. This operation is only applicable to a
-     * hierarchical namespace enabled bucket.
-     * Hierarchical namespace buckets are in allowlist preview.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteFolder(com.google.storage.control.v2.DeleteFolderRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteFolderMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns metadata for the specified folder. This operation is only
-     * applicable to a hierarchical namespace enabled bucket.
-     * Hierarchical namespace buckets are in allowlist preview.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getFolder(com.google.storage.control.v2.GetFolderRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetFolderMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieves a list of folders. This operation is only applicable to a
-     * hierarchical namespace enabled bucket.
-     * Hierarchical namespace buckets are in allowlist preview.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.storage.control.v2.ListFoldersResponse> - listFolders(com.google.storage.control.v2.ListFoldersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFoldersMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Renames a source folder to a destination folder. This operation is only
-     * applicable to a hierarchical namespace enabled bucket. During a rename, the
-     * source and destination folders are locked until the long running operation
-     * completes.
-     * Hierarchical namespace buckets are in allowlist preview.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - renameFolder(com.google.storage.control.v2.RenameFolderRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRenameFolderMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the storage layout configuration for a given bucket.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.storage.control.v2.StorageLayout> - getStorageLayout(com.google.storage.control.v2.GetStorageLayoutRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetStorageLayoutMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new managed folder.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.storage.control.v2.ManagedFolder> - createManagedFolder(com.google.storage.control.v2.CreateManagedFolderRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateManagedFolderMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Permanently deletes an empty managed folder.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteManagedFolder(com.google.storage.control.v2.DeleteManagedFolderRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteManagedFolderMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns metadata for the specified managed folder.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.storage.control.v2.ManagedFolder> - getManagedFolder(com.google.storage.control.v2.GetManagedFolderRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetManagedFolderMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieves a list of managed folders for a given bucket.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.storage.control.v2.ListManagedFoldersResponse> - listManagedFolders(com.google.storage.control.v2.ListManagedFoldersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListManagedFoldersMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_FOLDER = 0; - private static final int METHODID_DELETE_FOLDER = 1; - private static final int METHODID_GET_FOLDER = 2; - private static final int METHODID_LIST_FOLDERS = 3; - private static final int METHODID_RENAME_FOLDER = 4; - private static final int METHODID_GET_STORAGE_LAYOUT = 5; - private static final int METHODID_CREATE_MANAGED_FOLDER = 6; - private static final int METHODID_DELETE_MANAGED_FOLDER = 7; - private static final int METHODID_GET_MANAGED_FOLDER = 8; - private static final int METHODID_LIST_MANAGED_FOLDERS = 9; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_FOLDER: - serviceImpl.createFolder( - (com.google.storage.control.v2.CreateFolderRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_FOLDER: - serviceImpl.deleteFolder( - (com.google.storage.control.v2.DeleteFolderRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_FOLDER: - serviceImpl.getFolder( - (com.google.storage.control.v2.GetFolderRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_FOLDERS: - serviceImpl.listFolders( - (com.google.storage.control.v2.ListFoldersRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_RENAME_FOLDER: - serviceImpl.renameFolder( - (com.google.storage.control.v2.RenameFolderRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_STORAGE_LAYOUT: - serviceImpl.getStorageLayout( - (com.google.storage.control.v2.GetStorageLayoutRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_MANAGED_FOLDER: - serviceImpl.createManagedFolder( - (com.google.storage.control.v2.CreateManagedFolderRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_MANAGED_FOLDER: - serviceImpl.deleteManagedFolder( - (com.google.storage.control.v2.DeleteManagedFolderRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_MANAGED_FOLDER: - serviceImpl.getManagedFolder( - (com.google.storage.control.v2.GetManagedFolderRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_MANAGED_FOLDERS: - serviceImpl.listManagedFolders( - (com.google.storage.control.v2.ListManagedFoldersRequest) request, - (io.grpc.stub.StreamObserver< - com.google.storage.control.v2.ListManagedFoldersResponse>) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateFolderMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.control.v2.CreateFolderRequest, - com.google.storage.control.v2.Folder>(service, METHODID_CREATE_FOLDER))) - .addMethod( - getDeleteFolderMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.control.v2.DeleteFolderRequest, com.google.protobuf.Empty>( - service, METHODID_DELETE_FOLDER))) - .addMethod( - getGetFolderMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.control.v2.GetFolderRequest, - com.google.storage.control.v2.Folder>(service, METHODID_GET_FOLDER))) - .addMethod( - getListFoldersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.control.v2.ListFoldersRequest, - com.google.storage.control.v2.ListFoldersResponse>( - service, METHODID_LIST_FOLDERS))) - .addMethod( - getRenameFolderMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.control.v2.RenameFolderRequest, - com.google.longrunning.Operation>(service, METHODID_RENAME_FOLDER))) - .addMethod( - getGetStorageLayoutMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.control.v2.GetStorageLayoutRequest, - com.google.storage.control.v2.StorageLayout>( - service, METHODID_GET_STORAGE_LAYOUT))) - .addMethod( - getCreateManagedFolderMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.control.v2.CreateManagedFolderRequest, - com.google.storage.control.v2.ManagedFolder>( - service, METHODID_CREATE_MANAGED_FOLDER))) - .addMethod( - getDeleteManagedFolderMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.control.v2.DeleteManagedFolderRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_MANAGED_FOLDER))) - .addMethod( - getGetManagedFolderMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.control.v2.GetManagedFolderRequest, - com.google.storage.control.v2.ManagedFolder>( - service, METHODID_GET_MANAGED_FOLDER))) - .addMethod( - getListManagedFoldersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.control.v2.ListManagedFoldersRequest, - com.google.storage.control.v2.ListManagedFoldersResponse>( - service, METHODID_LIST_MANAGED_FOLDERS))) - .build(); - } - - private abstract static class StorageControlBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - StorageControlBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.storage.control.v2.StorageControlProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("StorageControl"); - } - } - - private static final class StorageControlFileDescriptorSupplier - extends StorageControlBaseDescriptorSupplier { - StorageControlFileDescriptorSupplier() {} - } - - private static final class StorageControlMethodDescriptorSupplier - extends StorageControlBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - StorageControlMethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (StorageControlGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new StorageControlFileDescriptorSupplier()) - .addMethod(getCreateFolderMethod()) - .addMethod(getDeleteFolderMethod()) - .addMethod(getGetFolderMethod()) - .addMethod(getListFoldersMethod()) - .addMethod(getRenameFolderMethod()) - .addMethod(getGetStorageLayoutMethod()) - .addMethod(getCreateManagedFolderMethod()) - .addMethod(getDeleteManagedFolderMethod()) - .addMethod(getGetManagedFolderMethod()) - .addMethod(getListManagedFoldersMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageClient.java b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageClient.java similarity index 100% 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 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 8c3a2fdd7f..cc2153d181 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 @@ -31,6 +31,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 1fe477aab0..10750ba70f 100644 --- a/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageStub.java +++ b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/GrpcStorageStub.java @@ -88,6 +88,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; 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/gapic-google-cloud-storage-v2/src/main/resources/META-INF/native-image/com.google.storage.v2/reflect-config.json b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/resources/META-INF/native-image/com.google.storage.v2/reflect-config.json similarity index 100% rename from gapic-google-cloud-storage-v2/src/main/resources/META-INF/native-image/com.google.storage.v2/reflect-config.json rename to owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/resources/META-INF/native-image/com.google.storage.v2/reflect-config.json diff --git a/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/resources/com/google/storage/v2/gapic_metadata.json b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/resources/com/google/storage/v2/gapic_metadata.json new file mode 100644 index 0000000000..f3a73a24b2 --- /dev/null +++ b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/resources/com/google/storage/v2/gapic_metadata.json @@ -0,0 +1,114 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.storage.v2", + "libraryPackage": "com.google.storage.v2", + "services": { + "Storage": { + "clients": { + "grpc": { + "libraryClient": "StorageClient", + "rpcs": { + "BidiWriteObject": { + "methods": ["bidiWriteObjectCallable"] + }, + "CancelResumableWrite": { + "methods": ["cancelResumableWrite", "cancelResumableWrite", "cancelResumableWriteCallable"] + }, + "ComposeObject": { + "methods": ["composeObject", "composeObjectCallable"] + }, + "CreateBucket": { + "methods": ["createBucket", "createBucket", "createBucket", "createBucketCallable"] + }, + "CreateHmacKey": { + "methods": ["createHmacKey", "createHmacKey", "createHmacKey", "createHmacKeyCallable"] + }, + "CreateNotificationConfig": { + "methods": ["createNotificationConfig", "createNotificationConfig", "createNotificationConfig", "createNotificationConfigCallable"] + }, + "DeleteBucket": { + "methods": ["deleteBucket", "deleteBucket", "deleteBucket", "deleteBucketCallable"] + }, + "DeleteHmacKey": { + "methods": ["deleteHmacKey", "deleteHmacKey", "deleteHmacKey", "deleteHmacKeyCallable"] + }, + "DeleteNotificationConfig": { + "methods": ["deleteNotificationConfig", "deleteNotificationConfig", "deleteNotificationConfig", "deleteNotificationConfigCallable"] + }, + "DeleteObject": { + "methods": ["deleteObject", "deleteObject", "deleteObject", "deleteObject", "deleteObject", "deleteObjectCallable"] + }, + "GetBucket": { + "methods": ["getBucket", "getBucket", "getBucket", "getBucketCallable"] + }, + "GetHmacKey": { + "methods": ["getHmacKey", "getHmacKey", "getHmacKey", "getHmacKeyCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicy", "getIamPolicy", "getIamPolicyCallable"] + }, + "GetNotificationConfig": { + "methods": ["getNotificationConfig", "getNotificationConfig", "getNotificationConfig", "getNotificationConfigCallable"] + }, + "GetObject": { + "methods": ["getObject", "getObject", "getObject", "getObject", "getObject", "getObjectCallable"] + }, + "GetServiceAccount": { + "methods": ["getServiceAccount", "getServiceAccount", "getServiceAccount", "getServiceAccountCallable"] + }, + "ListBuckets": { + "methods": ["listBuckets", "listBuckets", "listBuckets", "listBucketsPagedCallable", "listBucketsCallable"] + }, + "ListHmacKeys": { + "methods": ["listHmacKeys", "listHmacKeys", "listHmacKeys", "listHmacKeysPagedCallable", "listHmacKeysCallable"] + }, + "ListNotificationConfigs": { + "methods": ["listNotificationConfigs", "listNotificationConfigs", "listNotificationConfigs", "listNotificationConfigsPagedCallable", "listNotificationConfigsCallable"] + }, + "ListObjects": { + "methods": ["listObjects", "listObjects", "listObjects", "listObjectsPagedCallable", "listObjectsCallable"] + }, + "LockBucketRetentionPolicy": { + "methods": ["lockBucketRetentionPolicy", "lockBucketRetentionPolicy", "lockBucketRetentionPolicy", "lockBucketRetentionPolicyCallable"] + }, + "QueryWriteStatus": { + "methods": ["queryWriteStatus", "queryWriteStatus", "queryWriteStatusCallable"] + }, + "ReadObject": { + "methods": ["readObjectCallable"] + }, + "RestoreObject": { + "methods": ["restoreObject", "restoreObject", "restoreObject", "restoreObjectCallable"] + }, + "RewriteObject": { + "methods": ["rewriteObject", "rewriteObjectCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicy", "setIamPolicy", "setIamPolicyCallable"] + }, + "StartResumableWrite": { + "methods": ["startResumableWrite", "startResumableWriteCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissions", "testIamPermissions", "testIamPermissionsCallable"] + }, + "UpdateBucket": { + "methods": ["updateBucket", "updateBucket", "updateBucketCallable"] + }, + "UpdateHmacKey": { + "methods": ["updateHmacKey", "updateHmacKey", "updateHmacKeyCallable"] + }, + "UpdateObject": { + "methods": ["updateObject", "updateObject", "updateObjectCallable"] + }, + "WriteObject": { + "methods": ["writeObjectCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorage.java b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorage.java similarity index 100% rename from gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorage.java rename to owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorage.java diff --git a/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorageImpl.java b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorageImpl.java similarity index 100% rename from gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorageImpl.java rename to owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/MockStorageImpl.java diff --git a/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/StorageClientTest.java b/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/StorageClientTest.java similarity index 100% rename from gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/StorageClientTest.java rename to owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/test/java/com/google/storage/v2/StorageClientTest.java diff --git a/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlClient.java b/owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlClient.java similarity index 97% rename from google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlClient.java rename to owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlClient.java index 18f9cb7b21..4069e21aa3 100644 --- a/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlClient.java +++ b/owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlClient.java @@ -70,7 +70,7 @@ * * *

CreateFolder - *

Creates a new folder. This operation is only applicable to a hierarchical namespace enabled bucket. Hierarchical namespace buckets are in allowlist preview. + *

Creates a new folder. This operation is only applicable to a hierarchical namespace enabled bucket. * *

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

*
    @@ -89,7 +89,7 @@ * * *

    DeleteFolder - *

    Permanently deletes an empty folder. This operation is only applicable to a hierarchical namespace enabled bucket. Hierarchical namespace buckets are in allowlist preview. + *

    Permanently deletes an empty folder. This operation is only applicable to a hierarchical namespace enabled bucket. * *

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

    *
      @@ -108,7 +108,7 @@ * * *

      GetFolder - *

      Returns metadata for the specified folder. This operation is only applicable to a hierarchical namespace enabled bucket. Hierarchical namespace buckets are in allowlist preview. + *

      Returns metadata for the specified folder. This operation is only applicable to a hierarchical namespace enabled bucket. * *

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

      *
        @@ -127,7 +127,7 @@ * * *

        ListFolders - *

        Retrieves a list of folders. This operation is only applicable to a hierarchical namespace enabled bucket. Hierarchical namespace buckets are in allowlist preview. + *

        Retrieves a list of folders. This operation is only applicable to a hierarchical namespace enabled bucket. * *

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

        *
          @@ -147,7 +147,7 @@ * * *

          RenameFolder - *

          Renames a source folder to a destination folder. This operation is only applicable to a hierarchical namespace enabled bucket. During a rename, the source and destination folders are locked until the long running operation completes. Hierarchical namespace buckets are in allowlist preview. + *

          Renames a source folder to a destination folder. This operation is only applicable to a hierarchical namespace enabled bucket. During a rename, the source and destination folders are locked until the long running operation completes. * *

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

          *
            @@ -366,7 +366,7 @@ public final OperationsClient getOperationsClient() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a new folder. This operation is only applicable to a hierarchical namespace enabled - * bucket. Hierarchical namespace buckets are in allowlist preview. + * bucket. * *

            Sample code: * @@ -408,7 +408,7 @@ public final Folder createFolder(BucketName parent, Folder folder, String folder // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a new folder. This operation is only applicable to a hierarchical namespace enabled - * bucket. Hierarchical namespace buckets are in allowlist preview. + * bucket. * *

            Sample code: * @@ -450,7 +450,7 @@ public final Folder createFolder(String parent, Folder folder, String folderId) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a new folder. This operation is only applicable to a hierarchical namespace enabled - * bucket. Hierarchical namespace buckets are in allowlist preview. + * bucket. * *

            Sample code: * @@ -483,7 +483,7 @@ public final Folder createFolder(CreateFolderRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a new folder. This operation is only applicable to a hierarchical namespace enabled - * bucket. Hierarchical namespace buckets are in allowlist preview. + * bucket. * *

            Sample code: * @@ -515,7 +515,7 @@ public final UnaryCallable createFolderCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Permanently deletes an empty folder. This operation is only applicable to a hierarchical - * namespace enabled bucket. Hierarchical namespace buckets are in allowlist preview. + * namespace enabled bucket. * *

            Sample code: * @@ -544,7 +544,7 @@ public final void deleteFolder(FolderName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Permanently deletes an empty folder. This operation is only applicable to a hierarchical - * namespace enabled bucket. Hierarchical namespace buckets are in allowlist preview. + * namespace enabled bucket. * *

            Sample code: * @@ -572,7 +572,7 @@ public final void deleteFolder(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Permanently deletes an empty folder. This operation is only applicable to a hierarchical - * namespace enabled bucket. Hierarchical namespace buckets are in allowlist preview. + * namespace enabled bucket. * *

            Sample code: * @@ -604,7 +604,7 @@ public final void deleteFolder(DeleteFolderRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Permanently deletes an empty folder. This operation is only applicable to a hierarchical - * namespace enabled bucket. Hierarchical namespace buckets are in allowlist preview. + * namespace enabled bucket. * *

            Sample code: * @@ -635,7 +635,7 @@ public final UnaryCallable deleteFolderCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns metadata for the specified folder. This operation is only applicable to a hierarchical - * namespace enabled bucket. Hierarchical namespace buckets are in allowlist preview. + * namespace enabled bucket. * *

            Sample code: * @@ -664,7 +664,7 @@ public final Folder getFolder(FolderName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns metadata for the specified folder. This operation is only applicable to a hierarchical - * namespace enabled bucket. Hierarchical namespace buckets are in allowlist preview. + * namespace enabled bucket. * *

            Sample code: * @@ -692,7 +692,7 @@ public final Folder getFolder(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns metadata for the specified folder. This operation is only applicable to a hierarchical - * namespace enabled bucket. Hierarchical namespace buckets are in allowlist preview. + * namespace enabled bucket. * *

            Sample code: * @@ -724,7 +724,7 @@ public final Folder getFolder(GetFolderRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns metadata for the specified folder. This operation is only applicable to a hierarchical - * namespace enabled bucket. Hierarchical namespace buckets are in allowlist preview. + * namespace enabled bucket. * *

            Sample code: * @@ -755,7 +755,7 @@ public final UnaryCallable getFolderCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Retrieves a list of folders. This operation is only applicable to a hierarchical namespace - * enabled bucket. Hierarchical namespace buckets are in allowlist preview. + * enabled bucket. * *

            Sample code: * @@ -788,7 +788,7 @@ public final ListFoldersPagedResponse listFolders(BucketName parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Retrieves a list of folders. This operation is only applicable to a hierarchical namespace - * enabled bucket. Hierarchical namespace buckets are in allowlist preview. + * enabled bucket. * *

            Sample code: * @@ -818,7 +818,7 @@ public final ListFoldersPagedResponse listFolders(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Retrieves a list of folders. This operation is only applicable to a hierarchical namespace - * enabled bucket. Hierarchical namespace buckets are in allowlist preview. + * enabled bucket. * *

            Sample code: * @@ -856,7 +856,7 @@ public final ListFoldersPagedResponse listFolders(ListFoldersRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Retrieves a list of folders. This operation is only applicable to a hierarchical namespace - * enabled bucket. Hierarchical namespace buckets are in allowlist preview. + * enabled bucket. * *

            Sample code: * @@ -895,7 +895,7 @@ public final ListFoldersPagedResponse listFolders(ListFoldersRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Retrieves a list of folders. This operation is only applicable to a hierarchical namespace - * enabled bucket. Hierarchical namespace buckets are in allowlist preview. + * enabled bucket. * *

            Sample code: * @@ -940,8 +940,7 @@ public final UnaryCallable listFoldersC /** * Renames a source folder to a destination folder. This operation is only applicable to a * hierarchical namespace enabled bucket. During a rename, the source and destination folders are - * locked until the long running operation completes. Hierarchical namespace buckets are in - * allowlist preview. + * locked until the long running operation completes. * *

            Sample code: * @@ -977,8 +976,7 @@ public final OperationFuture renameFolderAsync( /** * Renames a source folder to a destination folder. This operation is only applicable to a * hierarchical namespace enabled bucket. During a rename, the source and destination folders are - * locked until the long running operation completes. Hierarchical namespace buckets are in - * allowlist preview. + * locked until the long running operation completes. * *

            Sample code: * @@ -1014,8 +1012,7 @@ public final OperationFuture renameFolderAsync( /** * Renames a source folder to a destination folder. This operation is only applicable to a * hierarchical namespace enabled bucket. During a rename, the source and destination folders are - * locked until the long running operation completes. Hierarchical namespace buckets are in - * allowlist preview. + * locked until the long running operation completes. * *

            Sample code: * @@ -1050,8 +1047,7 @@ public final OperationFuture renameFolderAsync( /** * Renames a source folder to a destination folder. This operation is only applicable to a * hierarchical namespace enabled bucket. During a rename, the source and destination folders are - * locked until the long running operation completes. Hierarchical namespace buckets are in - * allowlist preview. + * locked until the long running operation completes. * *

            Sample code: * @@ -1086,8 +1082,7 @@ public final OperationFuture renameFolderAsync( /** * Renames a source folder to a destination folder. This operation is only applicable to a * hierarchical namespace enabled bucket. During a rename, the source and destination folders are - * locked until the long running operation completes. Hierarchical namespace buckets are in - * allowlist preview. + * locked until the long running operation completes. * *

            Sample code: * diff --git a/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlSettings.java b/owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlSettings.java similarity index 99% rename from google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlSettings.java rename to owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlSettings.java index d63f5272a9..dae42a6569 100644 --- a/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlSettings.java +++ b/owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlSettings.java @@ -28,6 +28,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.longrunning.Operation; diff --git a/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/gapic_metadata.json b/owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/gapic_metadata.json similarity index 100% rename from google-cloud-storage-control/src/main/java/com/google/storage/control/v2/gapic_metadata.json rename to owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/gapic_metadata.json diff --git a/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/package-info.java b/owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/package-info.java similarity index 100% rename from google-cloud-storage-control/src/main/java/com/google/storage/control/v2/package-info.java rename to owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/package-info.java diff --git a/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlCallableFactory.java b/owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlCallableFactory.java similarity index 100% rename from google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlCallableFactory.java rename to owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlCallableFactory.java diff --git a/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlStub.java b/owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlStub.java similarity index 99% rename from google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlStub.java rename to owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlStub.java index b075a0493e..b3b4374364 100644 --- a/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlStub.java +++ b/owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlStub.java @@ -51,6 +51,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.UUID; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/StorageControlStub.java b/owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/StorageControlStub.java similarity index 100% rename from google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/StorageControlStub.java rename to owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/StorageControlStub.java diff --git a/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/StorageControlStubSettings.java b/owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/StorageControlStubSettings.java similarity index 100% rename from google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/StorageControlStubSettings.java rename to owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/StorageControlStubSettings.java diff --git a/google-cloud-storage-control/src/main/resources/META-INF/native-image/com.google.storage.control.v2/reflect-config.json b/owl-bot-staging/v2/google-cloud-storage-control/src/main/resources/META-INF/native-image/com.google.storage.control.v2/reflect-config.json similarity index 100% rename from google-cloud-storage-control/src/main/resources/META-INF/native-image/com.google.storage.control.v2/reflect-config.json rename to owl-bot-staging/v2/google-cloud-storage-control/src/main/resources/META-INF/native-image/com.google.storage.control.v2/reflect-config.json diff --git a/google-cloud-storage-control/src/main/resources/com/google/storage/control/v2/gapic_metadata.json b/owl-bot-staging/v2/google-cloud-storage-control/src/main/resources/com/google/storage/control/v2/gapic_metadata.json similarity index 100% rename from google-cloud-storage-control/src/main/resources/com/google/storage/control/v2/gapic_metadata.json rename to owl-bot-staging/v2/google-cloud-storage-control/src/main/resources/com/google/storage/control/v2/gapic_metadata.json diff --git a/google-cloud-storage-control/src/test/java/com/google/storage/control/v2/MockStorageControl.java b/owl-bot-staging/v2/google-cloud-storage-control/src/test/java/com/google/storage/control/v2/MockStorageControl.java similarity index 100% rename from google-cloud-storage-control/src/test/java/com/google/storage/control/v2/MockStorageControl.java rename to owl-bot-staging/v2/google-cloud-storage-control/src/test/java/com/google/storage/control/v2/MockStorageControl.java diff --git a/google-cloud-storage-control/src/test/java/com/google/storage/control/v2/MockStorageControlImpl.java b/owl-bot-staging/v2/google-cloud-storage-control/src/test/java/com/google/storage/control/v2/MockStorageControlImpl.java similarity index 100% rename from google-cloud-storage-control/src/test/java/com/google/storage/control/v2/MockStorageControlImpl.java rename to owl-bot-staging/v2/google-cloud-storage-control/src/test/java/com/google/storage/control/v2/MockStorageControlImpl.java diff --git a/google-cloud-storage-control/src/test/java/com/google/storage/control/v2/StorageControlClientTest.java b/owl-bot-staging/v2/google-cloud-storage-control/src/test/java/com/google/storage/control/v2/StorageControlClientTest.java similarity index 100% rename from google-cloud-storage-control/src/test/java/com/google/storage/control/v2/StorageControlClientTest.java rename to owl-bot-staging/v2/google-cloud-storage-control/src/test/java/com/google/storage/control/v2/StorageControlClientTest.java diff --git a/owl-bot-staging/v2/grpc-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlGrpc.java b/owl-bot-staging/v2/grpc-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlGrpc.java new file mode 100644 index 0000000000..3515bd9987 --- /dev/null +++ b/owl-bot-staging/v2/grpc-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlGrpc.java @@ -0,0 +1,1125 @@ +package com.google.storage.control.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

            + * StorageControl service includes selected control plane operations.
            + * 
            + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/storage/control/v2/storage_control.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class StorageControlGrpc { + + private StorageControlGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.storage.control.v2.StorageControl"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFolder", + requestType = com.google.storage.control.v2.CreateFolderRequest.class, + responseType = com.google.storage.control.v2.Folder.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateFolderMethod() { + io.grpc.MethodDescriptor getCreateFolderMethod; + if ((getCreateFolderMethod = StorageControlGrpc.getCreateFolderMethod) == null) { + synchronized (StorageControlGrpc.class) { + if ((getCreateFolderMethod = StorageControlGrpc.getCreateFolderMethod) == null) { + StorageControlGrpc.getCreateFolderMethod = getCreateFolderMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.CreateFolderRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.Folder.getDefaultInstance())) + .setSchemaDescriptor(new StorageControlMethodDescriptorSupplier("CreateFolder")) + .build(); + } + } + } + return getCreateFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFolder", + requestType = com.google.storage.control.v2.DeleteFolderRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteFolderMethod() { + io.grpc.MethodDescriptor getDeleteFolderMethod; + if ((getDeleteFolderMethod = StorageControlGrpc.getDeleteFolderMethod) == null) { + synchronized (StorageControlGrpc.class) { + if ((getDeleteFolderMethod = StorageControlGrpc.getDeleteFolderMethod) == null) { + StorageControlGrpc.getDeleteFolderMethod = getDeleteFolderMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.DeleteFolderRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new StorageControlMethodDescriptorSupplier("DeleteFolder")) + .build(); + } + } + } + return getDeleteFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFolder", + requestType = com.google.storage.control.v2.GetFolderRequest.class, + responseType = com.google.storage.control.v2.Folder.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetFolderMethod() { + io.grpc.MethodDescriptor getGetFolderMethod; + if ((getGetFolderMethod = StorageControlGrpc.getGetFolderMethod) == null) { + synchronized (StorageControlGrpc.class) { + if ((getGetFolderMethod = StorageControlGrpc.getGetFolderMethod) == null) { + StorageControlGrpc.getGetFolderMethod = getGetFolderMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.GetFolderRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.Folder.getDefaultInstance())) + .setSchemaDescriptor(new StorageControlMethodDescriptorSupplier("GetFolder")) + .build(); + } + } + } + return getGetFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor getListFoldersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFolders", + requestType = com.google.storage.control.v2.ListFoldersRequest.class, + responseType = com.google.storage.control.v2.ListFoldersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListFoldersMethod() { + io.grpc.MethodDescriptor getListFoldersMethod; + if ((getListFoldersMethod = StorageControlGrpc.getListFoldersMethod) == null) { + synchronized (StorageControlGrpc.class) { + if ((getListFoldersMethod = StorageControlGrpc.getListFoldersMethod) == null) { + StorageControlGrpc.getListFoldersMethod = getListFoldersMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFolders")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.ListFoldersRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.ListFoldersResponse.getDefaultInstance())) + .setSchemaDescriptor(new StorageControlMethodDescriptorSupplier("ListFolders")) + .build(); + } + } + } + return getListFoldersMethod; + } + + private static volatile io.grpc.MethodDescriptor getRenameFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RenameFolder", + requestType = com.google.storage.control.v2.RenameFolderRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRenameFolderMethod() { + io.grpc.MethodDescriptor getRenameFolderMethod; + if ((getRenameFolderMethod = StorageControlGrpc.getRenameFolderMethod) == null) { + synchronized (StorageControlGrpc.class) { + if ((getRenameFolderMethod = StorageControlGrpc.getRenameFolderMethod) == null) { + StorageControlGrpc.getRenameFolderMethod = getRenameFolderMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RenameFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.RenameFolderRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new StorageControlMethodDescriptorSupplier("RenameFolder")) + .build(); + } + } + } + return getRenameFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetStorageLayoutMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetStorageLayout", + requestType = com.google.storage.control.v2.GetStorageLayoutRequest.class, + responseType = com.google.storage.control.v2.StorageLayout.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetStorageLayoutMethod() { + io.grpc.MethodDescriptor getGetStorageLayoutMethod; + if ((getGetStorageLayoutMethod = StorageControlGrpc.getGetStorageLayoutMethod) == null) { + synchronized (StorageControlGrpc.class) { + if ((getGetStorageLayoutMethod = StorageControlGrpc.getGetStorageLayoutMethod) == null) { + StorageControlGrpc.getGetStorageLayoutMethod = getGetStorageLayoutMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetStorageLayout")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.GetStorageLayoutRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.StorageLayout.getDefaultInstance())) + .setSchemaDescriptor(new StorageControlMethodDescriptorSupplier("GetStorageLayout")) + .build(); + } + } + } + return getGetStorageLayoutMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateManagedFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateManagedFolder", + requestType = com.google.storage.control.v2.CreateManagedFolderRequest.class, + responseType = com.google.storage.control.v2.ManagedFolder.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateManagedFolderMethod() { + io.grpc.MethodDescriptor getCreateManagedFolderMethod; + if ((getCreateManagedFolderMethod = StorageControlGrpc.getCreateManagedFolderMethod) == null) { + synchronized (StorageControlGrpc.class) { + if ((getCreateManagedFolderMethod = StorageControlGrpc.getCreateManagedFolderMethod) == null) { + StorageControlGrpc.getCreateManagedFolderMethod = getCreateManagedFolderMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateManagedFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.CreateManagedFolderRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.ManagedFolder.getDefaultInstance())) + .setSchemaDescriptor(new StorageControlMethodDescriptorSupplier("CreateManagedFolder")) + .build(); + } + } + } + return getCreateManagedFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteManagedFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteManagedFolder", + requestType = com.google.storage.control.v2.DeleteManagedFolderRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteManagedFolderMethod() { + io.grpc.MethodDescriptor getDeleteManagedFolderMethod; + if ((getDeleteManagedFolderMethod = StorageControlGrpc.getDeleteManagedFolderMethod) == null) { + synchronized (StorageControlGrpc.class) { + if ((getDeleteManagedFolderMethod = StorageControlGrpc.getDeleteManagedFolderMethod) == null) { + StorageControlGrpc.getDeleteManagedFolderMethod = getDeleteManagedFolderMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteManagedFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.DeleteManagedFolderRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new StorageControlMethodDescriptorSupplier("DeleteManagedFolder")) + .build(); + } + } + } + return getDeleteManagedFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetManagedFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetManagedFolder", + requestType = com.google.storage.control.v2.GetManagedFolderRequest.class, + responseType = com.google.storage.control.v2.ManagedFolder.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetManagedFolderMethod() { + io.grpc.MethodDescriptor getGetManagedFolderMethod; + if ((getGetManagedFolderMethod = StorageControlGrpc.getGetManagedFolderMethod) == null) { + synchronized (StorageControlGrpc.class) { + if ((getGetManagedFolderMethod = StorageControlGrpc.getGetManagedFolderMethod) == null) { + StorageControlGrpc.getGetManagedFolderMethod = getGetManagedFolderMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetManagedFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.GetManagedFolderRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.ManagedFolder.getDefaultInstance())) + .setSchemaDescriptor(new StorageControlMethodDescriptorSupplier("GetManagedFolder")) + .build(); + } + } + } + return getGetManagedFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor getListManagedFoldersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListManagedFolders", + requestType = com.google.storage.control.v2.ListManagedFoldersRequest.class, + responseType = com.google.storage.control.v2.ListManagedFoldersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListManagedFoldersMethod() { + io.grpc.MethodDescriptor getListManagedFoldersMethod; + if ((getListManagedFoldersMethod = StorageControlGrpc.getListManagedFoldersMethod) == null) { + synchronized (StorageControlGrpc.class) { + if ((getListManagedFoldersMethod = StorageControlGrpc.getListManagedFoldersMethod) == null) { + StorageControlGrpc.getListManagedFoldersMethod = getListManagedFoldersMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListManagedFolders")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.ListManagedFoldersRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.ListManagedFoldersResponse.getDefaultInstance())) + .setSchemaDescriptor(new StorageControlMethodDescriptorSupplier("ListManagedFolders")) + .build(); + } + } + } + return getListManagedFoldersMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static StorageControlStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public StorageControlStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new StorageControlStub(channel, callOptions); + } + }; + return StorageControlStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static StorageControlBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public StorageControlBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new StorageControlBlockingStub(channel, callOptions); + } + }; + return StorageControlBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static StorageControlFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public StorageControlFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new StorageControlFutureStub(channel, callOptions); + } + }; + return StorageControlFutureStub.newStub(factory, channel); + } + + /** + *
            +   * StorageControl service includes selected control plane operations.
            +   * 
            + */ + public interface AsyncService { + + /** + *
            +     * Creates a new folder. This operation is only applicable to a hierarchical
            +     * namespace enabled bucket.
            +     * 
            + */ + default void createFolder(com.google.storage.control.v2.CreateFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFolderMethod(), responseObserver); + } + + /** + *
            +     * Permanently deletes an empty folder. This operation is only applicable to a
            +     * hierarchical namespace enabled bucket.
            +     * 
            + */ + default void deleteFolder(com.google.storage.control.v2.DeleteFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteFolderMethod(), responseObserver); + } + + /** + *
            +     * Returns metadata for the specified folder. This operation is only
            +     * applicable to a hierarchical namespace enabled bucket.
            +     * 
            + */ + default void getFolder(com.google.storage.control.v2.GetFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFolderMethod(), responseObserver); + } + + /** + *
            +     * Retrieves a list of folders. This operation is only applicable to a
            +     * hierarchical namespace enabled bucket.
            +     * 
            + */ + default void listFolders(com.google.storage.control.v2.ListFoldersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFoldersMethod(), responseObserver); + } + + /** + *
            +     * Renames a source folder to a destination folder. This operation is only
            +     * applicable to a hierarchical namespace enabled bucket. During a rename, the
            +     * source and destination folders are locked until the long running operation
            +     * completes.
            +     * 
            + */ + default void renameFolder(com.google.storage.control.v2.RenameFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRenameFolderMethod(), responseObserver); + } + + /** + *
            +     * Returns the storage layout configuration for a given bucket.
            +     * 
            + */ + default void getStorageLayout(com.google.storage.control.v2.GetStorageLayoutRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetStorageLayoutMethod(), responseObserver); + } + + /** + *
            +     * Creates a new managed folder.
            +     * 
            + */ + default void createManagedFolder(com.google.storage.control.v2.CreateManagedFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateManagedFolderMethod(), responseObserver); + } + + /** + *
            +     * Permanently deletes an empty managed folder.
            +     * 
            + */ + default void deleteManagedFolder(com.google.storage.control.v2.DeleteManagedFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteManagedFolderMethod(), responseObserver); + } + + /** + *
            +     * Returns metadata for the specified managed folder.
            +     * 
            + */ + default void getManagedFolder(com.google.storage.control.v2.GetManagedFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetManagedFolderMethod(), responseObserver); + } + + /** + *
            +     * Retrieves a list of managed folders for a given bucket.
            +     * 
            + */ + default void listManagedFolders(com.google.storage.control.v2.ListManagedFoldersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListManagedFoldersMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service StorageControl. + *
            +   * StorageControl service includes selected control plane operations.
            +   * 
            + */ + public static abstract class StorageControlImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return StorageControlGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service StorageControl. + *
            +   * StorageControl service includes selected control plane operations.
            +   * 
            + */ + public static final class StorageControlStub + extends io.grpc.stub.AbstractAsyncStub { + private StorageControlStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected StorageControlStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new StorageControlStub(channel, callOptions); + } + + /** + *
            +     * Creates a new folder. This operation is only applicable to a hierarchical
            +     * namespace enabled bucket.
            +     * 
            + */ + public void createFolder(com.google.storage.control.v2.CreateFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFolderMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
            +     * Permanently deletes an empty folder. This operation is only applicable to a
            +     * hierarchical namespace enabled bucket.
            +     * 
            + */ + public void deleteFolder(com.google.storage.control.v2.DeleteFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFolderMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
            +     * Returns metadata for the specified folder. This operation is only
            +     * applicable to a hierarchical namespace enabled bucket.
            +     * 
            + */ + public void getFolder(com.google.storage.control.v2.GetFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFolderMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
            +     * Retrieves a list of folders. This operation is only applicable to a
            +     * hierarchical namespace enabled bucket.
            +     * 
            + */ + public void listFolders(com.google.storage.control.v2.ListFoldersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFoldersMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
            +     * Renames a source folder to a destination folder. This operation is only
            +     * applicable to a hierarchical namespace enabled bucket. During a rename, the
            +     * source and destination folders are locked until the long running operation
            +     * completes.
            +     * 
            + */ + public void renameFolder(com.google.storage.control.v2.RenameFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRenameFolderMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
            +     * Returns the storage layout configuration for a given bucket.
            +     * 
            + */ + public void getStorageLayout(com.google.storage.control.v2.GetStorageLayoutRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetStorageLayoutMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
            +     * Creates a new managed folder.
            +     * 
            + */ + public void createManagedFolder(com.google.storage.control.v2.CreateManagedFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateManagedFolderMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
            +     * Permanently deletes an empty managed folder.
            +     * 
            + */ + public void deleteManagedFolder(com.google.storage.control.v2.DeleteManagedFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteManagedFolderMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
            +     * Returns metadata for the specified managed folder.
            +     * 
            + */ + public void getManagedFolder(com.google.storage.control.v2.GetManagedFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetManagedFolderMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
            +     * Retrieves a list of managed folders for a given bucket.
            +     * 
            + */ + public void listManagedFolders(com.google.storage.control.v2.ListManagedFoldersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListManagedFoldersMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service StorageControl. + *
            +   * StorageControl service includes selected control plane operations.
            +   * 
            + */ + public static final class StorageControlBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private StorageControlBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected StorageControlBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new StorageControlBlockingStub(channel, callOptions); + } + + /** + *
            +     * Creates a new folder. This operation is only applicable to a hierarchical
            +     * namespace enabled bucket.
            +     * 
            + */ + public com.google.storage.control.v2.Folder createFolder(com.google.storage.control.v2.CreateFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFolderMethod(), getCallOptions(), request); + } + + /** + *
            +     * Permanently deletes an empty folder. This operation is only applicable to a
            +     * hierarchical namespace enabled bucket.
            +     * 
            + */ + public com.google.protobuf.Empty deleteFolder(com.google.storage.control.v2.DeleteFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFolderMethod(), getCallOptions(), request); + } + + /** + *
            +     * Returns metadata for the specified folder. This operation is only
            +     * applicable to a hierarchical namespace enabled bucket.
            +     * 
            + */ + public com.google.storage.control.v2.Folder getFolder(com.google.storage.control.v2.GetFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFolderMethod(), getCallOptions(), request); + } + + /** + *
            +     * Retrieves a list of folders. This operation is only applicable to a
            +     * hierarchical namespace enabled bucket.
            +     * 
            + */ + public com.google.storage.control.v2.ListFoldersResponse listFolders(com.google.storage.control.v2.ListFoldersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFoldersMethod(), getCallOptions(), request); + } + + /** + *
            +     * Renames a source folder to a destination folder. This operation is only
            +     * applicable to a hierarchical namespace enabled bucket. During a rename, the
            +     * source and destination folders are locked until the long running operation
            +     * completes.
            +     * 
            + */ + public com.google.longrunning.Operation renameFolder(com.google.storage.control.v2.RenameFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRenameFolderMethod(), getCallOptions(), request); + } + + /** + *
            +     * Returns the storage layout configuration for a given bucket.
            +     * 
            + */ + public com.google.storage.control.v2.StorageLayout getStorageLayout(com.google.storage.control.v2.GetStorageLayoutRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetStorageLayoutMethod(), getCallOptions(), request); + } + + /** + *
            +     * Creates a new managed folder.
            +     * 
            + */ + public com.google.storage.control.v2.ManagedFolder createManagedFolder(com.google.storage.control.v2.CreateManagedFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateManagedFolderMethod(), getCallOptions(), request); + } + + /** + *
            +     * Permanently deletes an empty managed folder.
            +     * 
            + */ + public com.google.protobuf.Empty deleteManagedFolder(com.google.storage.control.v2.DeleteManagedFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteManagedFolderMethod(), getCallOptions(), request); + } + + /** + *
            +     * Returns metadata for the specified managed folder.
            +     * 
            + */ + public com.google.storage.control.v2.ManagedFolder getManagedFolder(com.google.storage.control.v2.GetManagedFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetManagedFolderMethod(), getCallOptions(), request); + } + + /** + *
            +     * Retrieves a list of managed folders for a given bucket.
            +     * 
            + */ + public com.google.storage.control.v2.ListManagedFoldersResponse listManagedFolders(com.google.storage.control.v2.ListManagedFoldersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListManagedFoldersMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service StorageControl. + *
            +   * StorageControl service includes selected control plane operations.
            +   * 
            + */ + public static final class StorageControlFutureStub + extends io.grpc.stub.AbstractFutureStub { + private StorageControlFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected StorageControlFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new StorageControlFutureStub(channel, callOptions); + } + + /** + *
            +     * Creates a new folder. This operation is only applicable to a hierarchical
            +     * namespace enabled bucket.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture createFolder( + com.google.storage.control.v2.CreateFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFolderMethod(), getCallOptions()), request); + } + + /** + *
            +     * Permanently deletes an empty folder. This operation is only applicable to a
            +     * hierarchical namespace enabled bucket.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture deleteFolder( + com.google.storage.control.v2.DeleteFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFolderMethod(), getCallOptions()), request); + } + + /** + *
            +     * Returns metadata for the specified folder. This operation is only
            +     * applicable to a hierarchical namespace enabled bucket.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture getFolder( + com.google.storage.control.v2.GetFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFolderMethod(), getCallOptions()), request); + } + + /** + *
            +     * Retrieves a list of folders. This operation is only applicable to a
            +     * hierarchical namespace enabled bucket.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture listFolders( + com.google.storage.control.v2.ListFoldersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFoldersMethod(), getCallOptions()), request); + } + + /** + *
            +     * Renames a source folder to a destination folder. This operation is only
            +     * applicable to a hierarchical namespace enabled bucket. During a rename, the
            +     * source and destination folders are locked until the long running operation
            +     * completes.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture renameFolder( + com.google.storage.control.v2.RenameFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRenameFolderMethod(), getCallOptions()), request); + } + + /** + *
            +     * Returns the storage layout configuration for a given bucket.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture getStorageLayout( + com.google.storage.control.v2.GetStorageLayoutRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetStorageLayoutMethod(), getCallOptions()), request); + } + + /** + *
            +     * Creates a new managed folder.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture createManagedFolder( + com.google.storage.control.v2.CreateManagedFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateManagedFolderMethod(), getCallOptions()), request); + } + + /** + *
            +     * Permanently deletes an empty managed folder.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture deleteManagedFolder( + com.google.storage.control.v2.DeleteManagedFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteManagedFolderMethod(), getCallOptions()), request); + } + + /** + *
            +     * Returns metadata for the specified managed folder.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture getManagedFolder( + com.google.storage.control.v2.GetManagedFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetManagedFolderMethod(), getCallOptions()), request); + } + + /** + *
            +     * Retrieves a list of managed folders for a given bucket.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture listManagedFolders( + com.google.storage.control.v2.ListManagedFoldersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListManagedFoldersMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_FOLDER = 0; + private static final int METHODID_DELETE_FOLDER = 1; + private static final int METHODID_GET_FOLDER = 2; + private static final int METHODID_LIST_FOLDERS = 3; + private static final int METHODID_RENAME_FOLDER = 4; + private static final int METHODID_GET_STORAGE_LAYOUT = 5; + private static final int METHODID_CREATE_MANAGED_FOLDER = 6; + private static final int METHODID_DELETE_MANAGED_FOLDER = 7; + private static final int METHODID_GET_MANAGED_FOLDER = 8; + private static final int METHODID_LIST_MANAGED_FOLDERS = 9; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_FOLDER: + serviceImpl.createFolder((com.google.storage.control.v2.CreateFolderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_FOLDER: + serviceImpl.deleteFolder((com.google.storage.control.v2.DeleteFolderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_FOLDER: + serviceImpl.getFolder((com.google.storage.control.v2.GetFolderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_FOLDERS: + serviceImpl.listFolders((com.google.storage.control.v2.ListFoldersRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RENAME_FOLDER: + serviceImpl.renameFolder((com.google.storage.control.v2.RenameFolderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_STORAGE_LAYOUT: + serviceImpl.getStorageLayout((com.google.storage.control.v2.GetStorageLayoutRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_MANAGED_FOLDER: + serviceImpl.createManagedFolder((com.google.storage.control.v2.CreateManagedFolderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_MANAGED_FOLDER: + serviceImpl.deleteManagedFolder((com.google.storage.control.v2.DeleteManagedFolderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_MANAGED_FOLDER: + serviceImpl.getManagedFolder((com.google.storage.control.v2.GetManagedFolderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_MANAGED_FOLDERS: + serviceImpl.listManagedFolders((com.google.storage.control.v2.ListManagedFoldersRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.control.v2.CreateFolderRequest, + com.google.storage.control.v2.Folder>( + service, METHODID_CREATE_FOLDER))) + .addMethod( + getDeleteFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.control.v2.DeleteFolderRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_FOLDER))) + .addMethod( + getGetFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.control.v2.GetFolderRequest, + com.google.storage.control.v2.Folder>( + service, METHODID_GET_FOLDER))) + .addMethod( + getListFoldersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.control.v2.ListFoldersRequest, + com.google.storage.control.v2.ListFoldersResponse>( + service, METHODID_LIST_FOLDERS))) + .addMethod( + getRenameFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.control.v2.RenameFolderRequest, + com.google.longrunning.Operation>( + service, METHODID_RENAME_FOLDER))) + .addMethod( + getGetStorageLayoutMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.control.v2.GetStorageLayoutRequest, + com.google.storage.control.v2.StorageLayout>( + service, METHODID_GET_STORAGE_LAYOUT))) + .addMethod( + getCreateManagedFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.control.v2.CreateManagedFolderRequest, + com.google.storage.control.v2.ManagedFolder>( + service, METHODID_CREATE_MANAGED_FOLDER))) + .addMethod( + getDeleteManagedFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.control.v2.DeleteManagedFolderRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_MANAGED_FOLDER))) + .addMethod( + getGetManagedFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.control.v2.GetManagedFolderRequest, + com.google.storage.control.v2.ManagedFolder>( + service, METHODID_GET_MANAGED_FOLDER))) + .addMethod( + getListManagedFoldersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.control.v2.ListManagedFoldersRequest, + com.google.storage.control.v2.ListManagedFoldersResponse>( + service, METHODID_LIST_MANAGED_FOLDERS))) + .build(); + } + + private static abstract class StorageControlBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + StorageControlBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.storage.control.v2.StorageControlProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("StorageControl"); + } + } + + private static final class StorageControlFileDescriptorSupplier + extends StorageControlBaseDescriptorSupplier { + StorageControlFileDescriptorSupplier() {} + } + + private static final class StorageControlMethodDescriptorSupplier + extends StorageControlBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + StorageControlMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (StorageControlGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new StorageControlFileDescriptorSupplier()) + .addMethod(getCreateFolderMethod()) + .addMethod(getDeleteFolderMethod()) + .addMethod(getGetFolderMethod()) + .addMethod(getListFoldersMethod()) + .addMethod(getRenameFolderMethod()) + .addMethod(getGetStorageLayoutMethod()) + .addMethod(getCreateManagedFolderMethod()) + .addMethod(getDeleteManagedFolderMethod()) + .addMethod(getGetManagedFolderMethod()) + .addMethod(getListManagedFoldersMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageGrpc.java b/owl-bot-staging/v2/grpc-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageGrpc.java similarity index 50% rename from grpc-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageGrpc.java rename to owl-bot-staging/v2/grpc-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageGrpc.java index 44d911f6b5..b49ea3a8d6 100644 --- a/grpc-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageGrpc.java +++ b/owl-bot-staging/v2/grpc-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.storage.v2; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
              * ## API Overview and Naming Syntax
              * The Cloud Storage gRPC API allows applications to read and write data through
            @@ -52,1394 +35,1043 @@ private StorageGrpc() {}
               public static final java.lang.String SERVICE_NAME = "google.storage.v2.Storage";
             
               // Static method descriptors that strictly reflect the proto.
            -  private static volatile io.grpc.MethodDescriptor<
            -          com.google.storage.v2.DeleteBucketRequest, com.google.protobuf.Empty>
            -      getDeleteBucketMethod;
            +  private static volatile io.grpc.MethodDescriptor getDeleteBucketMethod;
             
               @io.grpc.stub.annotations.RpcMethod(
                   fullMethodName = SERVICE_NAME + '/' + "DeleteBucket",
                   requestType = com.google.storage.v2.DeleteBucketRequest.class,
                   responseType = com.google.protobuf.Empty.class,
                   methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
            -  public static io.grpc.MethodDescriptor<
            -          com.google.storage.v2.DeleteBucketRequest, com.google.protobuf.Empty>
            -      getDeleteBucketMethod() {
            -    io.grpc.MethodDescriptor
            -        getDeleteBucketMethod;
            +  public static io.grpc.MethodDescriptor getDeleteBucketMethod() {
            +    io.grpc.MethodDescriptor getDeleteBucketMethod;
                 if ((getDeleteBucketMethod = StorageGrpc.getDeleteBucketMethod) == null) {
                   synchronized (StorageGrpc.class) {
                     if ((getDeleteBucketMethod = StorageGrpc.getDeleteBucketMethod) == null) {
            -          StorageGrpc.getDeleteBucketMethod =
            -              getDeleteBucketMethod =
            -                  io.grpc.MethodDescriptor
            -                      .
            -                          newBuilder()
            -                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            -                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBucket"))
            -                      .setSampledToLocalTracing(true)
            -                      .setRequestMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.DeleteBucketRequest.getDefaultInstance()))
            -                      .setResponseMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.protobuf.Empty.getDefaultInstance()))
            -                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("DeleteBucket"))
            -                      .build();
            +          StorageGrpc.getDeleteBucketMethod = getDeleteBucketMethod =
            +              io.grpc.MethodDescriptor.newBuilder()
            +              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBucket"))
            +              .setSampledToLocalTracing(true)
            +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.DeleteBucketRequest.getDefaultInstance()))
            +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.protobuf.Empty.getDefaultInstance()))
            +              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("DeleteBucket"))
            +              .build();
                     }
                   }
                 }
                 return getDeleteBucketMethod;
               }
             
            -  private static volatile io.grpc.MethodDescriptor<
            -          com.google.storage.v2.GetBucketRequest, com.google.storage.v2.Bucket>
            -      getGetBucketMethod;
            +  private static volatile io.grpc.MethodDescriptor getGetBucketMethod;
             
               @io.grpc.stub.annotations.RpcMethod(
                   fullMethodName = SERVICE_NAME + '/' + "GetBucket",
                   requestType = com.google.storage.v2.GetBucketRequest.class,
                   responseType = com.google.storage.v2.Bucket.class,
                   methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
            -  public static io.grpc.MethodDescriptor<
            -          com.google.storage.v2.GetBucketRequest, com.google.storage.v2.Bucket>
            -      getGetBucketMethod() {
            -    io.grpc.MethodDescriptor
            -        getGetBucketMethod;
            +  public static io.grpc.MethodDescriptor getGetBucketMethod() {
            +    io.grpc.MethodDescriptor getGetBucketMethod;
                 if ((getGetBucketMethod = StorageGrpc.getGetBucketMethod) == null) {
                   synchronized (StorageGrpc.class) {
                     if ((getGetBucketMethod = StorageGrpc.getGetBucketMethod) == null) {
            -          StorageGrpc.getGetBucketMethod =
            -              getGetBucketMethod =
            -                  io.grpc.MethodDescriptor
            -                      .
            -                          newBuilder()
            -                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            -                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBucket"))
            -                      .setSampledToLocalTracing(true)
            -                      .setRequestMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.GetBucketRequest.getDefaultInstance()))
            -                      .setResponseMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.Bucket.getDefaultInstance()))
            -                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("GetBucket"))
            -                      .build();
            +          StorageGrpc.getGetBucketMethod = getGetBucketMethod =
            +              io.grpc.MethodDescriptor.newBuilder()
            +              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBucket"))
            +              .setSampledToLocalTracing(true)
            +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.GetBucketRequest.getDefaultInstance()))
            +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.Bucket.getDefaultInstance()))
            +              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("GetBucket"))
            +              .build();
                     }
                   }
                 }
                 return getGetBucketMethod;
               }
             
            -  private static volatile io.grpc.MethodDescriptor<
            -          com.google.storage.v2.CreateBucketRequest, com.google.storage.v2.Bucket>
            -      getCreateBucketMethod;
            +  private static volatile io.grpc.MethodDescriptor getCreateBucketMethod;
             
               @io.grpc.stub.annotations.RpcMethod(
                   fullMethodName = SERVICE_NAME + '/' + "CreateBucket",
                   requestType = com.google.storage.v2.CreateBucketRequest.class,
                   responseType = com.google.storage.v2.Bucket.class,
                   methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
            -  public static io.grpc.MethodDescriptor<
            -          com.google.storage.v2.CreateBucketRequest, com.google.storage.v2.Bucket>
            -      getCreateBucketMethod() {
            -    io.grpc.MethodDescriptor<
            -            com.google.storage.v2.CreateBucketRequest, com.google.storage.v2.Bucket>
            -        getCreateBucketMethod;
            +  public static io.grpc.MethodDescriptor getCreateBucketMethod() {
            +    io.grpc.MethodDescriptor getCreateBucketMethod;
                 if ((getCreateBucketMethod = StorageGrpc.getCreateBucketMethod) == null) {
                   synchronized (StorageGrpc.class) {
                     if ((getCreateBucketMethod = StorageGrpc.getCreateBucketMethod) == null) {
            -          StorageGrpc.getCreateBucketMethod =
            -              getCreateBucketMethod =
            -                  io.grpc.MethodDescriptor
            -                      .
            -                          newBuilder()
            -                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            -                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBucket"))
            -                      .setSampledToLocalTracing(true)
            -                      .setRequestMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.CreateBucketRequest.getDefaultInstance()))
            -                      .setResponseMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.Bucket.getDefaultInstance()))
            -                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("CreateBucket"))
            -                      .build();
            +          StorageGrpc.getCreateBucketMethod = getCreateBucketMethod =
            +              io.grpc.MethodDescriptor.newBuilder()
            +              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBucket"))
            +              .setSampledToLocalTracing(true)
            +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.CreateBucketRequest.getDefaultInstance()))
            +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.Bucket.getDefaultInstance()))
            +              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("CreateBucket"))
            +              .build();
                     }
                   }
                 }
                 return getCreateBucketMethod;
               }
             
            -  private static volatile io.grpc.MethodDescriptor<
            -          com.google.storage.v2.ListBucketsRequest, com.google.storage.v2.ListBucketsResponse>
            -      getListBucketsMethod;
            +  private static volatile io.grpc.MethodDescriptor getListBucketsMethod;
             
               @io.grpc.stub.annotations.RpcMethod(
                   fullMethodName = SERVICE_NAME + '/' + "ListBuckets",
                   requestType = com.google.storage.v2.ListBucketsRequest.class,
                   responseType = com.google.storage.v2.ListBucketsResponse.class,
                   methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
            -  public static io.grpc.MethodDescriptor<
            -          com.google.storage.v2.ListBucketsRequest, com.google.storage.v2.ListBucketsResponse>
            -      getListBucketsMethod() {
            -    io.grpc.MethodDescriptor<
            -            com.google.storage.v2.ListBucketsRequest, com.google.storage.v2.ListBucketsResponse>
            -        getListBucketsMethod;
            +  public static io.grpc.MethodDescriptor getListBucketsMethod() {
            +    io.grpc.MethodDescriptor getListBucketsMethod;
                 if ((getListBucketsMethod = StorageGrpc.getListBucketsMethod) == null) {
                   synchronized (StorageGrpc.class) {
                     if ((getListBucketsMethod = StorageGrpc.getListBucketsMethod) == null) {
            -          StorageGrpc.getListBucketsMethod =
            -              getListBucketsMethod =
            -                  io.grpc.MethodDescriptor
            -                      .
            -                          newBuilder()
            -                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            -                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBuckets"))
            -                      .setSampledToLocalTracing(true)
            -                      .setRequestMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.ListBucketsRequest.getDefaultInstance()))
            -                      .setResponseMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.ListBucketsResponse.getDefaultInstance()))
            -                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("ListBuckets"))
            -                      .build();
            +          StorageGrpc.getListBucketsMethod = getListBucketsMethod =
            +              io.grpc.MethodDescriptor.newBuilder()
            +              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBuckets"))
            +              .setSampledToLocalTracing(true)
            +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.ListBucketsRequest.getDefaultInstance()))
            +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.ListBucketsResponse.getDefaultInstance()))
            +              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("ListBuckets"))
            +              .build();
                     }
                   }
                 }
                 return getListBucketsMethod;
               }
             
            -  private static volatile io.grpc.MethodDescriptor<
            -          com.google.storage.v2.LockBucketRetentionPolicyRequest, com.google.storage.v2.Bucket>
            -      getLockBucketRetentionPolicyMethod;
            +  private static volatile io.grpc.MethodDescriptor getLockBucketRetentionPolicyMethod;
             
               @io.grpc.stub.annotations.RpcMethod(
                   fullMethodName = SERVICE_NAME + '/' + "LockBucketRetentionPolicy",
                   requestType = com.google.storage.v2.LockBucketRetentionPolicyRequest.class,
                   responseType = com.google.storage.v2.Bucket.class,
                   methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
            -  public static io.grpc.MethodDescriptor<
            -          com.google.storage.v2.LockBucketRetentionPolicyRequest, com.google.storage.v2.Bucket>
            -      getLockBucketRetentionPolicyMethod() {
            -    io.grpc.MethodDescriptor<
            -            com.google.storage.v2.LockBucketRetentionPolicyRequest, com.google.storage.v2.Bucket>
            -        getLockBucketRetentionPolicyMethod;
            -    if ((getLockBucketRetentionPolicyMethod = StorageGrpc.getLockBucketRetentionPolicyMethod)
            -        == null) {
            +  public static io.grpc.MethodDescriptor getLockBucketRetentionPolicyMethod() {
            +    io.grpc.MethodDescriptor getLockBucketRetentionPolicyMethod;
            +    if ((getLockBucketRetentionPolicyMethod = StorageGrpc.getLockBucketRetentionPolicyMethod) == null) {
                   synchronized (StorageGrpc.class) {
            -        if ((getLockBucketRetentionPolicyMethod = StorageGrpc.getLockBucketRetentionPolicyMethod)
            -            == null) {
            -          StorageGrpc.getLockBucketRetentionPolicyMethod =
            -              getLockBucketRetentionPolicyMethod =
            -                  io.grpc.MethodDescriptor
            -                      .
            -                          newBuilder()
            -                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            -                      .setFullMethodName(
            -                          generateFullMethodName(SERVICE_NAME, "LockBucketRetentionPolicy"))
            -                      .setSampledToLocalTracing(true)
            -                      .setRequestMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.LockBucketRetentionPolicyRequest
            -                                  .getDefaultInstance()))
            -                      .setResponseMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.Bucket.getDefaultInstance()))
            -                      .setSchemaDescriptor(
            -                          new StorageMethodDescriptorSupplier("LockBucketRetentionPolicy"))
            -                      .build();
            +        if ((getLockBucketRetentionPolicyMethod = StorageGrpc.getLockBucketRetentionPolicyMethod) == null) {
            +          StorageGrpc.getLockBucketRetentionPolicyMethod = getLockBucketRetentionPolicyMethod =
            +              io.grpc.MethodDescriptor.newBuilder()
            +              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LockBucketRetentionPolicy"))
            +              .setSampledToLocalTracing(true)
            +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.LockBucketRetentionPolicyRequest.getDefaultInstance()))
            +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.Bucket.getDefaultInstance()))
            +              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("LockBucketRetentionPolicy"))
            +              .build();
                     }
                   }
                 }
                 return getLockBucketRetentionPolicyMethod;
               }
             
            -  private static volatile io.grpc.MethodDescriptor<
            -          com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>
            -      getGetIamPolicyMethod;
            +  private static volatile io.grpc.MethodDescriptor getGetIamPolicyMethod;
             
               @io.grpc.stub.annotations.RpcMethod(
                   fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy",
                   requestType = com.google.iam.v1.GetIamPolicyRequest.class,
                   responseType = com.google.iam.v1.Policy.class,
                   methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
            -  public static io.grpc.MethodDescriptor<
            -          com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>
            -      getGetIamPolicyMethod() {
            -    io.grpc.MethodDescriptor
            -        getGetIamPolicyMethod;
            +  public static io.grpc.MethodDescriptor getGetIamPolicyMethod() {
            +    io.grpc.MethodDescriptor getGetIamPolicyMethod;
                 if ((getGetIamPolicyMethod = StorageGrpc.getGetIamPolicyMethod) == null) {
                   synchronized (StorageGrpc.class) {
                     if ((getGetIamPolicyMethod = StorageGrpc.getGetIamPolicyMethod) == null) {
            -          StorageGrpc.getGetIamPolicyMethod =
            -              getGetIamPolicyMethod =
            -                  io.grpc.MethodDescriptor
            -                      .newBuilder()
            -                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            -                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy"))
            -                      .setSampledToLocalTracing(true)
            -                      .setRequestMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance()))
            -                      .setResponseMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.iam.v1.Policy.getDefaultInstance()))
            -                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("GetIamPolicy"))
            -                      .build();
            +          StorageGrpc.getGetIamPolicyMethod = getGetIamPolicyMethod =
            +              io.grpc.MethodDescriptor.newBuilder()
            +              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy"))
            +              .setSampledToLocalTracing(true)
            +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance()))
            +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.iam.v1.Policy.getDefaultInstance()))
            +              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("GetIamPolicy"))
            +              .build();
                     }
                   }
                 }
                 return getGetIamPolicyMethod;
               }
             
            -  private static volatile io.grpc.MethodDescriptor<
            -          com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>
            -      getSetIamPolicyMethod;
            +  private static volatile io.grpc.MethodDescriptor getSetIamPolicyMethod;
             
               @io.grpc.stub.annotations.RpcMethod(
                   fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy",
                   requestType = com.google.iam.v1.SetIamPolicyRequest.class,
                   responseType = com.google.iam.v1.Policy.class,
                   methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
            -  public static io.grpc.MethodDescriptor<
            -          com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>
            -      getSetIamPolicyMethod() {
            -    io.grpc.MethodDescriptor
            -        getSetIamPolicyMethod;
            +  public static io.grpc.MethodDescriptor getSetIamPolicyMethod() {
            +    io.grpc.MethodDescriptor getSetIamPolicyMethod;
                 if ((getSetIamPolicyMethod = StorageGrpc.getSetIamPolicyMethod) == null) {
                   synchronized (StorageGrpc.class) {
                     if ((getSetIamPolicyMethod = StorageGrpc.getSetIamPolicyMethod) == null) {
            -          StorageGrpc.getSetIamPolicyMethod =
            -              getSetIamPolicyMethod =
            -                  io.grpc.MethodDescriptor
            -                      .newBuilder()
            -                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            -                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy"))
            -                      .setSampledToLocalTracing(true)
            -                      .setRequestMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance()))
            -                      .setResponseMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.iam.v1.Policy.getDefaultInstance()))
            -                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("SetIamPolicy"))
            -                      .build();
            +          StorageGrpc.getSetIamPolicyMethod = getSetIamPolicyMethod =
            +              io.grpc.MethodDescriptor.newBuilder()
            +              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy"))
            +              .setSampledToLocalTracing(true)
            +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance()))
            +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.iam.v1.Policy.getDefaultInstance()))
            +              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("SetIamPolicy"))
            +              .build();
                     }
                   }
                 }
                 return getSetIamPolicyMethod;
               }
             
            -  private static volatile io.grpc.MethodDescriptor<
            -          com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse>
            -      getTestIamPermissionsMethod;
            +  private static volatile io.grpc.MethodDescriptor getTestIamPermissionsMethod;
             
               @io.grpc.stub.annotations.RpcMethod(
                   fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions",
                   requestType = com.google.iam.v1.TestIamPermissionsRequest.class,
                   responseType = com.google.iam.v1.TestIamPermissionsResponse.class,
                   methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
            -  public static io.grpc.MethodDescriptor<
            -          com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse>
            -      getTestIamPermissionsMethod() {
            -    io.grpc.MethodDescriptor<
            -            com.google.iam.v1.TestIamPermissionsRequest,
            -            com.google.iam.v1.TestIamPermissionsResponse>
            -        getTestIamPermissionsMethod;
            +  public static io.grpc.MethodDescriptor getTestIamPermissionsMethod() {
            +    io.grpc.MethodDescriptor getTestIamPermissionsMethod;
                 if ((getTestIamPermissionsMethod = StorageGrpc.getTestIamPermissionsMethod) == null) {
                   synchronized (StorageGrpc.class) {
                     if ((getTestIamPermissionsMethod = StorageGrpc.getTestIamPermissionsMethod) == null) {
            -          StorageGrpc.getTestIamPermissionsMethod =
            -              getTestIamPermissionsMethod =
            -                  io.grpc.MethodDescriptor
            -                      .
            -                          newBuilder()
            -                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            -                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions"))
            -                      .setSampledToLocalTracing(true)
            -                      .setRequestMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance()))
            -                      .setResponseMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance()))
            -                      .setSchemaDescriptor(
            -                          new StorageMethodDescriptorSupplier("TestIamPermissions"))
            -                      .build();
            +          StorageGrpc.getTestIamPermissionsMethod = getTestIamPermissionsMethod =
            +              io.grpc.MethodDescriptor.newBuilder()
            +              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions"))
            +              .setSampledToLocalTracing(true)
            +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance()))
            +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance()))
            +              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("TestIamPermissions"))
            +              .build();
                     }
                   }
                 }
                 return getTestIamPermissionsMethod;
               }
             
            -  private static volatile io.grpc.MethodDescriptor<
            -          com.google.storage.v2.UpdateBucketRequest, com.google.storage.v2.Bucket>
            -      getUpdateBucketMethod;
            +  private static volatile io.grpc.MethodDescriptor getUpdateBucketMethod;
             
               @io.grpc.stub.annotations.RpcMethod(
                   fullMethodName = SERVICE_NAME + '/' + "UpdateBucket",
                   requestType = com.google.storage.v2.UpdateBucketRequest.class,
                   responseType = com.google.storage.v2.Bucket.class,
                   methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
            -  public static io.grpc.MethodDescriptor<
            -          com.google.storage.v2.UpdateBucketRequest, com.google.storage.v2.Bucket>
            -      getUpdateBucketMethod() {
            -    io.grpc.MethodDescriptor<
            -            com.google.storage.v2.UpdateBucketRequest, com.google.storage.v2.Bucket>
            -        getUpdateBucketMethod;
            +  public static io.grpc.MethodDescriptor getUpdateBucketMethod() {
            +    io.grpc.MethodDescriptor getUpdateBucketMethod;
                 if ((getUpdateBucketMethod = StorageGrpc.getUpdateBucketMethod) == null) {
                   synchronized (StorageGrpc.class) {
                     if ((getUpdateBucketMethod = StorageGrpc.getUpdateBucketMethod) == null) {
            -          StorageGrpc.getUpdateBucketMethod =
            -              getUpdateBucketMethod =
            -                  io.grpc.MethodDescriptor
            -                      .
            -                          newBuilder()
            -                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            -                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBucket"))
            -                      .setSampledToLocalTracing(true)
            -                      .setRequestMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.UpdateBucketRequest.getDefaultInstance()))
            -                      .setResponseMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.Bucket.getDefaultInstance()))
            -                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("UpdateBucket"))
            -                      .build();
            +          StorageGrpc.getUpdateBucketMethod = getUpdateBucketMethod =
            +              io.grpc.MethodDescriptor.newBuilder()
            +              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBucket"))
            +              .setSampledToLocalTracing(true)
            +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.UpdateBucketRequest.getDefaultInstance()))
            +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.Bucket.getDefaultInstance()))
            +              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("UpdateBucket"))
            +              .build();
                     }
                   }
                 }
                 return getUpdateBucketMethod;
               }
             
            -  private static volatile io.grpc.MethodDescriptor<
            -          com.google.storage.v2.DeleteNotificationConfigRequest, com.google.protobuf.Empty>
            -      getDeleteNotificationConfigMethod;
            +  private static volatile io.grpc.MethodDescriptor getDeleteNotificationConfigMethod;
             
               @io.grpc.stub.annotations.RpcMethod(
                   fullMethodName = SERVICE_NAME + '/' + "DeleteNotificationConfig",
                   requestType = com.google.storage.v2.DeleteNotificationConfigRequest.class,
                   responseType = com.google.protobuf.Empty.class,
                   methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
            -  public static io.grpc.MethodDescriptor<
            -          com.google.storage.v2.DeleteNotificationConfigRequest, com.google.protobuf.Empty>
            -      getDeleteNotificationConfigMethod() {
            -    io.grpc.MethodDescriptor<
            -            com.google.storage.v2.DeleteNotificationConfigRequest, com.google.protobuf.Empty>
            -        getDeleteNotificationConfigMethod;
            -    if ((getDeleteNotificationConfigMethod = StorageGrpc.getDeleteNotificationConfigMethod)
            -        == null) {
            +  public static io.grpc.MethodDescriptor getDeleteNotificationConfigMethod() {
            +    io.grpc.MethodDescriptor getDeleteNotificationConfigMethod;
            +    if ((getDeleteNotificationConfigMethod = StorageGrpc.getDeleteNotificationConfigMethod) == null) {
                   synchronized (StorageGrpc.class) {
            -        if ((getDeleteNotificationConfigMethod = StorageGrpc.getDeleteNotificationConfigMethod)
            -            == null) {
            -          StorageGrpc.getDeleteNotificationConfigMethod =
            -              getDeleteNotificationConfigMethod =
            -                  io.grpc.MethodDescriptor
            -                      .
            -                          newBuilder()
            -                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            -                      .setFullMethodName(
            -                          generateFullMethodName(SERVICE_NAME, "DeleteNotificationConfig"))
            -                      .setSampledToLocalTracing(true)
            -                      .setRequestMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.DeleteNotificationConfigRequest
            -                                  .getDefaultInstance()))
            -                      .setResponseMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.protobuf.Empty.getDefaultInstance()))
            -                      .setSchemaDescriptor(
            -                          new StorageMethodDescriptorSupplier("DeleteNotificationConfig"))
            -                      .build();
            +        if ((getDeleteNotificationConfigMethod = StorageGrpc.getDeleteNotificationConfigMethod) == null) {
            +          StorageGrpc.getDeleteNotificationConfigMethod = getDeleteNotificationConfigMethod =
            +              io.grpc.MethodDescriptor.newBuilder()
            +              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteNotificationConfig"))
            +              .setSampledToLocalTracing(true)
            +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.DeleteNotificationConfigRequest.getDefaultInstance()))
            +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.protobuf.Empty.getDefaultInstance()))
            +              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("DeleteNotificationConfig"))
            +              .build();
                     }
                   }
                 }
                 return getDeleteNotificationConfigMethod;
               }
             
            -  private static volatile io.grpc.MethodDescriptor<
            -          com.google.storage.v2.GetNotificationConfigRequest,
            -          com.google.storage.v2.NotificationConfig>
            -      getGetNotificationConfigMethod;
            +  private static volatile io.grpc.MethodDescriptor getGetNotificationConfigMethod;
             
               @io.grpc.stub.annotations.RpcMethod(
                   fullMethodName = SERVICE_NAME + '/' + "GetNotificationConfig",
                   requestType = com.google.storage.v2.GetNotificationConfigRequest.class,
                   responseType = com.google.storage.v2.NotificationConfig.class,
                   methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
            -  public static io.grpc.MethodDescriptor<
            -          com.google.storage.v2.GetNotificationConfigRequest,
            -          com.google.storage.v2.NotificationConfig>
            -      getGetNotificationConfigMethod() {
            -    io.grpc.MethodDescriptor<
            -            com.google.storage.v2.GetNotificationConfigRequest,
            -            com.google.storage.v2.NotificationConfig>
            -        getGetNotificationConfigMethod;
            +  public static io.grpc.MethodDescriptor getGetNotificationConfigMethod() {
            +    io.grpc.MethodDescriptor getGetNotificationConfigMethod;
                 if ((getGetNotificationConfigMethod = StorageGrpc.getGetNotificationConfigMethod) == null) {
                   synchronized (StorageGrpc.class) {
                     if ((getGetNotificationConfigMethod = StorageGrpc.getGetNotificationConfigMethod) == null) {
            -          StorageGrpc.getGetNotificationConfigMethod =
            -              getGetNotificationConfigMethod =
            -                  io.grpc.MethodDescriptor
            -                      .
            -                          newBuilder()
            -                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            -                      .setFullMethodName(
            -                          generateFullMethodName(SERVICE_NAME, "GetNotificationConfig"))
            -                      .setSampledToLocalTracing(true)
            -                      .setRequestMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.GetNotificationConfigRequest
            -                                  .getDefaultInstance()))
            -                      .setResponseMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.NotificationConfig.getDefaultInstance()))
            -                      .setSchemaDescriptor(
            -                          new StorageMethodDescriptorSupplier("GetNotificationConfig"))
            -                      .build();
            +          StorageGrpc.getGetNotificationConfigMethod = getGetNotificationConfigMethod =
            +              io.grpc.MethodDescriptor.newBuilder()
            +              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNotificationConfig"))
            +              .setSampledToLocalTracing(true)
            +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.GetNotificationConfigRequest.getDefaultInstance()))
            +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.NotificationConfig.getDefaultInstance()))
            +              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("GetNotificationConfig"))
            +              .build();
                     }
                   }
                 }
                 return getGetNotificationConfigMethod;
               }
             
            -  private static volatile io.grpc.MethodDescriptor<
            -          com.google.storage.v2.CreateNotificationConfigRequest,
            -          com.google.storage.v2.NotificationConfig>
            -      getCreateNotificationConfigMethod;
            +  private static volatile io.grpc.MethodDescriptor getCreateNotificationConfigMethod;
             
               @io.grpc.stub.annotations.RpcMethod(
                   fullMethodName = SERVICE_NAME + '/' + "CreateNotificationConfig",
                   requestType = com.google.storage.v2.CreateNotificationConfigRequest.class,
                   responseType = com.google.storage.v2.NotificationConfig.class,
                   methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
            -  public static io.grpc.MethodDescriptor<
            -          com.google.storage.v2.CreateNotificationConfigRequest,
            -          com.google.storage.v2.NotificationConfig>
            -      getCreateNotificationConfigMethod() {
            -    io.grpc.MethodDescriptor<
            -            com.google.storage.v2.CreateNotificationConfigRequest,
            -            com.google.storage.v2.NotificationConfig>
            -        getCreateNotificationConfigMethod;
            -    if ((getCreateNotificationConfigMethod = StorageGrpc.getCreateNotificationConfigMethod)
            -        == null) {
            +  public static io.grpc.MethodDescriptor getCreateNotificationConfigMethod() {
            +    io.grpc.MethodDescriptor getCreateNotificationConfigMethod;
            +    if ((getCreateNotificationConfigMethod = StorageGrpc.getCreateNotificationConfigMethod) == null) {
                   synchronized (StorageGrpc.class) {
            -        if ((getCreateNotificationConfigMethod = StorageGrpc.getCreateNotificationConfigMethod)
            -            == null) {
            -          StorageGrpc.getCreateNotificationConfigMethod =
            -              getCreateNotificationConfigMethod =
            -                  io.grpc.MethodDescriptor
            -                      .
            -                          newBuilder()
            -                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            -                      .setFullMethodName(
            -                          generateFullMethodName(SERVICE_NAME, "CreateNotificationConfig"))
            -                      .setSampledToLocalTracing(true)
            -                      .setRequestMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.CreateNotificationConfigRequest
            -                                  .getDefaultInstance()))
            -                      .setResponseMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.NotificationConfig.getDefaultInstance()))
            -                      .setSchemaDescriptor(
            -                          new StorageMethodDescriptorSupplier("CreateNotificationConfig"))
            -                      .build();
            +        if ((getCreateNotificationConfigMethod = StorageGrpc.getCreateNotificationConfigMethod) == null) {
            +          StorageGrpc.getCreateNotificationConfigMethod = getCreateNotificationConfigMethod =
            +              io.grpc.MethodDescriptor.newBuilder()
            +              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateNotificationConfig"))
            +              .setSampledToLocalTracing(true)
            +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.CreateNotificationConfigRequest.getDefaultInstance()))
            +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.NotificationConfig.getDefaultInstance()))
            +              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("CreateNotificationConfig"))
            +              .build();
                     }
                   }
                 }
                 return getCreateNotificationConfigMethod;
               }
             
            -  private static volatile io.grpc.MethodDescriptor<
            -          com.google.storage.v2.ListNotificationConfigsRequest,
            -          com.google.storage.v2.ListNotificationConfigsResponse>
            -      getListNotificationConfigsMethod;
            +  private static volatile io.grpc.MethodDescriptor getListNotificationConfigsMethod;
             
               @io.grpc.stub.annotations.RpcMethod(
                   fullMethodName = SERVICE_NAME + '/' + "ListNotificationConfigs",
                   requestType = com.google.storage.v2.ListNotificationConfigsRequest.class,
                   responseType = com.google.storage.v2.ListNotificationConfigsResponse.class,
                   methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
            -  public static io.grpc.MethodDescriptor<
            -          com.google.storage.v2.ListNotificationConfigsRequest,
            -          com.google.storage.v2.ListNotificationConfigsResponse>
            -      getListNotificationConfigsMethod() {
            -    io.grpc.MethodDescriptor<
            -            com.google.storage.v2.ListNotificationConfigsRequest,
            -            com.google.storage.v2.ListNotificationConfigsResponse>
            -        getListNotificationConfigsMethod;
            +  public static io.grpc.MethodDescriptor getListNotificationConfigsMethod() {
            +    io.grpc.MethodDescriptor getListNotificationConfigsMethod;
                 if ((getListNotificationConfigsMethod = StorageGrpc.getListNotificationConfigsMethod) == null) {
                   synchronized (StorageGrpc.class) {
            -        if ((getListNotificationConfigsMethod = StorageGrpc.getListNotificationConfigsMethod)
            -            == null) {
            -          StorageGrpc.getListNotificationConfigsMethod =
            -              getListNotificationConfigsMethod =
            -                  io.grpc.MethodDescriptor
            -                      .
            -                          newBuilder()
            -                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            -                      .setFullMethodName(
            -                          generateFullMethodName(SERVICE_NAME, "ListNotificationConfigs"))
            -                      .setSampledToLocalTracing(true)
            -                      .setRequestMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.ListNotificationConfigsRequest
            -                                  .getDefaultInstance()))
            -                      .setResponseMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.ListNotificationConfigsResponse
            -                                  .getDefaultInstance()))
            -                      .setSchemaDescriptor(
            -                          new StorageMethodDescriptorSupplier("ListNotificationConfigs"))
            -                      .build();
            +        if ((getListNotificationConfigsMethod = StorageGrpc.getListNotificationConfigsMethod) == null) {
            +          StorageGrpc.getListNotificationConfigsMethod = getListNotificationConfigsMethod =
            +              io.grpc.MethodDescriptor.newBuilder()
            +              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNotificationConfigs"))
            +              .setSampledToLocalTracing(true)
            +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.ListNotificationConfigsRequest.getDefaultInstance()))
            +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.ListNotificationConfigsResponse.getDefaultInstance()))
            +              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("ListNotificationConfigs"))
            +              .build();
                     }
                   }
                 }
                 return getListNotificationConfigsMethod;
               }
             
            -  private static volatile io.grpc.MethodDescriptor<
            -          com.google.storage.v2.ComposeObjectRequest, com.google.storage.v2.Object>
            -      getComposeObjectMethod;
            +  private static volatile io.grpc.MethodDescriptor getComposeObjectMethod;
             
               @io.grpc.stub.annotations.RpcMethod(
                   fullMethodName = SERVICE_NAME + '/' + "ComposeObject",
                   requestType = com.google.storage.v2.ComposeObjectRequest.class,
                   responseType = com.google.storage.v2.Object.class,
                   methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
            -  public static io.grpc.MethodDescriptor<
            -          com.google.storage.v2.ComposeObjectRequest, com.google.storage.v2.Object>
            -      getComposeObjectMethod() {
            -    io.grpc.MethodDescriptor<
            -            com.google.storage.v2.ComposeObjectRequest, com.google.storage.v2.Object>
            -        getComposeObjectMethod;
            +  public static io.grpc.MethodDescriptor getComposeObjectMethod() {
            +    io.grpc.MethodDescriptor getComposeObjectMethod;
                 if ((getComposeObjectMethod = StorageGrpc.getComposeObjectMethod) == null) {
                   synchronized (StorageGrpc.class) {
                     if ((getComposeObjectMethod = StorageGrpc.getComposeObjectMethod) == null) {
            -          StorageGrpc.getComposeObjectMethod =
            -              getComposeObjectMethod =
            -                  io.grpc.MethodDescriptor
            -                      .
            -                          newBuilder()
            -                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            -                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ComposeObject"))
            -                      .setSampledToLocalTracing(true)
            -                      .setRequestMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.ComposeObjectRequest.getDefaultInstance()))
            -                      .setResponseMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.Object.getDefaultInstance()))
            -                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("ComposeObject"))
            -                      .build();
            +          StorageGrpc.getComposeObjectMethod = getComposeObjectMethod =
            +              io.grpc.MethodDescriptor.newBuilder()
            +              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ComposeObject"))
            +              .setSampledToLocalTracing(true)
            +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.ComposeObjectRequest.getDefaultInstance()))
            +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.Object.getDefaultInstance()))
            +              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("ComposeObject"))
            +              .build();
                     }
                   }
                 }
                 return getComposeObjectMethod;
               }
             
            -  private static volatile io.grpc.MethodDescriptor<
            -          com.google.storage.v2.DeleteObjectRequest, com.google.protobuf.Empty>
            -      getDeleteObjectMethod;
            +  private static volatile io.grpc.MethodDescriptor getDeleteObjectMethod;
             
               @io.grpc.stub.annotations.RpcMethod(
                   fullMethodName = SERVICE_NAME + '/' + "DeleteObject",
                   requestType = com.google.storage.v2.DeleteObjectRequest.class,
                   responseType = com.google.protobuf.Empty.class,
                   methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
            -  public static io.grpc.MethodDescriptor<
            -          com.google.storage.v2.DeleteObjectRequest, com.google.protobuf.Empty>
            -      getDeleteObjectMethod() {
            -    io.grpc.MethodDescriptor
            -        getDeleteObjectMethod;
            +  public static io.grpc.MethodDescriptor getDeleteObjectMethod() {
            +    io.grpc.MethodDescriptor getDeleteObjectMethod;
                 if ((getDeleteObjectMethod = StorageGrpc.getDeleteObjectMethod) == null) {
                   synchronized (StorageGrpc.class) {
                     if ((getDeleteObjectMethod = StorageGrpc.getDeleteObjectMethod) == null) {
            -          StorageGrpc.getDeleteObjectMethod =
            -              getDeleteObjectMethod =
            -                  io.grpc.MethodDescriptor
            -                      .
            -                          newBuilder()
            -                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            -                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteObject"))
            -                      .setSampledToLocalTracing(true)
            -                      .setRequestMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.DeleteObjectRequest.getDefaultInstance()))
            -                      .setResponseMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.protobuf.Empty.getDefaultInstance()))
            -                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("DeleteObject"))
            -                      .build();
            +          StorageGrpc.getDeleteObjectMethod = getDeleteObjectMethod =
            +              io.grpc.MethodDescriptor.newBuilder()
            +              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteObject"))
            +              .setSampledToLocalTracing(true)
            +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.DeleteObjectRequest.getDefaultInstance()))
            +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.protobuf.Empty.getDefaultInstance()))
            +              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("DeleteObject"))
            +              .build();
                     }
                   }
                 }
                 return getDeleteObjectMethod;
               }
             
            -  private static volatile io.grpc.MethodDescriptor<
            -          com.google.storage.v2.RestoreObjectRequest, com.google.storage.v2.Object>
            -      getRestoreObjectMethod;
            +  private static volatile io.grpc.MethodDescriptor getRestoreObjectMethod;
             
               @io.grpc.stub.annotations.RpcMethod(
                   fullMethodName = SERVICE_NAME + '/' + "RestoreObject",
                   requestType = com.google.storage.v2.RestoreObjectRequest.class,
                   responseType = com.google.storage.v2.Object.class,
                   methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
            -  public static io.grpc.MethodDescriptor<
            -          com.google.storage.v2.RestoreObjectRequest, com.google.storage.v2.Object>
            -      getRestoreObjectMethod() {
            -    io.grpc.MethodDescriptor<
            -            com.google.storage.v2.RestoreObjectRequest, com.google.storage.v2.Object>
            -        getRestoreObjectMethod;
            +  public static io.grpc.MethodDescriptor getRestoreObjectMethod() {
            +    io.grpc.MethodDescriptor getRestoreObjectMethod;
                 if ((getRestoreObjectMethod = StorageGrpc.getRestoreObjectMethod) == null) {
                   synchronized (StorageGrpc.class) {
                     if ((getRestoreObjectMethod = StorageGrpc.getRestoreObjectMethod) == null) {
            -          StorageGrpc.getRestoreObjectMethod =
            -              getRestoreObjectMethod =
            -                  io.grpc.MethodDescriptor
            -                      .
            -                          newBuilder()
            -                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            -                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RestoreObject"))
            -                      .setSampledToLocalTracing(true)
            -                      .setRequestMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.RestoreObjectRequest.getDefaultInstance()))
            -                      .setResponseMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.Object.getDefaultInstance()))
            -                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("RestoreObject"))
            -                      .build();
            +          StorageGrpc.getRestoreObjectMethod = getRestoreObjectMethod =
            +              io.grpc.MethodDescriptor.newBuilder()
            +              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RestoreObject"))
            +              .setSampledToLocalTracing(true)
            +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.RestoreObjectRequest.getDefaultInstance()))
            +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.Object.getDefaultInstance()))
            +              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("RestoreObject"))
            +              .build();
                     }
                   }
                 }
                 return getRestoreObjectMethod;
               }
             
            -  private static volatile io.grpc.MethodDescriptor<
            -          com.google.storage.v2.CancelResumableWriteRequest,
            -          com.google.storage.v2.CancelResumableWriteResponse>
            -      getCancelResumableWriteMethod;
            +  private static volatile io.grpc.MethodDescriptor getCancelResumableWriteMethod;
             
               @io.grpc.stub.annotations.RpcMethod(
                   fullMethodName = SERVICE_NAME + '/' + "CancelResumableWrite",
                   requestType = com.google.storage.v2.CancelResumableWriteRequest.class,
                   responseType = com.google.storage.v2.CancelResumableWriteResponse.class,
                   methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
            -  public static io.grpc.MethodDescriptor<
            -          com.google.storage.v2.CancelResumableWriteRequest,
            -          com.google.storage.v2.CancelResumableWriteResponse>
            -      getCancelResumableWriteMethod() {
            -    io.grpc.MethodDescriptor<
            -            com.google.storage.v2.CancelResumableWriteRequest,
            -            com.google.storage.v2.CancelResumableWriteResponse>
            -        getCancelResumableWriteMethod;
            +  public static io.grpc.MethodDescriptor getCancelResumableWriteMethod() {
            +    io.grpc.MethodDescriptor getCancelResumableWriteMethod;
                 if ((getCancelResumableWriteMethod = StorageGrpc.getCancelResumableWriteMethod) == null) {
                   synchronized (StorageGrpc.class) {
                     if ((getCancelResumableWriteMethod = StorageGrpc.getCancelResumableWriteMethod) == null) {
            -          StorageGrpc.getCancelResumableWriteMethod =
            -              getCancelResumableWriteMethod =
            -                  io.grpc.MethodDescriptor
            -                      .
            -                          newBuilder()
            -                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            -                      .setFullMethodName(
            -                          generateFullMethodName(SERVICE_NAME, "CancelResumableWrite"))
            -                      .setSampledToLocalTracing(true)
            -                      .setRequestMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.CancelResumableWriteRequest
            -                                  .getDefaultInstance()))
            -                      .setResponseMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.CancelResumableWriteResponse
            -                                  .getDefaultInstance()))
            -                      .setSchemaDescriptor(
            -                          new StorageMethodDescriptorSupplier("CancelResumableWrite"))
            -                      .build();
            +          StorageGrpc.getCancelResumableWriteMethod = getCancelResumableWriteMethod =
            +              io.grpc.MethodDescriptor.newBuilder()
            +              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CancelResumableWrite"))
            +              .setSampledToLocalTracing(true)
            +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.CancelResumableWriteRequest.getDefaultInstance()))
            +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.CancelResumableWriteResponse.getDefaultInstance()))
            +              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("CancelResumableWrite"))
            +              .build();
                     }
                   }
                 }
                 return getCancelResumableWriteMethod;
               }
             
            -  private static volatile io.grpc.MethodDescriptor<
            -          com.google.storage.v2.GetObjectRequest, com.google.storage.v2.Object>
            -      getGetObjectMethod;
            +  private static volatile io.grpc.MethodDescriptor getGetObjectMethod;
             
               @io.grpc.stub.annotations.RpcMethod(
                   fullMethodName = SERVICE_NAME + '/' + "GetObject",
                   requestType = com.google.storage.v2.GetObjectRequest.class,
                   responseType = com.google.storage.v2.Object.class,
                   methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
            -  public static io.grpc.MethodDescriptor<
            -          com.google.storage.v2.GetObjectRequest, com.google.storage.v2.Object>
            -      getGetObjectMethod() {
            -    io.grpc.MethodDescriptor
            -        getGetObjectMethod;
            +  public static io.grpc.MethodDescriptor getGetObjectMethod() {
            +    io.grpc.MethodDescriptor getGetObjectMethod;
                 if ((getGetObjectMethod = StorageGrpc.getGetObjectMethod) == null) {
                   synchronized (StorageGrpc.class) {
                     if ((getGetObjectMethod = StorageGrpc.getGetObjectMethod) == null) {
            -          StorageGrpc.getGetObjectMethod =
            -              getGetObjectMethod =
            -                  io.grpc.MethodDescriptor
            -                      .
            -                          newBuilder()
            -                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            -                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetObject"))
            -                      .setSampledToLocalTracing(true)
            -                      .setRequestMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.GetObjectRequest.getDefaultInstance()))
            -                      .setResponseMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.Object.getDefaultInstance()))
            -                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("GetObject"))
            -                      .build();
            +          StorageGrpc.getGetObjectMethod = getGetObjectMethod =
            +              io.grpc.MethodDescriptor.newBuilder()
            +              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetObject"))
            +              .setSampledToLocalTracing(true)
            +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.GetObjectRequest.getDefaultInstance()))
            +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.Object.getDefaultInstance()))
            +              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("GetObject"))
            +              .build();
                     }
                   }
                 }
                 return getGetObjectMethod;
               }
             
            -  private static volatile io.grpc.MethodDescriptor<
            -          com.google.storage.v2.ReadObjectRequest, com.google.storage.v2.ReadObjectResponse>
            -      getReadObjectMethod;
            +  private static volatile io.grpc.MethodDescriptor getReadObjectMethod;
             
               @io.grpc.stub.annotations.RpcMethod(
                   fullMethodName = SERVICE_NAME + '/' + "ReadObject",
                   requestType = com.google.storage.v2.ReadObjectRequest.class,
                   responseType = com.google.storage.v2.ReadObjectResponse.class,
                   methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
            -  public static io.grpc.MethodDescriptor<
            -          com.google.storage.v2.ReadObjectRequest, com.google.storage.v2.ReadObjectResponse>
            -      getReadObjectMethod() {
            -    io.grpc.MethodDescriptor<
            -            com.google.storage.v2.ReadObjectRequest, com.google.storage.v2.ReadObjectResponse>
            -        getReadObjectMethod;
            +  public static io.grpc.MethodDescriptor getReadObjectMethod() {
            +    io.grpc.MethodDescriptor getReadObjectMethod;
                 if ((getReadObjectMethod = StorageGrpc.getReadObjectMethod) == null) {
                   synchronized (StorageGrpc.class) {
                     if ((getReadObjectMethod = StorageGrpc.getReadObjectMethod) == null) {
            -          StorageGrpc.getReadObjectMethod =
            -              getReadObjectMethod =
            -                  io.grpc.MethodDescriptor
            -                      .
            -                          newBuilder()
            -                      .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
            -                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReadObject"))
            -                      .setSampledToLocalTracing(true)
            -                      .setRequestMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.ReadObjectRequest.getDefaultInstance()))
            -                      .setResponseMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.ReadObjectResponse.getDefaultInstance()))
            -                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("ReadObject"))
            -                      .build();
            +          StorageGrpc.getReadObjectMethod = getReadObjectMethod =
            +              io.grpc.MethodDescriptor.newBuilder()
            +              .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
            +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReadObject"))
            +              .setSampledToLocalTracing(true)
            +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.ReadObjectRequest.getDefaultInstance()))
            +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.ReadObjectResponse.getDefaultInstance()))
            +              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("ReadObject"))
            +              .build();
                     }
                   }
                 }
                 return getReadObjectMethod;
               }
             
            -  private static volatile io.grpc.MethodDescriptor<
            -          com.google.storage.v2.UpdateObjectRequest, com.google.storage.v2.Object>
            -      getUpdateObjectMethod;
            +  private static volatile io.grpc.MethodDescriptor getUpdateObjectMethod;
             
               @io.grpc.stub.annotations.RpcMethod(
                   fullMethodName = SERVICE_NAME + '/' + "UpdateObject",
                   requestType = com.google.storage.v2.UpdateObjectRequest.class,
                   responseType = com.google.storage.v2.Object.class,
                   methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
            -  public static io.grpc.MethodDescriptor<
            -          com.google.storage.v2.UpdateObjectRequest, com.google.storage.v2.Object>
            -      getUpdateObjectMethod() {
            -    io.grpc.MethodDescriptor<
            -            com.google.storage.v2.UpdateObjectRequest, com.google.storage.v2.Object>
            -        getUpdateObjectMethod;
            +  public static io.grpc.MethodDescriptor getUpdateObjectMethod() {
            +    io.grpc.MethodDescriptor getUpdateObjectMethod;
                 if ((getUpdateObjectMethod = StorageGrpc.getUpdateObjectMethod) == null) {
                   synchronized (StorageGrpc.class) {
                     if ((getUpdateObjectMethod = StorageGrpc.getUpdateObjectMethod) == null) {
            -          StorageGrpc.getUpdateObjectMethod =
            -              getUpdateObjectMethod =
            -                  io.grpc.MethodDescriptor
            -                      .
            -                          newBuilder()
            -                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            -                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateObject"))
            -                      .setSampledToLocalTracing(true)
            -                      .setRequestMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.UpdateObjectRequest.getDefaultInstance()))
            -                      .setResponseMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.Object.getDefaultInstance()))
            -                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("UpdateObject"))
            -                      .build();
            +          StorageGrpc.getUpdateObjectMethod = getUpdateObjectMethod =
            +              io.grpc.MethodDescriptor.newBuilder()
            +              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateObject"))
            +              .setSampledToLocalTracing(true)
            +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.UpdateObjectRequest.getDefaultInstance()))
            +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.Object.getDefaultInstance()))
            +              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("UpdateObject"))
            +              .build();
                     }
                   }
                 }
                 return getUpdateObjectMethod;
               }
             
            -  private static volatile io.grpc.MethodDescriptor<
            -          com.google.storage.v2.WriteObjectRequest, com.google.storage.v2.WriteObjectResponse>
            -      getWriteObjectMethod;
            +  private static volatile io.grpc.MethodDescriptor getWriteObjectMethod;
             
               @io.grpc.stub.annotations.RpcMethod(
                   fullMethodName = SERVICE_NAME + '/' + "WriteObject",
                   requestType = com.google.storage.v2.WriteObjectRequest.class,
                   responseType = com.google.storage.v2.WriteObjectResponse.class,
                   methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
            -  public static io.grpc.MethodDescriptor<
            -          com.google.storage.v2.WriteObjectRequest, com.google.storage.v2.WriteObjectResponse>
            -      getWriteObjectMethod() {
            -    io.grpc.MethodDescriptor<
            -            com.google.storage.v2.WriteObjectRequest, com.google.storage.v2.WriteObjectResponse>
            -        getWriteObjectMethod;
            +  public static io.grpc.MethodDescriptor getWriteObjectMethod() {
            +    io.grpc.MethodDescriptor getWriteObjectMethod;
                 if ((getWriteObjectMethod = StorageGrpc.getWriteObjectMethod) == null) {
                   synchronized (StorageGrpc.class) {
                     if ((getWriteObjectMethod = StorageGrpc.getWriteObjectMethod) == null) {
            -          StorageGrpc.getWriteObjectMethod =
            -              getWriteObjectMethod =
            -                  io.grpc.MethodDescriptor
            -                      .
            -                          newBuilder()
            -                      .setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
            -                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "WriteObject"))
            -                      .setSampledToLocalTracing(true)
            -                      .setRequestMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.WriteObjectRequest.getDefaultInstance()))
            -                      .setResponseMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.WriteObjectResponse.getDefaultInstance()))
            -                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("WriteObject"))
            -                      .build();
            +          StorageGrpc.getWriteObjectMethod = getWriteObjectMethod =
            +              io.grpc.MethodDescriptor.newBuilder()
            +              .setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
            +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "WriteObject"))
            +              .setSampledToLocalTracing(true)
            +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.WriteObjectRequest.getDefaultInstance()))
            +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.WriteObjectResponse.getDefaultInstance()))
            +              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("WriteObject"))
            +              .build();
                     }
                   }
                 }
                 return getWriteObjectMethod;
               }
             
            -  private static volatile io.grpc.MethodDescriptor<
            -          com.google.storage.v2.BidiWriteObjectRequest,
            -          com.google.storage.v2.BidiWriteObjectResponse>
            -      getBidiWriteObjectMethod;
            +  private static volatile io.grpc.MethodDescriptor getBidiWriteObjectMethod;
             
               @io.grpc.stub.annotations.RpcMethod(
                   fullMethodName = SERVICE_NAME + '/' + "BidiWriteObject",
                   requestType = com.google.storage.v2.BidiWriteObjectRequest.class,
                   responseType = com.google.storage.v2.BidiWriteObjectResponse.class,
                   methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
            -  public static io.grpc.MethodDescriptor<
            -          com.google.storage.v2.BidiWriteObjectRequest,
            -          com.google.storage.v2.BidiWriteObjectResponse>
            -      getBidiWriteObjectMethod() {
            -    io.grpc.MethodDescriptor<
            -            com.google.storage.v2.BidiWriteObjectRequest,
            -            com.google.storage.v2.BidiWriteObjectResponse>
            -        getBidiWriteObjectMethod;
            +  public static io.grpc.MethodDescriptor getBidiWriteObjectMethod() {
            +    io.grpc.MethodDescriptor getBidiWriteObjectMethod;
                 if ((getBidiWriteObjectMethod = StorageGrpc.getBidiWriteObjectMethod) == null) {
                   synchronized (StorageGrpc.class) {
                     if ((getBidiWriteObjectMethod = StorageGrpc.getBidiWriteObjectMethod) == null) {
            -          StorageGrpc.getBidiWriteObjectMethod =
            -              getBidiWriteObjectMethod =
            -                  io.grpc.MethodDescriptor
            -                      .
            -                          newBuilder()
            -                      .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
            -                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BidiWriteObject"))
            -                      .setSampledToLocalTracing(true)
            -                      .setRequestMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.BidiWriteObjectRequest.getDefaultInstance()))
            -                      .setResponseMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.BidiWriteObjectResponse.getDefaultInstance()))
            -                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("BidiWriteObject"))
            -                      .build();
            +          StorageGrpc.getBidiWriteObjectMethod = getBidiWriteObjectMethod =
            +              io.grpc.MethodDescriptor.newBuilder()
            +              .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
            +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BidiWriteObject"))
            +              .setSampledToLocalTracing(true)
            +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.BidiWriteObjectRequest.getDefaultInstance()))
            +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.BidiWriteObjectResponse.getDefaultInstance()))
            +              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("BidiWriteObject"))
            +              .build();
                     }
                   }
                 }
                 return getBidiWriteObjectMethod;
               }
             
            -  private static volatile io.grpc.MethodDescriptor<
            -          com.google.storage.v2.ListObjectsRequest, com.google.storage.v2.ListObjectsResponse>
            -      getListObjectsMethod;
            +  private static volatile io.grpc.MethodDescriptor getListObjectsMethod;
             
               @io.grpc.stub.annotations.RpcMethod(
                   fullMethodName = SERVICE_NAME + '/' + "ListObjects",
                   requestType = com.google.storage.v2.ListObjectsRequest.class,
                   responseType = com.google.storage.v2.ListObjectsResponse.class,
                   methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
            -  public static io.grpc.MethodDescriptor<
            -          com.google.storage.v2.ListObjectsRequest, com.google.storage.v2.ListObjectsResponse>
            -      getListObjectsMethod() {
            -    io.grpc.MethodDescriptor<
            -            com.google.storage.v2.ListObjectsRequest, com.google.storage.v2.ListObjectsResponse>
            -        getListObjectsMethod;
            +  public static io.grpc.MethodDescriptor getListObjectsMethod() {
            +    io.grpc.MethodDescriptor getListObjectsMethod;
                 if ((getListObjectsMethod = StorageGrpc.getListObjectsMethod) == null) {
                   synchronized (StorageGrpc.class) {
                     if ((getListObjectsMethod = StorageGrpc.getListObjectsMethod) == null) {
            -          StorageGrpc.getListObjectsMethod =
            -              getListObjectsMethod =
            -                  io.grpc.MethodDescriptor
            -                      .
            -                          newBuilder()
            -                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            -                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListObjects"))
            -                      .setSampledToLocalTracing(true)
            -                      .setRequestMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.ListObjectsRequest.getDefaultInstance()))
            -                      .setResponseMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.ListObjectsResponse.getDefaultInstance()))
            -                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("ListObjects"))
            -                      .build();
            +          StorageGrpc.getListObjectsMethod = getListObjectsMethod =
            +              io.grpc.MethodDescriptor.newBuilder()
            +              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListObjects"))
            +              .setSampledToLocalTracing(true)
            +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.ListObjectsRequest.getDefaultInstance()))
            +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.ListObjectsResponse.getDefaultInstance()))
            +              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("ListObjects"))
            +              .build();
                     }
                   }
                 }
                 return getListObjectsMethod;
               }
             
            -  private static volatile io.grpc.MethodDescriptor<
            -          com.google.storage.v2.RewriteObjectRequest, com.google.storage.v2.RewriteResponse>
            -      getRewriteObjectMethod;
            +  private static volatile io.grpc.MethodDescriptor getRewriteObjectMethod;
             
               @io.grpc.stub.annotations.RpcMethod(
                   fullMethodName = SERVICE_NAME + '/' + "RewriteObject",
                   requestType = com.google.storage.v2.RewriteObjectRequest.class,
                   responseType = com.google.storage.v2.RewriteResponse.class,
                   methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
            -  public static io.grpc.MethodDescriptor<
            -          com.google.storage.v2.RewriteObjectRequest, com.google.storage.v2.RewriteResponse>
            -      getRewriteObjectMethod() {
            -    io.grpc.MethodDescriptor<
            -            com.google.storage.v2.RewriteObjectRequest, com.google.storage.v2.RewriteResponse>
            -        getRewriteObjectMethod;
            +  public static io.grpc.MethodDescriptor getRewriteObjectMethod() {
            +    io.grpc.MethodDescriptor getRewriteObjectMethod;
                 if ((getRewriteObjectMethod = StorageGrpc.getRewriteObjectMethod) == null) {
                   synchronized (StorageGrpc.class) {
                     if ((getRewriteObjectMethod = StorageGrpc.getRewriteObjectMethod) == null) {
            -          StorageGrpc.getRewriteObjectMethod =
            -              getRewriteObjectMethod =
            -                  io.grpc.MethodDescriptor
            -                      .
            -                          newBuilder()
            -                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            -                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RewriteObject"))
            -                      .setSampledToLocalTracing(true)
            -                      .setRequestMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.RewriteObjectRequest.getDefaultInstance()))
            -                      .setResponseMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.RewriteResponse.getDefaultInstance()))
            -                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("RewriteObject"))
            -                      .build();
            +          StorageGrpc.getRewriteObjectMethod = getRewriteObjectMethod =
            +              io.grpc.MethodDescriptor.newBuilder()
            +              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RewriteObject"))
            +              .setSampledToLocalTracing(true)
            +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.RewriteObjectRequest.getDefaultInstance()))
            +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.RewriteResponse.getDefaultInstance()))
            +              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("RewriteObject"))
            +              .build();
                     }
                   }
                 }
                 return getRewriteObjectMethod;
               }
             
            -  private static volatile io.grpc.MethodDescriptor<
            -          com.google.storage.v2.StartResumableWriteRequest,
            -          com.google.storage.v2.StartResumableWriteResponse>
            -      getStartResumableWriteMethod;
            +  private static volatile io.grpc.MethodDescriptor getStartResumableWriteMethod;
             
               @io.grpc.stub.annotations.RpcMethod(
                   fullMethodName = SERVICE_NAME + '/' + "StartResumableWrite",
                   requestType = com.google.storage.v2.StartResumableWriteRequest.class,
                   responseType = com.google.storage.v2.StartResumableWriteResponse.class,
                   methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
            -  public static io.grpc.MethodDescriptor<
            -          com.google.storage.v2.StartResumableWriteRequest,
            -          com.google.storage.v2.StartResumableWriteResponse>
            -      getStartResumableWriteMethod() {
            -    io.grpc.MethodDescriptor<
            -            com.google.storage.v2.StartResumableWriteRequest,
            -            com.google.storage.v2.StartResumableWriteResponse>
            -        getStartResumableWriteMethod;
            +  public static io.grpc.MethodDescriptor getStartResumableWriteMethod() {
            +    io.grpc.MethodDescriptor getStartResumableWriteMethod;
                 if ((getStartResumableWriteMethod = StorageGrpc.getStartResumableWriteMethod) == null) {
                   synchronized (StorageGrpc.class) {
                     if ((getStartResumableWriteMethod = StorageGrpc.getStartResumableWriteMethod) == null) {
            -          StorageGrpc.getStartResumableWriteMethod =
            -              getStartResumableWriteMethod =
            -                  io.grpc.MethodDescriptor
            -                      .
            -                          newBuilder()
            -                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            -                      .setFullMethodName(
            -                          generateFullMethodName(SERVICE_NAME, "StartResumableWrite"))
            -                      .setSampledToLocalTracing(true)
            -                      .setRequestMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.StartResumableWriteRequest
            -                                  .getDefaultInstance()))
            -                      .setResponseMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.StartResumableWriteResponse
            -                                  .getDefaultInstance()))
            -                      .setSchemaDescriptor(
            -                          new StorageMethodDescriptorSupplier("StartResumableWrite"))
            -                      .build();
            +          StorageGrpc.getStartResumableWriteMethod = getStartResumableWriteMethod =
            +              io.grpc.MethodDescriptor.newBuilder()
            +              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartResumableWrite"))
            +              .setSampledToLocalTracing(true)
            +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.StartResumableWriteRequest.getDefaultInstance()))
            +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.StartResumableWriteResponse.getDefaultInstance()))
            +              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("StartResumableWrite"))
            +              .build();
                     }
                   }
                 }
                 return getStartResumableWriteMethod;
               }
             
            -  private static volatile io.grpc.MethodDescriptor<
            -          com.google.storage.v2.QueryWriteStatusRequest,
            -          com.google.storage.v2.QueryWriteStatusResponse>
            -      getQueryWriteStatusMethod;
            +  private static volatile io.grpc.MethodDescriptor getQueryWriteStatusMethod;
             
               @io.grpc.stub.annotations.RpcMethod(
                   fullMethodName = SERVICE_NAME + '/' + "QueryWriteStatus",
                   requestType = com.google.storage.v2.QueryWriteStatusRequest.class,
                   responseType = com.google.storage.v2.QueryWriteStatusResponse.class,
                   methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
            -  public static io.grpc.MethodDescriptor<
            -          com.google.storage.v2.QueryWriteStatusRequest,
            -          com.google.storage.v2.QueryWriteStatusResponse>
            -      getQueryWriteStatusMethod() {
            -    io.grpc.MethodDescriptor<
            -            com.google.storage.v2.QueryWriteStatusRequest,
            -            com.google.storage.v2.QueryWriteStatusResponse>
            -        getQueryWriteStatusMethod;
            +  public static io.grpc.MethodDescriptor getQueryWriteStatusMethod() {
            +    io.grpc.MethodDescriptor getQueryWriteStatusMethod;
                 if ((getQueryWriteStatusMethod = StorageGrpc.getQueryWriteStatusMethod) == null) {
                   synchronized (StorageGrpc.class) {
                     if ((getQueryWriteStatusMethod = StorageGrpc.getQueryWriteStatusMethod) == null) {
            -          StorageGrpc.getQueryWriteStatusMethod =
            -              getQueryWriteStatusMethod =
            -                  io.grpc.MethodDescriptor
            -                      .
            -                          newBuilder()
            -                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            -                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryWriteStatus"))
            -                      .setSampledToLocalTracing(true)
            -                      .setRequestMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.QueryWriteStatusRequest.getDefaultInstance()))
            -                      .setResponseMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.QueryWriteStatusResponse.getDefaultInstance()))
            -                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("QueryWriteStatus"))
            -                      .build();
            +          StorageGrpc.getQueryWriteStatusMethod = getQueryWriteStatusMethod =
            +              io.grpc.MethodDescriptor.newBuilder()
            +              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryWriteStatus"))
            +              .setSampledToLocalTracing(true)
            +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.QueryWriteStatusRequest.getDefaultInstance()))
            +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.QueryWriteStatusResponse.getDefaultInstance()))
            +              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("QueryWriteStatus"))
            +              .build();
                     }
                   }
                 }
                 return getQueryWriteStatusMethod;
               }
             
            -  private static volatile io.grpc.MethodDescriptor<
            -          com.google.storage.v2.GetServiceAccountRequest, com.google.storage.v2.ServiceAccount>
            -      getGetServiceAccountMethod;
            +  private static volatile io.grpc.MethodDescriptor getGetServiceAccountMethod;
             
               @io.grpc.stub.annotations.RpcMethod(
                   fullMethodName = SERVICE_NAME + '/' + "GetServiceAccount",
                   requestType = com.google.storage.v2.GetServiceAccountRequest.class,
                   responseType = com.google.storage.v2.ServiceAccount.class,
                   methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
            -  public static io.grpc.MethodDescriptor<
            -          com.google.storage.v2.GetServiceAccountRequest, com.google.storage.v2.ServiceAccount>
            -      getGetServiceAccountMethod() {
            -    io.grpc.MethodDescriptor<
            -            com.google.storage.v2.GetServiceAccountRequest, com.google.storage.v2.ServiceAccount>
            -        getGetServiceAccountMethod;
            +  public static io.grpc.MethodDescriptor getGetServiceAccountMethod() {
            +    io.grpc.MethodDescriptor getGetServiceAccountMethod;
                 if ((getGetServiceAccountMethod = StorageGrpc.getGetServiceAccountMethod) == null) {
                   synchronized (StorageGrpc.class) {
                     if ((getGetServiceAccountMethod = StorageGrpc.getGetServiceAccountMethod) == null) {
            -          StorageGrpc.getGetServiceAccountMethod =
            -              getGetServiceAccountMethod =
            -                  io.grpc.MethodDescriptor
            -                      .
            -                          newBuilder()
            -                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            -                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetServiceAccount"))
            -                      .setSampledToLocalTracing(true)
            -                      .setRequestMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.GetServiceAccountRequest.getDefaultInstance()))
            -                      .setResponseMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.ServiceAccount.getDefaultInstance()))
            -                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("GetServiceAccount"))
            -                      .build();
            +          StorageGrpc.getGetServiceAccountMethod = getGetServiceAccountMethod =
            +              io.grpc.MethodDescriptor.newBuilder()
            +              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetServiceAccount"))
            +              .setSampledToLocalTracing(true)
            +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.GetServiceAccountRequest.getDefaultInstance()))
            +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.ServiceAccount.getDefaultInstance()))
            +              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("GetServiceAccount"))
            +              .build();
                     }
                   }
                 }
                 return getGetServiceAccountMethod;
               }
             
            -  private static volatile io.grpc.MethodDescriptor<
            -          com.google.storage.v2.CreateHmacKeyRequest, com.google.storage.v2.CreateHmacKeyResponse>
            -      getCreateHmacKeyMethod;
            +  private static volatile io.grpc.MethodDescriptor getCreateHmacKeyMethod;
             
               @io.grpc.stub.annotations.RpcMethod(
                   fullMethodName = SERVICE_NAME + '/' + "CreateHmacKey",
                   requestType = com.google.storage.v2.CreateHmacKeyRequest.class,
                   responseType = com.google.storage.v2.CreateHmacKeyResponse.class,
                   methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
            -  public static io.grpc.MethodDescriptor<
            -          com.google.storage.v2.CreateHmacKeyRequest, com.google.storage.v2.CreateHmacKeyResponse>
            -      getCreateHmacKeyMethod() {
            -    io.grpc.MethodDescriptor<
            -            com.google.storage.v2.CreateHmacKeyRequest, com.google.storage.v2.CreateHmacKeyResponse>
            -        getCreateHmacKeyMethod;
            +  public static io.grpc.MethodDescriptor getCreateHmacKeyMethod() {
            +    io.grpc.MethodDescriptor getCreateHmacKeyMethod;
                 if ((getCreateHmacKeyMethod = StorageGrpc.getCreateHmacKeyMethod) == null) {
                   synchronized (StorageGrpc.class) {
                     if ((getCreateHmacKeyMethod = StorageGrpc.getCreateHmacKeyMethod) == null) {
            -          StorageGrpc.getCreateHmacKeyMethod =
            -              getCreateHmacKeyMethod =
            -                  io.grpc.MethodDescriptor
            -                      .
            -                          newBuilder()
            -                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            -                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateHmacKey"))
            -                      .setSampledToLocalTracing(true)
            -                      .setRequestMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.CreateHmacKeyRequest.getDefaultInstance()))
            -                      .setResponseMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.CreateHmacKeyResponse.getDefaultInstance()))
            -                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("CreateHmacKey"))
            -                      .build();
            +          StorageGrpc.getCreateHmacKeyMethod = getCreateHmacKeyMethod =
            +              io.grpc.MethodDescriptor.newBuilder()
            +              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateHmacKey"))
            +              .setSampledToLocalTracing(true)
            +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.CreateHmacKeyRequest.getDefaultInstance()))
            +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.CreateHmacKeyResponse.getDefaultInstance()))
            +              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("CreateHmacKey"))
            +              .build();
                     }
                   }
                 }
                 return getCreateHmacKeyMethod;
               }
             
            -  private static volatile io.grpc.MethodDescriptor<
            -          com.google.storage.v2.DeleteHmacKeyRequest, com.google.protobuf.Empty>
            -      getDeleteHmacKeyMethod;
            +  private static volatile io.grpc.MethodDescriptor getDeleteHmacKeyMethod;
             
               @io.grpc.stub.annotations.RpcMethod(
                   fullMethodName = SERVICE_NAME + '/' + "DeleteHmacKey",
                   requestType = com.google.storage.v2.DeleteHmacKeyRequest.class,
                   responseType = com.google.protobuf.Empty.class,
                   methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
            -  public static io.grpc.MethodDescriptor<
            -          com.google.storage.v2.DeleteHmacKeyRequest, com.google.protobuf.Empty>
            -      getDeleteHmacKeyMethod() {
            -    io.grpc.MethodDescriptor
            -        getDeleteHmacKeyMethod;
            +  public static io.grpc.MethodDescriptor getDeleteHmacKeyMethod() {
            +    io.grpc.MethodDescriptor getDeleteHmacKeyMethod;
                 if ((getDeleteHmacKeyMethod = StorageGrpc.getDeleteHmacKeyMethod) == null) {
                   synchronized (StorageGrpc.class) {
                     if ((getDeleteHmacKeyMethod = StorageGrpc.getDeleteHmacKeyMethod) == null) {
            -          StorageGrpc.getDeleteHmacKeyMethod =
            -              getDeleteHmacKeyMethod =
            -                  io.grpc.MethodDescriptor
            -                      .
            -                          newBuilder()
            -                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            -                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteHmacKey"))
            -                      .setSampledToLocalTracing(true)
            -                      .setRequestMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.DeleteHmacKeyRequest.getDefaultInstance()))
            -                      .setResponseMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.protobuf.Empty.getDefaultInstance()))
            -                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("DeleteHmacKey"))
            -                      .build();
            +          StorageGrpc.getDeleteHmacKeyMethod = getDeleteHmacKeyMethod =
            +              io.grpc.MethodDescriptor.newBuilder()
            +              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteHmacKey"))
            +              .setSampledToLocalTracing(true)
            +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.DeleteHmacKeyRequest.getDefaultInstance()))
            +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.protobuf.Empty.getDefaultInstance()))
            +              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("DeleteHmacKey"))
            +              .build();
                     }
                   }
                 }
                 return getDeleteHmacKeyMethod;
               }
             
            -  private static volatile io.grpc.MethodDescriptor<
            -          com.google.storage.v2.GetHmacKeyRequest, com.google.storage.v2.HmacKeyMetadata>
            -      getGetHmacKeyMethod;
            +  private static volatile io.grpc.MethodDescriptor getGetHmacKeyMethod;
             
               @io.grpc.stub.annotations.RpcMethod(
                   fullMethodName = SERVICE_NAME + '/' + "GetHmacKey",
                   requestType = com.google.storage.v2.GetHmacKeyRequest.class,
                   responseType = com.google.storage.v2.HmacKeyMetadata.class,
                   methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
            -  public static io.grpc.MethodDescriptor<
            -          com.google.storage.v2.GetHmacKeyRequest, com.google.storage.v2.HmacKeyMetadata>
            -      getGetHmacKeyMethod() {
            -    io.grpc.MethodDescriptor<
            -            com.google.storage.v2.GetHmacKeyRequest, com.google.storage.v2.HmacKeyMetadata>
            -        getGetHmacKeyMethod;
            +  public static io.grpc.MethodDescriptor getGetHmacKeyMethod() {
            +    io.grpc.MethodDescriptor getGetHmacKeyMethod;
                 if ((getGetHmacKeyMethod = StorageGrpc.getGetHmacKeyMethod) == null) {
                   synchronized (StorageGrpc.class) {
                     if ((getGetHmacKeyMethod = StorageGrpc.getGetHmacKeyMethod) == null) {
            -          StorageGrpc.getGetHmacKeyMethod =
            -              getGetHmacKeyMethod =
            -                  io.grpc.MethodDescriptor
            -                      .
            -                          newBuilder()
            -                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            -                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHmacKey"))
            -                      .setSampledToLocalTracing(true)
            -                      .setRequestMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.GetHmacKeyRequest.getDefaultInstance()))
            -                      .setResponseMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.HmacKeyMetadata.getDefaultInstance()))
            -                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("GetHmacKey"))
            -                      .build();
            +          StorageGrpc.getGetHmacKeyMethod = getGetHmacKeyMethod =
            +              io.grpc.MethodDescriptor.newBuilder()
            +              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHmacKey"))
            +              .setSampledToLocalTracing(true)
            +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.GetHmacKeyRequest.getDefaultInstance()))
            +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.HmacKeyMetadata.getDefaultInstance()))
            +              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("GetHmacKey"))
            +              .build();
                     }
                   }
                 }
                 return getGetHmacKeyMethod;
               }
             
            -  private static volatile io.grpc.MethodDescriptor<
            -          com.google.storage.v2.ListHmacKeysRequest, com.google.storage.v2.ListHmacKeysResponse>
            -      getListHmacKeysMethod;
            +  private static volatile io.grpc.MethodDescriptor getListHmacKeysMethod;
             
               @io.grpc.stub.annotations.RpcMethod(
                   fullMethodName = SERVICE_NAME + '/' + "ListHmacKeys",
                   requestType = com.google.storage.v2.ListHmacKeysRequest.class,
                   responseType = com.google.storage.v2.ListHmacKeysResponse.class,
                   methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
            -  public static io.grpc.MethodDescriptor<
            -          com.google.storage.v2.ListHmacKeysRequest, com.google.storage.v2.ListHmacKeysResponse>
            -      getListHmacKeysMethod() {
            -    io.grpc.MethodDescriptor<
            -            com.google.storage.v2.ListHmacKeysRequest, com.google.storage.v2.ListHmacKeysResponse>
            -        getListHmacKeysMethod;
            +  public static io.grpc.MethodDescriptor getListHmacKeysMethod() {
            +    io.grpc.MethodDescriptor getListHmacKeysMethod;
                 if ((getListHmacKeysMethod = StorageGrpc.getListHmacKeysMethod) == null) {
                   synchronized (StorageGrpc.class) {
                     if ((getListHmacKeysMethod = StorageGrpc.getListHmacKeysMethod) == null) {
            -          StorageGrpc.getListHmacKeysMethod =
            -              getListHmacKeysMethod =
            -                  io.grpc.MethodDescriptor
            -                      .
            -                          newBuilder()
            -                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            -                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListHmacKeys"))
            -                      .setSampledToLocalTracing(true)
            -                      .setRequestMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.ListHmacKeysRequest.getDefaultInstance()))
            -                      .setResponseMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.ListHmacKeysResponse.getDefaultInstance()))
            -                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("ListHmacKeys"))
            -                      .build();
            +          StorageGrpc.getListHmacKeysMethod = getListHmacKeysMethod =
            +              io.grpc.MethodDescriptor.newBuilder()
            +              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListHmacKeys"))
            +              .setSampledToLocalTracing(true)
            +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.ListHmacKeysRequest.getDefaultInstance()))
            +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.ListHmacKeysResponse.getDefaultInstance()))
            +              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("ListHmacKeys"))
            +              .build();
                     }
                   }
                 }
                 return getListHmacKeysMethod;
               }
             
            -  private static volatile io.grpc.MethodDescriptor<
            -          com.google.storage.v2.UpdateHmacKeyRequest, com.google.storage.v2.HmacKeyMetadata>
            -      getUpdateHmacKeyMethod;
            +  private static volatile io.grpc.MethodDescriptor getUpdateHmacKeyMethod;
             
               @io.grpc.stub.annotations.RpcMethod(
                   fullMethodName = SERVICE_NAME + '/' + "UpdateHmacKey",
                   requestType = com.google.storage.v2.UpdateHmacKeyRequest.class,
                   responseType = com.google.storage.v2.HmacKeyMetadata.class,
                   methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
            -  public static io.grpc.MethodDescriptor<
            -          com.google.storage.v2.UpdateHmacKeyRequest, com.google.storage.v2.HmacKeyMetadata>
            -      getUpdateHmacKeyMethod() {
            -    io.grpc.MethodDescriptor<
            -            com.google.storage.v2.UpdateHmacKeyRequest, com.google.storage.v2.HmacKeyMetadata>
            -        getUpdateHmacKeyMethod;
            +  public static io.grpc.MethodDescriptor getUpdateHmacKeyMethod() {
            +    io.grpc.MethodDescriptor getUpdateHmacKeyMethod;
                 if ((getUpdateHmacKeyMethod = StorageGrpc.getUpdateHmacKeyMethod) == null) {
                   synchronized (StorageGrpc.class) {
                     if ((getUpdateHmacKeyMethod = StorageGrpc.getUpdateHmacKeyMethod) == null) {
            -          StorageGrpc.getUpdateHmacKeyMethod =
            -              getUpdateHmacKeyMethod =
            -                  io.grpc.MethodDescriptor
            -                      .
            -                          newBuilder()
            -                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            -                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateHmacKey"))
            -                      .setSampledToLocalTracing(true)
            -                      .setRequestMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.UpdateHmacKeyRequest.getDefaultInstance()))
            -                      .setResponseMarshaller(
            -                          io.grpc.protobuf.ProtoUtils.marshaller(
            -                              com.google.storage.v2.HmacKeyMetadata.getDefaultInstance()))
            -                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("UpdateHmacKey"))
            -                      .build();
            +          StorageGrpc.getUpdateHmacKeyMethod = getUpdateHmacKeyMethod =
            +              io.grpc.MethodDescriptor.newBuilder()
            +              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            +              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateHmacKey"))
            +              .setSampledToLocalTracing(true)
            +              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.UpdateHmacKeyRequest.getDefaultInstance()))
            +              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            +                  com.google.storage.v2.HmacKeyMetadata.getDefaultInstance()))
            +              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("UpdateHmacKey"))
            +              .build();
                     }
                   }
                 }
                 return getUpdateHmacKeyMethod;
               }
             
            -  /** Creates a new async stub that supports all call types for the service */
            +  /**
            +   * Creates a new async stub that supports all call types for the service
            +   */
               public static StorageStub newStub(io.grpc.Channel channel) {
                 io.grpc.stub.AbstractStub.StubFactory factory =
            -        new io.grpc.stub.AbstractStub.StubFactory() {
            -          @java.lang.Override
            -          public StorageStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
            -            return new StorageStub(channel, callOptions);
            -          }
            -        };
            +      new io.grpc.stub.AbstractStub.StubFactory() {
            +        @java.lang.Override
            +        public StorageStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
            +          return new StorageStub(channel, callOptions);
            +        }
            +      };
                 return StorageStub.newStub(factory, channel);
               }
             
               /**
                * Creates a new blocking-style stub that supports unary and streaming output calls on the service
                */
            -  public static StorageBlockingStub newBlockingStub(io.grpc.Channel channel) {
            +  public static StorageBlockingStub newBlockingStub(
            +      io.grpc.Channel channel) {
                 io.grpc.stub.AbstractStub.StubFactory factory =
            -        new io.grpc.stub.AbstractStub.StubFactory() {
            -          @java.lang.Override
            -          public StorageBlockingStub newStub(
            -              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
            -            return new StorageBlockingStub(channel, callOptions);
            -          }
            -        };
            +      new io.grpc.stub.AbstractStub.StubFactory() {
            +        @java.lang.Override
            +        public StorageBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
            +          return new StorageBlockingStub(channel, callOptions);
            +        }
            +      };
                 return StorageBlockingStub.newStub(factory, channel);
               }
             
            -  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
            -  public static StorageFutureStub newFutureStub(io.grpc.Channel channel) {
            +  /**
            +   * Creates a new ListenableFuture-style stub that supports unary calls on the service
            +   */
            +  public static StorageFutureStub newFutureStub(
            +      io.grpc.Channel channel) {
                 io.grpc.stub.AbstractStub.StubFactory factory =
            -        new io.grpc.stub.AbstractStub.StubFactory() {
            -          @java.lang.Override
            -          public StorageFutureStub newStub(
            -              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
            -            return new StorageFutureStub(channel, callOptions);
            -          }
            -        };
            +      new io.grpc.stub.AbstractStub.StubFactory() {
            +        @java.lang.Override
            +        public StorageFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
            +          return new StorageFutureStub(channel, callOptions);
            +        }
            +      };
                 return StorageFutureStub.newStub(factory, channel);
               }
             
               /**
            -   *
            -   *
                * 
                * ## API Overview and Naming Syntax
                * The Cloud Storage gRPC API allows applications to read and write data through
            @@ -1464,109 +1096,80 @@ public StorageFutureStub newStub(
               public interface AsyncService {
             
                 /**
            -     *
            -     *
                  * 
                  * Permanently deletes an empty bucket.
                  * 
            */ - default void deleteBucket( - com.google.storage.v2.DeleteBucketRequest request, + default void deleteBucket(com.google.storage.v2.DeleteBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteBucketMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteBucketMethod(), responseObserver); } /** - * - * *
                  * Returns metadata for the specified bucket.
                  * 
            */ - default void getBucket( - com.google.storage.v2.GetBucketRequest request, + default void getBucket(com.google.storage.v2.GetBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBucketMethod(), responseObserver); } /** - * - * *
                  * Creates a new bucket.
                  * 
            */ - default void createBucket( - com.google.storage.v2.CreateBucketRequest request, + default void createBucket(com.google.storage.v2.CreateBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateBucketMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateBucketMethod(), responseObserver); } /** - * - * *
                  * Retrieves a list of buckets for a given project.
                  * 
            */ - default void listBuckets( - com.google.storage.v2.ListBucketsRequest request, + default void listBuckets(com.google.storage.v2.ListBucketsRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListBucketsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBucketsMethod(), responseObserver); } /** - * - * *
                  * Locks retention policy on a bucket.
                  * 
            */ - default void lockBucketRetentionPolicy( - com.google.storage.v2.LockBucketRetentionPolicyRequest request, + default void lockBucketRetentionPolicy(com.google.storage.v2.LockBucketRetentionPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getLockBucketRetentionPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLockBucketRetentionPolicyMethod(), responseObserver); } /** - * - * *
                  * Gets the IAM policy for a specified bucket.
                  * The `resource` field in the request should be
                  * `projects/_/buckets/{bucket}`.
                  * 
            */ - default void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, + default void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetIamPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); } /** - * - * *
                  * Updates an IAM policy for the specified bucket.
                  * The `resource` field in the request should be
                  * `projects/_/buckets/{bucket}`.
                  * 
            */ - default void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, + default void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetIamPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); } /** - * - * *
                  * Tests a set of permissions on the given bucket or object to see which, if
                  * any, are held by the caller.
            @@ -1575,59 +1178,42 @@ default void setIamPolicy(
                  * `projects/_/buckets/{bucket}/objects/{object}` for an object.
                  * 
            */ - default void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTestIamPermissionsMethod(), responseObserver); + default void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); } /** - * - * *
                  * Updates a bucket. Equivalent to JSON API's storage.buckets.patch method.
                  * 
            */ - default void updateBucket( - com.google.storage.v2.UpdateBucketRequest request, + default void updateBucket(com.google.storage.v2.UpdateBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateBucketMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateBucketMethod(), responseObserver); } /** - * - * *
                  * Permanently deletes a NotificationConfig.
                  * 
            */ - default void deleteNotificationConfig( - com.google.storage.v2.DeleteNotificationConfigRequest request, + default void deleteNotificationConfig(com.google.storage.v2.DeleteNotificationConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteNotificationConfigMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteNotificationConfigMethod(), responseObserver); } /** - * - * *
                  * View a NotificationConfig.
                  * 
            */ - default void getNotificationConfig( - com.google.storage.v2.GetNotificationConfigRequest request, + default void getNotificationConfig(com.google.storage.v2.GetNotificationConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetNotificationConfigMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNotificationConfigMethod(), responseObserver); } /** - * - * *
                  * Creates a NotificationConfig for a given bucket.
                  * These NotificationConfigs, when triggered, publish messages to the
            @@ -1635,46 +1221,33 @@ default void getNotificationConfig(
                  * https://cloud.google.com/storage/docs/pubsub-notifications.
                  * 
            */ - default void createNotificationConfig( - com.google.storage.v2.CreateNotificationConfigRequest request, + default void createNotificationConfig(com.google.storage.v2.CreateNotificationConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateNotificationConfigMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateNotificationConfigMethod(), responseObserver); } /** - * - * *
                  * Retrieves a list of NotificationConfigs for a given bucket.
                  * 
            */ - default void listNotificationConfigs( - com.google.storage.v2.ListNotificationConfigsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListNotificationConfigsMethod(), responseObserver); + default void listNotificationConfigs(com.google.storage.v2.ListNotificationConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNotificationConfigsMethod(), responseObserver); } /** - * - * *
                  * Concatenates a list of existing objects into a new object in the same
                  * bucket.
                  * 
            */ - default void composeObject( - com.google.storage.v2.ComposeObjectRequest request, + default void composeObject(com.google.storage.v2.ComposeObjectRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getComposeObjectMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getComposeObjectMethod(), responseObserver); } /** - * - * *
                  * Deletes an object and its metadata.
                  * Deletions are normally permanent when versioning is disabled or whenever
            @@ -1683,30 +1256,22 @@ default void composeObject(
                  * soft delete retention period has passed.
                  * 
            */ - default void deleteObject( - com.google.storage.v2.DeleteObjectRequest request, + default void deleteObject(com.google.storage.v2.DeleteObjectRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteObjectMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteObjectMethod(), responseObserver); } /** - * - * *
                  * Restores a soft-deleted object.
                  * 
            */ - default void restoreObject( - com.google.storage.v2.RestoreObjectRequest request, + default void restoreObject(com.google.storage.v2.RestoreObjectRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRestoreObjectMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRestoreObjectMethod(), responseObserver); } /** - * - * *
                  * Cancels an in-progress resumable upload.
                  * Any attempts to write to the resumable upload after cancelling the upload
            @@ -1716,58 +1281,43 @@ default void restoreObject(
                  * cancellation completes first.
                  * 
            */ - default void cancelResumableWrite( - com.google.storage.v2.CancelResumableWriteRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCancelResumableWriteMethod(), responseObserver); + default void cancelResumableWrite(com.google.storage.v2.CancelResumableWriteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCancelResumableWriteMethod(), responseObserver); } /** - * - * *
                  * Retrieves an object's metadata.
                  * 
            */ - default void getObject( - com.google.storage.v2.GetObjectRequest request, + default void getObject(com.google.storage.v2.GetObjectRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetObjectMethod(), responseObserver); } /** - * - * *
                  * Reads an object's data.
                  * 
            */ - default void readObject( - com.google.storage.v2.ReadObjectRequest request, + default void readObject(com.google.storage.v2.ReadObjectRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getReadObjectMethod(), responseObserver); } /** - * - * *
                  * Updates an object's metadata.
                  * Equivalent to JSON API's storage.objects.patch.
                  * 
            */ - default void updateObject( - com.google.storage.v2.UpdateObjectRequest request, + default void updateObject(com.google.storage.v2.UpdateObjectRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateObjectMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateObjectMethod(), responseObserver); } /** - * - * *
                  * Stores a new object and metadata.
                  * An object can be written either in a single message stream or in a
            @@ -1827,13 +1377,10 @@ default void updateObject(
                  */
                 default io.grpc.stub.StreamObserver writeObject(
                     io.grpc.stub.StreamObserver responseObserver) {
            -      return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(
            -          getWriteObjectMethod(), responseObserver);
            +      return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getWriteObjectMethod(), responseObserver);
                 }
             
                 /**
            -     *
            -     *
                  * 
                  * Stores a new object and metadata.
                  * This is similar to the WriteObject call with the added support for
            @@ -1850,63 +1397,45 @@ default io.grpc.stub.StreamObserver wr
                  * always be sent to the client, regardless of the value of `state_lookup`.
                  * 
            */ - default io.grpc.stub.StreamObserver - bidiWriteObject( - io.grpc.stub.StreamObserver - responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( - getBidiWriteObjectMethod(), responseObserver); + default io.grpc.stub.StreamObserver bidiWriteObject( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getBidiWriteObjectMethod(), responseObserver); } /** - * - * *
                  * Retrieves a list of objects matching the criteria.
                  * 
            */ - default void listObjects( - com.google.storage.v2.ListObjectsRequest request, + default void listObjects(com.google.storage.v2.ListObjectsRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListObjectsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListObjectsMethod(), responseObserver); } /** - * - * *
                  * Rewrites a source object to a destination object. Optionally overrides
                  * metadata.
                  * 
            */ - default void rewriteObject( - com.google.storage.v2.RewriteObjectRequest request, + default void rewriteObject(com.google.storage.v2.RewriteObjectRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRewriteObjectMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRewriteObjectMethod(), responseObserver); } /** - * - * *
                  * Starts a resumable write. How long the write operation remains valid, and
                  * what happens when the write operation becomes invalid, are
                  * service-dependent.
                  * 
            */ - default void startResumableWrite( - com.google.storage.v2.StartResumableWriteRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStartResumableWriteMethod(), responseObserver); + default void startResumableWrite(com.google.storage.v2.StartResumableWriteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartResumableWriteMethod(), responseObserver); } /** - * - * *
                  * Determines the `persisted_size` for an object that is being written, which
                  * can then be used as the `write_offset` for the next `Write()` call.
            @@ -1921,101 +1450,74 @@ default void startResumableWrite(
                  * non-decreasing.
                  * 
            */ - default void queryWriteStatus( - com.google.storage.v2.QueryWriteStatusRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getQueryWriteStatusMethod(), responseObserver); + default void queryWriteStatus(com.google.storage.v2.QueryWriteStatusRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getQueryWriteStatusMethod(), responseObserver); } /** - * - * *
                  * Retrieves the name of a project's Google Cloud Storage service account.
                  * 
            */ - default void getServiceAccount( - com.google.storage.v2.GetServiceAccountRequest request, + default void getServiceAccount(com.google.storage.v2.GetServiceAccountRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetServiceAccountMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetServiceAccountMethod(), responseObserver); } /** - * - * *
                  * Creates a new HMAC key for the given service account.
                  * 
            */ - default void createHmacKey( - com.google.storage.v2.CreateHmacKeyRequest request, + default void createHmacKey(com.google.storage.v2.CreateHmacKeyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateHmacKeyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateHmacKeyMethod(), responseObserver); } /** - * - * *
                  * Deletes a given HMAC key.  Key must be in an INACTIVE state.
                  * 
            */ - default void deleteHmacKey( - com.google.storage.v2.DeleteHmacKeyRequest request, + default void deleteHmacKey(com.google.storage.v2.DeleteHmacKeyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteHmacKeyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteHmacKeyMethod(), responseObserver); } /** - * - * *
                  * Gets an existing HMAC key metadata for the given id.
                  * 
            */ - default void getHmacKey( - com.google.storage.v2.GetHmacKeyRequest request, + default void getHmacKey(com.google.storage.v2.GetHmacKeyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetHmacKeyMethod(), responseObserver); } /** - * - * *
                  * Lists HMAC keys under a given project with the additional filters provided.
                  * 
            */ - default void listHmacKeys( - com.google.storage.v2.ListHmacKeysRequest request, + default void listHmacKeys(com.google.storage.v2.ListHmacKeysRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListHmacKeysMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListHmacKeysMethod(), responseObserver); } /** - * - * *
                  * Updates a given HMAC key state between ACTIVE and INACTIVE.
                  * 
            */ - default void updateHmacKey( - com.google.storage.v2.UpdateHmacKeyRequest request, + default void updateHmacKey(com.google.storage.v2.UpdateHmacKeyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateHmacKeyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateHmacKeyMethod(), responseObserver); } } /** * Base class for the server implementation of the service Storage. - * *
                * ## API Overview and Naming Syntax
                * The Cloud Storage gRPC API allows applications to read and write data through
            @@ -2037,17 +1539,16 @@ default void updateHmacKey(
                *     any other character (no special directory semantics).
                * 
            */ - public abstract static class StorageImplBase implements io.grpc.BindableService, AsyncService { + public static abstract class StorageImplBase + implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return StorageGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service Storage. - * *
                * ## API Overview and Naming Syntax
                * The Cloud Storage gRPC API allows applications to read and write data through
            @@ -2069,133 +1570,101 @@ public final io.grpc.ServerServiceDefinition bindService() {
                *     any other character (no special directory semantics).
                * 
            */ - public static final class StorageStub extends io.grpc.stub.AbstractAsyncStub { - private StorageStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class StorageStub + extends io.grpc.stub.AbstractAsyncStub { + private StorageStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected StorageStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected StorageStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new StorageStub(channel, callOptions); } /** - * - * *
                  * Permanently deletes an empty bucket.
                  * 
            */ - public void deleteBucket( - com.google.storage.v2.DeleteBucketRequest request, + public void deleteBucket(com.google.storage.v2.DeleteBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteBucketMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteBucketMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
                  * Returns metadata for the specified bucket.
                  * 
            */ - public void getBucket( - com.google.storage.v2.GetBucketRequest request, + public void getBucket(com.google.storage.v2.GetBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetBucketMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
                  * Creates a new bucket.
                  * 
            */ - public void createBucket( - com.google.storage.v2.CreateBucketRequest request, + public void createBucket(com.google.storage.v2.CreateBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateBucketMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateBucketMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
                  * Retrieves a list of buckets for a given project.
                  * 
            */ - public void listBuckets( - com.google.storage.v2.ListBucketsRequest request, + public void listBuckets(com.google.storage.v2.ListBucketsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListBucketsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListBucketsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
                  * Locks retention policy on a bucket.
                  * 
            */ - public void lockBucketRetentionPolicy( - com.google.storage.v2.LockBucketRetentionPolicyRequest request, + public void lockBucketRetentionPolicy(com.google.storage.v2.LockBucketRetentionPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getLockBucketRetentionPolicyMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getLockBucketRetentionPolicyMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
                  * Gets the IAM policy for a specified bucket.
                  * The `resource` field in the request should be
                  * `projects/_/buckets/{bucket}`.
                  * 
            */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, + public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
                  * Updates an IAM policy for the specified bucket.
                  * The `resource` field in the request should be
                  * `projects/_/buckets/{bucket}`.
                  * 
            */ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, + public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
                  * Tests a set of permissions on the given bucket or object to see which, if
                  * any, are held by the caller.
            @@ -2204,67 +1673,46 @@ public void setIamPolicy(
                  * `projects/_/buckets/{bucket}/objects/{object}` for an object.
                  * 
            */ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
                  * Updates a bucket. Equivalent to JSON API's storage.buckets.patch method.
                  * 
            */ - public void updateBucket( - com.google.storage.v2.UpdateBucketRequest request, + public void updateBucket(com.google.storage.v2.UpdateBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateBucketMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateBucketMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
                  * Permanently deletes a NotificationConfig.
                  * 
            */ - public void deleteNotificationConfig( - com.google.storage.v2.DeleteNotificationConfigRequest request, + public void deleteNotificationConfig(com.google.storage.v2.DeleteNotificationConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteNotificationConfigMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteNotificationConfigMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
                  * View a NotificationConfig.
                  * 
            */ - public void getNotificationConfig( - com.google.storage.v2.GetNotificationConfigRequest request, + public void getNotificationConfig(com.google.storage.v2.GetNotificationConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNotificationConfigMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetNotificationConfigMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
                  * Creates a NotificationConfig for a given bucket.
                  * These NotificationConfigs, when triggered, publish messages to the
            @@ -2272,52 +1720,36 @@ public void getNotificationConfig(
                  * https://cloud.google.com/storage/docs/pubsub-notifications.
                  * 
            */ - public void createNotificationConfig( - com.google.storage.v2.CreateNotificationConfigRequest request, + public void createNotificationConfig(com.google.storage.v2.CreateNotificationConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateNotificationConfigMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateNotificationConfigMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
                  * Retrieves a list of NotificationConfigs for a given bucket.
                  * 
            */ - public void listNotificationConfigs( - com.google.storage.v2.ListNotificationConfigsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listNotificationConfigs(com.google.storage.v2.ListNotificationConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNotificationConfigsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListNotificationConfigsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
                  * Concatenates a list of existing objects into a new object in the same
                  * bucket.
                  * 
            */ - public void composeObject( - com.google.storage.v2.ComposeObjectRequest request, + public void composeObject(com.google.storage.v2.ComposeObjectRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getComposeObjectMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getComposeObjectMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
                  * Deletes an object and its metadata.
                  * Deletions are normally permanent when versioning is disabled or whenever
            @@ -2326,34 +1758,24 @@ public void composeObject(
                  * soft delete retention period has passed.
                  * 
            */ - public void deleteObject( - com.google.storage.v2.DeleteObjectRequest request, + public void deleteObject(com.google.storage.v2.DeleteObjectRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteObjectMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteObjectMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
                  * Restores a soft-deleted object.
                  * 
            */ - public void restoreObject( - com.google.storage.v2.RestoreObjectRequest request, + public void restoreObject(com.google.storage.v2.RestoreObjectRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRestoreObjectMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getRestoreObjectMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
                  * Cancels an in-progress resumable upload.
                  * Any attempts to write to the resumable upload after cancelling the upload
            @@ -2363,64 +1785,47 @@ public void restoreObject(
                  * cancellation completes first.
                  * 
            */ - public void cancelResumableWrite( - com.google.storage.v2.CancelResumableWriteRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void cancelResumableWrite(com.google.storage.v2.CancelResumableWriteRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCancelResumableWriteMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCancelResumableWriteMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
                  * Retrieves an object's metadata.
                  * 
            */ - public void getObject( - com.google.storage.v2.GetObjectRequest request, + public void getObject(com.google.storage.v2.GetObjectRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetObjectMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
                  * Reads an object's data.
                  * 
            */ - public void readObject( - com.google.storage.v2.ReadObjectRequest request, + public void readObject(com.google.storage.v2.ReadObjectRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncServerStreamingCall( getChannel().newCall(getReadObjectMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
                  * Updates an object's metadata.
                  * Equivalent to JSON API's storage.objects.patch.
                  * 
            */ - public void updateObject( - com.google.storage.v2.UpdateObjectRequest request, + public void updateObject(com.google.storage.v2.UpdateObjectRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateObjectMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateObjectMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
                  * Stores a new object and metadata.
                  * An object can be written either in a single message stream or in a
            @@ -2485,8 +1890,6 @@ public io.grpc.stub.StreamObserver wri
                 }
             
                 /**
            -     *
            -     *
                  * 
                  * Stores a new object and metadata.
                  * This is similar to the WriteObject call with the added support for
            @@ -2503,69 +1906,49 @@ public io.grpc.stub.StreamObserver wri
                  * always be sent to the client, regardless of the value of `state_lookup`.
                  * 
            */ - public io.grpc.stub.StreamObserver - bidiWriteObject( - io.grpc.stub.StreamObserver - responseObserver) { + public io.grpc.stub.StreamObserver bidiWriteObject( + io.grpc.stub.StreamObserver responseObserver) { return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( getChannel().newCall(getBidiWriteObjectMethod(), getCallOptions()), responseObserver); } /** - * - * *
                  * Retrieves a list of objects matching the criteria.
                  * 
            */ - public void listObjects( - com.google.storage.v2.ListObjectsRequest request, + public void listObjects(com.google.storage.v2.ListObjectsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListObjectsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListObjectsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
                  * Rewrites a source object to a destination object. Optionally overrides
                  * metadata.
                  * 
            */ - public void rewriteObject( - com.google.storage.v2.RewriteObjectRequest request, + public void rewriteObject(com.google.storage.v2.RewriteObjectRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRewriteObjectMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getRewriteObjectMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
                  * Starts a resumable write. How long the write operation remains valid, and
                  * what happens when the write operation becomes invalid, are
                  * service-dependent.
                  * 
            */ - public void startResumableWrite( - com.google.storage.v2.StartResumableWriteRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void startResumableWrite(com.google.storage.v2.StartResumableWriteRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartResumableWriteMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getStartResumableWriteMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
                  * Determines the `persisted_size` for an object that is being written, which
                  * can then be used as the `write_offset` for the next `Write()` call.
            @@ -2580,114 +1963,81 @@ public void startResumableWrite(
                  * non-decreasing.
                  * 
            */ - public void queryWriteStatus( - com.google.storage.v2.QueryWriteStatusRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void queryWriteStatus(com.google.storage.v2.QueryWriteStatusRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getQueryWriteStatusMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getQueryWriteStatusMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
                  * Retrieves the name of a project's Google Cloud Storage service account.
                  * 
            */ - public void getServiceAccount( - com.google.storage.v2.GetServiceAccountRequest request, + public void getServiceAccount(com.google.storage.v2.GetServiceAccountRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetServiceAccountMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetServiceAccountMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
                  * Creates a new HMAC key for the given service account.
                  * 
            */ - public void createHmacKey( - com.google.storage.v2.CreateHmacKeyRequest request, + public void createHmacKey(com.google.storage.v2.CreateHmacKeyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateHmacKeyMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateHmacKeyMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
                  * Deletes a given HMAC key.  Key must be in an INACTIVE state.
                  * 
            */ - public void deleteHmacKey( - com.google.storage.v2.DeleteHmacKeyRequest request, + public void deleteHmacKey(com.google.storage.v2.DeleteHmacKeyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteHmacKeyMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteHmacKeyMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
                  * Gets an existing HMAC key metadata for the given id.
                  * 
            */ - public void getHmacKey( - com.google.storage.v2.GetHmacKeyRequest request, + public void getHmacKey(com.google.storage.v2.GetHmacKeyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetHmacKeyMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
                  * Lists HMAC keys under a given project with the additional filters provided.
                  * 
            */ - public void listHmacKeys( - com.google.storage.v2.ListHmacKeysRequest request, + public void listHmacKeys(com.google.storage.v2.ListHmacKeysRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListHmacKeysMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListHmacKeysMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
                  * Updates a given HMAC key state between ACTIVE and INACTIVE.
                  * 
            */ - public void updateHmacKey( - com.google.storage.v2.UpdateHmacKeyRequest request, + public void updateHmacKey(com.google.storage.v2.UpdateHmacKeyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateHmacKeyMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateHmacKeyMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service Storage. - * *
                * ## API Overview and Naming Syntax
                * The Cloud Storage gRPC API allows applications to read and write data through
            @@ -2711,31 +2061,28 @@ public void updateHmacKey(
                */
               public static final class StorageBlockingStub
                   extends io.grpc.stub.AbstractBlockingStub {
            -    private StorageBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
            +    private StorageBlockingStub(
            +        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
                   super(channel, callOptions);
                 }
             
                 @java.lang.Override
            -    protected StorageBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
            +    protected StorageBlockingStub build(
            +        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
                   return new StorageBlockingStub(channel, callOptions);
                 }
             
                 /**
            -     *
            -     *
                  * 
                  * Permanently deletes an empty bucket.
                  * 
            */ - public com.google.protobuf.Empty deleteBucket( - com.google.storage.v2.DeleteBucketRequest request) { + public com.google.protobuf.Empty deleteBucket(com.google.storage.v2.DeleteBucketRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteBucketMethod(), getCallOptions(), request); } /** - * - * *
                  * Returns metadata for the specified bucket.
                  * 
            @@ -2746,47 +2093,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.
                  * The `resource` field in the request should be
            @@ -2799,8 +2135,6 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque
                 }
             
                 /**
            -     *
            -     *
                  * 
                  * Updates an IAM policy for the specified bucket.
                  * The `resource` field in the request should be
            @@ -2813,8 +2147,6 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque
                 }
             
                 /**
            -     *
            -     *
                  * 
                  * Tests a set of permissions on the given bucket or object to see which, if
                  * any, are held by the caller.
            @@ -2823,54 +2155,42 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque
                  * `projects/_/buckets/{bucket}/objects/{object}` for an object.
                  * 
            */ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } /** - * - * *
                  * Updates a bucket. Equivalent to JSON API's storage.buckets.patch method.
                  * 
            */ - public com.google.storage.v2.Bucket updateBucket( - com.google.storage.v2.UpdateBucketRequest request) { + public com.google.storage.v2.Bucket updateBucket(com.google.storage.v2.UpdateBucketRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateBucketMethod(), getCallOptions(), request); } /** - * - * *
                  * Permanently deletes a NotificationConfig.
                  * 
            */ - public com.google.protobuf.Empty deleteNotificationConfig( - com.google.storage.v2.DeleteNotificationConfigRequest request) { + public com.google.protobuf.Empty deleteNotificationConfig(com.google.storage.v2.DeleteNotificationConfigRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteNotificationConfigMethod(), getCallOptions(), request); } /** - * - * *
                  * View a NotificationConfig.
                  * 
            */ - public com.google.storage.v2.NotificationConfig getNotificationConfig( - com.google.storage.v2.GetNotificationConfigRequest request) { + public com.google.storage.v2.NotificationConfig getNotificationConfig(com.google.storage.v2.GetNotificationConfigRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetNotificationConfigMethod(), getCallOptions(), request); } /** - * - * *
                  * Creates a NotificationConfig for a given bucket.
                  * These NotificationConfigs, when triggered, publish messages to the
            @@ -2878,42 +2198,33 @@ public com.google.storage.v2.NotificationConfig getNotificationConfig(
                  * https://cloud.google.com/storage/docs/pubsub-notifications.
                  * 
            */ - public com.google.storage.v2.NotificationConfig createNotificationConfig( - com.google.storage.v2.CreateNotificationConfigRequest request) { + public com.google.storage.v2.NotificationConfig createNotificationConfig(com.google.storage.v2.CreateNotificationConfigRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateNotificationConfigMethod(), getCallOptions(), request); } /** - * - * *
                  * Retrieves a list of NotificationConfigs for a given bucket.
                  * 
            */ - public com.google.storage.v2.ListNotificationConfigsResponse listNotificationConfigs( - com.google.storage.v2.ListNotificationConfigsRequest request) { + public com.google.storage.v2.ListNotificationConfigsResponse listNotificationConfigs(com.google.storage.v2.ListNotificationConfigsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListNotificationConfigsMethod(), getCallOptions(), request); } /** - * - * *
                  * Concatenates a list of existing objects into a new object in the same
                  * bucket.
                  * 
            */ - public com.google.storage.v2.Object composeObject( - com.google.storage.v2.ComposeObjectRequest request) { + public com.google.storage.v2.Object composeObject(com.google.storage.v2.ComposeObjectRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getComposeObjectMethod(), getCallOptions(), request); } /** - * - * *
                  * Deletes an object and its metadata.
                  * Deletions are normally permanent when versioning is disabled or whenever
            @@ -2922,28 +2233,22 @@ public com.google.storage.v2.Object composeObject(
                  * soft delete retention period has passed.
                  * 
            */ - public com.google.protobuf.Empty deleteObject( - com.google.storage.v2.DeleteObjectRequest request) { + public com.google.protobuf.Empty deleteObject(com.google.storage.v2.DeleteObjectRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteObjectMethod(), getCallOptions(), request); } /** - * - * *
                  * Restores a soft-deleted object.
                  * 
            */ - public com.google.storage.v2.Object restoreObject( - com.google.storage.v2.RestoreObjectRequest request) { + public com.google.storage.v2.Object restoreObject(com.google.storage.v2.RestoreObjectRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRestoreObjectMethod(), getCallOptions(), request); } /** - * - * *
                  * Cancels an in-progress resumable upload.
                  * Any attempts to write to the resumable upload after cancelling the upload
            @@ -2953,15 +2258,12 @@ public com.google.storage.v2.Object restoreObject(
                  * cancellation completes first.
                  * 
            */ - public com.google.storage.v2.CancelResumableWriteResponse cancelResumableWrite( - com.google.storage.v2.CancelResumableWriteRequest request) { + public com.google.storage.v2.CancelResumableWriteResponse cancelResumableWrite(com.google.storage.v2.CancelResumableWriteRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCancelResumableWriteMethod(), getCallOptions(), request); } /** - * - * *
                  * Retrieves an object's metadata.
                  * 
            @@ -2972,8 +2274,6 @@ public com.google.storage.v2.Object getObject(com.google.storage.v2.GetObjectReq } /** - * - * *
                  * Reads an object's data.
                  * 
            @@ -2985,64 +2285,50 @@ public java.util.Iterator readObject( } /** - * - * *
                  * Updates an object's metadata.
                  * Equivalent to JSON API's storage.objects.patch.
                  * 
            */ - public com.google.storage.v2.Object updateObject( - com.google.storage.v2.UpdateObjectRequest request) { + public com.google.storage.v2.Object updateObject(com.google.storage.v2.UpdateObjectRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateObjectMethod(), getCallOptions(), request); } /** - * - * *
                  * Retrieves a list of objects matching the criteria.
                  * 
            */ - public com.google.storage.v2.ListObjectsResponse listObjects( - com.google.storage.v2.ListObjectsRequest request) { + public com.google.storage.v2.ListObjectsResponse listObjects(com.google.storage.v2.ListObjectsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListObjectsMethod(), getCallOptions(), request); } /** - * - * *
                  * Rewrites a source object to a destination object. Optionally overrides
                  * metadata.
                  * 
            */ - public com.google.storage.v2.RewriteResponse rewriteObject( - com.google.storage.v2.RewriteObjectRequest request) { + public com.google.storage.v2.RewriteResponse rewriteObject(com.google.storage.v2.RewriteObjectRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRewriteObjectMethod(), getCallOptions(), request); } /** - * - * *
                  * Starts a resumable write. How long the write operation remains valid, and
                  * what happens when the write operation becomes invalid, are
                  * service-dependent.
                  * 
            */ - public com.google.storage.v2.StartResumableWriteResponse startResumableWrite( - com.google.storage.v2.StartResumableWriteRequest request) { + public com.google.storage.v2.StartResumableWriteResponse startResumableWrite(com.google.storage.v2.StartResumableWriteRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getStartResumableWriteMethod(), getCallOptions(), request); } /** - * - * *
                  * Determines the `persisted_size` for an object that is being written, which
                  * can then be used as the `write_offset` for the next `Write()` call.
            @@ -3057,86 +2343,67 @@ public com.google.storage.v2.StartResumableWriteResponse startResumableWrite(
                  * non-decreasing.
                  * 
            */ - public com.google.storage.v2.QueryWriteStatusResponse queryWriteStatus( - com.google.storage.v2.QueryWriteStatusRequest request) { + public com.google.storage.v2.QueryWriteStatusResponse queryWriteStatus(com.google.storage.v2.QueryWriteStatusRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getQueryWriteStatusMethod(), getCallOptions(), request); } /** - * - * *
                  * Retrieves the name of a project's Google Cloud Storage service account.
                  * 
            */ - public com.google.storage.v2.ServiceAccount getServiceAccount( - com.google.storage.v2.GetServiceAccountRequest request) { + public com.google.storage.v2.ServiceAccount getServiceAccount(com.google.storage.v2.GetServiceAccountRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetServiceAccountMethod(), getCallOptions(), request); } /** - * - * *
                  * Creates a new HMAC key for the given service account.
                  * 
            */ - public com.google.storage.v2.CreateHmacKeyResponse createHmacKey( - com.google.storage.v2.CreateHmacKeyRequest request) { + public com.google.storage.v2.CreateHmacKeyResponse createHmacKey(com.google.storage.v2.CreateHmacKeyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateHmacKeyMethod(), getCallOptions(), request); } /** - * - * *
                  * Deletes a given HMAC key.  Key must be in an INACTIVE state.
                  * 
            */ - public com.google.protobuf.Empty deleteHmacKey( - com.google.storage.v2.DeleteHmacKeyRequest request) { + public com.google.protobuf.Empty deleteHmacKey(com.google.storage.v2.DeleteHmacKeyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteHmacKeyMethod(), getCallOptions(), request); } /** - * - * *
                  * Gets an existing HMAC key metadata for the given id.
                  * 
            */ - public com.google.storage.v2.HmacKeyMetadata getHmacKey( - com.google.storage.v2.GetHmacKeyRequest request) { + public com.google.storage.v2.HmacKeyMetadata getHmacKey(com.google.storage.v2.GetHmacKeyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetHmacKeyMethod(), getCallOptions(), request); } /** - * - * *
                  * Lists HMAC keys under a given project with the additional filters provided.
                  * 
            */ - public com.google.storage.v2.ListHmacKeysResponse listHmacKeys( - com.google.storage.v2.ListHmacKeysRequest request) { + public com.google.storage.v2.ListHmacKeysResponse listHmacKeys(com.google.storage.v2.ListHmacKeysRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListHmacKeysMethod(), getCallOptions(), request); } /** - * - * *
                  * Updates a given HMAC key state between ACTIVE and INACTIVE.
                  * 
            */ - public com.google.storage.v2.HmacKeyMetadata updateHmacKey( - com.google.storage.v2.UpdateHmacKeyRequest request) { + public com.google.storage.v2.HmacKeyMetadata updateHmacKey(com.google.storage.v2.UpdateHmacKeyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateHmacKeyMethod(), getCallOptions(), request); } @@ -3144,7 +2411,6 @@ public com.google.storage.v2.HmacKeyMetadata updateHmacKey( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service Storage. - * *
                * ## API Overview and Naming Syntax
                * The Cloud Storage gRPC API allows applications to read and write data through
            @@ -3168,114 +2434,99 @@ public com.google.storage.v2.HmacKeyMetadata updateHmacKey(
                */
               public static final class StorageFutureStub
                   extends io.grpc.stub.AbstractFutureStub {
            -    private StorageFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
            +    private StorageFutureStub(
            +        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
                   super(channel, callOptions);
                 }
             
                 @java.lang.Override
            -    protected StorageFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
            +    protected StorageFutureStub build(
            +        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
                   return new StorageFutureStub(channel, callOptions);
                 }
             
                 /**
            -     *
            -     *
                  * 
                  * Permanently deletes an empty bucket.
                  * 
            */ - public com.google.common.util.concurrent.ListenableFuture - deleteBucket(com.google.storage.v2.DeleteBucketRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteBucket( + com.google.storage.v2.DeleteBucketRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteBucketMethod(), getCallOptions()), request); } /** - * - * *
                  * Returns metadata for the specified bucket.
                  * 
            */ - public com.google.common.util.concurrent.ListenableFuture - getBucket(com.google.storage.v2.GetBucketRequest request) { + public com.google.common.util.concurrent.ListenableFuture getBucket( + com.google.storage.v2.GetBucketRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetBucketMethod(), getCallOptions()), request); } /** - * - * *
                  * Creates a new bucket.
                  * 
            */ - public com.google.common.util.concurrent.ListenableFuture - createBucket(com.google.storage.v2.CreateBucketRequest request) { + public com.google.common.util.concurrent.ListenableFuture createBucket( + com.google.storage.v2.CreateBucketRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateBucketMethod(), getCallOptions()), request); } /** - * - * *
                  * Retrieves a list of buckets for a given project.
                  * 
            */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.storage.v2.ListBucketsResponse> - listBuckets(com.google.storage.v2.ListBucketsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listBuckets( + com.google.storage.v2.ListBucketsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListBucketsMethod(), getCallOptions()), request); } /** - * - * *
                  * Locks retention policy on a bucket.
                  * 
            */ - public com.google.common.util.concurrent.ListenableFuture - lockBucketRetentionPolicy(com.google.storage.v2.LockBucketRetentionPolicyRequest request) { + public com.google.common.util.concurrent.ListenableFuture lockBucketRetentionPolicy( + com.google.storage.v2.LockBucketRetentionPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getLockBucketRetentionPolicyMethod(), getCallOptions()), request); } /** - * - * *
                  * Gets the IAM policy for a specified bucket.
                  * The `resource` field in the request should be
                  * `projects/_/buckets/{bucket}`.
                  * 
            */ - public com.google.common.util.concurrent.ListenableFuture - getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + public com.google.common.util.concurrent.ListenableFuture getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); } /** - * - * *
                  * Updates an IAM policy for the specified bucket.
                  * The `resource` field in the request should be
                  * `projects/_/buckets/{bucket}`.
                  * 
            */ - public com.google.common.util.concurrent.ListenableFuture - setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + public com.google.common.util.concurrent.ListenableFuture setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); } /** - * - * *
                  * Tests a set of permissions on the given bucket or object to see which, if
                  * any, are held by the caller.
            @@ -3284,56 +2535,46 @@ protected StorageFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c
                  * `projects/_/buckets/{bucket}/objects/{object}` for an object.
                  * 
            */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.iam.v1.TestIamPermissionsResponse> - testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + public com.google.common.util.concurrent.ListenableFuture testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); } /** - * - * *
                  * Updates a bucket. Equivalent to JSON API's storage.buckets.patch method.
                  * 
            */ - public com.google.common.util.concurrent.ListenableFuture - updateBucket(com.google.storage.v2.UpdateBucketRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateBucket( + com.google.storage.v2.UpdateBucketRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateBucketMethod(), getCallOptions()), request); } /** - * - * *
                  * Permanently deletes a NotificationConfig.
                  * 
            */ - public com.google.common.util.concurrent.ListenableFuture - deleteNotificationConfig(com.google.storage.v2.DeleteNotificationConfigRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteNotificationConfig( + com.google.storage.v2.DeleteNotificationConfigRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteNotificationConfigMethod(), getCallOptions()), request); } /** - * - * *
                  * View a NotificationConfig.
                  * 
            */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.storage.v2.NotificationConfig> - getNotificationConfig(com.google.storage.v2.GetNotificationConfigRequest request) { + public com.google.common.util.concurrent.ListenableFuture getNotificationConfig( + com.google.storage.v2.GetNotificationConfigRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetNotificationConfigMethod(), getCallOptions()), request); } /** - * - * *
                  * Creates a NotificationConfig for a given bucket.
                  * These NotificationConfigs, when triggered, publish messages to the
            @@ -3341,44 +2582,36 @@ protected StorageFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c
                  * https://cloud.google.com/storage/docs/pubsub-notifications.
                  * 
            */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.storage.v2.NotificationConfig> - createNotificationConfig(com.google.storage.v2.CreateNotificationConfigRequest request) { + public com.google.common.util.concurrent.ListenableFuture createNotificationConfig( + com.google.storage.v2.CreateNotificationConfigRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateNotificationConfigMethod(), getCallOptions()), request); } /** - * - * *
                  * Retrieves a list of NotificationConfigs for a given bucket.
                  * 
            */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.storage.v2.ListNotificationConfigsResponse> - listNotificationConfigs(com.google.storage.v2.ListNotificationConfigsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listNotificationConfigs( + com.google.storage.v2.ListNotificationConfigsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListNotificationConfigsMethod(), getCallOptions()), request); } /** - * - * *
                  * Concatenates a list of existing objects into a new object in the same
                  * bucket.
                  * 
            */ - public com.google.common.util.concurrent.ListenableFuture - composeObject(com.google.storage.v2.ComposeObjectRequest request) { + public com.google.common.util.concurrent.ListenableFuture composeObject( + com.google.storage.v2.ComposeObjectRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getComposeObjectMethod(), getCallOptions()), request); } /** - * - * *
                  * Deletes an object and its metadata.
                  * Deletions are normally permanent when versioning is disabled or whenever
            @@ -3387,28 +2620,24 @@ protected StorageFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c
                  * soft delete retention period has passed.
                  * 
            */ - public com.google.common.util.concurrent.ListenableFuture - deleteObject(com.google.storage.v2.DeleteObjectRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteObject( + com.google.storage.v2.DeleteObjectRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteObjectMethod(), getCallOptions()), request); } /** - * - * *
                  * Restores a soft-deleted object.
                  * 
            */ - public com.google.common.util.concurrent.ListenableFuture - restoreObject(com.google.storage.v2.RestoreObjectRequest request) { + public com.google.common.util.concurrent.ListenableFuture restoreObject( + com.google.storage.v2.RestoreObjectRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRestoreObjectMethod(), getCallOptions()), request); } /** - * - * *
                  * Cancels an in-progress resumable upload.
                  * Any attempts to write to the resumable upload after cancelling the upload
            @@ -3418,87 +2647,72 @@ protected StorageFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c
                  * cancellation completes first.
                  * 
            */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.storage.v2.CancelResumableWriteResponse> - cancelResumableWrite(com.google.storage.v2.CancelResumableWriteRequest request) { + public com.google.common.util.concurrent.ListenableFuture cancelResumableWrite( + com.google.storage.v2.CancelResumableWriteRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCancelResumableWriteMethod(), getCallOptions()), request); } /** - * - * *
                  * Retrieves an object's metadata.
                  * 
            */ - public com.google.common.util.concurrent.ListenableFuture - getObject(com.google.storage.v2.GetObjectRequest request) { + public com.google.common.util.concurrent.ListenableFuture getObject( + com.google.storage.v2.GetObjectRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetObjectMethod(), getCallOptions()), request); } /** - * - * *
                  * Updates an object's metadata.
                  * Equivalent to JSON API's storage.objects.patch.
                  * 
            */ - public com.google.common.util.concurrent.ListenableFuture - updateObject(com.google.storage.v2.UpdateObjectRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateObject( + com.google.storage.v2.UpdateObjectRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateObjectMethod(), getCallOptions()), request); } /** - * - * *
                  * Retrieves a list of objects matching the criteria.
                  * 
            */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.storage.v2.ListObjectsResponse> - listObjects(com.google.storage.v2.ListObjectsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listObjects( + com.google.storage.v2.ListObjectsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListObjectsMethod(), getCallOptions()), request); } /** - * - * *
                  * Rewrites a source object to a destination object. Optionally overrides
                  * metadata.
                  * 
            */ - public com.google.common.util.concurrent.ListenableFuture - rewriteObject(com.google.storage.v2.RewriteObjectRequest request) { + public com.google.common.util.concurrent.ListenableFuture rewriteObject( + com.google.storage.v2.RewriteObjectRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRewriteObjectMethod(), getCallOptions()), request); } /** - * - * *
                  * Starts a resumable write. How long the write operation remains valid, and
                  * what happens when the write operation becomes invalid, are
                  * service-dependent.
                  * 
            */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.storage.v2.StartResumableWriteResponse> - startResumableWrite(com.google.storage.v2.StartResumableWriteRequest request) { + public com.google.common.util.concurrent.ListenableFuture startResumableWrite( + com.google.storage.v2.StartResumableWriteRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getStartResumableWriteMethod(), getCallOptions()), request); } /** - * - * *
                  * Determines the `persisted_size` for an object that is being written, which
                  * can then be used as the `write_offset` for the next `Write()` call.
            @@ -3513,89 +2727,74 @@ protected StorageFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c
                  * non-decreasing.
                  * 
            */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.storage.v2.QueryWriteStatusResponse> - queryWriteStatus(com.google.storage.v2.QueryWriteStatusRequest request) { + public com.google.common.util.concurrent.ListenableFuture queryWriteStatus( + com.google.storage.v2.QueryWriteStatusRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getQueryWriteStatusMethod(), getCallOptions()), request); } /** - * - * *
                  * Retrieves the name of a project's Google Cloud Storage service account.
                  * 
            */ - public com.google.common.util.concurrent.ListenableFuture - getServiceAccount(com.google.storage.v2.GetServiceAccountRequest request) { + public com.google.common.util.concurrent.ListenableFuture getServiceAccount( + com.google.storage.v2.GetServiceAccountRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetServiceAccountMethod(), getCallOptions()), request); } /** - * - * *
                  * Creates a new HMAC key for the given service account.
                  * 
            */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.storage.v2.CreateHmacKeyResponse> - createHmacKey(com.google.storage.v2.CreateHmacKeyRequest request) { + public com.google.common.util.concurrent.ListenableFuture createHmacKey( + com.google.storage.v2.CreateHmacKeyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateHmacKeyMethod(), getCallOptions()), request); } /** - * - * *
                  * Deletes a given HMAC key.  Key must be in an INACTIVE state.
                  * 
            */ - public com.google.common.util.concurrent.ListenableFuture - deleteHmacKey(com.google.storage.v2.DeleteHmacKeyRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteHmacKey( + com.google.storage.v2.DeleteHmacKeyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteHmacKeyMethod(), getCallOptions()), request); } /** - * - * *
                  * Gets an existing HMAC key metadata for the given id.
                  * 
            */ - public com.google.common.util.concurrent.ListenableFuture - getHmacKey(com.google.storage.v2.GetHmacKeyRequest request) { + public com.google.common.util.concurrent.ListenableFuture getHmacKey( + com.google.storage.v2.GetHmacKeyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetHmacKeyMethod(), getCallOptions()), request); } /** - * - * *
                  * Lists HMAC keys under a given project with the additional filters provided.
                  * 
            */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.storage.v2.ListHmacKeysResponse> - listHmacKeys(com.google.storage.v2.ListHmacKeysRequest request) { + public com.google.common.util.concurrent.ListenableFuture listHmacKeys( + com.google.storage.v2.ListHmacKeysRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListHmacKeysMethod(), getCallOptions()), request); } /** - * - * *
                  * Updates a given HMAC key state between ACTIVE and INACTIVE.
                  * 
            */ - public com.google.common.util.concurrent.ListenableFuture - updateHmacKey(com.google.storage.v2.UpdateHmacKeyRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateHmacKey( + com.google.storage.v2.UpdateHmacKeyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateHmacKeyMethod(), getCallOptions()), request); } @@ -3634,11 +2833,11 @@ protected StorageFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions c private static final int METHODID_WRITE_OBJECT = 30; private static final int METHODID_BIDI_WRITE_OBJECT = 31; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -3652,169 +2851,124 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_DELETE_BUCKET: - serviceImpl.deleteBucket( - (com.google.storage.v2.DeleteBucketRequest) request, + serviceImpl.deleteBucket((com.google.storage.v2.DeleteBucketRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_BUCKET: - serviceImpl.getBucket( - (com.google.storage.v2.GetBucketRequest) request, + serviceImpl.getBucket((com.google.storage.v2.GetBucketRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_BUCKET: - serviceImpl.createBucket( - (com.google.storage.v2.CreateBucketRequest) request, + serviceImpl.createBucket((com.google.storage.v2.CreateBucketRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_BUCKETS: - serviceImpl.listBuckets( - (com.google.storage.v2.ListBucketsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listBuckets((com.google.storage.v2.ListBucketsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LOCK_BUCKET_RETENTION_POLICY: - serviceImpl.lockBucketRetentionPolicy( - (com.google.storage.v2.LockBucketRetentionPolicyRequest) request, + serviceImpl.lockBucketRetentionPolicy((com.google.storage.v2.LockBucketRetentionPolicyRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_IAM_POLICY: - serviceImpl.getIamPolicy( - (com.google.iam.v1.GetIamPolicyRequest) request, + serviceImpl.getIamPolicy((com.google.iam.v1.GetIamPolicyRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy( - (com.google.iam.v1.SetIamPolicyRequest) request, + serviceImpl.setIamPolicy((com.google.iam.v1.SetIamPolicyRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_TEST_IAM_PERMISSIONS: - serviceImpl.testIamPermissions( - (com.google.iam.v1.TestIamPermissionsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.testIamPermissions((com.google.iam.v1.TestIamPermissionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_BUCKET: - serviceImpl.updateBucket( - (com.google.storage.v2.UpdateBucketRequest) request, + serviceImpl.updateBucket((com.google.storage.v2.UpdateBucketRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_NOTIFICATION_CONFIG: - serviceImpl.deleteNotificationConfig( - (com.google.storage.v2.DeleteNotificationConfigRequest) request, + serviceImpl.deleteNotificationConfig((com.google.storage.v2.DeleteNotificationConfigRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_NOTIFICATION_CONFIG: - serviceImpl.getNotificationConfig( - (com.google.storage.v2.GetNotificationConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.getNotificationConfig((com.google.storage.v2.GetNotificationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_NOTIFICATION_CONFIG: - serviceImpl.createNotificationConfig( - (com.google.storage.v2.CreateNotificationConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.createNotificationConfig((com.google.storage.v2.CreateNotificationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_NOTIFICATION_CONFIGS: - serviceImpl.listNotificationConfigs( - (com.google.storage.v2.ListNotificationConfigsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listNotificationConfigs((com.google.storage.v2.ListNotificationConfigsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_COMPOSE_OBJECT: - serviceImpl.composeObject( - (com.google.storage.v2.ComposeObjectRequest) request, + serviceImpl.composeObject((com.google.storage.v2.ComposeObjectRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_OBJECT: - serviceImpl.deleteObject( - (com.google.storage.v2.DeleteObjectRequest) request, + serviceImpl.deleteObject((com.google.storage.v2.DeleteObjectRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_RESTORE_OBJECT: - serviceImpl.restoreObject( - (com.google.storage.v2.RestoreObjectRequest) request, + serviceImpl.restoreObject((com.google.storage.v2.RestoreObjectRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CANCEL_RESUMABLE_WRITE: - serviceImpl.cancelResumableWrite( - (com.google.storage.v2.CancelResumableWriteRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.cancelResumableWrite((com.google.storage.v2.CancelResumableWriteRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_OBJECT: - serviceImpl.getObject( - (com.google.storage.v2.GetObjectRequest) request, + serviceImpl.getObject((com.google.storage.v2.GetObjectRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_READ_OBJECT: - serviceImpl.readObject( - (com.google.storage.v2.ReadObjectRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.readObject((com.google.storage.v2.ReadObjectRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_OBJECT: - serviceImpl.updateObject( - (com.google.storage.v2.UpdateObjectRequest) request, + serviceImpl.updateObject((com.google.storage.v2.UpdateObjectRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_OBJECTS: - serviceImpl.listObjects( - (com.google.storage.v2.ListObjectsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listObjects((com.google.storage.v2.ListObjectsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_REWRITE_OBJECT: - serviceImpl.rewriteObject( - (com.google.storage.v2.RewriteObjectRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.rewriteObject((com.google.storage.v2.RewriteObjectRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_START_RESUMABLE_WRITE: - serviceImpl.startResumableWrite( - (com.google.storage.v2.StartResumableWriteRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.startResumableWrite((com.google.storage.v2.StartResumableWriteRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_QUERY_WRITE_STATUS: - serviceImpl.queryWriteStatus( - (com.google.storage.v2.QueryWriteStatusRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.queryWriteStatus((com.google.storage.v2.QueryWriteStatusRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_SERVICE_ACCOUNT: - serviceImpl.getServiceAccount( - (com.google.storage.v2.GetServiceAccountRequest) request, + serviceImpl.getServiceAccount((com.google.storage.v2.GetServiceAccountRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_HMAC_KEY: - serviceImpl.createHmacKey( - (com.google.storage.v2.CreateHmacKeyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.createHmacKey((com.google.storage.v2.CreateHmacKeyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_HMAC_KEY: - serviceImpl.deleteHmacKey( - (com.google.storage.v2.DeleteHmacKeyRequest) request, + serviceImpl.deleteHmacKey((com.google.storage.v2.DeleteHmacKeyRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_HMAC_KEY: - serviceImpl.getHmacKey( - (com.google.storage.v2.GetHmacKeyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.getHmacKey((com.google.storage.v2.GetHmacKeyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_HMAC_KEYS: - serviceImpl.listHmacKeys( - (com.google.storage.v2.ListHmacKeysRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listHmacKeys((com.google.storage.v2.ListHmacKeysRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_HMAC_KEY: - serviceImpl.updateHmacKey( - (com.google.storage.v2.UpdateHmacKeyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.updateHmacKey((com.google.storage.v2.UpdateHmacKeyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); @@ -3827,15 +2981,11 @@ public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_WRITE_OBJECT: - return (io.grpc.stub.StreamObserver) - serviceImpl.writeObject( - (io.grpc.stub.StreamObserver) - responseObserver); + return (io.grpc.stub.StreamObserver) serviceImpl.writeObject( + (io.grpc.stub.StreamObserver) responseObserver); case METHODID_BIDI_WRITE_OBJECT: - return (io.grpc.stub.StreamObserver) - serviceImpl.bidiWriteObject( - (io.grpc.stub.StreamObserver) - responseObserver); + return (io.grpc.stub.StreamObserver) serviceImpl.bidiWriteObject( + (io.grpc.stub.StreamObserver) responseObserver); default: throw new AssertionError(); } @@ -3845,210 +2995,234 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getDeleteBucketMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.DeleteBucketRequest, com.google.protobuf.Empty>( - service, METHODID_DELETE_BUCKET))) + getDeleteBucketMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.DeleteBucketRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_BUCKET))) .addMethod( - getGetBucketMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.GetBucketRequest, com.google.storage.v2.Bucket>( - service, METHODID_GET_BUCKET))) + getGetBucketMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.GetBucketRequest, + com.google.storage.v2.Bucket>( + service, METHODID_GET_BUCKET))) .addMethod( - getCreateBucketMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.CreateBucketRequest, com.google.storage.v2.Bucket>( - service, METHODID_CREATE_BUCKET))) + getCreateBucketMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.CreateBucketRequest, + com.google.storage.v2.Bucket>( + service, METHODID_CREATE_BUCKET))) .addMethod( - getListBucketsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.ListBucketsRequest, - com.google.storage.v2.ListBucketsResponse>(service, METHODID_LIST_BUCKETS))) + getListBucketsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.ListBucketsRequest, + com.google.storage.v2.ListBucketsResponse>( + service, METHODID_LIST_BUCKETS))) .addMethod( - getLockBucketRetentionPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.LockBucketRetentionPolicyRequest, - com.google.storage.v2.Bucket>(service, METHODID_LOCK_BUCKET_RETENTION_POLICY))) + getLockBucketRetentionPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.LockBucketRetentionPolicyRequest, + com.google.storage.v2.Bucket>( + service, METHODID_LOCK_BUCKET_RETENTION_POLICY))) .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers( - service, METHODID_GET_IAM_POLICY))) + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.GetIamPolicyRequest, + com.google.iam.v1.Policy>( + service, METHODID_GET_IAM_POLICY))) .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers( - service, METHODID_SET_IAM_POLICY))) + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.SetIamPolicyRequest, + com.google.iam.v1.Policy>( + service, METHODID_SET_IAM_POLICY))) .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - service, METHODID_TEST_IAM_PERMISSIONS))) + getTestIamPermissionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v1.TestIamPermissionsRequest, + com.google.iam.v1.TestIamPermissionsResponse>( + service, METHODID_TEST_IAM_PERMISSIONS))) .addMethod( - getUpdateBucketMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.UpdateBucketRequest, com.google.storage.v2.Bucket>( - service, METHODID_UPDATE_BUCKET))) + getUpdateBucketMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.UpdateBucketRequest, + com.google.storage.v2.Bucket>( + service, METHODID_UPDATE_BUCKET))) .addMethod( - getDeleteNotificationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.DeleteNotificationConfigRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_NOTIFICATION_CONFIG))) + getDeleteNotificationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.DeleteNotificationConfigRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_NOTIFICATION_CONFIG))) .addMethod( - getGetNotificationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.GetNotificationConfigRequest, - com.google.storage.v2.NotificationConfig>( - service, METHODID_GET_NOTIFICATION_CONFIG))) + getGetNotificationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.GetNotificationConfigRequest, + com.google.storage.v2.NotificationConfig>( + service, METHODID_GET_NOTIFICATION_CONFIG))) .addMethod( - getCreateNotificationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.CreateNotificationConfigRequest, - com.google.storage.v2.NotificationConfig>( - service, METHODID_CREATE_NOTIFICATION_CONFIG))) + getCreateNotificationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.CreateNotificationConfigRequest, + com.google.storage.v2.NotificationConfig>( + service, METHODID_CREATE_NOTIFICATION_CONFIG))) .addMethod( - getListNotificationConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.ListNotificationConfigsRequest, - com.google.storage.v2.ListNotificationConfigsResponse>( - service, METHODID_LIST_NOTIFICATION_CONFIGS))) + getListNotificationConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.ListNotificationConfigsRequest, + com.google.storage.v2.ListNotificationConfigsResponse>( + service, METHODID_LIST_NOTIFICATION_CONFIGS))) .addMethod( - getComposeObjectMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.ComposeObjectRequest, com.google.storage.v2.Object>( - service, METHODID_COMPOSE_OBJECT))) + getComposeObjectMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.ComposeObjectRequest, + com.google.storage.v2.Object>( + service, METHODID_COMPOSE_OBJECT))) .addMethod( - getDeleteObjectMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.DeleteObjectRequest, com.google.protobuf.Empty>( - service, METHODID_DELETE_OBJECT))) + getDeleteObjectMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.DeleteObjectRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_OBJECT))) .addMethod( - getRestoreObjectMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.RestoreObjectRequest, com.google.storage.v2.Object>( - service, METHODID_RESTORE_OBJECT))) + getRestoreObjectMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.RestoreObjectRequest, + com.google.storage.v2.Object>( + service, METHODID_RESTORE_OBJECT))) .addMethod( - getCancelResumableWriteMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.CancelResumableWriteRequest, - com.google.storage.v2.CancelResumableWriteResponse>( - service, METHODID_CANCEL_RESUMABLE_WRITE))) + getCancelResumableWriteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.CancelResumableWriteRequest, + com.google.storage.v2.CancelResumableWriteResponse>( + service, METHODID_CANCEL_RESUMABLE_WRITE))) .addMethod( - getGetObjectMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.GetObjectRequest, com.google.storage.v2.Object>( - service, METHODID_GET_OBJECT))) + getGetObjectMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.GetObjectRequest, + com.google.storage.v2.Object>( + service, METHODID_GET_OBJECT))) .addMethod( - getReadObjectMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - com.google.storage.v2.ReadObjectRequest, - com.google.storage.v2.ReadObjectResponse>(service, METHODID_READ_OBJECT))) + getReadObjectMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + com.google.storage.v2.ReadObjectRequest, + com.google.storage.v2.ReadObjectResponse>( + service, METHODID_READ_OBJECT))) .addMethod( - getUpdateObjectMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.UpdateObjectRequest, com.google.storage.v2.Object>( - service, METHODID_UPDATE_OBJECT))) + getUpdateObjectMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.UpdateObjectRequest, + com.google.storage.v2.Object>( + service, METHODID_UPDATE_OBJECT))) .addMethod( - getWriteObjectMethod(), - io.grpc.stub.ServerCalls.asyncClientStreamingCall( - new MethodHandlers< - com.google.storage.v2.WriteObjectRequest, - com.google.storage.v2.WriteObjectResponse>(service, METHODID_WRITE_OBJECT))) + getWriteObjectMethod(), + io.grpc.stub.ServerCalls.asyncClientStreamingCall( + new MethodHandlers< + com.google.storage.v2.WriteObjectRequest, + com.google.storage.v2.WriteObjectResponse>( + service, METHODID_WRITE_OBJECT))) .addMethod( - getBidiWriteObjectMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.storage.v2.BidiWriteObjectRequest, - com.google.storage.v2.BidiWriteObjectResponse>( - service, METHODID_BIDI_WRITE_OBJECT))) + getBidiWriteObjectMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.storage.v2.BidiWriteObjectRequest, + com.google.storage.v2.BidiWriteObjectResponse>( + service, METHODID_BIDI_WRITE_OBJECT))) .addMethod( - getListObjectsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.ListObjectsRequest, - com.google.storage.v2.ListObjectsResponse>(service, METHODID_LIST_OBJECTS))) + getListObjectsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.ListObjectsRequest, + com.google.storage.v2.ListObjectsResponse>( + service, METHODID_LIST_OBJECTS))) .addMethod( - getRewriteObjectMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.RewriteObjectRequest, - com.google.storage.v2.RewriteResponse>(service, METHODID_REWRITE_OBJECT))) + getRewriteObjectMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.RewriteObjectRequest, + com.google.storage.v2.RewriteResponse>( + service, METHODID_REWRITE_OBJECT))) .addMethod( - getStartResumableWriteMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.StartResumableWriteRequest, - com.google.storage.v2.StartResumableWriteResponse>( - service, METHODID_START_RESUMABLE_WRITE))) + getStartResumableWriteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.StartResumableWriteRequest, + com.google.storage.v2.StartResumableWriteResponse>( + service, METHODID_START_RESUMABLE_WRITE))) .addMethod( - getQueryWriteStatusMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.QueryWriteStatusRequest, - com.google.storage.v2.QueryWriteStatusResponse>( - service, METHODID_QUERY_WRITE_STATUS))) + getQueryWriteStatusMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.QueryWriteStatusRequest, + com.google.storage.v2.QueryWriteStatusResponse>( + service, METHODID_QUERY_WRITE_STATUS))) .addMethod( - getGetServiceAccountMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.GetServiceAccountRequest, - com.google.storage.v2.ServiceAccount>(service, METHODID_GET_SERVICE_ACCOUNT))) + getGetServiceAccountMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.GetServiceAccountRequest, + com.google.storage.v2.ServiceAccount>( + service, METHODID_GET_SERVICE_ACCOUNT))) .addMethod( - getCreateHmacKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.CreateHmacKeyRequest, - com.google.storage.v2.CreateHmacKeyResponse>( - service, METHODID_CREATE_HMAC_KEY))) + getCreateHmacKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.CreateHmacKeyRequest, + com.google.storage.v2.CreateHmacKeyResponse>( + service, METHODID_CREATE_HMAC_KEY))) .addMethod( - getDeleteHmacKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.DeleteHmacKeyRequest, com.google.protobuf.Empty>( - service, METHODID_DELETE_HMAC_KEY))) + getDeleteHmacKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.DeleteHmacKeyRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_HMAC_KEY))) .addMethod( - getGetHmacKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.GetHmacKeyRequest, com.google.storage.v2.HmacKeyMetadata>( - service, METHODID_GET_HMAC_KEY))) + getGetHmacKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.GetHmacKeyRequest, + com.google.storage.v2.HmacKeyMetadata>( + service, METHODID_GET_HMAC_KEY))) .addMethod( - getListHmacKeysMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.ListHmacKeysRequest, - com.google.storage.v2.ListHmacKeysResponse>(service, METHODID_LIST_HMAC_KEYS))) + getListHmacKeysMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.ListHmacKeysRequest, + com.google.storage.v2.ListHmacKeysResponse>( + service, METHODID_LIST_HMAC_KEYS))) .addMethod( - getUpdateHmacKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.UpdateHmacKeyRequest, - com.google.storage.v2.HmacKeyMetadata>(service, METHODID_UPDATE_HMAC_KEY))) + getUpdateHmacKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.UpdateHmacKeyRequest, + com.google.storage.v2.HmacKeyMetadata>( + service, METHODID_UPDATE_HMAC_KEY))) .build(); } - private abstract static class StorageBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class StorageBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { StorageBaseDescriptorSupplier() {} @java.lang.Override @@ -4062,11 +3236,13 @@ public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() } } - private static final class StorageFileDescriptorSupplier extends StorageBaseDescriptorSupplier { + private static final class StorageFileDescriptorSupplier + extends StorageBaseDescriptorSupplier { StorageFileDescriptorSupplier() {} } - private static final class StorageMethodDescriptorSupplier extends StorageBaseDescriptorSupplier + private static final class StorageMethodDescriptorSupplier + extends StorageBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; @@ -4088,43 +3264,41 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (StorageGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new StorageFileDescriptorSupplier()) - .addMethod(getDeleteBucketMethod()) - .addMethod(getGetBucketMethod()) - .addMethod(getCreateBucketMethod()) - .addMethod(getListBucketsMethod()) - .addMethod(getLockBucketRetentionPolicyMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .addMethod(getUpdateBucketMethod()) - .addMethod(getDeleteNotificationConfigMethod()) - .addMethod(getGetNotificationConfigMethod()) - .addMethod(getCreateNotificationConfigMethod()) - .addMethod(getListNotificationConfigsMethod()) - .addMethod(getComposeObjectMethod()) - .addMethod(getDeleteObjectMethod()) - .addMethod(getRestoreObjectMethod()) - .addMethod(getCancelResumableWriteMethod()) - .addMethod(getGetObjectMethod()) - .addMethod(getReadObjectMethod()) - .addMethod(getUpdateObjectMethod()) - .addMethod(getWriteObjectMethod()) - .addMethod(getBidiWriteObjectMethod()) - .addMethod(getListObjectsMethod()) - .addMethod(getRewriteObjectMethod()) - .addMethod(getStartResumableWriteMethod()) - .addMethod(getQueryWriteStatusMethod()) - .addMethod(getGetServiceAccountMethod()) - .addMethod(getCreateHmacKeyMethod()) - .addMethod(getDeleteHmacKeyMethod()) - .addMethod(getGetHmacKeyMethod()) - .addMethod(getListHmacKeysMethod()) - .addMethod(getUpdateHmacKeyMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new StorageFileDescriptorSupplier()) + .addMethod(getDeleteBucketMethod()) + .addMethod(getGetBucketMethod()) + .addMethod(getCreateBucketMethod()) + .addMethod(getListBucketsMethod()) + .addMethod(getLockBucketRetentionPolicyMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getSetIamPolicyMethod()) + .addMethod(getTestIamPermissionsMethod()) + .addMethod(getUpdateBucketMethod()) + .addMethod(getDeleteNotificationConfigMethod()) + .addMethod(getGetNotificationConfigMethod()) + .addMethod(getCreateNotificationConfigMethod()) + .addMethod(getListNotificationConfigsMethod()) + .addMethod(getComposeObjectMethod()) + .addMethod(getDeleteObjectMethod()) + .addMethod(getRestoreObjectMethod()) + .addMethod(getCancelResumableWriteMethod()) + .addMethod(getGetObjectMethod()) + .addMethod(getReadObjectMethod()) + .addMethod(getUpdateObjectMethod()) + .addMethod(getWriteObjectMethod()) + .addMethod(getBidiWriteObjectMethod()) + .addMethod(getListObjectsMethod()) + .addMethod(getRewriteObjectMethod()) + .addMethod(getStartResumableWriteMethod()) + .addMethod(getQueryWriteStatusMethod()) + .addMethod(getGetServiceAccountMethod()) + .addMethod(getCreateHmacKeyMethod()) + .addMethod(getDeleteHmacKeyMethod()) + .addMethod(getGetHmacKeyMethod()) + .addMethod(getListHmacKeysMethod()) + .addMethod(getUpdateHmacKeyMethod()) + .build(); } } } diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/BucketName.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/BucketName.java similarity index 100% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/BucketName.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/BucketName.java diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadata.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadata.java similarity index 66% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadata.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadata.java index c5d0bb3ced..930f8dc7cc 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadata.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadata.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto @@ -20,8 +5,6 @@ package com.google.storage.control.v2; /** - * - * *
              * The message contains metadata that is common to all Storage Control
              * long-running operations, present in its `google.longrunning.Operation`
            @@ -30,55 +13,48 @@
              *
              * Protobuf type {@code google.storage.control.v2.CommonLongRunningOperationMetadata}
              */
            -public final class CommonLongRunningOperationMetadata extends com.google.protobuf.GeneratedMessageV3
            -    implements
            +public final class CommonLongRunningOperationMetadata extends
            +    com.google.protobuf.GeneratedMessageV3 implements
                 // @@protoc_insertion_point(message_implements:google.storage.control.v2.CommonLongRunningOperationMetadata)
                 CommonLongRunningOperationMetadataOrBuilder {
            -  private static final long serialVersionUID = 0L;
            +private static final long serialVersionUID = 0L;
               // Use CommonLongRunningOperationMetadata.newBuilder() to construct.
            -  private CommonLongRunningOperationMetadata(
            -      com.google.protobuf.GeneratedMessageV3.Builder builder) {
            +  private CommonLongRunningOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                 super(builder);
               }
            -
               private CommonLongRunningOperationMetadata() {
                 type_ = "";
               }
             
               @java.lang.Override
               @SuppressWarnings({"unused"})
            -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
            +  protected java.lang.Object newInstance(
            +      UnusedPrivateParameter unused) {
                 return new CommonLongRunningOperationMetadata();
               }
             
            -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            -    return com.google.storage.control.v2.StorageControlProto
            -        .internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_descriptor;
            +  public static final com.google.protobuf.Descriptors.Descriptor
            +      getDescriptor() {
            +    return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_descriptor;
               }
             
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
            -    return com.google.storage.control.v2.StorageControlProto
            -        .internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_fieldAccessorTable
            +    return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
            -            com.google.storage.control.v2.CommonLongRunningOperationMetadata.class,
            -            com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder.class);
            +            com.google.storage.control.v2.CommonLongRunningOperationMetadata.class, com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder.class);
               }
             
               private int bitField0_;
               public static final int CREATE_TIME_FIELD_NUMBER = 1;
               private com.google.protobuf.Timestamp createTime_;
               /**
            -   *
            -   *
                * 
                * Output only. The time the operation was created.
                * 
            * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -86,15 +62,11 @@ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * Output only. The time the operation was created.
                * 
            * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -102,14 +74,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
                * Output only. The time the operation was created.
                * 
            * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -119,15 +88,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
                * Output only. The time the operation finished running.
                * 
            * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -135,15 +100,11 @@ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                * Output only. The time the operation finished running.
                * 
            * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -151,14 +112,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
                * Output only. The time the operation finished running.
                * 
            * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -168,15 +126,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
                * Output only. The time the operation was last modified.
                * 
            * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -184,15 +138,11 @@ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
                * Output only. The time the operation was last modified.
                * 
            * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -200,14 +150,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
                * Output only. The time the operation was last modified.
                * 
            * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -215,18 +162,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int TYPE_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object type_ = ""; /** - * - * *
                * Output only. The type of operation invoked.
                * 
            * * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The type. */ @java.lang.Override @@ -235,29 +178,29 @@ public java.lang.String getType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** - * - * *
                * Output only. The type of operation invoked.
                * 
            * * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString getTypeBytes() { + public com.google.protobuf.ByteString + getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); type_ = b; return b; } else { @@ -268,14 +211,11 @@ public com.google.protobuf.ByteString getTypeBytes() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 5; private boolean requestedCancellation_ = false; /** - * - * *
                * Output only. Identifies whether the user has requested cancellation.
                * 
            * * bool requested_cancellation = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -286,15 +226,12 @@ public boolean getRequestedCancellation() { public static final int PROGRESS_PERCENT_FIELD_NUMBER = 6; private int progressPercent_ = 0; /** - * - * *
                * Output only. The estimated progress of the operation in percentage [0,
                * 100]. The value -1 means the progress is unknown.
                * 
            * * int32 progress_percent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The progressPercent. */ @java.lang.Override @@ -303,7 +240,6 @@ public int getProgressPercent() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -315,7 +251,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCreateTime()); } @@ -344,22 +281,27 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, type_); } if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, requestedCancellation_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, requestedCancellation_); } if (progressPercent_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, progressPercent_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, progressPercent_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -369,29 +311,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.control.v2.CommonLongRunningOperationMetadata)) { return super.equals(obj); } - com.google.storage.control.v2.CommonLongRunningOperationMetadata other = - (com.google.storage.control.v2.CommonLongRunningOperationMetadata) obj; + com.google.storage.control.v2.CommonLongRunningOperationMetadata other = (com.google.storage.control.v2.CommonLongRunningOperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!getType().equals(other.getType())) return false; - if (getRequestedCancellation() != other.getRequestedCancellation()) return false; - if (getProgressPercent() != other.getProgressPercent()) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!getType() + .equals(other.getType())) return false; + if (getRequestedCancellation() + != other.getRequestedCancellation()) return false; + if (getProgressPercent() + != other.getProgressPercent()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -418,7 +365,8 @@ public int hashCode() { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRequestedCancellation()); hash = (37 * hash) + PROGRESS_PERCENT_FIELD_NUMBER; hash = (53 * hash) + getProgressPercent(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -427,104 +375,98 @@ public int hashCode() { } public static com.google.storage.control.v2.CommonLongRunningOperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.CommonLongRunningOperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.CommonLongRunningOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.CommonLongRunningOperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.control.v2.CommonLongRunningOperationMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.storage.control.v2.CommonLongRunningOperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.CommonLongRunningOperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.control.v2.CommonLongRunningOperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.control.v2.CommonLongRunningOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.CommonLongRunningOperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.CommonLongRunningOperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.CommonLongRunningOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.CommonLongRunningOperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.CommonLongRunningOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.CommonLongRunningOperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.storage.control.v2.CommonLongRunningOperationMetadata prototype) { + public static Builder newBuilder(com.google.storage.control.v2.CommonLongRunningOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * The message contains metadata that is common to all Storage Control
                * long-running operations, present in its `google.longrunning.Operation`
            @@ -533,23 +475,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
                *
                * Protobuf type {@code google.storage.control.v2.CommonLongRunningOperationMetadata}
                */
            -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
            -      implements
            +  public static final class Builder extends
            +      com.google.protobuf.GeneratedMessageV3.Builder implements
                   // @@protoc_insertion_point(builder_implements:google.storage.control.v2.CommonLongRunningOperationMetadata)
                   com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder {
            -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            -      return com.google.storage.control.v2.StorageControlProto
            -          .internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_descriptor;
            +    public static final com.google.protobuf.Descriptors.Descriptor
            +        getDescriptor() {
            +      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_descriptor;
                 }
             
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
            -      return com.google.storage.control.v2.StorageControlProto
            -          .internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_fieldAccessorTable
            +      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
            -              com.google.storage.control.v2.CommonLongRunningOperationMetadata.class,
            -              com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder.class);
            +              com.google.storage.control.v2.CommonLongRunningOperationMetadata.class, com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder.class);
                 }
             
                 // Construct using com.google.storage.control.v2.CommonLongRunningOperationMetadata.newBuilder()
            @@ -557,19 +497,19 @@ 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) {
                     getCreateTimeFieldBuilder();
                     getEndTimeFieldBuilder();
                     getUpdateTimeFieldBuilder();
                   }
                 }
            -
                 @java.lang.Override
                 public Builder clear() {
                   super.clear();
            @@ -596,14 +536,13 @@ public Builder clear() {
                 }
             
                 @java.lang.Override
            -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            -      return com.google.storage.control.v2.StorageControlProto
            -          .internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_descriptor;
            +    public com.google.protobuf.Descriptors.Descriptor
            +        getDescriptorForType() {
            +      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_descriptor;
                 }
             
                 @java.lang.Override
            -    public com.google.storage.control.v2.CommonLongRunningOperationMetadata
            -        getDefaultInstanceForType() {
            +    public com.google.storage.control.v2.CommonLongRunningOperationMetadata getDefaultInstanceForType() {
                   return com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance();
                 }
             
            @@ -618,29 +557,31 @@ public com.google.storage.control.v2.CommonLongRunningOperationMetadata build()
             
                 @java.lang.Override
                 public com.google.storage.control.v2.CommonLongRunningOperationMetadata buildPartial() {
            -      com.google.storage.control.v2.CommonLongRunningOperationMetadata result =
            -          new com.google.storage.control.v2.CommonLongRunningOperationMetadata(this);
            -      if (bitField0_ != 0) {
            -        buildPartial0(result);
            -      }
            +      com.google.storage.control.v2.CommonLongRunningOperationMetadata result = new com.google.storage.control.v2.CommonLongRunningOperationMetadata(this);
            +      if (bitField0_ != 0) { buildPartial0(result); }
                   onBuilt();
                   return result;
                 }
             
            -    private void buildPartial0(
            -        com.google.storage.control.v2.CommonLongRunningOperationMetadata result) {
            +    private void buildPartial0(com.google.storage.control.v2.CommonLongRunningOperationMetadata result) {
                   int from_bitField0_ = bitField0_;
                   int to_bitField0_ = 0;
                   if (((from_bitField0_ & 0x00000001) != 0)) {
            -        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
            +        result.createTime_ = createTimeBuilder_ == null
            +            ? createTime_
            +            : createTimeBuilder_.build();
                     to_bitField0_ |= 0x00000001;
                   }
                   if (((from_bitField0_ & 0x00000002) != 0)) {
            -        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
            +        result.endTime_ = endTimeBuilder_ == null
            +            ? endTime_
            +            : endTimeBuilder_.build();
                     to_bitField0_ |= 0x00000002;
                   }
                   if (((from_bitField0_ & 0x00000004) != 0)) {
            -        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
            +        result.updateTime_ = updateTimeBuilder_ == null
            +            ? updateTime_
            +            : updateTimeBuilder_.build();
                     to_bitField0_ |= 0x00000004;
                   }
                   if (((from_bitField0_ & 0x00000008) != 0)) {
            @@ -659,50 +600,46 @@ private void buildPartial0(
                 public Builder clone() {
                   return super.clone();
                 }
            -
                 @java.lang.Override
                 public Builder setField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field,
            +        java.lang.Object value) {
                   return super.setField(field, value);
                 }
            -
                 @java.lang.Override
            -    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
            +    public Builder clearField(
            +        com.google.protobuf.Descriptors.FieldDescriptor field) {
                   return super.clearField(field);
                 }
            -
                 @java.lang.Override
            -    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
            +    public Builder clearOneof(
            +        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                   return super.clearOneof(oneof);
                 }
            -
                 @java.lang.Override
                 public Builder setRepeatedField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field,
            +        int index, java.lang.Object value) {
                   return super.setRepeatedField(field, index, value);
                 }
            -
                 @java.lang.Override
                 public Builder addRepeatedField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field,
            +        java.lang.Object value) {
                   return super.addRepeatedField(field, value);
                 }
            -
                 @java.lang.Override
                 public Builder mergeFrom(com.google.protobuf.Message other) {
                   if (other instanceof com.google.storage.control.v2.CommonLongRunningOperationMetadata) {
            -        return mergeFrom((com.google.storage.control.v2.CommonLongRunningOperationMetadata) other);
            +        return mergeFrom((com.google.storage.control.v2.CommonLongRunningOperationMetadata)other);
                   } else {
                     super.mergeFrom(other);
                     return this;
                   }
                 }
             
            -    public Builder mergeFrom(
            -        com.google.storage.control.v2.CommonLongRunningOperationMetadata other) {
            -      if (other
            -          == com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance())
            -        return this;
            +    public Builder mergeFrom(com.google.storage.control.v2.CommonLongRunningOperationMetadata other) {
            +      if (other == com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance()) return this;
                   if (other.hasCreateTime()) {
                     mergeCreateTime(other.getCreateTime());
                   }
            @@ -749,49 +686,48 @@ public Builder mergeFrom(
                         case 0:
                           done = true;
                           break;
            -            case 10:
            -              {
            -                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
            -                bitField0_ |= 0x00000001;
            -                break;
            -              } // case 10
            -            case 18:
            -              {
            -                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
            -                bitField0_ |= 0x00000002;
            -                break;
            -              } // case 18
            -            case 26:
            -              {
            -                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
            -                bitField0_ |= 0x00000004;
            -                break;
            -              } // case 26
            -            case 34:
            -              {
            -                type_ = input.readStringRequireUtf8();
            -                bitField0_ |= 0x00000008;
            -                break;
            -              } // case 34
            -            case 40:
            -              {
            -                requestedCancellation_ = input.readBool();
            -                bitField0_ |= 0x00000010;
            -                break;
            -              } // case 40
            -            case 48:
            -              {
            -                progressPercent_ = input.readInt32();
            -                bitField0_ |= 0x00000020;
            -                break;
            -              } // case 48
            -            default:
            -              {
            -                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            -                  done = true; // was an endgroup tag
            -                }
            -                break;
            -              } // default:
            +            case 10: {
            +              input.readMessage(
            +                  getCreateTimeFieldBuilder().getBuilder(),
            +                  extensionRegistry);
            +              bitField0_ |= 0x00000001;
            +              break;
            +            } // case 10
            +            case 18: {
            +              input.readMessage(
            +                  getEndTimeFieldBuilder().getBuilder(),
            +                  extensionRegistry);
            +              bitField0_ |= 0x00000002;
            +              break;
            +            } // case 18
            +            case 26: {
            +              input.readMessage(
            +                  getUpdateTimeFieldBuilder().getBuilder(),
            +                  extensionRegistry);
            +              bitField0_ |= 0x00000004;
            +              break;
            +            } // case 26
            +            case 34: {
            +              type_ = input.readStringRequireUtf8();
            +              bitField0_ |= 0x00000008;
            +              break;
            +            } // case 34
            +            case 40: {
            +              requestedCancellation_ = input.readBool();
            +              bitField0_ |= 0x00000010;
            +              break;
            +            } // case 40
            +            case 48: {
            +              progressPercent_ = input.readInt32();
            +              bitField0_ |= 0x00000020;
            +              break;
            +            } // case 48
            +            default: {
            +              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            +                done = true; // was an endgroup tag
            +              }
            +              break;
            +            } // default:
                       } // switch (tag)
                     } // while (!done)
                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            @@ -801,63 +737,43 @@ public Builder mergeFrom(
                   } // finally
                   return this;
                 }
            -
                 private int bitField0_;
             
                 private com.google.protobuf.Timestamp createTime_;
                 private com.google.protobuf.SingleFieldBuilderV3<
            -            com.google.protobuf.Timestamp,
            -            com.google.protobuf.Timestamp.Builder,
            -            com.google.protobuf.TimestampOrBuilder>
            -        createTimeBuilder_;
            +        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
                 /**
            -     *
            -     *
                  * 
                  * Output only. The time the operation was created.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                  * Output only. The time the operation was created.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
                  * Output only. The time the operation was created.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -873,17 +789,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                  * Output only. The time the operation was created.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -894,21 +807,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
                  * Output only. The time the operation was created.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -923,15 +832,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                  * Output only. The time the operation was created.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000001); @@ -944,15 +849,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
                  * Output only. The time the operation was created.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000001; @@ -960,48 +861,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
                  * Output only. The time the operation was created.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
                  * Output only. The time the operation was created.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1009,35 +898,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
                  * Output only. The time the operation finished running.
                  * 
            * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                  * Output only. The time the operation finished running.
                  * 
            * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1048,14 +926,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
                  * Output only. The time the operation finished running.
                  * 
            * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1071,16 +946,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                  * Output only. The time the operation finished running.
                  * 
            * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1091,20 +964,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
                  * Output only. The time the operation finished running.
                  * 
            * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1119,14 +989,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                  * Output only. The time the operation finished running.
                  * 
            * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1139,14 +1006,11 @@ public Builder clearEndTime() { return this; } /** - * - * *
                  * Output only. The time the operation finished running.
                  * 
            * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000002; @@ -1154,44 +1018,36 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
                  * Output only. The time the operation finished running.
                  * 
            * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
                  * Output only. The time the operation finished running.
                  * 
            * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1199,58 +1055,39 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
                  * Output only. The time the operation was last modified.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
                  * Output only. The time the operation was last modified.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
                  * Output only. The time the operation was last modified.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1266,17 +1103,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                  * Output only. The time the operation was last modified.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1287,21 +1121,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
                  * Output only. The time the operation was last modified.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1316,15 +1146,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                  * Output only. The time the operation was last modified.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1337,15 +1163,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
                  * Output only. The time the operation was last modified.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000004; @@ -1353,48 +1175,36 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
                  * Output only. The time the operation was last modified.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
                  * Output only. The time the operation was last modified.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -1402,20 +1212,18 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object type_ = ""; /** - * - * *
                  * Output only. The type of operation invoked.
                  * 
            * * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -1424,21 +1232,20 @@ public java.lang.String getType() { } } /** - * - * *
                  * Output only. The type of operation invoked.
                  * 
            * * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for type. */ - public com.google.protobuf.ByteString getTypeBytes() { + public com.google.protobuf.ByteString + getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); type_ = b; return b; } else { @@ -1446,35 +1253,28 @@ public com.google.protobuf.ByteString getTypeBytes() { } } /** - * - * *
                  * Output only. The type of operation invoked.
                  * 
            * * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } type_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
                  * Output only. The type of operation invoked.
                  * 
            * * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearType() { @@ -1484,21 +1284,17 @@ public Builder clearType() { return this; } /** - * - * *
                  * Output only. The type of operation invoked.
                  * 
            * * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); type_ = value; bitField0_ |= 0x00000008; @@ -1506,16 +1302,13 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) { return this; } - private boolean requestedCancellation_; + private boolean requestedCancellation_ ; /** - * - * *
                  * Output only. Identifies whether the user has requested cancellation.
                  * 
            * * bool requested_cancellation = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -1523,14 +1316,11 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** - * - * *
                  * Output only. Identifies whether the user has requested cancellation.
                  * 
            * * bool requested_cancellation = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The requestedCancellation to set. * @return This builder for chaining. */ @@ -1542,14 +1332,11 @@ public Builder setRequestedCancellation(boolean value) { return this; } /** - * - * *
                  * Output only. Identifies whether the user has requested cancellation.
                  * 
            * * bool requested_cancellation = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { @@ -1559,17 +1346,14 @@ public Builder clearRequestedCancellation() { return this; } - private int progressPercent_; + private int progressPercent_ ; /** - * - * *
                  * Output only. The estimated progress of the operation in percentage [0,
                  * 100]. The value -1 means the progress is unknown.
                  * 
            * * int32 progress_percent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The progressPercent. */ @java.lang.Override @@ -1577,15 +1361,12 @@ public int getProgressPercent() { return progressPercent_; } /** - * - * *
                  * Output only. The estimated progress of the operation in percentage [0,
                  * 100]. The value -1 means the progress is unknown.
                  * 
            * * int32 progress_percent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The progressPercent to set. * @return This builder for chaining. */ @@ -1597,15 +1378,12 @@ public Builder setProgressPercent(int value) { return this; } /** - * - * *
                  * Output only. The estimated progress of the operation in percentage [0,
                  * 100]. The value -1 means the progress is unknown.
                  * 
            * * int32 progress_percent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearProgressPercent() { @@ -1614,9 +1392,9 @@ public Builder clearProgressPercent() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1626,43 +1404,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.control.v2.CommonLongRunningOperationMetadata) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.CommonLongRunningOperationMetadata) - private static final com.google.storage.control.v2.CommonLongRunningOperationMetadata - DEFAULT_INSTANCE; - + private static final com.google.storage.control.v2.CommonLongRunningOperationMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.storage.control.v2.CommonLongRunningOperationMetadata(); } - public static com.google.storage.control.v2.CommonLongRunningOperationMetadata - getDefaultInstance() { + public static com.google.storage.control.v2.CommonLongRunningOperationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommonLongRunningOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommonLongRunningOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1674,8 +1450,9 @@ public com.google.protobuf.Parser getParserF } @java.lang.Override - public com.google.storage.control.v2.CommonLongRunningOperationMetadata - getDefaultInstanceForType() { + public com.google.storage.control.v2.CommonLongRunningOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadataOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadataOrBuilder.java similarity index 72% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadataOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadataOrBuilder.java index e203b7dacb..de060a9a9e 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadataOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadataOrBuilder.java @@ -1,191 +1,131 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto // Protobuf Java Version: 3.25.3 package com.google.storage.control.v2; -public interface CommonLongRunningOperationMetadataOrBuilder - extends +public interface CommonLongRunningOperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.CommonLongRunningOperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
                * Output only. The time the operation was created.
                * 
            * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
                * Output only. The time the operation was created.
                * 
            * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
                * Output only. The time the operation was created.
                * 
            * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
                * Output only. The time the operation finished running.
                * 
            * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
                * Output only. The time the operation finished running.
                * 
            * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
                * Output only. The time the operation finished running.
                * 
            * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
                * Output only. The time the operation was last modified.
                * 
            * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
                * Output only. The time the operation was last modified.
                * 
            * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
                * Output only. The time the operation was last modified.
                * 
            * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
                * Output only. The type of operation invoked.
                * 
            * * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The type. */ java.lang.String getType(); /** - * - * *
                * Output only. The type of operation invoked.
                * 
            * * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for type. */ - com.google.protobuf.ByteString getTypeBytes(); + com.google.protobuf.ByteString + getTypeBytes(); /** - * - * *
                * Output only. Identifies whether the user has requested cancellation.
                * 
            * * bool requested_cancellation = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** - * - * *
                * Output only. The estimated progress of the operation in percentage [0,
                * 100]. The value -1 means the progress is unknown.
                * 
            * * int32 progress_percent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The progressPercent. */ int getProgressPercent(); diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateFolderRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateFolderRequest.java similarity index 69% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateFolderRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateFolderRequest.java index 0686e2ed6c..9a12506c9d 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateFolderRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateFolderRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto @@ -20,26 +5,22 @@ package com.google.storage.control.v2; /** - * - * *
              * Request message for CreateFolder. This operation is only applicable to a
              * hierarchical namespace enabled bucket.
            - * Hierarchical namespace buckets are in allowlist preview.
              * 
            * * Protobuf type {@code google.storage.control.v2.CreateFolderRequest} */ -public final class CreateFolderRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateFolderRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.CreateFolderRequest) CreateFolderRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateFolderRequest.newBuilder() to construct. private CreateFolderRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateFolderRequest() { parent_ = ""; folderId_ = ""; @@ -48,42 +29,35 @@ private CreateFolderRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateFolderRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_CreateFolderRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CreateFolderRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_CreateFolderRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CreateFolderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.CreateFolderRequest.class, - com.google.storage.control.v2.CreateFolderRequest.Builder.class); + com.google.storage.control.v2.CreateFolderRequest.class, com.google.storage.control.v2.CreateFolderRequest.Builder.class); } private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
                * Required. Name of the bucket in which the folder will reside. The bucket
                * must be a hierarchical namespace enabled 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,32 +66,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
                * Required. Name of the bucket in which the folder will reside. The bucket
                * must be a hierarchical namespace enabled 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 { @@ -128,8 +100,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FOLDER_FIELD_NUMBER = 2; private com.google.storage.control.v2.Folder folder_; /** - * - * *
                * Required. Properties of the new folder being created.
                * The bucket and name of the folder are specified in the parent and folder_id
            @@ -137,9 +107,7 @@ public com.google.protobuf.ByteString getParentBytes() {
                * error.
                * 
            * - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the folder field is set. */ @java.lang.Override @@ -147,8 +115,6 @@ public boolean hasFolder() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * Required. Properties of the new folder being created.
                * The bucket and name of the folder are specified in the parent and folder_id
            @@ -156,9 +122,7 @@ public boolean hasFolder() {
                * error.
                * 
            * - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The folder. */ @java.lang.Override @@ -166,8 +130,6 @@ public com.google.storage.control.v2.Folder getFolder() { return folder_ == null ? com.google.storage.control.v2.Folder.getDefaultInstance() : folder_; } /** - * - * *
                * Required. Properties of the new folder being created.
                * The bucket and name of the folder are specified in the parent and folder_id
            @@ -175,8 +137,7 @@ public com.google.storage.control.v2.Folder getFolder() {
                * error.
                * 
            * - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.storage.control.v2.FolderOrBuilder getFolderOrBuilder() { @@ -184,12 +145,9 @@ public com.google.storage.control.v2.FolderOrBuilder getFolderOrBuilder() { } public static final int FOLDER_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object folderId_ = ""; /** - * - * *
                * Required. The full name of a folder, including all its parent folders.
                * Folders use single '/' characters as a delimiter.
            @@ -199,7 +157,6 @@ public com.google.storage.control.v2.FolderOrBuilder getFolderOrBuilder() {
                * 
            * * string folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The folderId. */ @java.lang.Override @@ -208,15 +165,14 @@ public java.lang.String getFolderId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); folderId_ = s; return s; } } /** - * - * *
                * Required. The full name of a folder, including all its parent folders.
                * Folders use single '/' characters as a delimiter.
            @@ -226,15 +182,16 @@ public java.lang.String getFolderId() {
                * 
            * * string folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for folderId. */ @java.lang.Override - public com.google.protobuf.ByteString getFolderIdBytes() { + public com.google.protobuf.ByteString + getFolderIdBytes() { java.lang.Object ref = folderId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); folderId_ = b; return b; } else { @@ -245,15 +202,12 @@ public com.google.protobuf.ByteString getFolderIdBytes() { public static final int RECURSIVE_FIELD_NUMBER = 4; private boolean recursive_ = false; /** - * - * *
                * Optional. If true, parent folder doesn't have to be present and all missing
                * ancestor folders will be created atomically.
                * 
            * * bool recursive = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The recursive. */ @java.lang.Override @@ -262,21 +216,15 @@ public boolean getRecursive() { } public static final int REQUEST_ID_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ @java.lang.Override @@ -285,32 +233,30 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -319,7 +265,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -331,7 +276,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_); } @@ -360,13 +306,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFolder()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getFolder()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, folderId_); } if (recursive_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, recursive_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, recursive_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, requestId_); @@ -379,22 +327,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.control.v2.CreateFolderRequest)) { return super.equals(obj); } - com.google.storage.control.v2.CreateFolderRequest other = - (com.google.storage.control.v2.CreateFolderRequest) obj; + com.google.storage.control.v2.CreateFolderRequest other = (com.google.storage.control.v2.CreateFolderRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasFolder() != other.hasFolder()) return false; if (hasFolder()) { - if (!getFolder().equals(other.getFolder())) return false; - } - if (!getFolderId().equals(other.getFolderId())) return false; - if (getRecursive() != other.getRecursive()) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getFolder() + .equals(other.getFolder())) return false; + } + if (!getFolderId() + .equals(other.getFolderId())) return false; + if (getRecursive() + != other.getRecursive()) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -415,7 +367,8 @@ public int hashCode() { hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER; hash = (53 * hash) + getFolderId().hashCode(); hash = (37 * hash) + RECURSIVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecursive()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRecursive()); hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -424,128 +377,120 @@ public int hashCode() { } public static com.google.storage.control.v2.CreateFolderRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.CreateFolderRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.CreateFolderRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.CreateFolderRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.CreateFolderRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.CreateFolderRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.control.v2.CreateFolderRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.control.v2.CreateFolderRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.CreateFolderRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.CreateFolderRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.CreateFolderRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.CreateFolderRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.CreateFolderRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.CreateFolderRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.control.v2.CreateFolderRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * Request message for CreateFolder. This operation is only applicable to a
                * hierarchical namespace enabled bucket.
            -   * Hierarchical namespace buckets are in allowlist preview.
                * 
            * * Protobuf type {@code google.storage.control.v2.CreateFolderRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.control.v2.CreateFolderRequest) com.google.storage.control.v2.CreateFolderRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_CreateFolderRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CreateFolderRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_CreateFolderRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CreateFolderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.CreateFolderRequest.class, - com.google.storage.control.v2.CreateFolderRequest.Builder.class); + com.google.storage.control.v2.CreateFolderRequest.class, com.google.storage.control.v2.CreateFolderRequest.Builder.class); } // Construct using com.google.storage.control.v2.CreateFolderRequest.newBuilder() @@ -553,17 +498,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) { getFolderFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -581,9 +526,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_CreateFolderRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CreateFolderRequest_descriptor; } @java.lang.Override @@ -602,11 +547,8 @@ public com.google.storage.control.v2.CreateFolderRequest build() { @java.lang.Override public com.google.storage.control.v2.CreateFolderRequest buildPartial() { - com.google.storage.control.v2.CreateFolderRequest result = - new com.google.storage.control.v2.CreateFolderRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.control.v2.CreateFolderRequest result = new com.google.storage.control.v2.CreateFolderRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -618,7 +560,9 @@ private void buildPartial0(com.google.storage.control.v2.CreateFolderRequest res } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.folder_ = folderBuilder_ == null ? folder_ : folderBuilder_.build(); + result.folder_ = folderBuilder_ == null + ? folder_ + : folderBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -637,39 +581,38 @@ private void buildPartial0(com.google.storage.control.v2.CreateFolderRequest res public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.control.v2.CreateFolderRequest) { - return mergeFrom((com.google.storage.control.v2.CreateFolderRequest) other); + return mergeFrom((com.google.storage.control.v2.CreateFolderRequest)other); } else { super.mergeFrom(other); return this; @@ -677,8 +620,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.control.v2.CreateFolderRequest other) { - if (other == com.google.storage.control.v2.CreateFolderRequest.getDefaultInstance()) - return this; + if (other == com.google.storage.control.v2.CreateFolderRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -726,43 +668,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getFolderFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - folderId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - recursive_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getFolderFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + folderId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + recursive_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -772,28 +710,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
                  * Required. Name of the bucket in which the folder will reside. The bucket
                  * must be a hierarchical namespace enabled 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; @@ -802,24 +735,21 @@ public java.lang.String getParent() { } } /** - * - * *
                  * Required. Name of the bucket in which the folder will reside. The bucket
                  * must be a hierarchical namespace enabled 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 { @@ -827,41 +757,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
                  * Required. Name of the bucket in which the folder will reside. The bucket
                  * must be a hierarchical namespace enabled 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 the bucket in which the folder will reside. The bucket
                  * must be a hierarchical namespace enabled 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() { @@ -871,24 +790,18 @@ public Builder clearParent() { return this; } /** - * - * *
                  * Required. Name of the bucket in which the folder will reside. The bucket
                  * must be a hierarchical namespace enabled 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; @@ -898,13 +811,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.storage.control.v2.Folder folder_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.Folder, - com.google.storage.control.v2.Folder.Builder, - com.google.storage.control.v2.FolderOrBuilder> - folderBuilder_; + com.google.storage.control.v2.Folder, com.google.storage.control.v2.Folder.Builder, com.google.storage.control.v2.FolderOrBuilder> folderBuilder_; /** - * - * *
                  * Required. Properties of the new folder being created.
                  * The bucket and name of the folder are specified in the parent and folder_id
            @@ -912,17 +820,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
                  * error.
                  * 
            * - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the folder field is set. */ public boolean hasFolder() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                  * Required. Properties of the new folder being created.
                  * The bucket and name of the folder are specified in the parent and folder_id
            @@ -930,23 +834,17 @@ public boolean hasFolder() {
                  * error.
                  * 
            * - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The folder. */ public com.google.storage.control.v2.Folder getFolder() { if (folderBuilder_ == null) { - return folder_ == null - ? com.google.storage.control.v2.Folder.getDefaultInstance() - : folder_; + return folder_ == null ? com.google.storage.control.v2.Folder.getDefaultInstance() : folder_; } else { return folderBuilder_.getMessage(); } } /** - * - * *
                  * Required. Properties of the new folder being created.
                  * The bucket and name of the folder are specified in the parent and folder_id
            @@ -954,8 +852,7 @@ public com.google.storage.control.v2.Folder getFolder() {
                  * error.
                  * 
            * - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setFolder(com.google.storage.control.v2.Folder value) { if (folderBuilder_ == null) { @@ -971,8 +868,6 @@ public Builder setFolder(com.google.storage.control.v2.Folder value) { return this; } /** - * - * *
                  * Required. Properties of the new folder being created.
                  * The bucket and name of the folder are specified in the parent and folder_id
            @@ -980,10 +875,10 @@ public Builder setFolder(com.google.storage.control.v2.Folder value) {
                  * error.
                  * 
            * - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setFolder(com.google.storage.control.v2.Folder.Builder builderForValue) { + public Builder setFolder( + com.google.storage.control.v2.Folder.Builder builderForValue) { if (folderBuilder_ == null) { folder_ = builderForValue.build(); } else { @@ -994,8 +889,6 @@ public Builder setFolder(com.google.storage.control.v2.Folder.Builder builderFor return this; } /** - * - * *
                  * Required. Properties of the new folder being created.
                  * The bucket and name of the folder are specified in the parent and folder_id
            @@ -1003,14 +896,13 @@ public Builder setFolder(com.google.storage.control.v2.Folder.Builder builderFor
                  * error.
                  * 
            * - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeFolder(com.google.storage.control.v2.Folder value) { if (folderBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && folder_ != null - && folder_ != com.google.storage.control.v2.Folder.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + folder_ != null && + folder_ != com.google.storage.control.v2.Folder.getDefaultInstance()) { getFolderBuilder().mergeFrom(value); } else { folder_ = value; @@ -1025,8 +917,6 @@ public Builder mergeFolder(com.google.storage.control.v2.Folder value) { return this; } /** - * - * *
                  * Required. Properties of the new folder being created.
                  * The bucket and name of the folder are specified in the parent and folder_id
            @@ -1034,8 +924,7 @@ public Builder mergeFolder(com.google.storage.control.v2.Folder value) {
                  * error.
                  * 
            * - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearFolder() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1048,8 +937,6 @@ public Builder clearFolder() { return this; } /** - * - * *
                  * Required. Properties of the new folder being created.
                  * The bucket and name of the folder are specified in the parent and folder_id
            @@ -1057,8 +944,7 @@ public Builder clearFolder() {
                  * error.
                  * 
            * - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.storage.control.v2.Folder.Builder getFolderBuilder() { bitField0_ |= 0x00000002; @@ -1066,8 +952,6 @@ public com.google.storage.control.v2.Folder.Builder getFolderBuilder() { return getFolderFieldBuilder().getBuilder(); } /** - * - * *
                  * Required. Properties of the new folder being created.
                  * The bucket and name of the folder are specified in the parent and folder_id
            @@ -1075,21 +959,17 @@ public com.google.storage.control.v2.Folder.Builder getFolderBuilder() {
                  * error.
                  * 
            * - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.storage.control.v2.FolderOrBuilder getFolderOrBuilder() { if (folderBuilder_ != null) { return folderBuilder_.getMessageOrBuilder(); } else { - return folder_ == null - ? com.google.storage.control.v2.Folder.getDefaultInstance() - : folder_; + return folder_ == null ? + com.google.storage.control.v2.Folder.getDefaultInstance() : folder_; } } /** - * - * *
                  * Required. Properties of the new folder being created.
                  * The bucket and name of the folder are specified in the parent and folder_id
            @@ -1097,21 +977,17 @@ public com.google.storage.control.v2.FolderOrBuilder getFolderOrBuilder() {
                  * error.
                  * 
            * - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.Folder, - com.google.storage.control.v2.Folder.Builder, - com.google.storage.control.v2.FolderOrBuilder> + com.google.storage.control.v2.Folder, com.google.storage.control.v2.Folder.Builder, com.google.storage.control.v2.FolderOrBuilder> getFolderFieldBuilder() { if (folderBuilder_ == null) { - folderBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.Folder, - com.google.storage.control.v2.Folder.Builder, - com.google.storage.control.v2.FolderOrBuilder>( - getFolder(), getParentForChildren(), isClean()); + folderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.control.v2.Folder, com.google.storage.control.v2.Folder.Builder, com.google.storage.control.v2.FolderOrBuilder>( + getFolder(), + getParentForChildren(), + isClean()); folder_ = null; } return folderBuilder_; @@ -1119,8 +995,6 @@ public com.google.storage.control.v2.FolderOrBuilder getFolderOrBuilder() { private java.lang.Object folderId_ = ""; /** - * - * *
                  * Required. The full name of a folder, including all its parent folders.
                  * Folders use single '/' characters as a delimiter.
            @@ -1130,13 +1004,13 @@ public com.google.storage.control.v2.FolderOrBuilder getFolderOrBuilder() {
                  * 
            * * string folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The folderId. */ public java.lang.String getFolderId() { java.lang.Object ref = folderId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); folderId_ = s; return s; @@ -1145,8 +1019,6 @@ public java.lang.String getFolderId() { } } /** - * - * *
                  * Required. The full name of a folder, including all its parent folders.
                  * Folders use single '/' characters as a delimiter.
            @@ -1156,14 +1028,15 @@ public java.lang.String getFolderId() {
                  * 
            * * string folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for folderId. */ - public com.google.protobuf.ByteString getFolderIdBytes() { + public com.google.protobuf.ByteString + getFolderIdBytes() { java.lang.Object ref = folderId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); folderId_ = b; return b; } else { @@ -1171,8 +1044,6 @@ public com.google.protobuf.ByteString getFolderIdBytes() { } } /** - * - * *
                  * Required. The full name of a folder, including all its parent folders.
                  * Folders use single '/' characters as a delimiter.
            @@ -1182,22 +1053,18 @@ public com.google.protobuf.ByteString getFolderIdBytes() {
                  * 
            * * string folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The folderId to set. * @return This builder for chaining. */ - public Builder setFolderId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFolderId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } folderId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
                  * Required. The full name of a folder, including all its parent folders.
                  * Folders use single '/' characters as a delimiter.
            @@ -1207,7 +1074,6 @@ public Builder setFolderId(java.lang.String value) {
                  * 
            * * string folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFolderId() { @@ -1217,8 +1083,6 @@ public Builder clearFolderId() { return this; } /** - * - * *
                  * Required. The full name of a folder, including all its parent folders.
                  * Folders use single '/' characters as a delimiter.
            @@ -1228,14 +1092,12 @@ public Builder clearFolderId() {
                  * 
            * * string folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for folderId to set. * @return This builder for chaining. */ - public Builder setFolderIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFolderIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); folderId_ = value; bitField0_ |= 0x00000004; @@ -1243,17 +1105,14 @@ public Builder setFolderIdBytes(com.google.protobuf.ByteString value) { return this; } - private boolean recursive_; + private boolean recursive_ ; /** - * - * *
                  * Optional. If true, parent folder doesn't have to be present and all missing
                  * ancestor folders will be created atomically.
                  * 
            * * bool recursive = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The recursive. */ @java.lang.Override @@ -1261,15 +1120,12 @@ public boolean getRecursive() { return recursive_; } /** - * - * *
                  * Optional. If true, parent folder doesn't have to be present and all missing
                  * ancestor folders will be created atomically.
                  * 
            * * bool recursive = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The recursive to set. * @return This builder for chaining. */ @@ -1281,15 +1137,12 @@ public Builder setRecursive(boolean value) { return this; } /** - * - * *
                  * Optional. If true, parent folder doesn't have to be present and all missing
                  * ancestor folders will be created atomically.
                  * 
            * * bool recursive = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRecursive() { @@ -1301,23 +1154,19 @@ public Builder clearRecursive() { private java.lang.Object requestId_ = ""; /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1326,24 +1175,21 @@ public java.lang.String getRequestId() { } } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1351,41 +1197,30 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1395,33 +1230,27 @@ public Builder clearRequestId() { return this; } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 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); } @@ -1431,12 +1260,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.control.v2.CreateFolderRequest) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.CreateFolderRequest) private static final com.google.storage.control.v2.CreateFolderRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.control.v2.CreateFolderRequest(); } @@ -1445,27 +1274,27 @@ public static com.google.storage.control.v2.CreateFolderRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateFolderRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFolderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1480,4 +1309,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.CreateFolderRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateFolderRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateFolderRequestOrBuilder.java similarity index 69% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateFolderRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateFolderRequestOrBuilder.java index 88c7f84c57..acc2717411 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateFolderRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateFolderRequestOrBuilder.java @@ -1,63 +1,36 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto // Protobuf Java Version: 3.25.3 package com.google.storage.control.v2; -public interface CreateFolderRequestOrBuilder - extends +public interface CreateFolderRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.CreateFolderRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
                * Required. Name of the bucket in which the folder will reside. The bucket
                * must be a hierarchical namespace enabled 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 the bucket in which the folder will reside. The bucket
                * must be a hierarchical namespace enabled 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(); /** - * - * *
                * Required. Properties of the new folder being created.
                * The bucket and name of the folder are specified in the parent and folder_id
            @@ -65,15 +38,11 @@ public interface CreateFolderRequestOrBuilder
                * error.
                * 
            * - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the folder field is set. */ boolean hasFolder(); /** - * - * *
                * Required. Properties of the new folder being created.
                * The bucket and name of the folder are specified in the parent and folder_id
            @@ -81,15 +50,11 @@ public interface CreateFolderRequestOrBuilder
                * error.
                * 
            * - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The folder. */ com.google.storage.control.v2.Folder getFolder(); /** - * - * *
                * Required. Properties of the new folder being created.
                * The bucket and name of the folder are specified in the parent and folder_id
            @@ -97,14 +62,11 @@ public interface CreateFolderRequestOrBuilder
                * error.
                * 
            * - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.storage.control.v2.FolderOrBuilder getFolderOrBuilder(); /** - * - * *
                * Required. The full name of a folder, including all its parent folders.
                * Folders use single '/' characters as a delimiter.
            @@ -114,13 +76,10 @@ public interface CreateFolderRequestOrBuilder
                * 
            * * string folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The folderId. */ java.lang.String getFolderId(); /** - * - * *
                * Required. The full name of a folder, including all its parent folders.
                * Folders use single '/' characters as a delimiter.
            @@ -130,53 +89,41 @@ public interface CreateFolderRequestOrBuilder
                * 
            * * string folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for folderId. */ - com.google.protobuf.ByteString getFolderIdBytes(); + com.google.protobuf.ByteString + getFolderIdBytes(); /** - * - * *
                * Optional. If true, parent folder doesn't have to be present and all missing
                * ancestor folders will be created atomically.
                * 
            * * bool recursive = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The recursive. */ boolean getRecursive(); /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateManagedFolderRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateManagedFolderRequest.java similarity index 65% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateManagedFolderRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateManagedFolderRequest.java index 7442427387..76e7a1c358 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateManagedFolderRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateManagedFolderRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto @@ -20,24 +5,21 @@ package com.google.storage.control.v2; /** - * - * *
              * Request message for CreateManagedFolder.
              * 
            * * Protobuf type {@code google.storage.control.v2.CreateManagedFolderRequest} */ -public final class CreateManagedFolderRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateManagedFolderRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.CreateManagedFolderRequest) CreateManagedFolderRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateManagedFolderRequest.newBuilder() to construct. private CreateManagedFolderRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateManagedFolderRequest() { parent_ = ""; managedFolderId_ = ""; @@ -46,41 +28,34 @@ private CreateManagedFolderRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateManagedFolderRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_CreateManagedFolderRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CreateManagedFolderRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_CreateManagedFolderRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CreateManagedFolderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.CreateManagedFolderRequest.class, - com.google.storage.control.v2.CreateManagedFolderRequest.Builder.class); + com.google.storage.control.v2.CreateManagedFolderRequest.class, com.google.storage.control.v2.CreateManagedFolderRequest.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 this managed folder belongs to.
                * 
            * - * - * 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 @@ -89,31 +64,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
                * Required. Name of the bucket this managed folder belongs to.
                * 
            * - * - * 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 { @@ -124,8 +97,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int MANAGED_FOLDER_FIELD_NUMBER = 2; private com.google.storage.control.v2.ManagedFolder managedFolder_; /** - * - * *
                * Required. Properties of the managed folder being created.
                * The bucket and managed folder names are specified in the `parent` and
            @@ -133,10 +104,7 @@ public com.google.protobuf.ByteString getParentBytes() {
                * will result in an error.
                * 
            * - * - * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the managedFolder field is set. */ @java.lang.Override @@ -144,8 +112,6 @@ public boolean hasManagedFolder() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * Required. Properties of the managed folder being created.
                * The bucket and managed folder names are specified in the `parent` and
            @@ -153,21 +119,14 @@ public boolean hasManagedFolder() {
                * will result in an error.
                * 
            * - * - * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The managedFolder. */ @java.lang.Override public com.google.storage.control.v2.ManagedFolder getManagedFolder() { - return managedFolder_ == null - ? com.google.storage.control.v2.ManagedFolder.getDefaultInstance() - : managedFolder_; + return managedFolder_ == null ? com.google.storage.control.v2.ManagedFolder.getDefaultInstance() : managedFolder_; } /** - * - * *
                * Required. Properties of the managed folder being created.
                * The bucket and managed folder names are specified in the `parent` and
            @@ -175,31 +134,23 @@ public com.google.storage.control.v2.ManagedFolder getManagedFolder() {
                * will result in an error.
                * 
            * - * - * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.storage.control.v2.ManagedFolderOrBuilder getManagedFolderOrBuilder() { - return managedFolder_ == null - ? com.google.storage.control.v2.ManagedFolder.getDefaultInstance() - : managedFolder_; + return managedFolder_ == null ? com.google.storage.control.v2.ManagedFolder.getDefaultInstance() : managedFolder_; } public static final int MANAGED_FOLDER_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object managedFolderId_ = ""; /** - * - * *
                * Required. The name of the managed folder. It uses a single `/` as delimiter
                * and leading and trailing `/` are allowed.
                * 
            * * string managed_folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The managedFolderId. */ @java.lang.Override @@ -208,30 +159,30 @@ public java.lang.String getManagedFolderId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); managedFolderId_ = s; return s; } } /** - * - * *
                * Required. The name of the managed folder. It uses a single `/` as delimiter
                * and leading and trailing `/` are allowed.
                * 
            * * string managed_folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for managedFolderId. */ @java.lang.Override - public com.google.protobuf.ByteString getManagedFolderIdBytes() { + public com.google.protobuf.ByteString + getManagedFolderIdBytes() { java.lang.Object ref = managedFolderId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); managedFolderId_ = b; return b; } else { @@ -240,21 +191,15 @@ public com.google.protobuf.ByteString getManagedFolderIdBytes() { } public static final int REQUEST_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ @java.lang.Override @@ -263,32 +208,30 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -297,7 +240,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -309,7 +251,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_); } @@ -335,7 +278,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getManagedFolder()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getManagedFolder()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(managedFolderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, managedFolderId_); @@ -351,21 +295,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.control.v2.CreateManagedFolderRequest)) { return super.equals(obj); } - com.google.storage.control.v2.CreateManagedFolderRequest other = - (com.google.storage.control.v2.CreateManagedFolderRequest) obj; + com.google.storage.control.v2.CreateManagedFolderRequest other = (com.google.storage.control.v2.CreateManagedFolderRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasManagedFolder() != other.hasManagedFolder()) return false; if (hasManagedFolder()) { - if (!getManagedFolder().equals(other.getManagedFolder())) return false; + if (!getManagedFolder() + .equals(other.getManagedFolder())) return false; } - if (!getManagedFolderId().equals(other.getManagedFolderId())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getManagedFolderId() + .equals(other.getManagedFolderId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -393,127 +340,119 @@ public int hashCode() { } public static com.google.storage.control.v2.CreateManagedFolderRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.CreateManagedFolderRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.CreateManagedFolderRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.CreateManagedFolderRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.CreateManagedFolderRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.CreateManagedFolderRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.control.v2.CreateManagedFolderRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.control.v2.CreateManagedFolderRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.CreateManagedFolderRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.CreateManagedFolderRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.CreateManagedFolderRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.CreateManagedFolderRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.CreateManagedFolderRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.CreateManagedFolderRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.storage.control.v2.CreateManagedFolderRequest prototype) { + public static Builder newBuilder(com.google.storage.control.v2.CreateManagedFolderRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 CreateManagedFolder.
                * 
            * * Protobuf type {@code google.storage.control.v2.CreateManagedFolderRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.control.v2.CreateManagedFolderRequest) com.google.storage.control.v2.CreateManagedFolderRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_CreateManagedFolderRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CreateManagedFolderRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_CreateManagedFolderRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CreateManagedFolderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.CreateManagedFolderRequest.class, - com.google.storage.control.v2.CreateManagedFolderRequest.Builder.class); + com.google.storage.control.v2.CreateManagedFolderRequest.class, com.google.storage.control.v2.CreateManagedFolderRequest.Builder.class); } // Construct using com.google.storage.control.v2.CreateManagedFolderRequest.newBuilder() @@ -521,17 +460,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) { getManagedFolderFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -548,9 +487,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_CreateManagedFolderRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CreateManagedFolderRequest_descriptor; } @java.lang.Override @@ -569,11 +508,8 @@ public com.google.storage.control.v2.CreateManagedFolderRequest build() { @java.lang.Override public com.google.storage.control.v2.CreateManagedFolderRequest buildPartial() { - com.google.storage.control.v2.CreateManagedFolderRequest result = - new com.google.storage.control.v2.CreateManagedFolderRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.control.v2.CreateManagedFolderRequest result = new com.google.storage.control.v2.CreateManagedFolderRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -585,8 +521,9 @@ private void buildPartial0(com.google.storage.control.v2.CreateManagedFolderRequ } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.managedFolder_ = - managedFolderBuilder_ == null ? managedFolder_ : managedFolderBuilder_.build(); + result.managedFolder_ = managedFolderBuilder_ == null + ? managedFolder_ + : managedFolderBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -602,39 +539,38 @@ private void buildPartial0(com.google.storage.control.v2.CreateManagedFolderRequ public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.control.v2.CreateManagedFolderRequest) { - return mergeFrom((com.google.storage.control.v2.CreateManagedFolderRequest) other); + return mergeFrom((com.google.storage.control.v2.CreateManagedFolderRequest)other); } else { super.mergeFrom(other); return this; @@ -642,8 +578,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.control.v2.CreateManagedFolderRequest other) { - if (other == com.google.storage.control.v2.CreateManagedFolderRequest.getDefaultInstance()) - return this; + if (other == com.google.storage.control.v2.CreateManagedFolderRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -688,37 +623,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getManagedFolderFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - managedFolderId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - 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( + getManagedFolderFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + managedFolderId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + requestId_ = input.readStringRequireUtf8(); + 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) { @@ -728,27 +660,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
                  * Required. Name of the bucket this managed folder belongs to.
                  * 
            * - * - * 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; @@ -757,23 +684,20 @@ public java.lang.String getParent() { } } /** - * - * *
                  * Required. Name of the bucket this managed folder belongs to.
                  * 
            * - * - * 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 { @@ -781,39 +705,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
                  * Required. Name of the bucket this managed folder belongs to.
                  * 
            * - * - * 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 this managed folder belongs to.
                  * 
            * - * - * 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() { @@ -823,23 +736,17 @@ public Builder clearParent() { return this; } /** - * - * *
                  * Required. Name of the bucket this managed folder belongs to.
                  * 
            * - * - * 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; @@ -849,13 +756,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.storage.control.v2.ManagedFolder managedFolder_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.ManagedFolder, - com.google.storage.control.v2.ManagedFolder.Builder, - com.google.storage.control.v2.ManagedFolderOrBuilder> - managedFolderBuilder_; + com.google.storage.control.v2.ManagedFolder, com.google.storage.control.v2.ManagedFolder.Builder, com.google.storage.control.v2.ManagedFolderOrBuilder> managedFolderBuilder_; /** - * - * *
                  * Required. Properties of the managed folder being created.
                  * The bucket and managed folder names are specified in the `parent` and
            @@ -863,18 +765,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
                  * will result in an error.
                  * 
            * - * - * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the managedFolder field is set. */ public boolean hasManagedFolder() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                  * Required. Properties of the managed folder being created.
                  * The bucket and managed folder names are specified in the `parent` and
            @@ -882,24 +779,17 @@ public boolean hasManagedFolder() {
                  * will result in an error.
                  * 
            * - * - * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The managedFolder. */ public com.google.storage.control.v2.ManagedFolder getManagedFolder() { if (managedFolderBuilder_ == null) { - return managedFolder_ == null - ? com.google.storage.control.v2.ManagedFolder.getDefaultInstance() - : managedFolder_; + return managedFolder_ == null ? com.google.storage.control.v2.ManagedFolder.getDefaultInstance() : managedFolder_; } else { return managedFolderBuilder_.getMessage(); } } /** - * - * *
                  * Required. Properties of the managed folder being created.
                  * The bucket and managed folder names are specified in the `parent` and
            @@ -907,9 +797,7 @@ public com.google.storage.control.v2.ManagedFolder getManagedFolder() {
                  * will result in an error.
                  * 
            * - * - * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setManagedFolder(com.google.storage.control.v2.ManagedFolder value) { if (managedFolderBuilder_ == null) { @@ -925,8 +813,6 @@ public Builder setManagedFolder(com.google.storage.control.v2.ManagedFolder valu return this; } /** - * - * *
                  * Required. Properties of the managed folder being created.
                  * The bucket and managed folder names are specified in the `parent` and
            @@ -934,9 +820,7 @@ public Builder setManagedFolder(com.google.storage.control.v2.ManagedFolder valu
                  * will result in an error.
                  * 
            * - * - * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setManagedFolder( com.google.storage.control.v2.ManagedFolder.Builder builderForValue) { @@ -950,8 +834,6 @@ public Builder setManagedFolder( return this; } /** - * - * *
                  * Required. Properties of the managed folder being created.
                  * The bucket and managed folder names are specified in the `parent` and
            @@ -959,15 +841,13 @@ public Builder setManagedFolder(
                  * will result in an error.
                  * 
            * - * - * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeManagedFolder(com.google.storage.control.v2.ManagedFolder value) { if (managedFolderBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && managedFolder_ != null - && managedFolder_ != com.google.storage.control.v2.ManagedFolder.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + managedFolder_ != null && + managedFolder_ != com.google.storage.control.v2.ManagedFolder.getDefaultInstance()) { getManagedFolderBuilder().mergeFrom(value); } else { managedFolder_ = value; @@ -982,8 +862,6 @@ public Builder mergeManagedFolder(com.google.storage.control.v2.ManagedFolder va return this; } /** - * - * *
                  * Required. Properties of the managed folder being created.
                  * The bucket and managed folder names are specified in the `parent` and
            @@ -991,9 +869,7 @@ public Builder mergeManagedFolder(com.google.storage.control.v2.ManagedFolder va
                  * will result in an error.
                  * 
            * - * - * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearManagedFolder() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1006,8 +882,6 @@ public Builder clearManagedFolder() { return this; } /** - * - * *
                  * Required. Properties of the managed folder being created.
                  * The bucket and managed folder names are specified in the `parent` and
            @@ -1015,9 +889,7 @@ public Builder clearManagedFolder() {
                  * will result in an error.
                  * 
            * - * - * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.storage.control.v2.ManagedFolder.Builder getManagedFolderBuilder() { bitField0_ |= 0x00000002; @@ -1025,8 +897,6 @@ public com.google.storage.control.v2.ManagedFolder.Builder getManagedFolderBuild return getManagedFolderFieldBuilder().getBuilder(); } /** - * - * *
                  * Required. Properties of the managed folder being created.
                  * The bucket and managed folder names are specified in the `parent` and
            @@ -1034,22 +904,17 @@ public com.google.storage.control.v2.ManagedFolder.Builder getManagedFolderBuild
                  * will result in an error.
                  * 
            * - * - * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.storage.control.v2.ManagedFolderOrBuilder getManagedFolderOrBuilder() { if (managedFolderBuilder_ != null) { return managedFolderBuilder_.getMessageOrBuilder(); } else { - return managedFolder_ == null - ? com.google.storage.control.v2.ManagedFolder.getDefaultInstance() - : managedFolder_; + return managedFolder_ == null ? + com.google.storage.control.v2.ManagedFolder.getDefaultInstance() : managedFolder_; } } /** - * - * *
                  * Required. Properties of the managed folder being created.
                  * The bucket and managed folder names are specified in the `parent` and
            @@ -1057,22 +922,17 @@ public com.google.storage.control.v2.ManagedFolderOrBuilder getManagedFolderOrBu
                  * will result in an error.
                  * 
            * - * - * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.ManagedFolder, - com.google.storage.control.v2.ManagedFolder.Builder, - com.google.storage.control.v2.ManagedFolderOrBuilder> + com.google.storage.control.v2.ManagedFolder, com.google.storage.control.v2.ManagedFolder.Builder, com.google.storage.control.v2.ManagedFolderOrBuilder> getManagedFolderFieldBuilder() { if (managedFolderBuilder_ == null) { - managedFolderBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.ManagedFolder, - com.google.storage.control.v2.ManagedFolder.Builder, - com.google.storage.control.v2.ManagedFolderOrBuilder>( - getManagedFolder(), getParentForChildren(), isClean()); + managedFolderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.control.v2.ManagedFolder, com.google.storage.control.v2.ManagedFolder.Builder, com.google.storage.control.v2.ManagedFolderOrBuilder>( + getManagedFolder(), + getParentForChildren(), + isClean()); managedFolder_ = null; } return managedFolderBuilder_; @@ -1080,21 +940,19 @@ public com.google.storage.control.v2.ManagedFolderOrBuilder getManagedFolderOrBu private java.lang.Object managedFolderId_ = ""; /** - * - * *
                  * Required. The name of the managed folder. It uses a single `/` as delimiter
                  * and leading and trailing `/` are allowed.
                  * 
            * * string managed_folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The managedFolderId. */ public java.lang.String getManagedFolderId() { java.lang.Object ref = managedFolderId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); managedFolderId_ = s; return s; @@ -1103,22 +961,21 @@ public java.lang.String getManagedFolderId() { } } /** - * - * *
                  * Required. The name of the managed folder. It uses a single `/` as delimiter
                  * and leading and trailing `/` are allowed.
                  * 
            * * string managed_folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for managedFolderId. */ - public com.google.protobuf.ByteString getManagedFolderIdBytes() { + public com.google.protobuf.ByteString + getManagedFolderIdBytes() { java.lang.Object ref = managedFolderId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); managedFolderId_ = b; return b; } else { @@ -1126,37 +983,30 @@ public com.google.protobuf.ByteString getManagedFolderIdBytes() { } } /** - * - * *
                  * Required. The name of the managed folder. It uses a single `/` as delimiter
                  * and leading and trailing `/` are allowed.
                  * 
            * * string managed_folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The managedFolderId to set. * @return This builder for chaining. */ - public Builder setManagedFolderId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setManagedFolderId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } managedFolderId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
                  * Required. The name of the managed folder. It uses a single `/` as delimiter
                  * and leading and trailing `/` are allowed.
                  * 
            * * string managed_folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearManagedFolderId() { @@ -1166,22 +1016,18 @@ public Builder clearManagedFolderId() { return this; } /** - * - * *
                  * Required. The name of the managed folder. It uses a single `/` as delimiter
                  * and leading and trailing `/` are allowed.
                  * 
            * * string managed_folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for managedFolderId to set. * @return This builder for chaining. */ - public Builder setManagedFolderIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setManagedFolderIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); managedFolderId_ = value; bitField0_ |= 0x00000004; @@ -1191,23 +1037,19 @@ public Builder setManagedFolderIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1216,24 +1058,21 @@ public java.lang.String getRequestId() { } } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1241,41 +1080,30 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1285,33 +1113,27 @@ public Builder clearRequestId() { return this; } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1321,12 +1143,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.control.v2.CreateManagedFolderRequest) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.CreateManagedFolderRequest) private static final com.google.storage.control.v2.CreateManagedFolderRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.control.v2.CreateManagedFolderRequest(); } @@ -1335,27 +1157,27 @@ public static com.google.storage.control.v2.CreateManagedFolderRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateManagedFolderRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateManagedFolderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1370,4 +1192,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.storage.control.v2.CreateManagedFolderRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateManagedFolderRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateManagedFolderRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateManagedFolderRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateManagedFolderRequestOrBuilder.java index d59a43a153..f3df0cc3fa 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateManagedFolderRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateManagedFolderRequestOrBuilder.java @@ -1,61 +1,34 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto // Protobuf Java Version: 3.25.3 package com.google.storage.control.v2; -public interface CreateManagedFolderRequestOrBuilder - extends +public interface CreateManagedFolderRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.CreateManagedFolderRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
                * Required. Name of the bucket this managed folder belongs to.
                * 
            * - * - * 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 this managed folder belongs to.
                * 
            * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
                * Required. Properties of the managed folder being created.
                * The bucket and managed folder names are specified in the `parent` and
            @@ -63,16 +36,11 @@ public interface CreateManagedFolderRequestOrBuilder
                * will result in an error.
                * 
            * - * - * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the managedFolder field is set. */ boolean hasManagedFolder(); /** - * - * *
                * Required. Properties of the managed folder being created.
                * The bucket and managed folder names are specified in the `parent` and
            @@ -80,16 +48,11 @@ public interface CreateManagedFolderRequestOrBuilder
                * will result in an error.
                * 
            * - * - * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The managedFolder. */ com.google.storage.control.v2.ManagedFolder getManagedFolder(); /** - * - * *
                * Required. Properties of the managed folder being created.
                * The bucket and managed folder names are specified in the `parent` and
            @@ -97,67 +60,51 @@ public interface CreateManagedFolderRequestOrBuilder
                * will result in an error.
                * 
            * - * - * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.storage.control.v2.ManagedFolderOrBuilder getManagedFolderOrBuilder(); /** - * - * *
                * Required. The name of the managed folder. It uses a single `/` as delimiter
                * and leading and trailing `/` are allowed.
                * 
            * * string managed_folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The managedFolderId. */ java.lang.String getManagedFolderId(); /** - * - * *
                * Required. The name of the managed folder. It uses a single `/` as delimiter
                * and leading and trailing `/` are allowed.
                * 
            * * string managed_folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for managedFolderId. */ - com.google.protobuf.ByteString getManagedFolderIdBytes(); + com.google.protobuf.ByteString + getManagedFolderIdBytes(); /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteFolderRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteFolderRequest.java similarity index 68% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteFolderRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteFolderRequest.java index 8c53dc04fd..26bf08e457 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteFolderRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteFolderRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto @@ -20,26 +5,22 @@ package com.google.storage.control.v2; /** - * - * *
              * Request message for DeleteFolder. This operation is only applicable to a
              * hierarchical namespace enabled bucket.
            - * Hierarchical namespace buckets are in allowlist preview.
              * 
            * * Protobuf type {@code google.storage.control.v2.DeleteFolderRequest} */ -public final class DeleteFolderRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteFolderRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.DeleteFolderRequest) DeleteFolderRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteFolderRequest.newBuilder() to construct. private DeleteFolderRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteFolderRequest() { name_ = ""; requestId_ = ""; @@ -47,42 +28,35 @@ private DeleteFolderRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteFolderRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_DeleteFolderRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_DeleteFolderRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_DeleteFolderRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_DeleteFolderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.DeleteFolderRequest.class, - com.google.storage.control.v2.DeleteFolderRequest.Builder.class); + com.google.storage.control.v2.DeleteFolderRequest.class, com.google.storage.control.v2.DeleteFolderRequest.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
                * Required. Name of the folder.
                * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                * 
            * - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -91,32 +65,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
                * Required. Name of the folder.
                * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                * 
            * - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -127,15 +99,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER = 3; private long ifMetagenerationMatch_ = 0L; /** - * - * *
                * Makes the operation only succeed conditional on whether the folder's
                * current metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 3; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -143,15 +112,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * Makes the operation only succeed conditional on whether the folder's
                * current metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 3; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -162,15 +128,12 @@ public long getIfMetagenerationMatch() { public static final int IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER = 4; private long ifMetagenerationNotMatch_ = 0L; /** - * - * *
                * Makes the operation only succeed conditional on whether the folder's
                * current metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 4; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -178,15 +141,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                * Makes the operation only succeed conditional on whether the folder's
                * current metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 4; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -195,21 +155,15 @@ public long getIfMetagenerationNotMatch() { } public static final int REQUEST_ID_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ @java.lang.Override @@ -218,32 +172,30 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -252,7 +204,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,7 +215,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(3, ifMetagenerationMatch_); } @@ -287,10 +239,12 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, ifMetagenerationMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, ifMetagenerationMatch_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ifMetagenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, ifMetagenerationNotMatch_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, requestId_); @@ -306,24 +260,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.control.v2.DeleteFolderRequest)) { return super.equals(obj); } - com.google.storage.control.v2.DeleteFolderRequest other = - (com.google.storage.control.v2.DeleteFolderRequest) obj; + com.google.storage.control.v2.DeleteFolderRequest other = (com.google.storage.control.v2.DeleteFolderRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasIfMetagenerationMatch() != other.hasIfMetagenerationMatch()) return false; if (hasIfMetagenerationMatch()) { - if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false; + if (getIfMetagenerationMatch() + != other.getIfMetagenerationMatch()) return false; } if (hasIfMetagenerationNotMatch() != other.hasIfMetagenerationNotMatch()) return false; if (hasIfMetagenerationNotMatch()) { - if (getIfMetagenerationNotMatch() != other.getIfMetagenerationNotMatch()) return false; + if (getIfMetagenerationNotMatch() + != other.getIfMetagenerationNotMatch()) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -339,11 +296,13 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); if (hasIfMetagenerationMatch()) { hash = (37 * hash) + IF_METAGENERATION_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationMatch()); } if (hasIfMetagenerationNotMatch()) { hash = (37 * hash) + IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationNotMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationNotMatch()); } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); @@ -353,137 +312,132 @@ public int hashCode() { } public static com.google.storage.control.v2.DeleteFolderRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.DeleteFolderRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.DeleteFolderRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.DeleteFolderRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.DeleteFolderRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.DeleteFolderRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.control.v2.DeleteFolderRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.control.v2.DeleteFolderRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.DeleteFolderRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.DeleteFolderRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.DeleteFolderRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.DeleteFolderRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.DeleteFolderRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.DeleteFolderRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.control.v2.DeleteFolderRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * Request message for DeleteFolder. This operation is only applicable to a
                * hierarchical namespace enabled bucket.
            -   * Hierarchical namespace buckets are in allowlist preview.
                * 
            * * Protobuf type {@code google.storage.control.v2.DeleteFolderRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.control.v2.DeleteFolderRequest) com.google.storage.control.v2.DeleteFolderRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_DeleteFolderRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_DeleteFolderRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_DeleteFolderRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_DeleteFolderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.DeleteFolderRequest.class, - com.google.storage.control.v2.DeleteFolderRequest.Builder.class); + com.google.storage.control.v2.DeleteFolderRequest.class, com.google.storage.control.v2.DeleteFolderRequest.Builder.class); } // Construct using com.google.storage.control.v2.DeleteFolderRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -496,9 +450,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_DeleteFolderRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_DeleteFolderRequest_descriptor; } @java.lang.Override @@ -517,11 +471,8 @@ public com.google.storage.control.v2.DeleteFolderRequest build() { @java.lang.Override public com.google.storage.control.v2.DeleteFolderRequest buildPartial() { - com.google.storage.control.v2.DeleteFolderRequest result = - new com.google.storage.control.v2.DeleteFolderRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.control.v2.DeleteFolderRequest result = new com.google.storage.control.v2.DeleteFolderRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -550,39 +501,38 @@ private void buildPartial0(com.google.storage.control.v2.DeleteFolderRequest res public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.control.v2.DeleteFolderRequest) { - return mergeFrom((com.google.storage.control.v2.DeleteFolderRequest) other); + return mergeFrom((com.google.storage.control.v2.DeleteFolderRequest)other); } else { super.mergeFrom(other); return this; @@ -590,8 +540,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.control.v2.DeleteFolderRequest other) { - if (other == com.google.storage.control.v2.DeleteFolderRequest.getDefaultInstance()) - return this; + if (other == com.google.storage.control.v2.DeleteFolderRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -634,37 +583,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 24: - { - ifMetagenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 24 - case 32: - { - ifMetagenerationNotMatch_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 32 - case 42: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 50: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 24: { + ifMetagenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 32: { + ifMetagenerationNotMatch_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 42: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -674,28 +618,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
                  * Required. Name of the folder.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -704,24 +643,21 @@ public java.lang.String getName() { } } /** - * - * *
                  * Required. Name of the folder.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -729,41 +665,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
                  * Required. Name of the folder.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * Required. Name of the folder.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -773,24 +698,18 @@ public Builder clearName() { return this; } /** - * - * *
                  * Required. Name of the folder.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -798,17 +717,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private long ifMetagenerationMatch_; + private long ifMetagenerationMatch_ ; /** - * - * *
                  * Makes the operation only succeed conditional on whether the folder's
                  * current metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 3; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -816,15 +732,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                  * Makes the operation only succeed conditional on whether the folder's
                  * current metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 3; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -832,15 +745,12 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** - * - * *
                  * Makes the operation only succeed conditional on whether the folder's
                  * current metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 3; - * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -852,15 +762,12 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** - * - * *
                  * Makes the operation only succeed conditional on whether the folder's
                  * current metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 3; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -870,17 +777,14 @@ public Builder clearIfMetagenerationMatch() { return this; } - private long ifMetagenerationNotMatch_; + private long ifMetagenerationNotMatch_ ; /** - * - * *
                  * Makes the operation only succeed conditional on whether the folder's
                  * current metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 4; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -888,15 +792,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
                  * Makes the operation only succeed conditional on whether the folder's
                  * current metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 4; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -904,15 +805,12 @@ public long getIfMetagenerationNotMatch() { return ifMetagenerationNotMatch_; } /** - * - * *
                  * Makes the operation only succeed conditional on whether the folder's
                  * current metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 4; - * * @param value The ifMetagenerationNotMatch to set. * @return This builder for chaining. */ @@ -924,15 +822,12 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** - * - * *
                  * Makes the operation only succeed conditional on whether the folder's
                  * current metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 4; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -944,23 +839,19 @@ public Builder clearIfMetagenerationNotMatch() { private java.lang.Object requestId_ = ""; /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -969,24 +860,21 @@ public java.lang.String getRequestId() { } } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -994,41 +882,30 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1038,33 +915,27 @@ public Builder clearRequestId() { return this; } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1074,12 +945,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.control.v2.DeleteFolderRequest) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.DeleteFolderRequest) private static final com.google.storage.control.v2.DeleteFolderRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.control.v2.DeleteFolderRequest(); } @@ -1088,27 +959,27 @@ public static com.google.storage.control.v2.DeleteFolderRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteFolderRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFolderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1123,4 +994,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.DeleteFolderRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteFolderRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteFolderRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteFolderRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteFolderRequestOrBuilder.java index 3f7b5b6229..f080f667cb 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteFolderRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteFolderRequestOrBuilder.java @@ -1,142 +1,96 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto // Protobuf Java Version: 3.25.3 package com.google.storage.control.v2; -public interface DeleteFolderRequestOrBuilder - extends +public interface DeleteFolderRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.DeleteFolderRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
                * Required. Name of the folder.
                * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                * 
            * - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
                * Required. Name of the folder.
                * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                * 
            * - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
                * Makes the operation only succeed conditional on whether the folder's
                * current metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 3; - * * @return Whether the ifMetagenerationMatch field is set. */ boolean hasIfMetagenerationMatch(); /** - * - * *
                * Makes the operation only succeed conditional on whether the folder's
                * current metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 3; - * * @return The ifMetagenerationMatch. */ long getIfMetagenerationMatch(); /** - * - * *
                * Makes the operation only succeed conditional on whether the folder's
                * current metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 4; - * * @return Whether the ifMetagenerationNotMatch field is set. */ boolean hasIfMetagenerationNotMatch(); /** - * - * *
                * Makes the operation only succeed conditional on whether the folder's
                * current metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 4; - * * @return The ifMetagenerationNotMatch. */ long getIfMetagenerationNotMatch(); /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteManagedFolderRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteManagedFolderRequest.java similarity index 69% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteManagedFolderRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteManagedFolderRequest.java index a46860075d..84a365253f 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteManagedFolderRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteManagedFolderRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto @@ -20,24 +5,21 @@ package com.google.storage.control.v2; /** - * - * *
              * DeleteManagedFolder RPC request message.
              * 
            * * Protobuf type {@code google.storage.control.v2.DeleteManagedFolderRequest} */ -public final class DeleteManagedFolderRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteManagedFolderRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.DeleteManagedFolderRequest) DeleteManagedFolderRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteManagedFolderRequest.newBuilder() to construct. private DeleteManagedFolderRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteManagedFolderRequest() { name_ = ""; requestId_ = ""; @@ -45,43 +27,36 @@ private DeleteManagedFolderRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteManagedFolderRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_DeleteManagedFolderRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_DeleteManagedFolderRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_DeleteManagedFolderRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_DeleteManagedFolderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.DeleteManagedFolderRequest.class, - com.google.storage.control.v2.DeleteManagedFolderRequest.Builder.class); + com.google.storage.control.v2.DeleteManagedFolderRequest.class, com.google.storage.control.v2.DeleteManagedFolderRequest.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
                * Required. Name of the managed folder.
                * Format:
                * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
                * 
            * - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -90,33 +65,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
                * Required. Name of the managed folder.
                * Format:
                * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
                * 
            * - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -127,15 +100,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER = 3; private long ifMetagenerationMatch_ = 0L; /** - * - * *
                * The operation succeeds conditional on the managed folder's current
                * metageneration matching the value here specified.
                * 
            * * optional int64 if_metageneration_match = 3; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -143,15 +113,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * The operation succeeds conditional on the managed folder's current
                * metageneration matching the value here specified.
                * 
            * * optional int64 if_metageneration_match = 3; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -162,15 +129,12 @@ public long getIfMetagenerationMatch() { public static final int IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER = 4; private long ifMetagenerationNotMatch_ = 0L; /** - * - * *
                * The operation succeeds conditional on the managed folder's current
                * metageneration NOT matching the value here specified.
                * 
            * * optional int64 if_metageneration_not_match = 4; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -178,15 +142,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                * The operation succeeds conditional on the managed folder's current
                * metageneration NOT matching the value here specified.
                * 
            * * optional int64 if_metageneration_not_match = 4; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -197,8 +158,6 @@ public long getIfMetagenerationNotMatch() { public static final int ALLOW_NON_EMPTY_FIELD_NUMBER = 5; private boolean allowNonEmpty_ = false; /** - * - * *
                * Allows deletion of a managed folder even if it is not empty.
                * A managed folder is empty if it manages no child managed folders or
            @@ -207,7 +166,6 @@ public long getIfMetagenerationNotMatch() {
                * 
            * * bool allow_non_empty = 5; - * * @return The allowNonEmpty. */ @java.lang.Override @@ -216,21 +174,15 @@ public boolean getAllowNonEmpty() { } public static final int REQUEST_ID_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ @java.lang.Override @@ -239,32 +191,30 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -273,7 +223,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -285,7 +234,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(3, ifMetagenerationMatch_); } @@ -311,13 +261,16 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, ifMetagenerationMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, ifMetagenerationMatch_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ifMetagenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, ifMetagenerationNotMatch_); } if (allowNonEmpty_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, allowNonEmpty_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, allowNonEmpty_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, requestId_); @@ -333,25 +286,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.control.v2.DeleteManagedFolderRequest)) { return super.equals(obj); } - com.google.storage.control.v2.DeleteManagedFolderRequest other = - (com.google.storage.control.v2.DeleteManagedFolderRequest) obj; + com.google.storage.control.v2.DeleteManagedFolderRequest other = (com.google.storage.control.v2.DeleteManagedFolderRequest) 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 (getAllowNonEmpty() != other.getAllowNonEmpty()) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (getAllowNonEmpty() + != other.getAllowNonEmpty()) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -367,14 +324,17 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); if (hasIfMetagenerationMatch()) { hash = (37 * hash) + IF_METAGENERATION_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationMatch()); } if (hasIfMetagenerationNotMatch()) { hash = (37 * hash) + IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationNotMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationNotMatch()); } hash = (37 * hash) + ALLOW_NON_EMPTY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowNonEmpty()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowNonEmpty()); hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -383,136 +343,131 @@ public int hashCode() { } public static com.google.storage.control.v2.DeleteManagedFolderRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.DeleteManagedFolderRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.DeleteManagedFolderRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.DeleteManagedFolderRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.DeleteManagedFolderRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.DeleteManagedFolderRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.control.v2.DeleteManagedFolderRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.control.v2.DeleteManagedFolderRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.DeleteManagedFolderRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.DeleteManagedFolderRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.DeleteManagedFolderRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.DeleteManagedFolderRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.DeleteManagedFolderRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.DeleteManagedFolderRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.storage.control.v2.DeleteManagedFolderRequest prototype) { + public static Builder newBuilder(com.google.storage.control.v2.DeleteManagedFolderRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * DeleteManagedFolder RPC request message.
                * 
            * * Protobuf type {@code google.storage.control.v2.DeleteManagedFolderRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.control.v2.DeleteManagedFolderRequest) com.google.storage.control.v2.DeleteManagedFolderRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_DeleteManagedFolderRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_DeleteManagedFolderRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_DeleteManagedFolderRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_DeleteManagedFolderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.DeleteManagedFolderRequest.class, - com.google.storage.control.v2.DeleteManagedFolderRequest.Builder.class); + com.google.storage.control.v2.DeleteManagedFolderRequest.class, com.google.storage.control.v2.DeleteManagedFolderRequest.Builder.class); } // Construct using com.google.storage.control.v2.DeleteManagedFolderRequest.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(); @@ -526,9 +481,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_DeleteManagedFolderRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_DeleteManagedFolderRequest_descriptor; } @java.lang.Override @@ -547,11 +502,8 @@ public com.google.storage.control.v2.DeleteManagedFolderRequest build() { @java.lang.Override public com.google.storage.control.v2.DeleteManagedFolderRequest buildPartial() { - com.google.storage.control.v2.DeleteManagedFolderRequest result = - new com.google.storage.control.v2.DeleteManagedFolderRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.control.v2.DeleteManagedFolderRequest result = new com.google.storage.control.v2.DeleteManagedFolderRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -583,39 +535,38 @@ private void buildPartial0(com.google.storage.control.v2.DeleteManagedFolderRequ public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.control.v2.DeleteManagedFolderRequest) { - return mergeFrom((com.google.storage.control.v2.DeleteManagedFolderRequest) other); + return mergeFrom((com.google.storage.control.v2.DeleteManagedFolderRequest)other); } else { super.mergeFrom(other); return this; @@ -623,8 +574,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.control.v2.DeleteManagedFolderRequest other) { - if (other == com.google.storage.control.v2.DeleteManagedFolderRequest.getDefaultInstance()) - return this; + if (other == com.google.storage.control.v2.DeleteManagedFolderRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -670,43 +620,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 24: - { - ifMetagenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 24 - case 32: - { - ifMetagenerationNotMatch_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 32 - case 40: - { - allowNonEmpty_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 40 - case 50: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - case 58: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 24: { + ifMetagenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 32: { + ifMetagenerationNotMatch_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 40: { + allowNonEmpty_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 40 + case 50: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 58: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -716,29 +660,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
                  * Required. Name of the managed folder.
                  * Format:
                  * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
                  * 
            * - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -747,25 +686,22 @@ public java.lang.String getName() { } } /** - * - * *
                  * Required. Name of the managed folder.
                  * Format:
                  * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
                  * 
            * - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -773,43 +709,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
                  * Required. Name of the managed folder.
                  * Format:
                  * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
                  * 
            * - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * Required. Name of the managed folder.
                  * Format:
                  * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
                  * 
            * - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -819,25 +744,19 @@ public Builder clearName() { return this; } /** - * - * *
                  * Required. Name of the managed folder.
                  * Format:
                  * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
                  * 
            * - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -845,17 +764,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private long ifMetagenerationMatch_; + private long ifMetagenerationMatch_ ; /** - * - * *
                  * The operation succeeds conditional on the managed folder's current
                  * metageneration matching the value here specified.
                  * 
            * * optional int64 if_metageneration_match = 3; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -863,15 +779,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                  * The operation succeeds conditional on the managed folder's current
                  * metageneration matching the value here specified.
                  * 
            * * optional int64 if_metageneration_match = 3; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -879,15 +792,12 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** - * - * *
                  * The operation succeeds conditional on the managed folder's current
                  * metageneration matching the value here specified.
                  * 
            * * optional int64 if_metageneration_match = 3; - * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -899,15 +809,12 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** - * - * *
                  * The operation succeeds conditional on the managed folder's current
                  * metageneration matching the value here specified.
                  * 
            * * optional int64 if_metageneration_match = 3; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -917,17 +824,14 @@ public Builder clearIfMetagenerationMatch() { return this; } - private long ifMetagenerationNotMatch_; + private long ifMetagenerationNotMatch_ ; /** - * - * *
                  * The operation succeeds conditional on the managed folder's current
                  * metageneration NOT matching the value here specified.
                  * 
            * * optional int64 if_metageneration_not_match = 4; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -935,15 +839,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
                  * The operation succeeds conditional on the managed folder's current
                  * metageneration NOT matching the value here specified.
                  * 
            * * optional int64 if_metageneration_not_match = 4; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -951,15 +852,12 @@ public long getIfMetagenerationNotMatch() { return ifMetagenerationNotMatch_; } /** - * - * *
                  * The operation succeeds conditional on the managed folder's current
                  * metageneration NOT matching the value here specified.
                  * 
            * * optional int64 if_metageneration_not_match = 4; - * * @param value The ifMetagenerationNotMatch to set. * @return This builder for chaining. */ @@ -971,15 +869,12 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** - * - * *
                  * The operation succeeds conditional on the managed folder's current
                  * metageneration NOT matching the value here specified.
                  * 
            * * optional int64 if_metageneration_not_match = 4; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -989,10 +884,8 @@ public Builder clearIfMetagenerationNotMatch() { return this; } - private boolean allowNonEmpty_; + private boolean allowNonEmpty_ ; /** - * - * *
                  * Allows deletion of a managed folder even if it is not empty.
                  * A managed folder is empty if it manages no child managed folders or
            @@ -1001,7 +894,6 @@ public Builder clearIfMetagenerationNotMatch() {
                  * 
            * * bool allow_non_empty = 5; - * * @return The allowNonEmpty. */ @java.lang.Override @@ -1009,8 +901,6 @@ public boolean getAllowNonEmpty() { return allowNonEmpty_; } /** - * - * *
                  * Allows deletion of a managed folder even if it is not empty.
                  * A managed folder is empty if it manages no child managed folders or
            @@ -1019,7 +909,6 @@ public boolean getAllowNonEmpty() {
                  * 
            * * bool allow_non_empty = 5; - * * @param value The allowNonEmpty to set. * @return This builder for chaining. */ @@ -1031,8 +920,6 @@ public Builder setAllowNonEmpty(boolean value) { return this; } /** - * - * *
                  * Allows deletion of a managed folder even if it is not empty.
                  * A managed folder is empty if it manages no child managed folders or
            @@ -1041,7 +928,6 @@ public Builder setAllowNonEmpty(boolean value) {
                  * 
            * * bool allow_non_empty = 5; - * * @return This builder for chaining. */ public Builder clearAllowNonEmpty() { @@ -1053,23 +939,19 @@ public Builder clearAllowNonEmpty() { private java.lang.Object requestId_ = ""; /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1078,24 +960,21 @@ public java.lang.String getRequestId() { } } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1103,41 +982,30 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1147,33 +1015,27 @@ public Builder clearRequestId() { return this; } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1183,12 +1045,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.control.v2.DeleteManagedFolderRequest) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.DeleteManagedFolderRequest) private static final com.google.storage.control.v2.DeleteManagedFolderRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.control.v2.DeleteManagedFolderRequest(); } @@ -1197,27 +1059,27 @@ public static com.google.storage.control.v2.DeleteManagedFolderRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteManagedFolderRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteManagedFolderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1232,4 +1094,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.storage.control.v2.DeleteManagedFolderRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteManagedFolderRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteManagedFolderRequestOrBuilder.java similarity index 66% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteManagedFolderRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteManagedFolderRequestOrBuilder.java index 953ece8b28..b435904af9 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteManagedFolderRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteManagedFolderRequestOrBuilder.java @@ -1,119 +1,80 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto // Protobuf Java Version: 3.25.3 package com.google.storage.control.v2; -public interface DeleteManagedFolderRequestOrBuilder - extends +public interface DeleteManagedFolderRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.DeleteManagedFolderRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
                * Required. Name of the managed folder.
                * Format:
                * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
                * 
            * - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
                * Required. Name of the managed folder.
                * Format:
                * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
                * 
            * - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
                * The operation succeeds conditional on the managed folder's current
                * metageneration matching the value here specified.
                * 
            * * optional int64 if_metageneration_match = 3; - * * @return Whether the ifMetagenerationMatch field is set. */ boolean hasIfMetagenerationMatch(); /** - * - * *
                * The operation succeeds conditional on the managed folder's current
                * metageneration matching the value here specified.
                * 
            * * optional int64 if_metageneration_match = 3; - * * @return The ifMetagenerationMatch. */ long getIfMetagenerationMatch(); /** - * - * *
                * The operation succeeds conditional on the managed folder's current
                * metageneration NOT matching the value here specified.
                * 
            * * optional int64 if_metageneration_not_match = 4; - * * @return Whether the ifMetagenerationNotMatch field is set. */ boolean hasIfMetagenerationNotMatch(); /** - * - * *
                * The operation succeeds conditional on the managed folder's current
                * metageneration NOT matching the value here specified.
                * 
            * * optional int64 if_metageneration_not_match = 4; - * * @return The ifMetagenerationNotMatch. */ long getIfMetagenerationNotMatch(); /** - * - * *
                * Allows deletion of a managed folder even if it is not empty.
                * A managed folder is empty if it manages no child managed folders or
            @@ -122,39 +83,29 @@ public interface DeleteManagedFolderRequestOrBuilder
                * 
            * * bool allow_non_empty = 5; - * * @return The allowNonEmpty. */ boolean getAllowNonEmpty(); /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/Folder.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/Folder.java similarity index 66% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/Folder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/Folder.java index 5a4ec2f54c..a235d52fbc 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/Folder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/Folder.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto @@ -20,66 +5,57 @@ package com.google.storage.control.v2; /** - * - * *
              * A folder resource. This resource can only exist in a hierarchical namespace
              * enabled bucket.
            - * Hierarchical namespace buckets are in allowlist preview.
              * 
            * * Protobuf type {@code google.storage.control.v2.Folder} */ -public final class Folder extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Folder extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.Folder) FolderOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Folder.newBuilder() to construct. private Folder(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Folder() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Folder(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_Folder_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_Folder_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_Folder_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_Folder_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.Folder.class, - com.google.storage.control.v2.Folder.Builder.class); + com.google.storage.control.v2.Folder.class, com.google.storage.control.v2.Folder.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
                * Identifier. The name of this folder.
                * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * * @return The name. */ @java.lang.Override @@ -88,30 +64,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
                * Identifier. The name of this folder.
                * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -122,15 +98,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int METAGENERATION_FIELD_NUMBER = 3; private long metageneration_ = 0L; /** - * - * *
                * Output only. The version of the metadata for this folder. Used for
                * preconditions and for detecting changes in metadata.
                * 
            * * int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The metageneration. */ @java.lang.Override @@ -141,15 +114,11 @@ public long getMetageneration() { public static final int CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createTime_; /** - * - * *
                * Output only. The creation time of the folder.
                * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -157,15 +126,11 @@ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * Output only. The creation time of the folder.
                * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -173,14 +138,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
                * Output only. The creation time of the folder.
                * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -190,15 +152,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
                * Output only. The modification time of the folder.
                * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -206,15 +164,11 @@ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                * Output only. The modification time of the folder.
                * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -222,14 +176,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
                * Output only. The modification time of the folder.
                * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -239,8 +190,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int PENDING_RENAME_INFO_FIELD_NUMBER = 7; private com.google.storage.control.v2.PendingRenameInfo pendingRenameInfo_; /** - * - * *
                * Output only. Only present if the folder is part of an ongoing RenameFolder
                * operation. Contains information which can be used to query the operation
            @@ -249,10 +198,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
                * operations.
                * 
            * - * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the pendingRenameInfo field is set. */ @java.lang.Override @@ -260,8 +206,6 @@ public boolean hasPendingRenameInfo() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
                * Output only. Only present if the folder is part of an ongoing RenameFolder
                * operation. Contains information which can be used to query the operation
            @@ -270,21 +214,14 @@ public boolean hasPendingRenameInfo() {
                * operations.
                * 
            * - * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The pendingRenameInfo. */ @java.lang.Override public com.google.storage.control.v2.PendingRenameInfo getPendingRenameInfo() { - return pendingRenameInfo_ == null - ? com.google.storage.control.v2.PendingRenameInfo.getDefaultInstance() - : pendingRenameInfo_; + return pendingRenameInfo_ == null ? com.google.storage.control.v2.PendingRenameInfo.getDefaultInstance() : pendingRenameInfo_; } /** - * - * *
                * Output only. Only present if the folder is part of an ongoing RenameFolder
                * operation. Contains information which can be used to query the operation
            @@ -293,19 +230,14 @@ public com.google.storage.control.v2.PendingRenameInfo getPendingRenameInfo() {
                * operations.
                * 
            * - * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.storage.control.v2.PendingRenameInfoOrBuilder getPendingRenameInfoOrBuilder() { - return pendingRenameInfo_ == null - ? com.google.storage.control.v2.PendingRenameInfo.getDefaultInstance() - : pendingRenameInfo_; + return pendingRenameInfo_ == null ? com.google.storage.control.v2.PendingRenameInfo.getDefaultInstance() : pendingRenameInfo_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -317,7 +249,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_); } @@ -346,16 +279,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (metageneration_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, metageneration_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, metageneration_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getUpdateTime()); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getPendingRenameInfo()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getPendingRenameInfo()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -365,26 +302,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.control.v2.Folder)) { return super.equals(obj); } com.google.storage.control.v2.Folder other = (com.google.storage.control.v2.Folder) obj; - if (!getName().equals(other.getName())) return false; - if (getMetageneration() != other.getMetageneration()) return false; + if (!getName() + .equals(other.getName())) return false; + if (getMetageneration() + != other.getMetageneration()) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (hasPendingRenameInfo() != other.hasPendingRenameInfo()) return false; if (hasPendingRenameInfo()) { - if (!getPendingRenameInfo().equals(other.getPendingRenameInfo())) return false; + if (!getPendingRenameInfo() + .equals(other.getPendingRenameInfo())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -400,7 +342,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + METAGENERATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMetageneration()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMetageneration()); if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); @@ -418,128 +361,121 @@ public int hashCode() { return hash; } - public static com.google.storage.control.v2.Folder parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.control.v2.Folder parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.Folder parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.control.v2.Folder parseFrom(com.google.protobuf.ByteString data) + public static com.google.storage.control.v2.Folder parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.Folder parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.Folder parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.Folder parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.Folder parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.Folder parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.storage.control.v2.Folder parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.Folder parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.Folder parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.Folder parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.control.v2.Folder prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * A folder resource. This resource can only exist in a hierarchical namespace
                * enabled bucket.
            -   * Hierarchical namespace buckets are in allowlist preview.
                * 
            * * Protobuf type {@code google.storage.control.v2.Folder} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.control.v2.Folder) com.google.storage.control.v2.FolderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_Folder_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_Folder_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_Folder_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_Folder_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.Folder.class, - com.google.storage.control.v2.Folder.Builder.class); + com.google.storage.control.v2.Folder.class, com.google.storage.control.v2.Folder.Builder.class); } // Construct using com.google.storage.control.v2.Folder.newBuilder() @@ -547,19 +483,19 @@ 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) { getCreateTimeFieldBuilder(); getUpdateTimeFieldBuilder(); getPendingRenameInfoFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -585,9 +521,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_Folder_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_Folder_descriptor; } @java.lang.Override @@ -607,9 +543,7 @@ public com.google.storage.control.v2.Folder build() { @java.lang.Override public com.google.storage.control.v2.Folder buildPartial() { com.google.storage.control.v2.Folder result = new com.google.storage.control.v2.Folder(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -624,18 +558,21 @@ private void buildPartial0(com.google.storage.control.v2.Folder result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.pendingRenameInfo_ = - pendingRenameInfoBuilder_ == null - ? pendingRenameInfo_ - : pendingRenameInfoBuilder_.build(); + result.pendingRenameInfo_ = pendingRenameInfoBuilder_ == null + ? pendingRenameInfo_ + : pendingRenameInfoBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; @@ -645,39 +582,38 @@ private void buildPartial0(com.google.storage.control.v2.Folder result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.control.v2.Folder) { - return mergeFrom((com.google.storage.control.v2.Folder) other); + return mergeFrom((com.google.storage.control.v2.Folder)other); } else { super.mergeFrom(other); return this; @@ -729,44 +665,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 24: - { - metageneration_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 24 - case 34: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 58: - { - input.readMessage( - getPendingRenameInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 24: { + metageneration_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 34: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 58: { + input.readMessage( + getPendingRenameInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -776,26 +711,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
                  * Identifier. The name of this folder.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -804,22 +736,21 @@ public java.lang.String getName() { } } /** - * - * *
                  * Identifier. The name of this folder.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -827,37 +758,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
                  * Identifier. The name of this folder.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * Identifier. The name of this folder.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -867,22 +791,18 @@ public Builder clearName() { return this; } /** - * - * *
                  * Identifier. The name of this folder.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -890,17 +810,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private long metageneration_; + private long metageneration_ ; /** - * - * *
                  * Output only. The version of the metadata for this folder. Used for
                  * preconditions and for detecting changes in metadata.
                  * 
            * * int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The metageneration. */ @java.lang.Override @@ -908,15 +825,12 @@ public long getMetageneration() { return metageneration_; } /** - * - * *
                  * Output only. The version of the metadata for this folder. Used for
                  * preconditions and for detecting changes in metadata.
                  * 
            * * int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The metageneration to set. * @return This builder for chaining. */ @@ -928,15 +842,12 @@ public Builder setMetageneration(long value) { return this; } /** - * - * *
                  * Output only. The version of the metadata for this folder. Used for
                  * preconditions and for detecting changes in metadata.
                  * 
            * * int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearMetageneration() { @@ -948,58 +859,39 @@ public Builder clearMetageneration() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
                  * Output only. The creation time of the folder.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
                  * Output only. The creation time of the folder.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
                  * Output only. The creation time of the folder.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1015,17 +907,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                  * Output only. The creation time of the folder.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1036,21 +925,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
                  * Output only. The creation time of the folder.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1065,15 +950,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                  * Output only. The creation time of the folder.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1086,15 +967,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
                  * Output only. The creation time of the folder.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000004; @@ -1102,48 +979,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
                  * Output only. The creation time of the folder.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
                  * Output only. The creation time of the folder.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1151,58 +1016,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
                  * Output only. The modification time of the folder.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
                  * Output only. The modification time of the folder.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
                  * Output only. The modification time of the folder.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1218,17 +1064,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                  * Output only. The modification time of the folder.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1239,21 +1082,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
                  * Output only. The modification time of the folder.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1268,15 +1107,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                  * Output only. The modification time of the folder.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1289,15 +1124,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
                  * Output only. The modification time of the folder.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000008; @@ -1305,48 +1136,36 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
                  * Output only. The modification time of the folder.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
                  * Output only. The modification time of the folder.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -1354,13 +1173,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.storage.control.v2.PendingRenameInfo pendingRenameInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.PendingRenameInfo, - com.google.storage.control.v2.PendingRenameInfo.Builder, - com.google.storage.control.v2.PendingRenameInfoOrBuilder> - pendingRenameInfoBuilder_; + com.google.storage.control.v2.PendingRenameInfo, com.google.storage.control.v2.PendingRenameInfo.Builder, com.google.storage.control.v2.PendingRenameInfoOrBuilder> pendingRenameInfoBuilder_; /** - * - * *
                  * Output only. Only present if the folder is part of an ongoing RenameFolder
                  * operation. Contains information which can be used to query the operation
            @@ -1369,18 +1183,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
                  * operations.
                  * 
            * - * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the pendingRenameInfo field is set. */ public boolean hasPendingRenameInfo() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
                  * Output only. Only present if the folder is part of an ongoing RenameFolder
                  * operation. Contains information which can be used to query the operation
            @@ -1389,24 +1198,17 @@ public boolean hasPendingRenameInfo() {
                  * operations.
                  * 
            * - * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The pendingRenameInfo. */ public com.google.storage.control.v2.PendingRenameInfo getPendingRenameInfo() { if (pendingRenameInfoBuilder_ == null) { - return pendingRenameInfo_ == null - ? com.google.storage.control.v2.PendingRenameInfo.getDefaultInstance() - : pendingRenameInfo_; + return pendingRenameInfo_ == null ? com.google.storage.control.v2.PendingRenameInfo.getDefaultInstance() : pendingRenameInfo_; } else { return pendingRenameInfoBuilder_.getMessage(); } } /** - * - * *
                  * Output only. Only present if the folder is part of an ongoing RenameFolder
                  * operation. Contains information which can be used to query the operation
            @@ -1415,9 +1217,7 @@ public com.google.storage.control.v2.PendingRenameInfo getPendingRenameInfo() {
                  * operations.
                  * 
            * - * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setPendingRenameInfo(com.google.storage.control.v2.PendingRenameInfo value) { if (pendingRenameInfoBuilder_ == null) { @@ -1433,8 +1233,6 @@ public Builder setPendingRenameInfo(com.google.storage.control.v2.PendingRenameI return this; } /** - * - * *
                  * Output only. Only present if the folder is part of an ongoing RenameFolder
                  * operation. Contains information which can be used to query the operation
            @@ -1443,9 +1241,7 @@ public Builder setPendingRenameInfo(com.google.storage.control.v2.PendingRenameI
                  * operations.
                  * 
            * - * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setPendingRenameInfo( com.google.storage.control.v2.PendingRenameInfo.Builder builderForValue) { @@ -1459,8 +1255,6 @@ public Builder setPendingRenameInfo( return this; } /** - * - * *
                  * Output only. Only present if the folder is part of an ongoing RenameFolder
                  * operation. Contains information which can be used to query the operation
            @@ -1469,16 +1263,13 @@ public Builder setPendingRenameInfo(
                  * operations.
                  * 
            * - * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergePendingRenameInfo(com.google.storage.control.v2.PendingRenameInfo value) { if (pendingRenameInfoBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && pendingRenameInfo_ != null - && pendingRenameInfo_ - != com.google.storage.control.v2.PendingRenameInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + pendingRenameInfo_ != null && + pendingRenameInfo_ != com.google.storage.control.v2.PendingRenameInfo.getDefaultInstance()) { getPendingRenameInfoBuilder().mergeFrom(value); } else { pendingRenameInfo_ = value; @@ -1493,8 +1284,6 @@ public Builder mergePendingRenameInfo(com.google.storage.control.v2.PendingRenam return this; } /** - * - * *
                  * Output only. Only present if the folder is part of an ongoing RenameFolder
                  * operation. Contains information which can be used to query the operation
            @@ -1503,9 +1292,7 @@ public Builder mergePendingRenameInfo(com.google.storage.control.v2.PendingRenam
                  * operations.
                  * 
            * - * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearPendingRenameInfo() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1518,8 +1305,6 @@ public Builder clearPendingRenameInfo() { return this; } /** - * - * *
                  * Output only. Only present if the folder is part of an ongoing RenameFolder
                  * operation. Contains information which can be used to query the operation
            @@ -1528,9 +1313,7 @@ public Builder clearPendingRenameInfo() {
                  * operations.
                  * 
            * - * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.storage.control.v2.PendingRenameInfo.Builder getPendingRenameInfoBuilder() { bitField0_ |= 0x00000010; @@ -1538,8 +1321,6 @@ public com.google.storage.control.v2.PendingRenameInfo.Builder getPendingRenameI return getPendingRenameInfoFieldBuilder().getBuilder(); } /** - * - * *
                  * Output only. Only present if the folder is part of an ongoing RenameFolder
                  * operation. Contains information which can be used to query the operation
            @@ -1548,23 +1329,17 @@ public com.google.storage.control.v2.PendingRenameInfo.Builder getPendingRenameI
                  * operations.
                  * 
            * - * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.storage.control.v2.PendingRenameInfoOrBuilder - getPendingRenameInfoOrBuilder() { + public com.google.storage.control.v2.PendingRenameInfoOrBuilder getPendingRenameInfoOrBuilder() { if (pendingRenameInfoBuilder_ != null) { return pendingRenameInfoBuilder_.getMessageOrBuilder(); } else { - return pendingRenameInfo_ == null - ? com.google.storage.control.v2.PendingRenameInfo.getDefaultInstance() - : pendingRenameInfo_; + return pendingRenameInfo_ == null ? + com.google.storage.control.v2.PendingRenameInfo.getDefaultInstance() : pendingRenameInfo_; } } /** - * - * *
                  * Output only. Only present if the folder is part of an ongoing RenameFolder
                  * operation. Contains information which can be used to query the operation
            @@ -1573,29 +1348,24 @@ public com.google.storage.control.v2.PendingRenameInfo.Builder getPendingRenameI
                  * operations.
                  * 
            * - * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.PendingRenameInfo, - com.google.storage.control.v2.PendingRenameInfo.Builder, - com.google.storage.control.v2.PendingRenameInfoOrBuilder> + com.google.storage.control.v2.PendingRenameInfo, com.google.storage.control.v2.PendingRenameInfo.Builder, com.google.storage.control.v2.PendingRenameInfoOrBuilder> getPendingRenameInfoFieldBuilder() { if (pendingRenameInfoBuilder_ == null) { - pendingRenameInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.PendingRenameInfo, - com.google.storage.control.v2.PendingRenameInfo.Builder, - com.google.storage.control.v2.PendingRenameInfoOrBuilder>( - getPendingRenameInfo(), getParentForChildren(), isClean()); + pendingRenameInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.control.v2.PendingRenameInfo, com.google.storage.control.v2.PendingRenameInfo.Builder, com.google.storage.control.v2.PendingRenameInfoOrBuilder>( + getPendingRenameInfo(), + getParentForChildren(), + isClean()); pendingRenameInfo_ = null; } return pendingRenameInfoBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1605,12 +1375,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.control.v2.Folder) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.Folder) private static final com.google.storage.control.v2.Folder DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.control.v2.Folder(); } @@ -1619,27 +1389,27 @@ public static com.google.storage.control.v2.Folder getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Folder parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Folder parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1654,4 +1424,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.Folder getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/FolderName.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/FolderName.java similarity index 100% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/FolderName.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/FolderName.java diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/FolderOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/FolderOrBuilder.java similarity index 71% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/FolderOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/FolderOrBuilder.java index b6a87b4ac1..5026ffc4e1 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/FolderOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/FolderOrBuilder.java @@ -1,149 +1,101 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto // Protobuf Java Version: 3.25.3 package com.google.storage.control.v2; -public interface FolderOrBuilder - extends +public interface FolderOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.Folder) com.google.protobuf.MessageOrBuilder { /** - * - * *
                * Identifier. The name of this folder.
                * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
                * Identifier. The name of this folder.
                * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
                * Output only. The version of the metadata for this folder. Used for
                * preconditions and for detecting changes in metadata.
                * 
            * * int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The metageneration. */ long getMetageneration(); /** - * - * *
                * Output only. The creation time of the folder.
                * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
                * Output only. The creation time of the folder.
                * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
                * Output only. The creation time of the folder.
                * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
                * Output only. The modification time of the folder.
                * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
                * Output only. The modification time of the folder.
                * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
                * Output only. The modification time of the folder.
                * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
                * Output only. Only present if the folder is part of an ongoing RenameFolder
                * operation. Contains information which can be used to query the operation
            @@ -152,16 +104,11 @@ public interface FolderOrBuilder
                * operations.
                * 
            * - * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the pendingRenameInfo field is set. */ boolean hasPendingRenameInfo(); /** - * - * *
                * Output only. Only present if the folder is part of an ongoing RenameFolder
                * operation. Contains information which can be used to query the operation
            @@ -170,16 +117,11 @@ public interface FolderOrBuilder
                * operations.
                * 
            * - * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The pendingRenameInfo. */ com.google.storage.control.v2.PendingRenameInfo getPendingRenameInfo(); /** - * - * *
                * Output only. Only present if the folder is part of an ongoing RenameFolder
                * operation. Contains information which can be used to query the operation
            @@ -188,9 +130,7 @@ public interface FolderOrBuilder
                * operations.
                * 
            * - * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.storage.control.v2.PendingRenameInfoOrBuilder getPendingRenameInfoOrBuilder(); } diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetFolderRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetFolderRequest.java similarity index 68% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetFolderRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetFolderRequest.java index 6baf949a69..560760020e 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetFolderRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetFolderRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto @@ -20,26 +5,22 @@ package com.google.storage.control.v2; /** - * - * *
              * Request message for GetFolder. This operation is only applicable to a
              * hierarchical namespace enabled bucket.
            - * Hierarchical namespace buckets are in allowlist preview.
              * 
            * * Protobuf type {@code google.storage.control.v2.GetFolderRequest} */ -public final class GetFolderRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetFolderRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.GetFolderRequest) GetFolderRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetFolderRequest.newBuilder() to construct. private GetFolderRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetFolderRequest() { name_ = ""; requestId_ = ""; @@ -47,42 +28,35 @@ private GetFolderRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetFolderRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_GetFolderRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetFolderRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_GetFolderRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetFolderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.GetFolderRequest.class, - com.google.storage.control.v2.GetFolderRequest.Builder.class); + com.google.storage.control.v2.GetFolderRequest.class, com.google.storage.control.v2.GetFolderRequest.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
                * Required. Name of the folder.
                * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                * 
            * - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -91,32 +65,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
                * Required. Name of the folder.
                * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                * 
            * - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -127,15 +99,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER = 3; private long ifMetagenerationMatch_ = 0L; /** - * - * *
                * Makes the operation only succeed conditional on whether the folder's
                * current metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 3; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -143,15 +112,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * Makes the operation only succeed conditional on whether the folder's
                * current metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 3; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -162,15 +128,12 @@ public long getIfMetagenerationMatch() { public static final int IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER = 4; private long ifMetagenerationNotMatch_ = 0L; /** - * - * *
                * Makes the operation only succeed conditional on whether the folder's
                * current metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 4; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -178,15 +141,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                * Makes the operation only succeed conditional on whether the folder's
                * current metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 4; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -195,21 +155,15 @@ public long getIfMetagenerationNotMatch() { } public static final int REQUEST_ID_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ @java.lang.Override @@ -218,32 +172,30 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -252,7 +204,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,7 +215,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(3, ifMetagenerationMatch_); } @@ -287,10 +239,12 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, ifMetagenerationMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, ifMetagenerationMatch_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ifMetagenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, ifMetagenerationNotMatch_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, requestId_); @@ -306,24 +260,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.control.v2.GetFolderRequest)) { return super.equals(obj); } - com.google.storage.control.v2.GetFolderRequest other = - (com.google.storage.control.v2.GetFolderRequest) obj; + com.google.storage.control.v2.GetFolderRequest other = (com.google.storage.control.v2.GetFolderRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasIfMetagenerationMatch() != other.hasIfMetagenerationMatch()) return false; if (hasIfMetagenerationMatch()) { - if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false; + if (getIfMetagenerationMatch() + != other.getIfMetagenerationMatch()) return false; } if (hasIfMetagenerationNotMatch() != other.hasIfMetagenerationNotMatch()) return false; if (hasIfMetagenerationNotMatch()) { - if (getIfMetagenerationNotMatch() != other.getIfMetagenerationNotMatch()) return false; + if (getIfMetagenerationNotMatch() + != other.getIfMetagenerationNotMatch()) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -339,11 +296,13 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); if (hasIfMetagenerationMatch()) { hash = (37 * hash) + IF_METAGENERATION_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationMatch()); } if (hasIfMetagenerationNotMatch()) { hash = (37 * hash) + IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationNotMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationNotMatch()); } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); @@ -352,138 +311,133 @@ public int hashCode() { return hash; } - public static com.google.storage.control.v2.GetFolderRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.control.v2.GetFolderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.GetFolderRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.GetFolderRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.GetFolderRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.GetFolderRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.GetFolderRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.GetFolderRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.GetFolderRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.GetFolderRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.GetFolderRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.GetFolderRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.GetFolderRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.GetFolderRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.control.v2.GetFolderRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * Request message for GetFolder. This operation is only applicable to a
                * hierarchical namespace enabled bucket.
            -   * Hierarchical namespace buckets are in allowlist preview.
                * 
            * * Protobuf type {@code google.storage.control.v2.GetFolderRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.control.v2.GetFolderRequest) com.google.storage.control.v2.GetFolderRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_GetFolderRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetFolderRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_GetFolderRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetFolderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.GetFolderRequest.class, - com.google.storage.control.v2.GetFolderRequest.Builder.class); + com.google.storage.control.v2.GetFolderRequest.class, com.google.storage.control.v2.GetFolderRequest.Builder.class); } // Construct using com.google.storage.control.v2.GetFolderRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -496,9 +450,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_GetFolderRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetFolderRequest_descriptor; } @java.lang.Override @@ -517,11 +471,8 @@ public com.google.storage.control.v2.GetFolderRequest build() { @java.lang.Override public com.google.storage.control.v2.GetFolderRequest buildPartial() { - com.google.storage.control.v2.GetFolderRequest result = - new com.google.storage.control.v2.GetFolderRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.control.v2.GetFolderRequest result = new com.google.storage.control.v2.GetFolderRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -550,39 +501,38 @@ private void buildPartial0(com.google.storage.control.v2.GetFolderRequest result public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.control.v2.GetFolderRequest) { - return mergeFrom((com.google.storage.control.v2.GetFolderRequest) other); + return mergeFrom((com.google.storage.control.v2.GetFolderRequest)other); } else { super.mergeFrom(other); return this; @@ -633,37 +583,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 24: - { - ifMetagenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 24 - case 32: - { - ifMetagenerationNotMatch_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 32 - case 42: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 50: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 24: { + ifMetagenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 32: { + ifMetagenerationNotMatch_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 42: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -673,28 +618,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
                  * Required. Name of the folder.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -703,24 +643,21 @@ public java.lang.String getName() { } } /** - * - * *
                  * Required. Name of the folder.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -728,41 +665,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
                  * Required. Name of the folder.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * Required. Name of the folder.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -772,24 +698,18 @@ public Builder clearName() { return this; } /** - * - * *
                  * Required. Name of the folder.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -797,17 +717,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private long ifMetagenerationMatch_; + private long ifMetagenerationMatch_ ; /** - * - * *
                  * Makes the operation only succeed conditional on whether the folder's
                  * current metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 3; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -815,15 +732,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                  * Makes the operation only succeed conditional on whether the folder's
                  * current metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 3; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -831,15 +745,12 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** - * - * *
                  * Makes the operation only succeed conditional on whether the folder's
                  * current metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 3; - * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -851,15 +762,12 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** - * - * *
                  * Makes the operation only succeed conditional on whether the folder's
                  * current metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 3; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -869,17 +777,14 @@ public Builder clearIfMetagenerationMatch() { return this; } - private long ifMetagenerationNotMatch_; + private long ifMetagenerationNotMatch_ ; /** - * - * *
                  * Makes the operation only succeed conditional on whether the folder's
                  * current metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 4; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -887,15 +792,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
                  * Makes the operation only succeed conditional on whether the folder's
                  * current metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 4; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -903,15 +805,12 @@ public long getIfMetagenerationNotMatch() { return ifMetagenerationNotMatch_; } /** - * - * *
                  * Makes the operation only succeed conditional on whether the folder's
                  * current metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 4; - * * @param value The ifMetagenerationNotMatch to set. * @return This builder for chaining. */ @@ -923,15 +822,12 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** - * - * *
                  * Makes the operation only succeed conditional on whether the folder's
                  * current metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 4; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -943,23 +839,19 @@ public Builder clearIfMetagenerationNotMatch() { private java.lang.Object requestId_ = ""; /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -968,24 +860,21 @@ public java.lang.String getRequestId() { } } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -993,41 +882,30 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1037,33 +915,27 @@ public Builder clearRequestId() { return this; } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1073,12 +945,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.control.v2.GetFolderRequest) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.GetFolderRequest) private static final com.google.storage.control.v2.GetFolderRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.control.v2.GetFolderRequest(); } @@ -1087,27 +959,27 @@ public static com.google.storage.control.v2.GetFolderRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetFolderRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFolderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1122,4 +994,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.GetFolderRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetFolderRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetFolderRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetFolderRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetFolderRequestOrBuilder.java index 2041920c33..0f704cb322 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetFolderRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetFolderRequestOrBuilder.java @@ -1,142 +1,96 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto // Protobuf Java Version: 3.25.3 package com.google.storage.control.v2; -public interface GetFolderRequestOrBuilder - extends +public interface GetFolderRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.GetFolderRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
                * Required. Name of the folder.
                * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                * 
            * - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
                * Required. Name of the folder.
                * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                * 
            * - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
                * Makes the operation only succeed conditional on whether the folder's
                * current metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 3; - * * @return Whether the ifMetagenerationMatch field is set. */ boolean hasIfMetagenerationMatch(); /** - * - * *
                * Makes the operation only succeed conditional on whether the folder's
                * current metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 3; - * * @return The ifMetagenerationMatch. */ long getIfMetagenerationMatch(); /** - * - * *
                * Makes the operation only succeed conditional on whether the folder's
                * current metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 4; - * * @return Whether the ifMetagenerationNotMatch field is set. */ boolean hasIfMetagenerationNotMatch(); /** - * - * *
                * Makes the operation only succeed conditional on whether the folder's
                * current metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 4; - * * @return The ifMetagenerationNotMatch. */ long getIfMetagenerationNotMatch(); /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetManagedFolderRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetManagedFolderRequest.java similarity index 68% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetManagedFolderRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetManagedFolderRequest.java index 1d79d2235e..fd1fe926cb 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetManagedFolderRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetManagedFolderRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto @@ -20,24 +5,21 @@ package com.google.storage.control.v2; /** - * - * *
              * Request message for GetManagedFolder.
              * 
            * * Protobuf type {@code google.storage.control.v2.GetManagedFolderRequest} */ -public final class GetManagedFolderRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetManagedFolderRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.GetManagedFolderRequest) GetManagedFolderRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetManagedFolderRequest.newBuilder() to construct. private GetManagedFolderRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetManagedFolderRequest() { name_ = ""; requestId_ = ""; @@ -45,43 +27,36 @@ private GetManagedFolderRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetManagedFolderRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_GetManagedFolderRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetManagedFolderRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_GetManagedFolderRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetManagedFolderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.GetManagedFolderRequest.class, - com.google.storage.control.v2.GetManagedFolderRequest.Builder.class); + com.google.storage.control.v2.GetManagedFolderRequest.class, com.google.storage.control.v2.GetManagedFolderRequest.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
                * Required. Name of the managed folder.
                * Format:
                * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
                * 
            * - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -90,33 +65,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
                * Required. Name of the managed folder.
                * Format:
                * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
                * 
            * - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -127,15 +100,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER = 3; private long ifMetagenerationMatch_ = 0L; /** - * - * *
                * The operation succeeds conditional on the managed folder's current
                * metageneration matching the value here specified.
                * 
            * * optional int64 if_metageneration_match = 3; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -143,15 +113,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * The operation succeeds conditional on the managed folder's current
                * metageneration matching the value here specified.
                * 
            * * optional int64 if_metageneration_match = 3; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -162,15 +129,12 @@ public long getIfMetagenerationMatch() { public static final int IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER = 4; private long ifMetagenerationNotMatch_ = 0L; /** - * - * *
                * The operation succeeds conditional on the managed folder's current
                * metageneration NOT matching the value here specified.
                * 
            * * optional int64 if_metageneration_not_match = 4; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -178,15 +142,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                * The operation succeeds conditional on the managed folder's current
                * metageneration NOT matching the value here specified.
                * 
            * * optional int64 if_metageneration_not_match = 4; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -195,21 +156,15 @@ public long getIfMetagenerationNotMatch() { } public static final int REQUEST_ID_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ @java.lang.Override @@ -218,32 +173,30 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -252,7 +205,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,7 +216,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(3, ifMetagenerationMatch_); } @@ -287,10 +240,12 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, ifMetagenerationMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, ifMetagenerationMatch_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ifMetagenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, ifMetagenerationNotMatch_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, requestId_); @@ -306,24 +261,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.control.v2.GetManagedFolderRequest)) { return super.equals(obj); } - com.google.storage.control.v2.GetManagedFolderRequest other = - (com.google.storage.control.v2.GetManagedFolderRequest) obj; + com.google.storage.control.v2.GetManagedFolderRequest other = (com.google.storage.control.v2.GetManagedFolderRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasIfMetagenerationMatch() != other.hasIfMetagenerationMatch()) return false; if (hasIfMetagenerationMatch()) { - if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false; + if (getIfMetagenerationMatch() + != other.getIfMetagenerationMatch()) return false; } if (hasIfMetagenerationNotMatch() != other.hasIfMetagenerationNotMatch()) return false; if (hasIfMetagenerationNotMatch()) { - if (getIfMetagenerationNotMatch() != other.getIfMetagenerationNotMatch()) return false; + if (getIfMetagenerationNotMatch() + != other.getIfMetagenerationNotMatch()) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -339,11 +297,13 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); if (hasIfMetagenerationMatch()) { hash = (37 * hash) + IF_METAGENERATION_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationMatch()); } if (hasIfMetagenerationNotMatch()) { hash = (37 * hash) + IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationNotMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationNotMatch()); } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); @@ -353,136 +313,131 @@ public int hashCode() { } public static com.google.storage.control.v2.GetManagedFolderRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.GetManagedFolderRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.GetManagedFolderRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.GetManagedFolderRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.GetManagedFolderRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.GetManagedFolderRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.control.v2.GetManagedFolderRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.control.v2.GetManagedFolderRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.GetManagedFolderRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.GetManagedFolderRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.GetManagedFolderRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.GetManagedFolderRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.GetManagedFolderRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.GetManagedFolderRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.storage.control.v2.GetManagedFolderRequest prototype) { + public static Builder newBuilder(com.google.storage.control.v2.GetManagedFolderRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 GetManagedFolder.
                * 
            * * Protobuf type {@code google.storage.control.v2.GetManagedFolderRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.control.v2.GetManagedFolderRequest) com.google.storage.control.v2.GetManagedFolderRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_GetManagedFolderRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetManagedFolderRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_GetManagedFolderRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetManagedFolderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.GetManagedFolderRequest.class, - com.google.storage.control.v2.GetManagedFolderRequest.Builder.class); + com.google.storage.control.v2.GetManagedFolderRequest.class, com.google.storage.control.v2.GetManagedFolderRequest.Builder.class); } // Construct using com.google.storage.control.v2.GetManagedFolderRequest.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(); @@ -495,9 +450,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_GetManagedFolderRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetManagedFolderRequest_descriptor; } @java.lang.Override @@ -516,11 +471,8 @@ public com.google.storage.control.v2.GetManagedFolderRequest build() { @java.lang.Override public com.google.storage.control.v2.GetManagedFolderRequest buildPartial() { - com.google.storage.control.v2.GetManagedFolderRequest result = - new com.google.storage.control.v2.GetManagedFolderRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.control.v2.GetManagedFolderRequest result = new com.google.storage.control.v2.GetManagedFolderRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -549,39 +501,38 @@ private void buildPartial0(com.google.storage.control.v2.GetManagedFolderRequest public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.control.v2.GetManagedFolderRequest) { - return mergeFrom((com.google.storage.control.v2.GetManagedFolderRequest) other); + return mergeFrom((com.google.storage.control.v2.GetManagedFolderRequest)other); } else { super.mergeFrom(other); return this; @@ -589,8 +540,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.control.v2.GetManagedFolderRequest other) { - if (other == com.google.storage.control.v2.GetManagedFolderRequest.getDefaultInstance()) - return this; + if (other == com.google.storage.control.v2.GetManagedFolderRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -633,37 +583,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 24: - { - ifMetagenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 24 - case 32: - { - ifMetagenerationNotMatch_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 32 - case 42: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 50: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 24: { + ifMetagenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 32: { + ifMetagenerationNotMatch_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 42: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -673,29 +618,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
                  * Required. Name of the managed folder.
                  * Format:
                  * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
                  * 
            * - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -704,25 +644,22 @@ public java.lang.String getName() { } } /** - * - * *
                  * Required. Name of the managed folder.
                  * Format:
                  * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
                  * 
            * - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -730,43 +667,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
                  * Required. Name of the managed folder.
                  * Format:
                  * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
                  * 
            * - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * Required. Name of the managed folder.
                  * Format:
                  * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
                  * 
            * - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -776,25 +702,19 @@ public Builder clearName() { return this; } /** - * - * *
                  * Required. Name of the managed folder.
                  * Format:
                  * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
                  * 
            * - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -802,17 +722,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private long ifMetagenerationMatch_; + private long ifMetagenerationMatch_ ; /** - * - * *
                  * The operation succeeds conditional on the managed folder's current
                  * metageneration matching the value here specified.
                  * 
            * * optional int64 if_metageneration_match = 3; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -820,15 +737,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                  * The operation succeeds conditional on the managed folder's current
                  * metageneration matching the value here specified.
                  * 
            * * optional int64 if_metageneration_match = 3; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -836,15 +750,12 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** - * - * *
                  * The operation succeeds conditional on the managed folder's current
                  * metageneration matching the value here specified.
                  * 
            * * optional int64 if_metageneration_match = 3; - * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -856,15 +767,12 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** - * - * *
                  * The operation succeeds conditional on the managed folder's current
                  * metageneration matching the value here specified.
                  * 
            * * optional int64 if_metageneration_match = 3; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -874,17 +782,14 @@ public Builder clearIfMetagenerationMatch() { return this; } - private long ifMetagenerationNotMatch_; + private long ifMetagenerationNotMatch_ ; /** - * - * *
                  * The operation succeeds conditional on the managed folder's current
                  * metageneration NOT matching the value here specified.
                  * 
            * * optional int64 if_metageneration_not_match = 4; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -892,15 +797,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
                  * The operation succeeds conditional on the managed folder's current
                  * metageneration NOT matching the value here specified.
                  * 
            * * optional int64 if_metageneration_not_match = 4; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -908,15 +810,12 @@ public long getIfMetagenerationNotMatch() { return ifMetagenerationNotMatch_; } /** - * - * *
                  * The operation succeeds conditional on the managed folder's current
                  * metageneration NOT matching the value here specified.
                  * 
            * * optional int64 if_metageneration_not_match = 4; - * * @param value The ifMetagenerationNotMatch to set. * @return This builder for chaining. */ @@ -928,15 +827,12 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** - * - * *
                  * The operation succeeds conditional on the managed folder's current
                  * metageneration NOT matching the value here specified.
                  * 
            * * optional int64 if_metageneration_not_match = 4; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -948,23 +844,19 @@ public Builder clearIfMetagenerationNotMatch() { private java.lang.Object requestId_ = ""; /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -973,24 +865,21 @@ public java.lang.String getRequestId() { } } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -998,41 +887,30 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1042,33 +920,27 @@ public Builder clearRequestId() { return this; } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1078,12 +950,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.control.v2.GetManagedFolderRequest) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.GetManagedFolderRequest) private static final com.google.storage.control.v2.GetManagedFolderRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.control.v2.GetManagedFolderRequest(); } @@ -1092,27 +964,27 @@ public static com.google.storage.control.v2.GetManagedFolderRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetManagedFolderRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetManagedFolderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1127,4 +999,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.GetManagedFolderRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetManagedFolderRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetManagedFolderRequestOrBuilder.java similarity index 64% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetManagedFolderRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetManagedFolderRequestOrBuilder.java index 191c0a1500..5bd022971f 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetManagedFolderRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetManagedFolderRequestOrBuilder.java @@ -1,144 +1,98 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto // Protobuf Java Version: 3.25.3 package com.google.storage.control.v2; -public interface GetManagedFolderRequestOrBuilder - extends +public interface GetManagedFolderRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.GetManagedFolderRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
                * Required. Name of the managed folder.
                * Format:
                * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
                * 
            * - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
                * Required. Name of the managed folder.
                * Format:
                * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
                * 
            * - * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
                * The operation succeeds conditional on the managed folder's current
                * metageneration matching the value here specified.
                * 
            * * optional int64 if_metageneration_match = 3; - * * @return Whether the ifMetagenerationMatch field is set. */ boolean hasIfMetagenerationMatch(); /** - * - * *
                * The operation succeeds conditional on the managed folder's current
                * metageneration matching the value here specified.
                * 
            * * optional int64 if_metageneration_match = 3; - * * @return The ifMetagenerationMatch. */ long getIfMetagenerationMatch(); /** - * - * *
                * The operation succeeds conditional on the managed folder's current
                * metageneration NOT matching the value here specified.
                * 
            * * optional int64 if_metageneration_not_match = 4; - * * @return Whether the ifMetagenerationNotMatch field is set. */ boolean hasIfMetagenerationNotMatch(); /** - * - * *
                * The operation succeeds conditional on the managed folder's current
                * metageneration NOT matching the value here specified.
                * 
            * * optional int64 if_metageneration_not_match = 4; - * * @return The ifMetagenerationNotMatch. */ long getIfMetagenerationNotMatch(); /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequest.java similarity index 65% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequest.java index 63c3eae7f0..764284721b 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto @@ -20,24 +5,21 @@ package com.google.storage.control.v2; /** - * - * *
              * Request message for GetStorageLayout.
              * 
            * * Protobuf type {@code google.storage.control.v2.GetStorageLayoutRequest} */ -public final class GetStorageLayoutRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetStorageLayoutRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.GetStorageLayoutRequest) GetStorageLayoutRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetStorageLayoutRequest.newBuilder() to construct. private GetStorageLayoutRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetStorageLayoutRequest() { name_ = ""; prefix_ = ""; @@ -46,41 +28,34 @@ private GetStorageLayoutRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetStorageLayoutRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_GetStorageLayoutRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetStorageLayoutRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_GetStorageLayoutRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetStorageLayoutRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.GetStorageLayoutRequest.class, - com.google.storage.control.v2.GetStorageLayoutRequest.Builder.class); + com.google.storage.control.v2.GetStorageLayoutRequest.class, com.google.storage.control.v2.GetStorageLayoutRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
                * Required. The name of the StorageLayout resource.
                * Format: `projects/{project}/buckets/{bucket}/storageLayout`
                * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -89,32 +64,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
                * Required. The name of the StorageLayout resource.
                * Format: `projects/{project}/buckets/{bucket}/storageLayout`
                * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,19 +96,15 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int PREFIX_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object prefix_ = ""; /** - * - * *
                * An optional prefix used for permission check. It is useful when the caller
                * only has limited permissions under a specific prefix.
                * 
            * * string prefix = 2; - * * @return The prefix. */ @java.lang.Override @@ -144,30 +113,30 @@ public java.lang.String getPrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); prefix_ = s; return s; } } /** - * - * *
                * An optional prefix used for permission check. It is useful when the caller
                * only has limited permissions under a specific prefix.
                * 
            * * string prefix = 2; - * * @return The bytes for prefix. */ @java.lang.Override - public com.google.protobuf.ByteString getPrefixBytes() { + public com.google.protobuf.ByteString + getPrefixBytes() { java.lang.Object ref = prefix_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); prefix_ = b; return b; } else { @@ -176,21 +145,15 @@ public com.google.protobuf.ByteString getPrefixBytes() { } public static final int REQUEST_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ @java.lang.Override @@ -199,32 +162,30 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -233,7 +194,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -245,7 +205,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -281,17 +242,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.control.v2.GetStorageLayoutRequest)) { return super.equals(obj); } - com.google.storage.control.v2.GetStorageLayoutRequest other = - (com.google.storage.control.v2.GetStorageLayoutRequest) obj; + com.google.storage.control.v2.GetStorageLayoutRequest other = (com.google.storage.control.v2.GetStorageLayoutRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getPrefix().equals(other.getPrefix())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getPrefix() + .equals(other.getPrefix())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -315,136 +278,131 @@ public int hashCode() { } public static com.google.storage.control.v2.GetStorageLayoutRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.GetStorageLayoutRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.GetStorageLayoutRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.GetStorageLayoutRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.GetStorageLayoutRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.GetStorageLayoutRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.control.v2.GetStorageLayoutRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.control.v2.GetStorageLayoutRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.GetStorageLayoutRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.GetStorageLayoutRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.GetStorageLayoutRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.GetStorageLayoutRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.GetStorageLayoutRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.GetStorageLayoutRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.storage.control.v2.GetStorageLayoutRequest prototype) { + public static Builder newBuilder(com.google.storage.control.v2.GetStorageLayoutRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * Request message for GetStorageLayout.
                * 
            * * Protobuf type {@code google.storage.control.v2.GetStorageLayoutRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.control.v2.GetStorageLayoutRequest) com.google.storage.control.v2.GetStorageLayoutRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_GetStorageLayoutRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetStorageLayoutRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_GetStorageLayoutRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetStorageLayoutRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.GetStorageLayoutRequest.class, - com.google.storage.control.v2.GetStorageLayoutRequest.Builder.class); + com.google.storage.control.v2.GetStorageLayoutRequest.class, com.google.storage.control.v2.GetStorageLayoutRequest.Builder.class); } // Construct using com.google.storage.control.v2.GetStorageLayoutRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -456,9 +414,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_GetStorageLayoutRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetStorageLayoutRequest_descriptor; } @java.lang.Override @@ -477,11 +435,8 @@ public com.google.storage.control.v2.GetStorageLayoutRequest build() { @java.lang.Override public com.google.storage.control.v2.GetStorageLayoutRequest buildPartial() { - com.google.storage.control.v2.GetStorageLayoutRequest result = - new com.google.storage.control.v2.GetStorageLayoutRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.control.v2.GetStorageLayoutRequest result = new com.google.storage.control.v2.GetStorageLayoutRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -503,39 +458,38 @@ private void buildPartial0(com.google.storage.control.v2.GetStorageLayoutRequest public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.control.v2.GetStorageLayoutRequest) { - return mergeFrom((com.google.storage.control.v2.GetStorageLayoutRequest) other); + return mergeFrom((com.google.storage.control.v2.GetStorageLayoutRequest)other); } else { super.mergeFrom(other); return this; @@ -543,8 +497,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.control.v2.GetStorageLayoutRequest other) { - if (other == com.google.storage.control.v2.GetStorageLayoutRequest.getDefaultInstance()) - return this; + if (other == com.google.storage.control.v2.GetStorageLayoutRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -586,31 +539,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - prefix_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + prefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -620,28 +569,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
                  * Required. The name of the StorageLayout resource.
                  * Format: `projects/{project}/buckets/{bucket}/storageLayout`
                  * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -650,24 +594,21 @@ public java.lang.String getName() { } } /** - * - * *
                  * Required. The name of the StorageLayout resource.
                  * Format: `projects/{project}/buckets/{bucket}/storageLayout`
                  * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -675,41 +616,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
                  * Required. The name of the StorageLayout resource.
                  * Format: `projects/{project}/buckets/{bucket}/storageLayout`
                  * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * Required. The name of the StorageLayout resource.
                  * Format: `projects/{project}/buckets/{bucket}/storageLayout`
                  * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -719,24 +649,18 @@ public Builder clearName() { return this; } /** - * - * *
                  * Required. The name of the StorageLayout resource.
                  * Format: `projects/{project}/buckets/{bucket}/storageLayout`
                  * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -746,21 +670,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object prefix_ = ""; /** - * - * *
                  * An optional prefix used for permission check. It is useful when the caller
                  * only has limited permissions under a specific prefix.
                  * 
            * * string prefix = 2; - * * @return The prefix. */ public java.lang.String getPrefix() { java.lang.Object ref = prefix_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); prefix_ = s; return s; @@ -769,22 +691,21 @@ public java.lang.String getPrefix() { } } /** - * - * *
                  * An optional prefix used for permission check. It is useful when the caller
                  * only has limited permissions under a specific prefix.
                  * 
            * * string prefix = 2; - * * @return The bytes for prefix. */ - public com.google.protobuf.ByteString getPrefixBytes() { + public com.google.protobuf.ByteString + getPrefixBytes() { java.lang.Object ref = prefix_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); prefix_ = b; return b; } else { @@ -792,37 +713,30 @@ public com.google.protobuf.ByteString getPrefixBytes() { } } /** - * - * *
                  * An optional prefix used for permission check. It is useful when the caller
                  * only has limited permissions under a specific prefix.
                  * 
            * * string prefix = 2; - * * @param value The prefix to set. * @return This builder for chaining. */ - public Builder setPrefix(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPrefix( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } prefix_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                  * An optional prefix used for permission check. It is useful when the caller
                  * only has limited permissions under a specific prefix.
                  * 
            * * string prefix = 2; - * * @return This builder for chaining. */ public Builder clearPrefix() { @@ -832,22 +746,18 @@ public Builder clearPrefix() { return this; } /** - * - * *
                  * An optional prefix used for permission check. It is useful when the caller
                  * only has limited permissions under a specific prefix.
                  * 
            * * string prefix = 2; - * * @param value The bytes for prefix to set. * @return This builder for chaining. */ - public Builder setPrefixBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPrefixBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); prefix_ = value; bitField0_ |= 0x00000002; @@ -857,23 +767,19 @@ public Builder setPrefixBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -882,24 +788,21 @@ public java.lang.String getRequestId() { } } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -907,41 +810,30 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return This builder for chaining. */ public Builder clearRequestId() { @@ -951,33 +843,27 @@ public Builder clearRequestId() { return this; } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -987,12 +873,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.control.v2.GetStorageLayoutRequest) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.GetStorageLayoutRequest) private static final com.google.storage.control.v2.GetStorageLayoutRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.control.v2.GetStorageLayoutRequest(); } @@ -1001,27 +887,27 @@ public static com.google.storage.control.v2.GetStorageLayoutRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetStorageLayoutRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetStorageLayoutRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1036,4 +922,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.GetStorageLayoutRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequestOrBuilder.java similarity index 54% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequestOrBuilder.java index 984bd15a2e..be2b67e1bc 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequestOrBuilder.java @@ -1,115 +1,76 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto // Protobuf Java Version: 3.25.3 package com.google.storage.control.v2; -public interface GetStorageLayoutRequestOrBuilder - extends +public interface GetStorageLayoutRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.GetStorageLayoutRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
                * Required. The name of the StorageLayout resource.
                * Format: `projects/{project}/buckets/{bucket}/storageLayout`
                * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
                * Required. The name of the StorageLayout resource.
                * Format: `projects/{project}/buckets/{bucket}/storageLayout`
                * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
                * An optional prefix used for permission check. It is useful when the caller
                * only has limited permissions under a specific prefix.
                * 
            * * string prefix = 2; - * * @return The prefix. */ java.lang.String getPrefix(); /** - * - * *
                * An optional prefix used for permission check. It is useful when the caller
                * only has limited permissions under a specific prefix.
                * 
            * * string prefix = 2; - * * @return The bytes for prefix. */ - com.google.protobuf.ByteString getPrefixBytes(); + com.google.protobuf.ByteString + getPrefixBytes(); /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersRequest.java similarity index 73% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersRequest.java index e47352bafe..eb064b07c8 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto @@ -20,26 +5,22 @@ package com.google.storage.control.v2; /** - * - * *
              * Request message for ListFolders. This operation is only applicable to a
              * hierarchical namespace enabled bucket.
            - * Hierarchical namespace buckets are in allowlist preview.
              * 
            * * Protobuf type {@code google.storage.control.v2.ListFoldersRequest} */ -public final class ListFoldersRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFoldersRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.ListFoldersRequest) ListFoldersRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFoldersRequest.newBuilder() to construct. private ListFoldersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFoldersRequest() { parent_ = ""; pageToken_ = ""; @@ -52,41 +33,34 @@ private ListFoldersRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFoldersRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_ListFoldersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListFoldersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_ListFoldersRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListFoldersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.ListFoldersRequest.class, - com.google.storage.control.v2.ListFoldersRequest.Builder.class); + com.google.storage.control.v2.ListFoldersRequest.class, com.google.storage.control.v2.ListFoldersRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
                * Required. Name of the bucket in which to look for folders. The bucket must
                * be a hierarchical namespace enabled 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 @@ -95,32 +69,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
                * Required. Name of the bucket in which to look for folders. The bucket must
                * be a hierarchical namespace enabled 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 { @@ -131,15 +103,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
                * Optional. Maximum number of folders to return in a single response. The
                * service will use this parameter or 1,000 items, whichever is smaller.
                * 
            * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -148,19 +117,15 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
                * Optional. A previously-returned page token representing part of the larger
                * set of results to view.
                * 
            * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -169,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; } } /** - * - * *
                * Optional. A previously-returned page token representing part of the larger
                * set of results to view.
                * 
            * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -201,19 +166,15 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int PREFIX_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object prefix_ = ""; /** - * - * *
                * Optional. Filter results to folders whose names begin with this prefix.
                * If set, the value must either be an empty string or end with a '/'.
                * 
            * * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The prefix. */ @java.lang.Override @@ -222,30 +183,30 @@ public java.lang.String getPrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); prefix_ = s; return s; } } /** - * - * *
                * Optional. Filter results to folders whose names begin with this prefix.
                * If set, the value must either be an empty string or end with a '/'.
                * 
            * * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for prefix. */ @java.lang.Override - public com.google.protobuf.ByteString getPrefixBytes() { + public com.google.protobuf.ByteString + getPrefixBytes() { java.lang.Object ref = prefix_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); prefix_ = b; return b; } else { @@ -254,12 +215,9 @@ public com.google.protobuf.ByteString getPrefixBytes() { } public static final int DELIMITER_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object delimiter_ = ""; /** - * - * *
                * Optional. If set, returns results in a directory-like mode. The results
                * will only include folders that either exactly match the above prefix, or
            @@ -267,7 +225,6 @@ public com.google.protobuf.ByteString getPrefixBytes() {
                * 
            * * string delimiter = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The delimiter. */ @java.lang.Override @@ -276,15 +233,14 @@ public java.lang.String getDelimiter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); delimiter_ = s; return s; } } /** - * - * *
                * Optional. If set, returns results in a directory-like mode. The results
                * will only include folders that either exactly match the above prefix, or
            @@ -292,15 +248,16 @@ public java.lang.String getDelimiter() {
                * 
            * * string delimiter = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for delimiter. */ @java.lang.Override - public com.google.protobuf.ByteString getDelimiterBytes() { + public com.google.protobuf.ByteString + getDelimiterBytes() { java.lang.Object ref = delimiter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); delimiter_ = b; return b; } else { @@ -309,12 +266,9 @@ public com.google.protobuf.ByteString getDelimiterBytes() { } public static final int LEXICOGRAPHIC_START_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object lexicographicStart_ = ""; /** - * - * *
                * Optional. Filter results to folders whose names are lexicographically equal
                * to or after lexicographic_start. If lexicographic_end is also set, the
            @@ -323,7 +277,6 @@ public com.google.protobuf.ByteString getDelimiterBytes() {
                * 
            * * string lexicographic_start = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The lexicographicStart. */ @java.lang.Override @@ -332,15 +285,14 @@ public java.lang.String getLexicographicStart() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lexicographicStart_ = s; return s; } } /** - * - * *
                * Optional. Filter results to folders whose names are lexicographically equal
                * to or after lexicographic_start. If lexicographic_end is also set, the
            @@ -349,15 +301,16 @@ public java.lang.String getLexicographicStart() {
                * 
            * * string lexicographic_start = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for lexicographicStart. */ @java.lang.Override - public com.google.protobuf.ByteString getLexicographicStartBytes() { + public com.google.protobuf.ByteString + getLexicographicStartBytes() { java.lang.Object ref = lexicographicStart_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); lexicographicStart_ = b; return b; } else { @@ -366,12 +319,9 @@ public com.google.protobuf.ByteString getLexicographicStartBytes() { } public static final int LEXICOGRAPHIC_END_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object lexicographicEnd_ = ""; /** - * - * *
                * Optional. Filter results to folders whose names are lexicographically
                * before lexicographic_end. If lexicographic_start is also set, the folders
            @@ -380,7 +330,6 @@ public com.google.protobuf.ByteString getLexicographicStartBytes() {
                * 
            * * string lexicographic_end = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The lexicographicEnd. */ @java.lang.Override @@ -389,15 +338,14 @@ public java.lang.String getLexicographicEnd() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lexicographicEnd_ = s; return s; } } /** - * - * *
                * Optional. Filter results to folders whose names are lexicographically
                * before lexicographic_end. If lexicographic_start is also set, the folders
            @@ -406,15 +354,16 @@ public java.lang.String getLexicographicEnd() {
                * 
            * * string lexicographic_end = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for lexicographicEnd. */ @java.lang.Override - public com.google.protobuf.ByteString getLexicographicEndBytes() { + public com.google.protobuf.ByteString + getLexicographicEndBytes() { java.lang.Object ref = lexicographicEnd_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); lexicographicEnd_ = b; return b; } else { @@ -423,21 +372,15 @@ public com.google.protobuf.ByteString getLexicographicEndBytes() { } public static final int REQUEST_ID_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * - * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ @java.lang.Override @@ -446,32 +389,30 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * - * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -480,7 +421,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -492,7 +432,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_); } @@ -530,7 +471,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_); @@ -558,22 +500,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.control.v2.ListFoldersRequest)) { return super.equals(obj); } - com.google.storage.control.v2.ListFoldersRequest other = - (com.google.storage.control.v2.ListFoldersRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getPrefix().equals(other.getPrefix())) return false; - if (!getDelimiter().equals(other.getDelimiter())) return false; - if (!getLexicographicStart().equals(other.getLexicographicStart())) return false; - if (!getLexicographicEnd().equals(other.getLexicographicEnd())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + com.google.storage.control.v2.ListFoldersRequest other = (com.google.storage.control.v2.ListFoldersRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getPrefix() + .equals(other.getPrefix())) return false; + if (!getDelimiter() + .equals(other.getDelimiter())) return false; + if (!getLexicographicStart() + .equals(other.getLexicographicStart())) return false; + if (!getLexicographicEnd() + .equals(other.getLexicographicEnd())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -606,138 +555,133 @@ public int hashCode() { return hash; } - public static com.google.storage.control.v2.ListFoldersRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.control.v2.ListFoldersRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.ListFoldersRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.ListFoldersRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.ListFoldersRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.ListFoldersRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.ListFoldersRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.control.v2.ListFoldersRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.control.v2.ListFoldersRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.ListFoldersRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.ListFoldersRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.ListFoldersRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.ListFoldersRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.ListFoldersRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.ListFoldersRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.control.v2.ListFoldersRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * Request message for ListFolders. This operation is only applicable to a
                * hierarchical namespace enabled bucket.
            -   * Hierarchical namespace buckets are in allowlist preview.
                * 
            * * Protobuf type {@code google.storage.control.v2.ListFoldersRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.control.v2.ListFoldersRequest) com.google.storage.control.v2.ListFoldersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_ListFoldersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListFoldersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_ListFoldersRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListFoldersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.ListFoldersRequest.class, - com.google.storage.control.v2.ListFoldersRequest.Builder.class); + com.google.storage.control.v2.ListFoldersRequest.class, com.google.storage.control.v2.ListFoldersRequest.Builder.class); } // Construct using com.google.storage.control.v2.ListFoldersRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -754,9 +698,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_ListFoldersRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListFoldersRequest_descriptor; } @java.lang.Override @@ -775,11 +719,8 @@ public com.google.storage.control.v2.ListFoldersRequest build() { @java.lang.Override public com.google.storage.control.v2.ListFoldersRequest buildPartial() { - com.google.storage.control.v2.ListFoldersRequest result = - new com.google.storage.control.v2.ListFoldersRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.control.v2.ListFoldersRequest result = new com.google.storage.control.v2.ListFoldersRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -816,39 +757,38 @@ private void buildPartial0(com.google.storage.control.v2.ListFoldersRequest resu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.control.v2.ListFoldersRequest) { - return mergeFrom((com.google.storage.control.v2.ListFoldersRequest) other); + return mergeFrom((com.google.storage.control.v2.ListFoldersRequest)other); } else { super.mergeFrom(other); return this; @@ -856,8 +796,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.control.v2.ListFoldersRequest other) { - if (other == com.google.storage.control.v2.ListFoldersRequest.getDefaultInstance()) - return this; + if (other == com.google.storage.control.v2.ListFoldersRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -922,61 +861,52 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - prefix_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 50: - { - lexicographicStart_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - lexicographicEnd_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - delimiter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 66 - case 74: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 74 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + prefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: { + lexicographicStart_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + lexicographicEnd_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + delimiter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 66 + case 74: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 74 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -986,28 +916,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
                  * Required. Name of the bucket in which to look for folders. The bucket must
                  * be a hierarchical namespace enabled 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; @@ -1016,24 +941,21 @@ public java.lang.String getParent() { } } /** - * - * *
                  * Required. Name of the bucket in which to look for folders. The bucket must
                  * be a hierarchical namespace enabled 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 { @@ -1041,41 +963,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
                  * Required. Name of the bucket in which to look for folders. The bucket must
                  * be a hierarchical namespace enabled 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 the bucket in which to look for folders. The bucket must
                  * be a hierarchical namespace enabled 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() { @@ -1085,24 +996,18 @@ public Builder clearParent() { return this; } /** - * - * *
                  * Required. Name of the bucket in which to look for folders. The bucket must
                  * be a hierarchical namespace enabled 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; @@ -1110,17 +1015,14 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
                  * Optional. Maximum number of folders to return in a single response. The
                  * service will use this parameter or 1,000 items, whichever is smaller.
                  * 
            * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -1128,15 +1030,12 @@ public int getPageSize() { return pageSize_; } /** - * - * *
                  * Optional. Maximum number of folders to return in a single response. The
                  * service will use this parameter or 1,000 items, whichever is smaller.
                  * 
            * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1148,15 +1047,12 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
                  * Optional. Maximum number of folders to return in a single response. The
                  * service will use this parameter or 1,000 items, whichever is smaller.
                  * 
            * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1168,21 +1064,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
                  * Optional. A previously-returned page token representing part of the larger
                  * set of results to view.
                  * 
            * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1191,22 +1085,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
                  * Optional. A previously-returned page token representing part of the larger
                  * set of results to view.
                  * 
            * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1214,37 +1107,30 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
                  * Optional. A previously-returned page token representing part of the larger
                  * set of results to view.
                  * 
            * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
                  * Optional. A previously-returned page token representing part of the larger
                  * set of results to view.
                  * 
            * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1254,22 +1140,18 @@ public Builder clearPageToken() { return this; } /** - * - * *
                  * Optional. A previously-returned page token representing part of the larger
                  * set of results to view.
                  * 
            * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1279,21 +1161,19 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object prefix_ = ""; /** - * - * *
                  * Optional. Filter results to folders whose names begin with this prefix.
                  * If set, the value must either be an empty string or end with a '/'.
                  * 
            * * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The prefix. */ public java.lang.String getPrefix() { java.lang.Object ref = prefix_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); prefix_ = s; return s; @@ -1302,22 +1182,21 @@ public java.lang.String getPrefix() { } } /** - * - * *
                  * Optional. Filter results to folders whose names begin with this prefix.
                  * If set, the value must either be an empty string or end with a '/'.
                  * 
            * * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for prefix. */ - public com.google.protobuf.ByteString getPrefixBytes() { + public com.google.protobuf.ByteString + getPrefixBytes() { java.lang.Object ref = prefix_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); prefix_ = b; return b; } else { @@ -1325,37 +1204,30 @@ public com.google.protobuf.ByteString getPrefixBytes() { } } /** - * - * *
                  * Optional. Filter results to folders whose names begin with this prefix.
                  * If set, the value must either be an empty string or end with a '/'.
                  * 
            * * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The prefix to set. * @return This builder for chaining. */ - public Builder setPrefix(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPrefix( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } prefix_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
                  * Optional. Filter results to folders whose names begin with this prefix.
                  * If set, the value must either be an empty string or end with a '/'.
                  * 
            * * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPrefix() { @@ -1365,22 +1237,18 @@ public Builder clearPrefix() { return this; } /** - * - * *
                  * Optional. Filter results to folders whose names begin with this prefix.
                  * If set, the value must either be an empty string or end with a '/'.
                  * 
            * * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for prefix to set. * @return This builder for chaining. */ - public Builder setPrefixBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPrefixBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); prefix_ = value; bitField0_ |= 0x00000008; @@ -1390,8 +1258,6 @@ public Builder setPrefixBytes(com.google.protobuf.ByteString value) { private java.lang.Object delimiter_ = ""; /** - * - * *
                  * Optional. If set, returns results in a directory-like mode. The results
                  * will only include folders that either exactly match the above prefix, or
            @@ -1399,13 +1265,13 @@ public Builder setPrefixBytes(com.google.protobuf.ByteString value) {
                  * 
            * * string delimiter = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The delimiter. */ public java.lang.String getDelimiter() { java.lang.Object ref = delimiter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); delimiter_ = s; return s; @@ -1414,8 +1280,6 @@ public java.lang.String getDelimiter() { } } /** - * - * *
                  * Optional. If set, returns results in a directory-like mode. The results
                  * will only include folders that either exactly match the above prefix, or
            @@ -1423,14 +1287,15 @@ public java.lang.String getDelimiter() {
                  * 
            * * string delimiter = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for delimiter. */ - public com.google.protobuf.ByteString getDelimiterBytes() { + public com.google.protobuf.ByteString + getDelimiterBytes() { java.lang.Object ref = delimiter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); delimiter_ = b; return b; } else { @@ -1438,8 +1303,6 @@ public com.google.protobuf.ByteString getDelimiterBytes() { } } /** - * - * *
                  * Optional. If set, returns results in a directory-like mode. The results
                  * will only include folders that either exactly match the above prefix, or
            @@ -1447,22 +1310,18 @@ public com.google.protobuf.ByteString getDelimiterBytes() {
                  * 
            * * string delimiter = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The delimiter to set. * @return This builder for chaining. */ - public Builder setDelimiter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDelimiter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } delimiter_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
                  * Optional. If set, returns results in a directory-like mode. The results
                  * will only include folders that either exactly match the above prefix, or
            @@ -1470,7 +1329,6 @@ public Builder setDelimiter(java.lang.String value) {
                  * 
            * * string delimiter = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDelimiter() { @@ -1480,8 +1338,6 @@ public Builder clearDelimiter() { return this; } /** - * - * *
                  * Optional. If set, returns results in a directory-like mode. The results
                  * will only include folders that either exactly match the above prefix, or
            @@ -1489,14 +1345,12 @@ public Builder clearDelimiter() {
                  * 
            * * string delimiter = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for delimiter to set. * @return This builder for chaining. */ - public Builder setDelimiterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDelimiterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); delimiter_ = value; bitField0_ |= 0x00000010; @@ -1506,8 +1360,6 @@ public Builder setDelimiterBytes(com.google.protobuf.ByteString value) { private java.lang.Object lexicographicStart_ = ""; /** - * - * *
                  * Optional. Filter results to folders whose names are lexicographically equal
                  * to or after lexicographic_start. If lexicographic_end is also set, the
            @@ -1516,13 +1368,13 @@ public Builder setDelimiterBytes(com.google.protobuf.ByteString value) {
                  * 
            * * string lexicographic_start = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The lexicographicStart. */ public java.lang.String getLexicographicStart() { java.lang.Object ref = lexicographicStart_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lexicographicStart_ = s; return s; @@ -1531,8 +1383,6 @@ public java.lang.String getLexicographicStart() { } } /** - * - * *
                  * Optional. Filter results to folders whose names are lexicographically equal
                  * to or after lexicographic_start. If lexicographic_end is also set, the
            @@ -1541,14 +1391,15 @@ public java.lang.String getLexicographicStart() {
                  * 
            * * string lexicographic_start = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for lexicographicStart. */ - public com.google.protobuf.ByteString getLexicographicStartBytes() { + public com.google.protobuf.ByteString + getLexicographicStartBytes() { java.lang.Object ref = lexicographicStart_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); lexicographicStart_ = b; return b; } else { @@ -1556,8 +1407,6 @@ public com.google.protobuf.ByteString getLexicographicStartBytes() { } } /** - * - * *
                  * Optional. Filter results to folders whose names are lexicographically equal
                  * to or after lexicographic_start. If lexicographic_end is also set, the
            @@ -1566,22 +1415,18 @@ public com.google.protobuf.ByteString getLexicographicStartBytes() {
                  * 
            * * string lexicographic_start = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The lexicographicStart to set. * @return This builder for chaining. */ - public Builder setLexicographicStart(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLexicographicStart( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } lexicographicStart_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
                  * Optional. Filter results to folders whose names are lexicographically equal
                  * to or after lexicographic_start. If lexicographic_end is also set, the
            @@ -1590,7 +1435,6 @@ public Builder setLexicographicStart(java.lang.String value) {
                  * 
            * * string lexicographic_start = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearLexicographicStart() { @@ -1600,8 +1444,6 @@ public Builder clearLexicographicStart() { return this; } /** - * - * *
                  * Optional. Filter results to folders whose names are lexicographically equal
                  * to or after lexicographic_start. If lexicographic_end is also set, the
            @@ -1610,14 +1452,12 @@ public Builder clearLexicographicStart() {
                  * 
            * * string lexicographic_start = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for lexicographicStart to set. * @return This builder for chaining. */ - public Builder setLexicographicStartBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLexicographicStartBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); lexicographicStart_ = value; bitField0_ |= 0x00000020; @@ -1627,8 +1467,6 @@ public Builder setLexicographicStartBytes(com.google.protobuf.ByteString value) private java.lang.Object lexicographicEnd_ = ""; /** - * - * *
                  * Optional. Filter results to folders whose names are lexicographically
                  * before lexicographic_end. If lexicographic_start is also set, the folders
            @@ -1637,13 +1475,13 @@ public Builder setLexicographicStartBytes(com.google.protobuf.ByteString value)
                  * 
            * * string lexicographic_end = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The lexicographicEnd. */ public java.lang.String getLexicographicEnd() { java.lang.Object ref = lexicographicEnd_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lexicographicEnd_ = s; return s; @@ -1652,8 +1490,6 @@ public java.lang.String getLexicographicEnd() { } } /** - * - * *
                  * Optional. Filter results to folders whose names are lexicographically
                  * before lexicographic_end. If lexicographic_start is also set, the folders
            @@ -1662,14 +1498,15 @@ public java.lang.String getLexicographicEnd() {
                  * 
            * * string lexicographic_end = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for lexicographicEnd. */ - public com.google.protobuf.ByteString getLexicographicEndBytes() { + public com.google.protobuf.ByteString + getLexicographicEndBytes() { java.lang.Object ref = lexicographicEnd_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); lexicographicEnd_ = b; return b; } else { @@ -1677,8 +1514,6 @@ public com.google.protobuf.ByteString getLexicographicEndBytes() { } } /** - * - * *
                  * Optional. Filter results to folders whose names are lexicographically
                  * before lexicographic_end. If lexicographic_start is also set, the folders
            @@ -1687,22 +1522,18 @@ public com.google.protobuf.ByteString getLexicographicEndBytes() {
                  * 
            * * string lexicographic_end = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The lexicographicEnd to set. * @return This builder for chaining. */ - public Builder setLexicographicEnd(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLexicographicEnd( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } lexicographicEnd_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
                  * Optional. Filter results to folders whose names are lexicographically
                  * before lexicographic_end. If lexicographic_start is also set, the folders
            @@ -1711,7 +1542,6 @@ public Builder setLexicographicEnd(java.lang.String value) {
                  * 
            * * string lexicographic_end = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearLexicographicEnd() { @@ -1721,8 +1551,6 @@ public Builder clearLexicographicEnd() { return this; } /** - * - * *
                  * Optional. Filter results to folders whose names are lexicographically
                  * before lexicographic_end. If lexicographic_start is also set, the folders
            @@ -1731,14 +1559,12 @@ public Builder clearLexicographicEnd() {
                  * 
            * * string lexicographic_end = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for lexicographicEnd to set. * @return This builder for chaining. */ - public Builder setLexicographicEndBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLexicographicEndBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); lexicographicEnd_ = value; bitField0_ |= 0x00000040; @@ -1748,23 +1574,19 @@ public Builder setLexicographicEndBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1773,24 +1595,21 @@ public java.lang.String getRequestId() { } } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1798,41 +1617,30 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1842,33 +1650,27 @@ public Builder clearRequestId() { return this; } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1878,12 +1680,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.control.v2.ListFoldersRequest) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.ListFoldersRequest) private static final com.google.storage.control.v2.ListFoldersRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.control.v2.ListFoldersRequest(); } @@ -1892,27 +1694,27 @@ public static com.google.storage.control.v2.ListFoldersRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFoldersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFoldersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1927,4 +1729,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.ListFoldersRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersRequestOrBuilder.java similarity index 74% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersRequestOrBuilder.java index 0e06b43233..2e20f70085 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersRequestOrBuilder.java @@ -1,131 +1,91 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto // Protobuf Java Version: 3.25.3 package com.google.storage.control.v2; -public interface ListFoldersRequestOrBuilder - extends +public interface ListFoldersRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.ListFoldersRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
                * Required. Name of the bucket in which to look for folders. The bucket must
                * be a hierarchical namespace enabled 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 the bucket in which to look for folders. The bucket must
                * be a hierarchical namespace enabled 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(); /** - * - * *
                * Optional. Maximum number of folders to return in a single response. The
                * service will use this parameter or 1,000 items, whichever is smaller.
                * 
            * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
                * Optional. A previously-returned page token representing part of the larger
                * set of results to view.
                * 
            * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
                * Optional. A previously-returned page token representing part of the larger
                * set of results to view.
                * 
            * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
                * Optional. Filter results to folders whose names begin with this prefix.
                * If set, the value must either be an empty string or end with a '/'.
                * 
            * * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The prefix. */ java.lang.String getPrefix(); /** - * - * *
                * Optional. Filter results to folders whose names begin with this prefix.
                * If set, the value must either be an empty string or end with a '/'.
                * 
            * * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for prefix. */ - com.google.protobuf.ByteString getPrefixBytes(); + com.google.protobuf.ByteString + getPrefixBytes(); /** - * - * *
                * Optional. If set, returns results in a directory-like mode. The results
                * will only include folders that either exactly match the above prefix, or
            @@ -133,13 +93,10 @@ public interface ListFoldersRequestOrBuilder
                * 
            * * string delimiter = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The delimiter. */ java.lang.String getDelimiter(); /** - * - * *
                * Optional. If set, returns results in a directory-like mode. The results
                * will only include folders that either exactly match the above prefix, or
            @@ -147,14 +104,12 @@ public interface ListFoldersRequestOrBuilder
                * 
            * * string delimiter = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for delimiter. */ - com.google.protobuf.ByteString getDelimiterBytes(); + com.google.protobuf.ByteString + getDelimiterBytes(); /** - * - * *
                * Optional. Filter results to folders whose names are lexicographically equal
                * to or after lexicographic_start. If lexicographic_end is also set, the
            @@ -163,13 +118,10 @@ public interface ListFoldersRequestOrBuilder
                * 
            * * string lexicographic_start = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The lexicographicStart. */ java.lang.String getLexicographicStart(); /** - * - * *
                * Optional. Filter results to folders whose names are lexicographically equal
                * to or after lexicographic_start. If lexicographic_end is also set, the
            @@ -178,14 +130,12 @@ public interface ListFoldersRequestOrBuilder
                * 
            * * string lexicographic_start = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for lexicographicStart. */ - com.google.protobuf.ByteString getLexicographicStartBytes(); + com.google.protobuf.ByteString + getLexicographicStartBytes(); /** - * - * *
                * Optional. Filter results to folders whose names are lexicographically
                * before lexicographic_end. If lexicographic_start is also set, the folders
            @@ -194,13 +144,10 @@ public interface ListFoldersRequestOrBuilder
                * 
            * * string lexicographic_end = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The lexicographicEnd. */ java.lang.String getLexicographicEnd(); /** - * - * *
                * Optional. Filter results to folders whose names are lexicographically
                * before lexicographic_end. If lexicographic_start is also set, the folders
            @@ -209,39 +156,30 @@ public interface ListFoldersRequestOrBuilder
                * 
            * * string lexicographic_end = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for lexicographicEnd. */ - com.google.protobuf.ByteString getLexicographicEndBytes(); + com.google.protobuf.ByteString + getLexicographicEndBytes(); /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * - * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * - * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersResponse.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersResponse.java similarity index 71% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersResponse.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersResponse.java index 31f6c07568..afc553c5c8 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersResponse.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto @@ -20,24 +5,21 @@ package com.google.storage.control.v2; /** - * - * *
              * Response message for ListFolders.
              * 
            * * Protobuf type {@code google.storage.control.v2.ListFoldersResponse} */ -public final class ListFoldersResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFoldersResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.ListFoldersResponse) ListFoldersResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFoldersResponse.newBuilder() to construct. private ListFoldersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFoldersResponse() { folders_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,32 +27,28 @@ private ListFoldersResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFoldersResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_ListFoldersResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListFoldersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_ListFoldersResponse_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListFoldersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.ListFoldersResponse.class, - com.google.storage.control.v2.ListFoldersResponse.Builder.class); + com.google.storage.control.v2.ListFoldersResponse.class, com.google.storage.control.v2.ListFoldersResponse.Builder.class); } public static final int FOLDERS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List folders_; /** - * - * *
                * The list of child folders
                * 
            @@ -82,8 +60,6 @@ public java.util.List getFoldersList() { return folders_; } /** - * - * *
                * The list of child folders
                * 
            @@ -91,13 +67,11 @@ public java.util.List getFoldersList() { * repeated .google.storage.control.v2.Folder folders = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFoldersOrBuilderList() { return folders_; } /** - * - * *
                * The list of child folders
                * 
            @@ -109,8 +83,6 @@ public int getFoldersCount() { return folders_.size(); } /** - * - * *
                * The list of child folders
                * 
            @@ -122,8 +94,6 @@ public com.google.storage.control.v2.Folder getFolders(int index) { return folders_.get(index); } /** - * - * *
                * The list of child folders
                * 
            @@ -131,24 +101,21 @@ public com.google.storage.control.v2.Folder getFolders(int index) { * repeated .google.storage.control.v2.Folder folders = 1; */ @java.lang.Override - public com.google.storage.control.v2.FolderOrBuilder getFoldersOrBuilder(int index) { + public com.google.storage.control.v2.FolderOrBuilder getFoldersOrBuilder( + int index) { return folders_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
                * The continuation token, used to page through large result sets. Provide
                * this value in a subsequent request to return the next page of results.
                * 
            * * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -157,30 +124,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
                * The continuation token, used to page through large result sets. Provide
                * this value in a subsequent request to return the next page of results.
                * 
            * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -189,7 +156,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,7 +167,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < folders_.size(); i++) { output.writeMessage(1, folders_.get(i)); } @@ -218,7 +185,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < folders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, folders_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, folders_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -231,16 +199,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.control.v2.ListFoldersResponse)) { return super.equals(obj); } - com.google.storage.control.v2.ListFoldersResponse other = - (com.google.storage.control.v2.ListFoldersResponse) obj; + com.google.storage.control.v2.ListFoldersResponse other = (com.google.storage.control.v2.ListFoldersResponse) obj; - if (!getFoldersList().equals(other.getFoldersList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getFoldersList() + .equals(other.getFoldersList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -264,135 +233,131 @@ public int hashCode() { } public static com.google.storage.control.v2.ListFoldersResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.ListFoldersResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.ListFoldersResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.ListFoldersResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.ListFoldersResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.ListFoldersResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.control.v2.ListFoldersResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.control.v2.ListFoldersResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.ListFoldersResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.ListFoldersResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.ListFoldersResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.ListFoldersResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.ListFoldersResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.ListFoldersResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.control.v2.ListFoldersResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * Response message for ListFolders.
                * 
            * * Protobuf type {@code google.storage.control.v2.ListFoldersResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.control.v2.ListFoldersResponse) com.google.storage.control.v2.ListFoldersResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_ListFoldersResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListFoldersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_ListFoldersResponse_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListFoldersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.ListFoldersResponse.class, - com.google.storage.control.v2.ListFoldersResponse.Builder.class); + com.google.storage.control.v2.ListFoldersResponse.class, com.google.storage.control.v2.ListFoldersResponse.Builder.class); } // Construct using com.google.storage.control.v2.ListFoldersResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -409,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_ListFoldersResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListFoldersResponse_descriptor; } @java.lang.Override @@ -430,18 +395,14 @@ public com.google.storage.control.v2.ListFoldersResponse build() { @java.lang.Override public com.google.storage.control.v2.ListFoldersResponse buildPartial() { - com.google.storage.control.v2.ListFoldersResponse result = - new com.google.storage.control.v2.ListFoldersResponse(this); + com.google.storage.control.v2.ListFoldersResponse result = new com.google.storage.control.v2.ListFoldersResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.storage.control.v2.ListFoldersResponse result) { + private void buildPartialRepeatedFields(com.google.storage.control.v2.ListFoldersResponse result) { if (foldersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { folders_ = java.util.Collections.unmodifiableList(folders_); @@ -464,39 +425,38 @@ private void buildPartial0(com.google.storage.control.v2.ListFoldersResponse res public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.control.v2.ListFoldersResponse) { - return mergeFrom((com.google.storage.control.v2.ListFoldersResponse) other); + return mergeFrom((com.google.storage.control.v2.ListFoldersResponse)other); } else { super.mergeFrom(other); return this; @@ -504,8 +464,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.control.v2.ListFoldersResponse other) { - if (other == com.google.storage.control.v2.ListFoldersResponse.getDefaultInstance()) - return this; + if (other == com.google.storage.control.v2.ListFoldersResponse.getDefaultInstance()) return this; if (foldersBuilder_ == null) { if (!other.folders_.isEmpty()) { if (folders_.isEmpty()) { @@ -524,10 +483,9 @@ public Builder mergeFrom(com.google.storage.control.v2.ListFoldersResponse other foldersBuilder_ = null; folders_ = other.folders_; bitField0_ = (bitField0_ & ~0x00000001); - foldersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFoldersFieldBuilder() - : null; + foldersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFoldersFieldBuilder() : null; } else { foldersBuilder_.addAllMessages(other.folders_); } @@ -564,32 +522,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.storage.control.v2.Folder m = - input.readMessage( - com.google.storage.control.v2.Folder.parser(), extensionRegistry); - if (foldersBuilder_ == null) { - ensureFoldersIsMutable(); - folders_.add(m); - } else { - foldersBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.storage.control.v2.Folder m = + input.readMessage( + com.google.storage.control.v2.Folder.parser(), + extensionRegistry); + if (foldersBuilder_ == null) { + ensureFoldersIsMutable(); + folders_.add(m); + } else { + foldersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -599,28 +555,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List folders_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFoldersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { folders_ = new java.util.ArrayList(folders_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.control.v2.Folder, - com.google.storage.control.v2.Folder.Builder, - com.google.storage.control.v2.FolderOrBuilder> - foldersBuilder_; + com.google.storage.control.v2.Folder, com.google.storage.control.v2.Folder.Builder, com.google.storage.control.v2.FolderOrBuilder> foldersBuilder_; /** - * - * *
                  * The list of child folders
                  * 
            @@ -635,8 +584,6 @@ public java.util.List getFoldersList() { } } /** - * - * *
                  * The list of child folders
                  * 
            @@ -651,8 +598,6 @@ public int getFoldersCount() { } } /** - * - * *
                  * The list of child folders
                  * 
            @@ -667,15 +612,14 @@ public com.google.storage.control.v2.Folder getFolders(int index) { } } /** - * - * *
                  * The list of child folders
                  * 
            * * repeated .google.storage.control.v2.Folder folders = 1; */ - public Builder setFolders(int index, com.google.storage.control.v2.Folder value) { + public Builder setFolders( + int index, com.google.storage.control.v2.Folder value) { if (foldersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -689,8 +633,6 @@ public Builder setFolders(int index, com.google.storage.control.v2.Folder value) return this; } /** - * - * *
                  * The list of child folders
                  * 
            @@ -709,8 +651,6 @@ public Builder setFolders( return this; } /** - * - * *
                  * The list of child folders
                  * 
            @@ -731,15 +671,14 @@ public Builder addFolders(com.google.storage.control.v2.Folder value) { return this; } /** - * - * *
                  * The list of child folders
                  * 
            * * repeated .google.storage.control.v2.Folder folders = 1; */ - public Builder addFolders(int index, com.google.storage.control.v2.Folder value) { + public Builder addFolders( + int index, com.google.storage.control.v2.Folder value) { if (foldersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -753,15 +692,14 @@ public Builder addFolders(int index, com.google.storage.control.v2.Folder value) return this; } /** - * - * *
                  * The list of child folders
                  * 
            * * repeated .google.storage.control.v2.Folder folders = 1; */ - public Builder addFolders(com.google.storage.control.v2.Folder.Builder builderForValue) { + public Builder addFolders( + com.google.storage.control.v2.Folder.Builder builderForValue) { if (foldersBuilder_ == null) { ensureFoldersIsMutable(); folders_.add(builderForValue.build()); @@ -772,8 +710,6 @@ public Builder addFolders(com.google.storage.control.v2.Folder.Builder builderFo return this; } /** - * - * *
                  * The list of child folders
                  * 
            @@ -792,8 +728,6 @@ public Builder addFolders( return this; } /** - * - * *
                  * The list of child folders
                  * 
            @@ -804,7 +738,8 @@ public Builder addAllFolders( java.lang.Iterable values) { if (foldersBuilder_ == null) { ensureFoldersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, folders_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, folders_); onChanged(); } else { foldersBuilder_.addAllMessages(values); @@ -812,8 +747,6 @@ public Builder addAllFolders( return this; } /** - * - * *
                  * The list of child folders
                  * 
            @@ -831,8 +764,6 @@ public Builder clearFolders() { return this; } /** - * - * *
                  * The list of child folders
                  * 
            @@ -850,44 +781,39 @@ public Builder removeFolders(int index) { return this; } /** - * - * *
                  * The list of child folders
                  * 
            * * repeated .google.storage.control.v2.Folder folders = 1; */ - public com.google.storage.control.v2.Folder.Builder getFoldersBuilder(int index) { + public com.google.storage.control.v2.Folder.Builder getFoldersBuilder( + int index) { return getFoldersFieldBuilder().getBuilder(index); } /** - * - * *
                  * The list of child folders
                  * 
            * * repeated .google.storage.control.v2.Folder folders = 1; */ - public com.google.storage.control.v2.FolderOrBuilder getFoldersOrBuilder(int index) { + public com.google.storage.control.v2.FolderOrBuilder getFoldersOrBuilder( + int index) { if (foldersBuilder_ == null) { - return folders_.get(index); - } else { + return folders_.get(index); } else { return foldersBuilder_.getMessageOrBuilder(index); } } /** - * - * *
                  * The list of child folders
                  * 
            * * repeated .google.storage.control.v2.Folder folders = 1; */ - public java.util.List - getFoldersOrBuilderList() { + public java.util.List + getFoldersOrBuilderList() { if (foldersBuilder_ != null) { return foldersBuilder_.getMessageOrBuilderList(); } else { @@ -895,8 +821,6 @@ public com.google.storage.control.v2.FolderOrBuilder getFoldersOrBuilder(int ind } } /** - * - * *
                  * The list of child folders
                  * 
            @@ -904,47 +828,42 @@ public com.google.storage.control.v2.FolderOrBuilder getFoldersOrBuilder(int ind * repeated .google.storage.control.v2.Folder folders = 1; */ public com.google.storage.control.v2.Folder.Builder addFoldersBuilder() { - return getFoldersFieldBuilder() - .addBuilder(com.google.storage.control.v2.Folder.getDefaultInstance()); + return getFoldersFieldBuilder().addBuilder( + com.google.storage.control.v2.Folder.getDefaultInstance()); } /** - * - * *
                  * The list of child folders
                  * 
            * * repeated .google.storage.control.v2.Folder folders = 1; */ - public com.google.storage.control.v2.Folder.Builder addFoldersBuilder(int index) { - return getFoldersFieldBuilder() - .addBuilder(index, com.google.storage.control.v2.Folder.getDefaultInstance()); + public com.google.storage.control.v2.Folder.Builder addFoldersBuilder( + int index) { + return getFoldersFieldBuilder().addBuilder( + index, com.google.storage.control.v2.Folder.getDefaultInstance()); } /** - * - * *
                  * The list of child folders
                  * 
            * * repeated .google.storage.control.v2.Folder folders = 1; */ - public java.util.List getFoldersBuilderList() { + public java.util.List + getFoldersBuilderList() { return getFoldersFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.control.v2.Folder, - com.google.storage.control.v2.Folder.Builder, - com.google.storage.control.v2.FolderOrBuilder> + com.google.storage.control.v2.Folder, com.google.storage.control.v2.Folder.Builder, com.google.storage.control.v2.FolderOrBuilder> getFoldersFieldBuilder() { if (foldersBuilder_ == null) { - foldersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.control.v2.Folder, - com.google.storage.control.v2.Folder.Builder, - com.google.storage.control.v2.FolderOrBuilder>( - folders_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + foldersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.storage.control.v2.Folder, com.google.storage.control.v2.Folder.Builder, com.google.storage.control.v2.FolderOrBuilder>( + folders_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); folders_ = null; } return foldersBuilder_; @@ -952,21 +871,19 @@ public java.util.List getFoldersBu private java.lang.Object nextPageToken_ = ""; /** - * - * *
                  * The continuation token, used to page through large result sets. Provide
                  * this value in a subsequent request to return the next page of results.
                  * 
            * * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -975,22 +892,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
                  * The continuation token, used to page through large result sets. Provide
                  * this value in a subsequent request to return the next page of results.
                  * 
            * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -998,37 +914,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
                  * The continuation token, used to page through large result sets. Provide
                  * this value in a subsequent request to return the next page of results.
                  * 
            * * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                  * The continuation token, used to page through large result sets. Provide
                  * this value in a subsequent request to return the next page of results.
                  * 
            * * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1038,31 +947,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
                  * The continuation token, used to page through large result sets. Provide
                  * this value in a subsequent request to return the next page of results.
                  * 
            * * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1072,12 +977,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.control.v2.ListFoldersResponse) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.ListFoldersResponse) private static final com.google.storage.control.v2.ListFoldersResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.control.v2.ListFoldersResponse(); } @@ -1086,27 +991,27 @@ public static com.google.storage.control.v2.ListFoldersResponse getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFoldersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFoldersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1121,4 +1026,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.ListFoldersResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersResponseOrBuilder.java similarity index 67% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersResponseOrBuilder.java index fb158a83fb..afb4660583 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersResponseOrBuilder.java @@ -1,42 +1,23 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto // Protobuf Java Version: 3.25.3 package com.google.storage.control.v2; -public interface ListFoldersResponseOrBuilder - extends +public interface ListFoldersResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.ListFoldersResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
                * The list of child folders
                * 
            * * repeated .google.storage.control.v2.Folder folders = 1; */ - java.util.List getFoldersList(); + java.util.List + getFoldersList(); /** - * - * *
                * The list of child folders
                * 
            @@ -45,8 +26,6 @@ public interface ListFoldersResponseOrBuilder */ com.google.storage.control.v2.Folder getFolders(int index); /** - * - * *
                * The list of child folders
                * 
            @@ -55,50 +34,43 @@ public interface ListFoldersResponseOrBuilder */ int getFoldersCount(); /** - * - * *
                * The list of child folders
                * 
            * * repeated .google.storage.control.v2.Folder folders = 1; */ - java.util.List getFoldersOrBuilderList(); + java.util.List + getFoldersOrBuilderList(); /** - * - * *
                * The list of child folders
                * 
            * * repeated .google.storage.control.v2.Folder folders = 1; */ - com.google.storage.control.v2.FolderOrBuilder getFoldersOrBuilder(int index); + com.google.storage.control.v2.FolderOrBuilder getFoldersOrBuilder( + int index); /** - * - * *
                * The continuation token, used to page through large result sets. Provide
                * this value in a subsequent request to return the next page of results.
                * 
            * * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
                * The continuation token, used to page through large result sets. Provide
                * this value in a subsequent request to return the next page of results.
                * 
            * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersRequest.java similarity index 68% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersRequest.java index 999775be33..894127b1ed 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto @@ -20,24 +5,21 @@ package com.google.storage.control.v2; /** - * - * *
              * Request message for ListManagedFolders.
              * 
            * * Protobuf type {@code google.storage.control.v2.ListManagedFoldersRequest} */ -public final class ListManagedFoldersRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListManagedFoldersRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.ListManagedFoldersRequest) ListManagedFoldersRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListManagedFoldersRequest.newBuilder() to construct. private ListManagedFoldersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListManagedFoldersRequest() { parent_ = ""; pageToken_ = ""; @@ -47,40 +29,33 @@ private ListManagedFoldersRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListManagedFoldersRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_ListManagedFoldersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListManagedFoldersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_ListManagedFoldersRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListManagedFoldersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.ListManagedFoldersRequest.class, - com.google.storage.control.v2.ListManagedFoldersRequest.Builder.class); + com.google.storage.control.v2.ListManagedFoldersRequest.class, com.google.storage.control.v2.ListManagedFoldersRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
                * Required. Name of the bucket this managed folder belongs to.
                * 
            * - * - * 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 @@ -89,31 +64,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
                * Required. Name of the bucket this managed folder belongs to.
                * 
            * - * - * 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 { @@ -124,15 +97,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
                * Optional. Maximum number of managed folders to return in a single response.
                * The service will use this parameter or 1,000 items, whichever is smaller.
                * 
            * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -141,19 +111,15 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
                * Optional. A previously-returned page token representing part of the larger
                * set of results to view.
                * 
            * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -162,30 +128,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
                * Optional. A previously-returned page token representing part of the larger
                * set of results to view.
                * 
            * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -194,19 +160,15 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int PREFIX_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object prefix_ = ""; /** - * - * *
                * Optional. Filter results to match managed folders with name starting with
                * this prefix.
                * 
            * * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The prefix. */ @java.lang.Override @@ -215,30 +177,30 @@ public java.lang.String getPrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); prefix_ = s; return s; } } /** - * - * *
                * Optional. Filter results to match managed folders with name starting with
                * this prefix.
                * 
            * * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for prefix. */ @java.lang.Override - public com.google.protobuf.ByteString getPrefixBytes() { + public com.google.protobuf.ByteString + getPrefixBytes() { java.lang.Object ref = prefix_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); prefix_ = b; return b; } else { @@ -247,21 +209,15 @@ public com.google.protobuf.ByteString getPrefixBytes() { } public static final int REQUEST_ID_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ @java.lang.Override @@ -270,32 +226,30 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -304,7 +258,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -316,7 +269,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_); } @@ -345,7 +299,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_); @@ -364,19 +319,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.control.v2.ListManagedFoldersRequest)) { return super.equals(obj); } - com.google.storage.control.v2.ListManagedFoldersRequest other = - (com.google.storage.control.v2.ListManagedFoldersRequest) 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 (!getRequestId().equals(other.getRequestId())) return false; + com.google.storage.control.v2.ListManagedFoldersRequest other = (com.google.storage.control.v2.ListManagedFoldersRequest) 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 (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -404,136 +363,131 @@ public int hashCode() { } public static com.google.storage.control.v2.ListManagedFoldersRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.ListManagedFoldersRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.ListManagedFoldersRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.ListManagedFoldersRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.ListManagedFoldersRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.ListManagedFoldersRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.control.v2.ListManagedFoldersRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.control.v2.ListManagedFoldersRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.ListManagedFoldersRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.ListManagedFoldersRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.ListManagedFoldersRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.ListManagedFoldersRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.ListManagedFoldersRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.ListManagedFoldersRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.storage.control.v2.ListManagedFoldersRequest prototype) { + public static Builder newBuilder(com.google.storage.control.v2.ListManagedFoldersRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListManagedFolders.
                * 
            * * Protobuf type {@code google.storage.control.v2.ListManagedFoldersRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.control.v2.ListManagedFoldersRequest) com.google.storage.control.v2.ListManagedFoldersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_ListManagedFoldersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListManagedFoldersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_ListManagedFoldersRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListManagedFoldersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.ListManagedFoldersRequest.class, - com.google.storage.control.v2.ListManagedFoldersRequest.Builder.class); + com.google.storage.control.v2.ListManagedFoldersRequest.class, com.google.storage.control.v2.ListManagedFoldersRequest.Builder.class); } // Construct using com.google.storage.control.v2.ListManagedFoldersRequest.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(); @@ -547,9 +501,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_ListManagedFoldersRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListManagedFoldersRequest_descriptor; } @java.lang.Override @@ -568,11 +522,8 @@ public com.google.storage.control.v2.ListManagedFoldersRequest build() { @java.lang.Override public com.google.storage.control.v2.ListManagedFoldersRequest buildPartial() { - com.google.storage.control.v2.ListManagedFoldersRequest result = - new com.google.storage.control.v2.ListManagedFoldersRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.control.v2.ListManagedFoldersRequest result = new com.google.storage.control.v2.ListManagedFoldersRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -600,39 +551,38 @@ private void buildPartial0(com.google.storage.control.v2.ListManagedFoldersReque public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.control.v2.ListManagedFoldersRequest) { - return mergeFrom((com.google.storage.control.v2.ListManagedFoldersRequest) other); + return mergeFrom((com.google.storage.control.v2.ListManagedFoldersRequest)other); } else { super.mergeFrom(other); return this; @@ -640,8 +590,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.control.v2.ListManagedFoldersRequest other) { - if (other == com.google.storage.control.v2.ListManagedFoldersRequest.getDefaultInstance()) - return this; + if (other == com.google.storage.control.v2.ListManagedFoldersRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -691,43 +640,37 @@ 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: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 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: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -737,27 +680,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
                  * Required. Name of the bucket this managed folder belongs to.
                  * 
            * - * - * 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; @@ -766,23 +704,20 @@ public java.lang.String getParent() { } } /** - * - * *
                  * Required. Name of the bucket this managed folder belongs to.
                  * 
            * - * - * 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 { @@ -790,39 +725,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
                  * Required. Name of the bucket this managed folder belongs to.
                  * 
            * - * - * 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 this managed folder belongs to.
                  * 
            * - * - * 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() { @@ -832,23 +756,17 @@ public Builder clearParent() { return this; } /** - * - * *
                  * Required. Name of the bucket this managed folder belongs to.
                  * 
            * - * - * 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; @@ -856,17 +774,14 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
                  * Optional. Maximum number of managed folders to return in a single response.
                  * The service will use this parameter or 1,000 items, whichever is smaller.
                  * 
            * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -874,15 +789,12 @@ public int getPageSize() { return pageSize_; } /** - * - * *
                  * Optional. Maximum number of managed folders to return in a single response.
                  * The service will use this parameter or 1,000 items, whichever is smaller.
                  * 
            * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -894,15 +806,12 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
                  * Optional. Maximum number of managed folders to return in a single response.
                  * The service will use this parameter or 1,000 items, whichever is smaller.
                  * 
            * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -914,21 +823,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
                  * Optional. A previously-returned page token representing part of the larger
                  * set of results to view.
                  * 
            * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -937,22 +844,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
                  * Optional. A previously-returned page token representing part of the larger
                  * set of results to view.
                  * 
            * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -960,37 +866,30 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
                  * Optional. A previously-returned page token representing part of the larger
                  * set of results to view.
                  * 
            * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
                  * Optional. A previously-returned page token representing part of the larger
                  * set of results to view.
                  * 
            * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1000,22 +899,18 @@ public Builder clearPageToken() { return this; } /** - * - * *
                  * Optional. A previously-returned page token representing part of the larger
                  * set of results to view.
                  * 
            * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1025,21 +920,19 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object prefix_ = ""; /** - * - * *
                  * Optional. Filter results to match managed folders with name starting with
                  * this prefix.
                  * 
            * * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The prefix. */ public java.lang.String getPrefix() { java.lang.Object ref = prefix_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); prefix_ = s; return s; @@ -1048,22 +941,21 @@ public java.lang.String getPrefix() { } } /** - * - * *
                  * Optional. Filter results to match managed folders with name starting with
                  * this prefix.
                  * 
            * * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for prefix. */ - public com.google.protobuf.ByteString getPrefixBytes() { + public com.google.protobuf.ByteString + getPrefixBytes() { java.lang.Object ref = prefix_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); prefix_ = b; return b; } else { @@ -1071,37 +963,30 @@ public com.google.protobuf.ByteString getPrefixBytes() { } } /** - * - * *
                  * Optional. Filter results to match managed folders with name starting with
                  * this prefix.
                  * 
            * * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The prefix to set. * @return This builder for chaining. */ - public Builder setPrefix(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPrefix( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } prefix_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
                  * Optional. Filter results to match managed folders with name starting with
                  * this prefix.
                  * 
            * * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPrefix() { @@ -1111,22 +996,18 @@ public Builder clearPrefix() { return this; } /** - * - * *
                  * Optional. Filter results to match managed folders with name starting with
                  * this prefix.
                  * 
            * * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for prefix to set. * @return This builder for chaining. */ - public Builder setPrefixBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPrefixBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); prefix_ = value; bitField0_ |= 0x00000008; @@ -1136,23 +1017,19 @@ public Builder setPrefixBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1161,24 +1038,21 @@ public java.lang.String getRequestId() { } } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1186,41 +1060,30 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1230,33 +1093,27 @@ public Builder clearRequestId() { return this; } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 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); } @@ -1266,12 +1123,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.control.v2.ListManagedFoldersRequest) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.ListManagedFoldersRequest) private static final com.google.storage.control.v2.ListManagedFoldersRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.control.v2.ListManagedFoldersRequest(); } @@ -1280,27 +1137,27 @@ public static com.google.storage.control.v2.ListManagedFoldersRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListManagedFoldersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListManagedFoldersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1315,4 +1172,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.storage.control.v2.ListManagedFoldersRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersRequestOrBuilder.java similarity index 62% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersRequestOrBuilder.java index 0041f11360..f5fd07b22a 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersRequestOrBuilder.java @@ -1,154 +1,107 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto // Protobuf Java Version: 3.25.3 package com.google.storage.control.v2; -public interface ListManagedFoldersRequestOrBuilder - extends +public interface ListManagedFoldersRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.ListManagedFoldersRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
                * Required. Name of the bucket this managed folder belongs to.
                * 
            * - * - * 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 this managed folder belongs to.
                * 
            * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
                * Optional. Maximum number of managed folders to return in a single response.
                * The service will use this parameter or 1,000 items, whichever is smaller.
                * 
            * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
                * Optional. A previously-returned page token representing part of the larger
                * set of results to view.
                * 
            * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
                * Optional. A previously-returned page token representing part of the larger
                * set of results to view.
                * 
            * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
                * Optional. Filter results to match managed folders with name starting with
                * this prefix.
                * 
            * * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The prefix. */ java.lang.String getPrefix(); /** - * - * *
                * Optional. Filter results to match managed folders with name starting with
                * this prefix.
                * 
            * * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for prefix. */ - com.google.protobuf.ByteString getPrefixBytes(); + com.google.protobuf.ByteString + getPrefixBytes(); /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersResponse.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersResponse.java similarity index 72% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersResponse.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersResponse.java index abc6cc7b1d..cfbfd7eeac 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersResponse.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto @@ -20,24 +5,21 @@ package com.google.storage.control.v2; /** - * - * *
              * Response message for ListManagedFolders.
              * 
            * * Protobuf type {@code google.storage.control.v2.ListManagedFoldersResponse} */ -public final class ListManagedFoldersResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListManagedFoldersResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.ListManagedFoldersResponse) ListManagedFoldersResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListManagedFoldersResponse.newBuilder() to construct. private ListManagedFoldersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListManagedFoldersResponse() { managedFolders_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,32 +27,28 @@ private ListManagedFoldersResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListManagedFoldersResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_ListManagedFoldersResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListManagedFoldersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_ListManagedFoldersResponse_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListManagedFoldersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.ListManagedFoldersResponse.class, - com.google.storage.control.v2.ListManagedFoldersResponse.Builder.class); + com.google.storage.control.v2.ListManagedFoldersResponse.class, com.google.storage.control.v2.ListManagedFoldersResponse.Builder.class); } public static final int MANAGED_FOLDERS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List managedFolders_; /** - * - * *
                * The list of matching managed folders
                * 
            @@ -82,8 +60,6 @@ public java.util.List getManagedFol return managedFolders_; } /** - * - * *
                * The list of matching managed folders
                * 
            @@ -91,13 +67,11 @@ public java.util.List getManagedFol * repeated .google.storage.control.v2.ManagedFolder managed_folders = 1; */ @java.lang.Override - public java.util.List + public java.util.List getManagedFoldersOrBuilderList() { return managedFolders_; } /** - * - * *
                * The list of matching managed folders
                * 
            @@ -109,8 +83,6 @@ public int getManagedFoldersCount() { return managedFolders_.size(); } /** - * - * *
                * The list of matching managed folders
                * 
            @@ -122,8 +94,6 @@ public com.google.storage.control.v2.ManagedFolder getManagedFolders(int index) return managedFolders_.get(index); } /** - * - * *
                * The list of matching managed folders
                * 
            @@ -137,19 +107,15 @@ public com.google.storage.control.v2.ManagedFolderOrBuilder getManagedFoldersOrB } 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 @@ -158,30 +124,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
                * 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 { @@ -190,7 +156,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,7 +167,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < managedFolders_.size(); i++) { output.writeMessage(1, managedFolders_.get(i)); } @@ -219,7 +185,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < managedFolders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, managedFolders_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, managedFolders_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -232,16 +199,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.control.v2.ListManagedFoldersResponse)) { return super.equals(obj); } - com.google.storage.control.v2.ListManagedFoldersResponse other = - (com.google.storage.control.v2.ListManagedFoldersResponse) obj; + com.google.storage.control.v2.ListManagedFoldersResponse other = (com.google.storage.control.v2.ListManagedFoldersResponse) obj; - if (!getManagedFoldersList().equals(other.getManagedFoldersList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getManagedFoldersList() + .equals(other.getManagedFoldersList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,136 +233,131 @@ public int hashCode() { } public static com.google.storage.control.v2.ListManagedFoldersResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.ListManagedFoldersResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.ListManagedFoldersResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.ListManagedFoldersResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.ListManagedFoldersResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.ListManagedFoldersResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.control.v2.ListManagedFoldersResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.control.v2.ListManagedFoldersResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.ListManagedFoldersResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.ListManagedFoldersResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.ListManagedFoldersResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.ListManagedFoldersResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.ListManagedFoldersResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.ListManagedFoldersResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.storage.control.v2.ListManagedFoldersResponse prototype) { + public static Builder newBuilder(com.google.storage.control.v2.ListManagedFoldersResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListManagedFolders.
                * 
            * * Protobuf type {@code google.storage.control.v2.ListManagedFoldersResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.control.v2.ListManagedFoldersResponse) com.google.storage.control.v2.ListManagedFoldersResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_ListManagedFoldersResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListManagedFoldersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_ListManagedFoldersResponse_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListManagedFoldersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.ListManagedFoldersResponse.class, - com.google.storage.control.v2.ListManagedFoldersResponse.Builder.class); + com.google.storage.control.v2.ListManagedFoldersResponse.class, com.google.storage.control.v2.ListManagedFoldersResponse.Builder.class); } // Construct using com.google.storage.control.v2.ListManagedFoldersResponse.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(); @@ -411,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_ListManagedFoldersResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListManagedFoldersResponse_descriptor; } @java.lang.Override @@ -432,18 +395,14 @@ public com.google.storage.control.v2.ListManagedFoldersResponse build() { @java.lang.Override public com.google.storage.control.v2.ListManagedFoldersResponse buildPartial() { - com.google.storage.control.v2.ListManagedFoldersResponse result = - new com.google.storage.control.v2.ListManagedFoldersResponse(this); + com.google.storage.control.v2.ListManagedFoldersResponse result = new com.google.storage.control.v2.ListManagedFoldersResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.storage.control.v2.ListManagedFoldersResponse result) { + private void buildPartialRepeatedFields(com.google.storage.control.v2.ListManagedFoldersResponse result) { if (managedFoldersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { managedFolders_ = java.util.Collections.unmodifiableList(managedFolders_); @@ -466,39 +425,38 @@ private void buildPartial0(com.google.storage.control.v2.ListManagedFoldersRespo public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.control.v2.ListManagedFoldersResponse) { - return mergeFrom((com.google.storage.control.v2.ListManagedFoldersResponse) other); + return mergeFrom((com.google.storage.control.v2.ListManagedFoldersResponse)other); } else { super.mergeFrom(other); return this; @@ -506,8 +464,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.control.v2.ListManagedFoldersResponse other) { - if (other == com.google.storage.control.v2.ListManagedFoldersResponse.getDefaultInstance()) - return this; + if (other == com.google.storage.control.v2.ListManagedFoldersResponse.getDefaultInstance()) return this; if (managedFoldersBuilder_ == null) { if (!other.managedFolders_.isEmpty()) { if (managedFolders_.isEmpty()) { @@ -526,10 +483,9 @@ public Builder mergeFrom(com.google.storage.control.v2.ListManagedFoldersRespons managedFoldersBuilder_ = null; managedFolders_ = other.managedFolders_; bitField0_ = (bitField0_ & ~0x00000001); - managedFoldersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getManagedFoldersFieldBuilder() - : null; + managedFoldersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getManagedFoldersFieldBuilder() : null; } else { managedFoldersBuilder_.addAllMessages(other.managedFolders_); } @@ -566,32 +522,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.storage.control.v2.ManagedFolder m = - input.readMessage( - com.google.storage.control.v2.ManagedFolder.parser(), extensionRegistry); - if (managedFoldersBuilder_ == null) { - ensureManagedFoldersIsMutable(); - managedFolders_.add(m); - } else { - managedFoldersBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.storage.control.v2.ManagedFolder m = + input.readMessage( + com.google.storage.control.v2.ManagedFolder.parser(), + extensionRegistry); + if (managedFoldersBuilder_ == null) { + ensureManagedFoldersIsMutable(); + managedFolders_.add(m); + } else { + managedFoldersBuilder_.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,29 +555,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List managedFolders_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureManagedFoldersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - managedFolders_ = - new java.util.ArrayList(managedFolders_); + managedFolders_ = new java.util.ArrayList(managedFolders_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.control.v2.ManagedFolder, - com.google.storage.control.v2.ManagedFolder.Builder, - com.google.storage.control.v2.ManagedFolderOrBuilder> - managedFoldersBuilder_; + com.google.storage.control.v2.ManagedFolder, com.google.storage.control.v2.ManagedFolder.Builder, com.google.storage.control.v2.ManagedFolderOrBuilder> managedFoldersBuilder_; /** - * - * *
                  * The list of matching managed folders
                  * 
            @@ -638,8 +584,6 @@ public java.util.List getManagedFol } } /** - * - * *
                  * The list of matching managed folders
                  * 
            @@ -654,8 +598,6 @@ public int getManagedFoldersCount() { } } /** - * - * *
                  * The list of matching managed folders
                  * 
            @@ -670,15 +612,14 @@ public com.google.storage.control.v2.ManagedFolder getManagedFolders(int index) } } /** - * - * *
                  * The list of matching managed folders
                  * 
            * * repeated .google.storage.control.v2.ManagedFolder managed_folders = 1; */ - public Builder setManagedFolders(int index, com.google.storage.control.v2.ManagedFolder value) { + public Builder setManagedFolders( + int index, com.google.storage.control.v2.ManagedFolder value) { if (managedFoldersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -692,8 +633,6 @@ public Builder setManagedFolders(int index, com.google.storage.control.v2.Manage return this; } /** - * - * *
                  * The list of matching managed folders
                  * 
            @@ -712,8 +651,6 @@ public Builder setManagedFolders( return this; } /** - * - * *
                  * The list of matching managed folders
                  * 
            @@ -734,15 +671,14 @@ public Builder addManagedFolders(com.google.storage.control.v2.ManagedFolder val return this; } /** - * - * *
                  * The list of matching managed folders
                  * 
            * * repeated .google.storage.control.v2.ManagedFolder managed_folders = 1; */ - public Builder addManagedFolders(int index, com.google.storage.control.v2.ManagedFolder value) { + public Builder addManagedFolders( + int index, com.google.storage.control.v2.ManagedFolder value) { if (managedFoldersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -756,8 +692,6 @@ public Builder addManagedFolders(int index, com.google.storage.control.v2.Manage return this; } /** - * - * *
                  * The list of matching managed folders
                  * 
            @@ -776,8 +710,6 @@ public Builder addManagedFolders( return this; } /** - * - * *
                  * The list of matching managed folders
                  * 
            @@ -796,8 +728,6 @@ public Builder addManagedFolders( return this; } /** - * - * *
                  * The list of matching managed folders
                  * 
            @@ -808,7 +738,8 @@ public Builder addAllManagedFolders( java.lang.Iterable values) { if (managedFoldersBuilder_ == null) { ensureManagedFoldersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, managedFolders_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, managedFolders_); onChanged(); } else { managedFoldersBuilder_.addAllMessages(values); @@ -816,8 +747,6 @@ public Builder addAllManagedFolders( return this; } /** - * - * *
                  * The list of matching managed folders
                  * 
            @@ -835,8 +764,6 @@ public Builder clearManagedFolders() { return this; } /** - * - * *
                  * The list of matching managed folders
                  * 
            @@ -854,20 +781,17 @@ public Builder removeManagedFolders(int index) { return this; } /** - * - * *
                  * The list of matching managed folders
                  * 
            * * repeated .google.storage.control.v2.ManagedFolder managed_folders = 1; */ - public com.google.storage.control.v2.ManagedFolder.Builder getManagedFoldersBuilder(int index) { + public com.google.storage.control.v2.ManagedFolder.Builder getManagedFoldersBuilder( + int index) { return getManagedFoldersFieldBuilder().getBuilder(index); } /** - * - * *
                  * The list of matching managed folders
                  * 
            @@ -877,22 +801,19 @@ public com.google.storage.control.v2.ManagedFolder.Builder getManagedFoldersBuil public com.google.storage.control.v2.ManagedFolderOrBuilder getManagedFoldersOrBuilder( int index) { if (managedFoldersBuilder_ == null) { - return managedFolders_.get(index); - } else { + return managedFolders_.get(index); } else { return managedFoldersBuilder_.getMessageOrBuilder(index); } } /** - * - * *
                  * The list of matching managed folders
                  * 
            * * repeated .google.storage.control.v2.ManagedFolder managed_folders = 1; */ - public java.util.List - getManagedFoldersOrBuilderList() { + public java.util.List + getManagedFoldersOrBuilderList() { if (managedFoldersBuilder_ != null) { return managedFoldersBuilder_.getMessageOrBuilderList(); } else { @@ -900,8 +821,6 @@ public com.google.storage.control.v2.ManagedFolderOrBuilder getManagedFoldersOrB } } /** - * - * *
                  * The list of matching managed folders
                  * 
            @@ -909,47 +828,38 @@ public com.google.storage.control.v2.ManagedFolderOrBuilder getManagedFoldersOrB * repeated .google.storage.control.v2.ManagedFolder managed_folders = 1; */ public com.google.storage.control.v2.ManagedFolder.Builder addManagedFoldersBuilder() { - return getManagedFoldersFieldBuilder() - .addBuilder(com.google.storage.control.v2.ManagedFolder.getDefaultInstance()); + return getManagedFoldersFieldBuilder().addBuilder( + com.google.storage.control.v2.ManagedFolder.getDefaultInstance()); } /** - * - * *
                  * The list of matching managed folders
                  * 
            * * repeated .google.storage.control.v2.ManagedFolder managed_folders = 1; */ - public com.google.storage.control.v2.ManagedFolder.Builder addManagedFoldersBuilder(int index) { - return getManagedFoldersFieldBuilder() - .addBuilder(index, com.google.storage.control.v2.ManagedFolder.getDefaultInstance()); + public com.google.storage.control.v2.ManagedFolder.Builder addManagedFoldersBuilder( + int index) { + return getManagedFoldersFieldBuilder().addBuilder( + index, com.google.storage.control.v2.ManagedFolder.getDefaultInstance()); } /** - * - * *
                  * The list of matching managed folders
                  * 
            * * repeated .google.storage.control.v2.ManagedFolder managed_folders = 1; */ - public java.util.List - getManagedFoldersBuilderList() { + public java.util.List + getManagedFoldersBuilderList() { return getManagedFoldersFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.control.v2.ManagedFolder, - com.google.storage.control.v2.ManagedFolder.Builder, - com.google.storage.control.v2.ManagedFolderOrBuilder> + com.google.storage.control.v2.ManagedFolder, com.google.storage.control.v2.ManagedFolder.Builder, com.google.storage.control.v2.ManagedFolderOrBuilder> getManagedFoldersFieldBuilder() { if (managedFoldersBuilder_ == null) { - managedFoldersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.control.v2.ManagedFolder, - com.google.storage.control.v2.ManagedFolder.Builder, - com.google.storage.control.v2.ManagedFolderOrBuilder>( + managedFoldersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.storage.control.v2.ManagedFolder, com.google.storage.control.v2.ManagedFolder.Builder, com.google.storage.control.v2.ManagedFolderOrBuilder>( managedFolders_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -961,21 +871,19 @@ public com.google.storage.control.v2.ManagedFolder.Builder addManagedFoldersBuil 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; @@ -984,22 +892,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
                  * The continuation token, used to page through large result sets. Provide
                  * this value in a subsequent request to return the next page of results.
                  * 
            * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1007,37 +914,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
                  * The continuation token, used to page through large result sets. Provide
                  * this value in a subsequent request to return the next page of results.
                  * 
            * * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                  * The continuation token, used to page through large result sets. Provide
                  * this value in a subsequent request to return the next page of results.
                  * 
            * * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1047,31 +947,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
                  * The continuation token, used to page through large result sets. Provide
                  * this value in a subsequent request to return the next page of results.
                  * 
            * * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1081,12 +977,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.control.v2.ListManagedFoldersResponse) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.ListManagedFoldersResponse) private static final com.google.storage.control.v2.ListManagedFoldersResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.control.v2.ListManagedFoldersResponse(); } @@ -1095,27 +991,27 @@ public static com.google.storage.control.v2.ListManagedFoldersResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListManagedFoldersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListManagedFoldersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1130,4 +1026,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.storage.control.v2.ListManagedFoldersResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersResponseOrBuilder.java similarity index 68% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersResponseOrBuilder.java index 322c36b639..af217d77c8 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersResponseOrBuilder.java @@ -1,42 +1,23 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto // Protobuf Java Version: 3.25.3 package com.google.storage.control.v2; -public interface ListManagedFoldersResponseOrBuilder - extends +public interface ListManagedFoldersResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.ListManagedFoldersResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
                * The list of matching managed folders
                * 
            * * repeated .google.storage.control.v2.ManagedFolder managed_folders = 1; */ - java.util.List getManagedFoldersList(); + java.util.List + getManagedFoldersList(); /** - * - * *
                * The list of matching managed folders
                * 
            @@ -45,8 +26,6 @@ public interface ListManagedFoldersResponseOrBuilder */ com.google.storage.control.v2.ManagedFolder getManagedFolders(int index); /** - * - * *
                * The list of matching managed folders
                * 
            @@ -55,51 +34,43 @@ public interface ListManagedFoldersResponseOrBuilder */ int getManagedFoldersCount(); /** - * - * *
                * The list of matching managed folders
                * 
            * * repeated .google.storage.control.v2.ManagedFolder managed_folders = 1; */ - java.util.List + java.util.List getManagedFoldersOrBuilderList(); /** - * - * *
                * The list of matching managed folders
                * 
            * * repeated .google.storage.control.v2.ManagedFolder managed_folders = 1; */ - com.google.storage.control.v2.ManagedFolderOrBuilder getManagedFoldersOrBuilder(int index); + com.google.storage.control.v2.ManagedFolderOrBuilder getManagedFoldersOrBuilder( + int index); /** - * - * *
                * The continuation token, used to page through large result sets. Provide
                * this value in a subsequent request to return the next page of results.
                * 
            * * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
                * The continuation token, used to page through large result sets. Provide
                * this value in a subsequent request to return the next page of results.
                * 
            * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ManagedFolder.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ManagedFolder.java similarity index 66% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ManagedFolder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ManagedFolder.java index 86435b6650..f10c49aa53 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ManagedFolder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ManagedFolder.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto @@ -20,57 +5,50 @@ package com.google.storage.control.v2; /** - * - * *
              * A managed folder.
              * 
            * * Protobuf type {@code google.storage.control.v2.ManagedFolder} */ -public final class ManagedFolder extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ManagedFolder extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.ManagedFolder) ManagedFolderOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ManagedFolder.newBuilder() to construct. private ManagedFolder(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ManagedFolder() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ManagedFolder(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_ManagedFolder_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ManagedFolder_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_ManagedFolder_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ManagedFolder_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.ManagedFolder.class, - com.google.storage.control.v2.ManagedFolder.Builder.class); + com.google.storage.control.v2.ManagedFolder.class, com.google.storage.control.v2.ManagedFolder.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
                * Identifier. The name of this managed folder.
                * Format:
            @@ -78,7 +56,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * * @return The name. */ @java.lang.Override @@ -87,15 +64,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; } } /** - * - * *
                * Identifier. The name of this managed folder.
                * Format:
            @@ -103,15 +79,16 @@ public java.lang.String getName() {
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -122,8 +99,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int METAGENERATION_FIELD_NUMBER = 3; private long metageneration_ = 0L; /** - * - * *
                * Output only. The metadata version of this managed folder. It increases
                * whenever the metadata is updated. Used for preconditions and for detecting
            @@ -131,7 +106,6 @@ public com.google.protobuf.ByteString getNameBytes() {
                * 
            * * int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The metageneration. */ @java.lang.Override @@ -142,15 +116,11 @@ public long getMetageneration() { public static final int CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createTime_; /** - * - * *
                * Output only. The creation time of the managed folder.
                * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -158,15 +128,11 @@ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * Output only. The creation time of the managed folder.
                * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -174,14 +140,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
                * Output only. The creation time of the managed folder.
                * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -191,15 +154,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
                * Output only. The modification time of the managed folder.
                * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -207,15 +166,11 @@ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                * Output only. The modification time of the managed folder.
                * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -223,14 +178,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
                * Output only. The modification time of the managed folder.
                * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -238,7 +190,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -250,7 +201,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_); } @@ -276,13 +228,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (metageneration_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, metageneration_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, metageneration_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getUpdateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -292,23 +247,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.control.v2.ManagedFolder)) { return super.equals(obj); } - com.google.storage.control.v2.ManagedFolder other = - (com.google.storage.control.v2.ManagedFolder) obj; + com.google.storage.control.v2.ManagedFolder other = (com.google.storage.control.v2.ManagedFolder) obj; - if (!getName().equals(other.getName())) return false; - if (getMetageneration() != other.getMetageneration()) return false; + if (!getName() + .equals(other.getName())) return false; + if (getMetageneration() + != other.getMetageneration()) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -324,7 +282,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + METAGENERATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMetageneration()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMetageneration()); if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); @@ -338,127 +297,120 @@ public int hashCode() { return hash; } - public static com.google.storage.control.v2.ManagedFolder parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.control.v2.ManagedFolder parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.ManagedFolder parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.ManagedFolder parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.ManagedFolder parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.ManagedFolder parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.ManagedFolder parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.ManagedFolder parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.ManagedFolder parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.ManagedFolder parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.ManagedFolder parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.ManagedFolder parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.ManagedFolder parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.ManagedFolder parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.control.v2.ManagedFolder prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 managed folder.
                * 
            * * Protobuf type {@code google.storage.control.v2.ManagedFolder} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.control.v2.ManagedFolder) com.google.storage.control.v2.ManagedFolderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_ManagedFolder_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ManagedFolder_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_ManagedFolder_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ManagedFolder_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.ManagedFolder.class, - com.google.storage.control.v2.ManagedFolder.Builder.class); + com.google.storage.control.v2.ManagedFolder.class, com.google.storage.control.v2.ManagedFolder.Builder.class); } // Construct using com.google.storage.control.v2.ManagedFolder.newBuilder() @@ -466,18 +418,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) { getCreateTimeFieldBuilder(); getUpdateTimeFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -498,9 +450,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_ManagedFolder_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ManagedFolder_descriptor; } @java.lang.Override @@ -519,11 +471,8 @@ public com.google.storage.control.v2.ManagedFolder build() { @java.lang.Override public com.google.storage.control.v2.ManagedFolder buildPartial() { - com.google.storage.control.v2.ManagedFolder result = - new com.google.storage.control.v2.ManagedFolder(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.control.v2.ManagedFolder result = new com.google.storage.control.v2.ManagedFolder(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -538,11 +487,15 @@ private void buildPartial0(com.google.storage.control.v2.ManagedFolder result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -552,39 +505,38 @@ private void buildPartial0(com.google.storage.control.v2.ManagedFolder result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.control.v2.ManagedFolder) { - return mergeFrom((com.google.storage.control.v2.ManagedFolder) other); + return mergeFrom((com.google.storage.control.v2.ManagedFolder)other); } else { super.mergeFrom(other); return this; @@ -633,37 +585,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 24: - { - metageneration_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 24 - case 34: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 24: { + metageneration_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 34: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -673,13 +624,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
                  * Identifier. The name of this managed folder.
                  * Format:
            @@ -687,13 +635,13 @@ public Builder mergeFrom(
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -702,8 +650,6 @@ public java.lang.String getName() { } } /** - * - * *
                  * Identifier. The name of this managed folder.
                  * Format:
            @@ -711,14 +657,15 @@ public java.lang.String getName() {
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -726,8 +673,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
                  * Identifier. The name of this managed folder.
                  * Format:
            @@ -735,22 +680,18 @@ public com.google.protobuf.ByteString getNameBytes() {
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * Identifier. The name of this managed folder.
                  * Format:
            @@ -758,7 +699,6 @@ public Builder setName(java.lang.String value) {
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -768,8 +708,6 @@ public Builder clearName() { return this; } /** - * - * *
                  * Identifier. The name of this managed folder.
                  * Format:
            @@ -777,14 +715,12 @@ public Builder clearName() {
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -792,10 +728,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private long metageneration_; + private long metageneration_ ; /** - * - * *
                  * Output only. The metadata version of this managed folder. It increases
                  * whenever the metadata is updated. Used for preconditions and for detecting
            @@ -803,7 +737,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
                  * 
            * * int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The metageneration. */ @java.lang.Override @@ -811,8 +744,6 @@ public long getMetageneration() { return metageneration_; } /** - * - * *
                  * Output only. The metadata version of this managed folder. It increases
                  * whenever the metadata is updated. Used for preconditions and for detecting
            @@ -820,7 +751,6 @@ public long getMetageneration() {
                  * 
            * * int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The metageneration to set. * @return This builder for chaining. */ @@ -832,8 +762,6 @@ public Builder setMetageneration(long value) { return this; } /** - * - * *
                  * Output only. The metadata version of this managed folder. It increases
                  * whenever the metadata is updated. Used for preconditions and for detecting
            @@ -841,7 +769,6 @@ public Builder setMetageneration(long value) {
                  * 
            * * int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearMetageneration() { @@ -853,58 +780,39 @@ public Builder clearMetageneration() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
                  * Output only. The creation time of the managed folder.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
                  * Output only. The creation time of the managed folder.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
                  * Output only. The creation time of the managed folder.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -920,17 +828,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                  * Output only. The creation time of the managed folder.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -941,21 +846,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
                  * Output only. The creation time of the managed folder.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -970,15 +871,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                  * Output only. The creation time of the managed folder.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -991,15 +888,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
                  * Output only. The creation time of the managed folder.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000004; @@ -1007,48 +900,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
                  * Output only. The creation time of the managed folder.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
                  * Output only. The creation time of the managed folder.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1056,58 +937,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
                  * Output only. The modification time of the managed folder.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
                  * Output only. The modification time of the managed folder.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
                  * Output only. The modification time of the managed folder.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1123,17 +985,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                  * Output only. The modification time of the managed folder.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1144,21 +1003,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
                  * Output only. The modification time of the managed folder.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1173,15 +1028,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                  * Output only. The modification time of the managed folder.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1194,15 +1045,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
                  * Output only. The modification time of the managed folder.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000008; @@ -1210,55 +1057,43 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
                  * Output only. The modification time of the managed folder.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
                  * Output only. The modification time of the managed folder.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1268,12 +1103,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.control.v2.ManagedFolder) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.ManagedFolder) private static final com.google.storage.control.v2.ManagedFolder DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.control.v2.ManagedFolder(); } @@ -1282,27 +1117,27 @@ public static com.google.storage.control.v2.ManagedFolder getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ManagedFolder parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ManagedFolder parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1317,4 +1152,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.ManagedFolder getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ManagedFolderName.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ManagedFolderName.java similarity index 100% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ManagedFolderName.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ManagedFolderName.java diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ManagedFolderOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ManagedFolderOrBuilder.java similarity index 71% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ManagedFolderOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ManagedFolderOrBuilder.java index e5d481ae8f..77bdc07fd9 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ManagedFolderOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ManagedFolderOrBuilder.java @@ -1,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto // Protobuf Java Version: 3.25.3 package com.google.storage.control.v2; -public interface ManagedFolderOrBuilder - extends +public interface ManagedFolderOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.ManagedFolder) com.google.protobuf.MessageOrBuilder { /** - * - * *
                * Identifier. The name of this managed folder.
                * Format:
            @@ -34,13 +16,10 @@ public interface ManagedFolderOrBuilder
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
                * Identifier. The name of this managed folder.
                * Format:
            @@ -48,14 +27,12 @@ public interface ManagedFolderOrBuilder
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
                * Output only. The metadata version of this managed folder. It increases
                * whenever the metadata is updated. Used for preconditions and for detecting
            @@ -63,84 +40,61 @@ public interface ManagedFolderOrBuilder
                * 
            * * int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The metageneration. */ long getMetageneration(); /** - * - * *
                * Output only. The creation time of the managed folder.
                * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
                * Output only. The creation time of the managed folder.
                * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
                * Output only. The creation time of the managed folder.
                * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
                * Output only. The modification time of the managed folder.
                * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
                * Output only. The modification time of the managed folder.
                * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
                * Output only. The modification time of the managed folder.
                * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); } diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/PendingRenameInfo.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/PendingRenameInfo.java similarity index 66% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/PendingRenameInfo.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/PendingRenameInfo.java index 059f96157b..5e9d6f4289 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/PendingRenameInfo.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/PendingRenameInfo.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto @@ -20,62 +5,54 @@ package com.google.storage.control.v2; /** - * - * *
              * Contains information about a pending rename operation.
              * 
            * * Protobuf type {@code google.storage.control.v2.PendingRenameInfo} */ -public final class PendingRenameInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PendingRenameInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.PendingRenameInfo) PendingRenameInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PendingRenameInfo.newBuilder() to construct. private PendingRenameInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PendingRenameInfo() { operation_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PendingRenameInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_PendingRenameInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_PendingRenameInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_PendingRenameInfo_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_PendingRenameInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.PendingRenameInfo.class, - com.google.storage.control.v2.PendingRenameInfo.Builder.class); + com.google.storage.control.v2.PendingRenameInfo.class, com.google.storage.control.v2.PendingRenameInfo.Builder.class); } public static final int OPERATION_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object operation_ = ""; /** - * - * *
                * Output only. The name of the rename operation.
                * 
            * * string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The operation. */ @java.lang.Override @@ -84,29 +61,29 @@ public java.lang.String getOperation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operation_ = s; return s; } } /** - * - * *
                * Output only. The name of the rename operation.
                * 
            * * string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for operation. */ @java.lang.Override - public com.google.protobuf.ByteString getOperationBytes() { + public com.google.protobuf.ByteString + getOperationBytes() { java.lang.Object ref = operation_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); operation_ = b; return b; } else { @@ -115,7 +92,6 @@ public com.google.protobuf.ByteString getOperationBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -127,7 +103,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, operation_); } @@ -151,15 +128,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.control.v2.PendingRenameInfo)) { return super.equals(obj); } - com.google.storage.control.v2.PendingRenameInfo other = - (com.google.storage.control.v2.PendingRenameInfo) obj; + com.google.storage.control.v2.PendingRenameInfo other = (com.google.storage.control.v2.PendingRenameInfo) obj; - if (!getOperation().equals(other.getOperation())) return false; + if (!getOperation() + .equals(other.getOperation())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -178,136 +155,132 @@ public int hashCode() { return hash; } - public static com.google.storage.control.v2.PendingRenameInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.control.v2.PendingRenameInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.PendingRenameInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.PendingRenameInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.PendingRenameInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.PendingRenameInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.PendingRenameInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.PendingRenameInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.PendingRenameInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.PendingRenameInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.PendingRenameInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.PendingRenameInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.PendingRenameInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.PendingRenameInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.control.v2.PendingRenameInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * Contains information about a pending rename operation.
                * 
            * * Protobuf type {@code google.storage.control.v2.PendingRenameInfo} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.control.v2.PendingRenameInfo) com.google.storage.control.v2.PendingRenameInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_PendingRenameInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_PendingRenameInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_PendingRenameInfo_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_PendingRenameInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.PendingRenameInfo.class, - com.google.storage.control.v2.PendingRenameInfo.Builder.class); + com.google.storage.control.v2.PendingRenameInfo.class, com.google.storage.control.v2.PendingRenameInfo.Builder.class); } // Construct using com.google.storage.control.v2.PendingRenameInfo.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -317,9 +290,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_PendingRenameInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_PendingRenameInfo_descriptor; } @java.lang.Override @@ -338,11 +311,8 @@ public com.google.storage.control.v2.PendingRenameInfo build() { @java.lang.Override public com.google.storage.control.v2.PendingRenameInfo buildPartial() { - com.google.storage.control.v2.PendingRenameInfo result = - new com.google.storage.control.v2.PendingRenameInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.control.v2.PendingRenameInfo result = new com.google.storage.control.v2.PendingRenameInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -358,39 +328,38 @@ private void buildPartial0(com.google.storage.control.v2.PendingRenameInfo resul public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.control.v2.PendingRenameInfo) { - return mergeFrom((com.google.storage.control.v2.PendingRenameInfo) other); + return mergeFrom((com.google.storage.control.v2.PendingRenameInfo)other); } else { super.mergeFrom(other); return this; @@ -398,8 +367,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.control.v2.PendingRenameInfo other) { - if (other == com.google.storage.control.v2.PendingRenameInfo.getDefaultInstance()) - return this; + if (other == com.google.storage.control.v2.PendingRenameInfo.getDefaultInstance()) return this; if (!other.getOperation().isEmpty()) { operation_ = other.operation_; bitField0_ |= 0x00000001; @@ -431,19 +399,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - operation_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + operation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -453,25 +419,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object operation_ = ""; /** - * - * *
                  * Output only. The name of the rename operation.
                  * 
            * * string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The operation. */ public java.lang.String getOperation() { java.lang.Object ref = operation_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operation_ = s; return s; @@ -480,21 +443,20 @@ public java.lang.String getOperation() { } } /** - * - * *
                  * Output only. The name of the rename operation.
                  * 
            * * string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for operation. */ - public com.google.protobuf.ByteString getOperationBytes() { + public com.google.protobuf.ByteString + getOperationBytes() { java.lang.Object ref = operation_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); operation_ = b; return b; } else { @@ -502,35 +464,28 @@ public com.google.protobuf.ByteString getOperationBytes() { } } /** - * - * *
                  * Output only. The name of the rename operation.
                  * 
            * * string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The operation to set. * @return This builder for chaining. */ - public Builder setOperation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOperation( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } operation_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * Output only. The name of the rename operation.
                  * 
            * * string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearOperation() { @@ -540,30 +495,26 @@ public Builder clearOperation() { return this; } /** - * - * *
                  * Output only. The name of the rename operation.
                  * 
            * * string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for operation to set. * @return This builder for chaining. */ - public Builder setOperationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOperationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); operation_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -573,12 +524,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.control.v2.PendingRenameInfo) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.PendingRenameInfo) private static final com.google.storage.control.v2.PendingRenameInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.control.v2.PendingRenameInfo(); } @@ -587,27 +538,27 @@ public static com.google.storage.control.v2.PendingRenameInfo getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PendingRenameInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PendingRenameInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -622,4 +573,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.PendingRenameInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/PendingRenameInfoOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/PendingRenameInfoOrBuilder.java similarity index 51% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/PendingRenameInfoOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/PendingRenameInfoOrBuilder.java index 5331177419..776746d1a3 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/PendingRenameInfoOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/PendingRenameInfoOrBuilder.java @@ -1,51 +1,30 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto // Protobuf Java Version: 3.25.3 package com.google.storage.control.v2; -public interface PendingRenameInfoOrBuilder - extends +public interface PendingRenameInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.PendingRenameInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
                * Output only. The name of the rename operation.
                * 
            * * string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The operation. */ java.lang.String getOperation(); /** - * - * *
                * Output only. The name of the rename operation.
                * 
            * * string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for operation. */ - com.google.protobuf.ByteString getOperationBytes(); + com.google.protobuf.ByteString + getOperationBytes(); } diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderMetadata.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderMetadata.java similarity index 67% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderMetadata.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderMetadata.java index f6cddfa643..e19ea9edcb 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderMetadata.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderMetadata.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto @@ -20,8 +5,6 @@ package com.google.storage.control.v2; /** - * - * *
              * Message returned in the metadata field of the Operation resource for
              * RenameFolder operations.
            @@ -29,16 +12,15 @@
              *
              * Protobuf type {@code google.storage.control.v2.RenameFolderMetadata}
              */
            -public final class RenameFolderMetadata extends com.google.protobuf.GeneratedMessageV3
            -    implements
            +public final class RenameFolderMetadata extends
            +    com.google.protobuf.GeneratedMessageV3 implements
                 // @@protoc_insertion_point(message_implements:google.storage.control.v2.RenameFolderMetadata)
                 RenameFolderMetadataOrBuilder {
            -  private static final long serialVersionUID = 0L;
            +private static final long serialVersionUID = 0L;
               // Use RenameFolderMetadata.newBuilder() to construct.
               private RenameFolderMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                 super(builder);
               }
            -
               private RenameFolderMetadata() {
                 sourceFolderId_ = "";
                 destinationFolderId_ = "";
            @@ -46,37 +28,33 @@ private RenameFolderMetadata() {
             
               @java.lang.Override
               @SuppressWarnings({"unused"})
            -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
            +  protected java.lang.Object newInstance(
            +      UnusedPrivateParameter unused) {
                 return new RenameFolderMetadata();
               }
             
            -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            -    return com.google.storage.control.v2.StorageControlProto
            -        .internal_static_google_storage_control_v2_RenameFolderMetadata_descriptor;
            +  public static final com.google.protobuf.Descriptors.Descriptor
            +      getDescriptor() {
            +    return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_RenameFolderMetadata_descriptor;
               }
             
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
            -    return com.google.storage.control.v2.StorageControlProto
            -        .internal_static_google_storage_control_v2_RenameFolderMetadata_fieldAccessorTable
            +    return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_RenameFolderMetadata_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
            -            com.google.storage.control.v2.RenameFolderMetadata.class,
            -            com.google.storage.control.v2.RenameFolderMetadata.Builder.class);
            +            com.google.storage.control.v2.RenameFolderMetadata.class, com.google.storage.control.v2.RenameFolderMetadata.Builder.class);
               }
             
               private int bitField0_;
               public static final int COMMON_METADATA_FIELD_NUMBER = 1;
               private com.google.storage.control.v2.CommonLongRunningOperationMetadata commonMetadata_;
               /**
            -   *
            -   *
                * 
                * Generic metadata for the long running operation.
                * 
            * * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - * * @return Whether the commonMetadata field is set. */ @java.lang.Override @@ -84,25 +62,18 @@ public boolean hasCommonMetadata() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * Generic metadata for the long running operation.
                * 
            * * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - * * @return The commonMetadata. */ @java.lang.Override public com.google.storage.control.v2.CommonLongRunningOperationMetadata getCommonMetadata() { - return commonMetadata_ == null - ? com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance() - : commonMetadata_; + return commonMetadata_ == null ? com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance() : commonMetadata_; } /** - * - * *
                * Generic metadata for the long running operation.
                * 
            @@ -110,26 +81,19 @@ public com.google.storage.control.v2.CommonLongRunningOperationMetadata getCommo * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; */ @java.lang.Override - public com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder - getCommonMetadataOrBuilder() { - return commonMetadata_ == null - ? com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance() - : commonMetadata_; + public com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder getCommonMetadataOrBuilder() { + return commonMetadata_ == null ? com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance() : commonMetadata_; } public static final int SOURCE_FOLDER_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object sourceFolderId_ = ""; /** - * - * *
                * The path of the source folder.
                * 
            * * string source_folder_id = 2; - * * @return The sourceFolderId. */ @java.lang.Override @@ -138,29 +102,29 @@ public java.lang.String getSourceFolderId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceFolderId_ = s; return s; } } /** - * - * *
                * The path of the source folder.
                * 
            * * string source_folder_id = 2; - * * @return The bytes for sourceFolderId. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceFolderIdBytes() { + public com.google.protobuf.ByteString + getSourceFolderIdBytes() { java.lang.Object ref = sourceFolderId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceFolderId_ = b; return b; } else { @@ -169,18 +133,14 @@ public com.google.protobuf.ByteString getSourceFolderIdBytes() { } public static final int DESTINATION_FOLDER_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object destinationFolderId_ = ""; /** - * - * *
                * The path of the destination folder.
                * 
            * * string destination_folder_id = 3; - * * @return The destinationFolderId. */ @java.lang.Override @@ -189,29 +149,29 @@ public java.lang.String getDestinationFolderId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationFolderId_ = s; return s; } } /** - * - * *
                * The path of the destination folder.
                * 
            * * string destination_folder_id = 3; - * * @return The bytes for destinationFolderId. */ @java.lang.Override - public com.google.protobuf.ByteString getDestinationFolderIdBytes() { + public com.google.protobuf.ByteString + getDestinationFolderIdBytes() { java.lang.Object ref = destinationFolderId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); destinationFolderId_ = b; return b; } else { @@ -220,7 +180,6 @@ public com.google.protobuf.ByteString getDestinationFolderIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,7 +191,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCommonMetadata()); } @@ -252,7 +212,8 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommonMetadata()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCommonMetadata()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceFolderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceFolderId_); @@ -268,20 +229,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.control.v2.RenameFolderMetadata)) { return super.equals(obj); } - com.google.storage.control.v2.RenameFolderMetadata other = - (com.google.storage.control.v2.RenameFolderMetadata) obj; + com.google.storage.control.v2.RenameFolderMetadata other = (com.google.storage.control.v2.RenameFolderMetadata) obj; if (hasCommonMetadata() != other.hasCommonMetadata()) return false; if (hasCommonMetadata()) { - if (!getCommonMetadata().equals(other.getCommonMetadata())) return false; + if (!getCommonMetadata() + .equals(other.getCommonMetadata())) return false; } - if (!getSourceFolderId().equals(other.getSourceFolderId())) return false; - if (!getDestinationFolderId().equals(other.getDestinationFolderId())) return false; + if (!getSourceFolderId() + .equals(other.getSourceFolderId())) return false; + if (!getDestinationFolderId() + .equals(other.getDestinationFolderId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -307,103 +270,98 @@ public int hashCode() { } public static com.google.storage.control.v2.RenameFolderMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.RenameFolderMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.RenameFolderMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.RenameFolderMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.RenameFolderMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.RenameFolderMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.control.v2.RenameFolderMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.control.v2.RenameFolderMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.RenameFolderMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.RenameFolderMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.RenameFolderMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.RenameFolderMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.RenameFolderMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.RenameFolderMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.control.v2.RenameFolderMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * Message returned in the metadata field of the Operation resource for
                * RenameFolder operations.
            @@ -411,23 +369,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
                *
                * Protobuf type {@code google.storage.control.v2.RenameFolderMetadata}
                */
            -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
            -      implements
            +  public static final class Builder extends
            +      com.google.protobuf.GeneratedMessageV3.Builder implements
                   // @@protoc_insertion_point(builder_implements:google.storage.control.v2.RenameFolderMetadata)
                   com.google.storage.control.v2.RenameFolderMetadataOrBuilder {
            -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            -      return com.google.storage.control.v2.StorageControlProto
            -          .internal_static_google_storage_control_v2_RenameFolderMetadata_descriptor;
            +    public static final com.google.protobuf.Descriptors.Descriptor
            +        getDescriptor() {
            +      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_RenameFolderMetadata_descriptor;
                 }
             
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
            -      return com.google.storage.control.v2.StorageControlProto
            -          .internal_static_google_storage_control_v2_RenameFolderMetadata_fieldAccessorTable
            +      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_RenameFolderMetadata_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
            -              com.google.storage.control.v2.RenameFolderMetadata.class,
            -              com.google.storage.control.v2.RenameFolderMetadata.Builder.class);
            +              com.google.storage.control.v2.RenameFolderMetadata.class, com.google.storage.control.v2.RenameFolderMetadata.Builder.class);
                 }
             
                 // Construct using com.google.storage.control.v2.RenameFolderMetadata.newBuilder()
            @@ -435,17 +391,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) {
                     getCommonMetadataFieldBuilder();
                   }
                 }
            -
                 @java.lang.Override
                 public Builder clear() {
                   super.clear();
            @@ -461,9 +417,9 @@ public Builder clear() {
                 }
             
                 @java.lang.Override
            -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            -      return com.google.storage.control.v2.StorageControlProto
            -          .internal_static_google_storage_control_v2_RenameFolderMetadata_descriptor;
            +    public com.google.protobuf.Descriptors.Descriptor
            +        getDescriptorForType() {
            +      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_RenameFolderMetadata_descriptor;
                 }
             
                 @java.lang.Override
            @@ -482,11 +438,8 @@ public com.google.storage.control.v2.RenameFolderMetadata build() {
             
                 @java.lang.Override
                 public com.google.storage.control.v2.RenameFolderMetadata buildPartial() {
            -      com.google.storage.control.v2.RenameFolderMetadata result =
            -          new com.google.storage.control.v2.RenameFolderMetadata(this);
            -      if (bitField0_ != 0) {
            -        buildPartial0(result);
            -      }
            +      com.google.storage.control.v2.RenameFolderMetadata result = new com.google.storage.control.v2.RenameFolderMetadata(this);
            +      if (bitField0_ != 0) { buildPartial0(result); }
                   onBuilt();
                   return result;
                 }
            @@ -495,8 +448,9 @@ private void buildPartial0(com.google.storage.control.v2.RenameFolderMetadata re
                   int from_bitField0_ = bitField0_;
                   int to_bitField0_ = 0;
                   if (((from_bitField0_ & 0x00000001) != 0)) {
            -        result.commonMetadata_ =
            -            commonMetadataBuilder_ == null ? commonMetadata_ : commonMetadataBuilder_.build();
            +        result.commonMetadata_ = commonMetadataBuilder_ == null
            +            ? commonMetadata_
            +            : commonMetadataBuilder_.build();
                     to_bitField0_ |= 0x00000001;
                   }
                   if (((from_bitField0_ & 0x00000002) != 0)) {
            @@ -512,39 +466,38 @@ private void buildPartial0(com.google.storage.control.v2.RenameFolderMetadata 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.control.v2.RenameFolderMetadata) {
            -        return mergeFrom((com.google.storage.control.v2.RenameFolderMetadata) other);
            +        return mergeFrom((com.google.storage.control.v2.RenameFolderMetadata)other);
                   } else {
                     super.mergeFrom(other);
                     return this;
            @@ -552,8 +505,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
                 }
             
                 public Builder mergeFrom(com.google.storage.control.v2.RenameFolderMetadata other) {
            -      if (other == com.google.storage.control.v2.RenameFolderMetadata.getDefaultInstance())
            -        return this;
            +      if (other == com.google.storage.control.v2.RenameFolderMetadata.getDefaultInstance()) return this;
                   if (other.hasCommonMetadata()) {
                     mergeCommonMetadata(other.getCommonMetadata());
                   }
            @@ -593,31 +545,29 @@ public Builder mergeFrom(
                         case 0:
                           done = true;
                           break;
            -            case 10:
            -              {
            -                input.readMessage(getCommonMetadataFieldBuilder().getBuilder(), extensionRegistry);
            -                bitField0_ |= 0x00000001;
            -                break;
            -              } // case 10
            -            case 18:
            -              {
            -                sourceFolderId_ = input.readStringRequireUtf8();
            -                bitField0_ |= 0x00000002;
            -                break;
            -              } // case 18
            -            case 26:
            -              {
            -                destinationFolderId_ = input.readStringRequireUtf8();
            -                bitField0_ |= 0x00000004;
            -                break;
            -              } // case 26
            -            default:
            -              {
            -                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            -                  done = true; // was an endgroup tag
            -                }
            -                break;
            -              } // default:
            +            case 10: {
            +              input.readMessage(
            +                  getCommonMetadataFieldBuilder().getBuilder(),
            +                  extensionRegistry);
            +              bitField0_ |= 0x00000001;
            +              break;
            +            } // case 10
            +            case 18: {
            +              sourceFolderId_ = input.readStringRequireUtf8();
            +              bitField0_ |= 0x00000002;
            +              break;
            +            } // case 18
            +            case 26: {
            +              destinationFolderId_ = input.readStringRequireUtf8();
            +              bitField0_ |= 0x00000004;
            +              break;
            +            } // case 26
            +            default: {
            +              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            +                done = true; // was an endgroup tag
            +              }
            +              break;
            +            } // default:
                       } // switch (tag)
                     } // while (!done)
                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            @@ -627,63 +577,45 @@ public Builder mergeFrom(
                   } // finally
                   return this;
                 }
            -
                 private int bitField0_;
             
                 private com.google.storage.control.v2.CommonLongRunningOperationMetadata commonMetadata_;
                 private com.google.protobuf.SingleFieldBuilderV3<
            -            com.google.storage.control.v2.CommonLongRunningOperationMetadata,
            -            com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder,
            -            com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder>
            -        commonMetadataBuilder_;
            +        com.google.storage.control.v2.CommonLongRunningOperationMetadata, com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder, com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder> commonMetadataBuilder_;
                 /**
            -     *
            -     *
                  * 
                  * Generic metadata for the long running operation.
                  * 
            * - * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - * - * + * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; * @return Whether the commonMetadata field is set. */ public boolean hasCommonMetadata() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                  * Generic metadata for the long running operation.
                  * 
            * - * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - * - * + * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; * @return The commonMetadata. */ public com.google.storage.control.v2.CommonLongRunningOperationMetadata getCommonMetadata() { if (commonMetadataBuilder_ == null) { - return commonMetadata_ == null - ? com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance() - : commonMetadata_; + return commonMetadata_ == null ? com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance() : commonMetadata_; } else { return commonMetadataBuilder_.getMessage(); } } /** - * - * *
                  * Generic metadata for the long running operation.
                  * 
            * - * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - * + * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; */ - public Builder setCommonMetadata( - com.google.storage.control.v2.CommonLongRunningOperationMetadata value) { + public Builder setCommonMetadata(com.google.storage.control.v2.CommonLongRunningOperationMetadata value) { if (commonMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -697,14 +629,11 @@ public Builder setCommonMetadata( return this; } /** - * - * *
                  * Generic metadata for the long running operation.
                  * 
            * - * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - * + * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; */ public Builder setCommonMetadata( com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder builderForValue) { @@ -718,23 +647,17 @@ public Builder setCommonMetadata( return this; } /** - * - * *
                  * Generic metadata for the long running operation.
                  * 
            * - * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - * + * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; */ - public Builder mergeCommonMetadata( - com.google.storage.control.v2.CommonLongRunningOperationMetadata value) { + public Builder mergeCommonMetadata(com.google.storage.control.v2.CommonLongRunningOperationMetadata value) { if (commonMetadataBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && commonMetadata_ != null - && commonMetadata_ - != com.google.storage.control.v2.CommonLongRunningOperationMetadata - .getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + commonMetadata_ != null && + commonMetadata_ != com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance()) { getCommonMetadataBuilder().mergeFrom(value); } else { commonMetadata_ = value; @@ -749,14 +672,11 @@ public Builder mergeCommonMetadata( return this; } /** - * - * *
                  * Generic metadata for the long running operation.
                  * 
            * - * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - * + * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; */ public Builder clearCommonMetadata() { bitField0_ = (bitField0_ & ~0x00000001); @@ -769,63 +689,48 @@ public Builder clearCommonMetadata() { return this; } /** - * - * *
                  * Generic metadata for the long running operation.
                  * 
            * - * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - * + * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; */ - public com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder - getCommonMetadataBuilder() { + public com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder getCommonMetadataBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCommonMetadataFieldBuilder().getBuilder(); } /** - * - * *
                  * Generic metadata for the long running operation.
                  * 
            * - * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - * + * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; */ - public com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder - getCommonMetadataOrBuilder() { + public com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder getCommonMetadataOrBuilder() { if (commonMetadataBuilder_ != null) { return commonMetadataBuilder_.getMessageOrBuilder(); } else { - return commonMetadata_ == null - ? com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance() - : commonMetadata_; + return commonMetadata_ == null ? + com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance() : commonMetadata_; } } /** - * - * *
                  * Generic metadata for the long running operation.
                  * 
            * - * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - * + * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.CommonLongRunningOperationMetadata, - com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder, - com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder> + com.google.storage.control.v2.CommonLongRunningOperationMetadata, com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder, com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder> getCommonMetadataFieldBuilder() { if (commonMetadataBuilder_ == null) { - commonMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.CommonLongRunningOperationMetadata, - com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder, - com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder>( - getCommonMetadata(), getParentForChildren(), isClean()); + commonMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.control.v2.CommonLongRunningOperationMetadata, com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder, com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder>( + getCommonMetadata(), + getParentForChildren(), + isClean()); commonMetadata_ = null; } return commonMetadataBuilder_; @@ -833,20 +738,18 @@ public Builder clearCommonMetadata() { private java.lang.Object sourceFolderId_ = ""; /** - * - * *
                  * The path of the source folder.
                  * 
            * * string source_folder_id = 2; - * * @return The sourceFolderId. */ public java.lang.String getSourceFolderId() { java.lang.Object ref = sourceFolderId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceFolderId_ = s; return s; @@ -855,21 +758,20 @@ public java.lang.String getSourceFolderId() { } } /** - * - * *
                  * The path of the source folder.
                  * 
            * * string source_folder_id = 2; - * * @return The bytes for sourceFolderId. */ - public com.google.protobuf.ByteString getSourceFolderIdBytes() { + public com.google.protobuf.ByteString + getSourceFolderIdBytes() { java.lang.Object ref = sourceFolderId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceFolderId_ = b; return b; } else { @@ -877,35 +779,28 @@ public com.google.protobuf.ByteString getSourceFolderIdBytes() { } } /** - * - * *
                  * The path of the source folder.
                  * 
            * * string source_folder_id = 2; - * * @param value The sourceFolderId to set. * @return This builder for chaining. */ - public Builder setSourceFolderId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceFolderId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceFolderId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                  * The path of the source folder.
                  * 
            * * string source_folder_id = 2; - * * @return This builder for chaining. */ public Builder clearSourceFolderId() { @@ -915,21 +810,17 @@ public Builder clearSourceFolderId() { return this; } /** - * - * *
                  * The path of the source folder.
                  * 
            * * string source_folder_id = 2; - * * @param value The bytes for sourceFolderId to set. * @return This builder for chaining. */ - public Builder setSourceFolderIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceFolderIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceFolderId_ = value; bitField0_ |= 0x00000002; @@ -939,20 +830,18 @@ public Builder setSourceFolderIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object destinationFolderId_ = ""; /** - * - * *
                  * The path of the destination folder.
                  * 
            * * string destination_folder_id = 3; - * * @return The destinationFolderId. */ public java.lang.String getDestinationFolderId() { java.lang.Object ref = destinationFolderId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationFolderId_ = s; return s; @@ -961,21 +850,20 @@ public java.lang.String getDestinationFolderId() { } } /** - * - * *
                  * The path of the destination folder.
                  * 
            * * string destination_folder_id = 3; - * * @return The bytes for destinationFolderId. */ - public com.google.protobuf.ByteString getDestinationFolderIdBytes() { + public com.google.protobuf.ByteString + getDestinationFolderIdBytes() { java.lang.Object ref = destinationFolderId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); destinationFolderId_ = b; return b; } else { @@ -983,35 +871,28 @@ public com.google.protobuf.ByteString getDestinationFolderIdBytes() { } } /** - * - * *
                  * The path of the destination folder.
                  * 
            * * string destination_folder_id = 3; - * * @param value The destinationFolderId to set. * @return This builder for chaining. */ - public Builder setDestinationFolderId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationFolderId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } destinationFolderId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
                  * The path of the destination folder.
                  * 
            * * string destination_folder_id = 3; - * * @return This builder for chaining. */ public Builder clearDestinationFolderId() { @@ -1021,30 +902,26 @@ public Builder clearDestinationFolderId() { return this; } /** - * - * *
                  * The path of the destination folder.
                  * 
            * * string destination_folder_id = 3; - * * @param value The bytes for destinationFolderId to set. * @return This builder for chaining. */ - public Builder setDestinationFolderIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationFolderIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); destinationFolderId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1054,12 +931,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.control.v2.RenameFolderMetadata) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.RenameFolderMetadata) private static final com.google.storage.control.v2.RenameFolderMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.control.v2.RenameFolderMetadata(); } @@ -1068,27 +945,27 @@ public static com.google.storage.control.v2.RenameFolderMetadata getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RenameFolderMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RenameFolderMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1103,4 +980,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.RenameFolderMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderMetadataOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderMetadataOrBuilder.java similarity index 67% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderMetadataOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderMetadataOrBuilder.java index 6af4130aec..f28f41bb39 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderMetadataOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderMetadataOrBuilder.java @@ -1,112 +1,77 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto // Protobuf Java Version: 3.25.3 package com.google.storage.control.v2; -public interface RenameFolderMetadataOrBuilder - extends +public interface RenameFolderMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.RenameFolderMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
                * Generic metadata for the long running operation.
                * 
            * * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - * * @return Whether the commonMetadata field is set. */ boolean hasCommonMetadata(); /** - * - * *
                * Generic metadata for the long running operation.
                * 
            * * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; - * * @return The commonMetadata. */ com.google.storage.control.v2.CommonLongRunningOperationMetadata getCommonMetadata(); /** - * - * *
                * Generic metadata for the long running operation.
                * 
            * * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; */ - com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder - getCommonMetadataOrBuilder(); + com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder getCommonMetadataOrBuilder(); /** - * - * *
                * The path of the source folder.
                * 
            * * string source_folder_id = 2; - * * @return The sourceFolderId. */ java.lang.String getSourceFolderId(); /** - * - * *
                * The path of the source folder.
                * 
            * * string source_folder_id = 2; - * * @return The bytes for sourceFolderId. */ - com.google.protobuf.ByteString getSourceFolderIdBytes(); + com.google.protobuf.ByteString + getSourceFolderIdBytes(); /** - * - * *
                * The path of the destination folder.
                * 
            * * string destination_folder_id = 3; - * * @return The destinationFolderId. */ java.lang.String getDestinationFolderId(); /** - * - * *
                * The path of the destination folder.
                * 
            * * string destination_folder_id = 3; - * * @return The bytes for destinationFolderId. */ - com.google.protobuf.ByteString getDestinationFolderIdBytes(); + com.google.protobuf.ByteString + getDestinationFolderIdBytes(); } diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderRequest.java similarity index 70% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderRequest.java index aed982fd28..68287b9ddb 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto @@ -20,26 +5,22 @@ package com.google.storage.control.v2; /** - * - * *
              * Request message for RenameFolder. This operation is only applicable to a
              * hierarchical namespace enabled bucket.
            - * Hierarchical namespace buckets are in allowlist preview.
              * 
            * * Protobuf type {@code google.storage.control.v2.RenameFolderRequest} */ -public final class RenameFolderRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RenameFolderRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.RenameFolderRequest) RenameFolderRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RenameFolderRequest.newBuilder() to construct. private RenameFolderRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RenameFolderRequest() { name_ = ""; destinationFolderId_ = ""; @@ -48,42 +29,35 @@ private RenameFolderRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RenameFolderRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_RenameFolderRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_RenameFolderRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_RenameFolderRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_RenameFolderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.RenameFolderRequest.class, - com.google.storage.control.v2.RenameFolderRequest.Builder.class); + com.google.storage.control.v2.RenameFolderRequest.class, com.google.storage.control.v2.RenameFolderRequest.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
                * Required. Name of the source folder being renamed.
                * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                * 
            * - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -92,32 +66,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
                * Required. Name of the source folder being renamed.
                * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                * 
            * - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -126,18 +98,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DESTINATION_FOLDER_ID_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object destinationFolderId_ = ""; /** - * - * *
                * Required. The destination folder ID, e.g. `foo/bar/`.
                * 
            * * string destination_folder_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The destinationFolderId. */ @java.lang.Override @@ -146,29 +114,29 @@ public java.lang.String getDestinationFolderId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationFolderId_ = s; return s; } } /** - * - * *
                * Required. The destination folder ID, e.g. `foo/bar/`.
                * 
            * * string destination_folder_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for destinationFolderId. */ @java.lang.Override - public com.google.protobuf.ByteString getDestinationFolderIdBytes() { + public com.google.protobuf.ByteString + getDestinationFolderIdBytes() { java.lang.Object ref = destinationFolderId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); destinationFolderId_ = b; return b; } else { @@ -179,15 +147,12 @@ public com.google.protobuf.ByteString getDestinationFolderIdBytes() { public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER = 4; private long ifMetagenerationMatch_ = 0L; /** - * - * *
                * Makes the operation only succeed conditional on whether the source
                * folder's current metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 4; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -195,15 +160,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * Makes the operation only succeed conditional on whether the source
                * folder's current metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 4; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -214,15 +176,12 @@ public long getIfMetagenerationMatch() { public static final int IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER = 5; private long ifMetagenerationNotMatch_ = 0L; /** - * - * *
                * Makes the operation only succeed conditional on whether the source
                * folder's current metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 5; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -230,15 +189,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                * Makes the operation only succeed conditional on whether the source
                * folder's current metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 5; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -247,22 +203,16 @@ public long getIfMetagenerationNotMatch() { } public static final int REQUEST_ID_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted. This request is only
                * idempotent if a `request_id` is provided.
                * 
            * - * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ @java.lang.Override @@ -271,33 +221,31 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted. This request is only
                * idempotent if a `request_id` is provided.
                * 
            * - * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -306,7 +254,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -318,7 +265,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(4, ifMetagenerationMatch_); } @@ -344,10 +292,12 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ifMetagenerationMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, ifMetagenerationMatch_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, ifMetagenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, ifMetagenerationNotMatch_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, requestId_); @@ -366,25 +316,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.control.v2.RenameFolderRequest)) { return super.equals(obj); } - com.google.storage.control.v2.RenameFolderRequest other = - (com.google.storage.control.v2.RenameFolderRequest) obj; + com.google.storage.control.v2.RenameFolderRequest other = (com.google.storage.control.v2.RenameFolderRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getDestinationFolderId().equals(other.getDestinationFolderId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDestinationFolderId() + .equals(other.getDestinationFolderId())) return false; if (hasIfMetagenerationMatch() != other.hasIfMetagenerationMatch()) return false; if (hasIfMetagenerationMatch()) { - if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false; + if (getIfMetagenerationMatch() + != other.getIfMetagenerationMatch()) return false; } if (hasIfMetagenerationNotMatch() != other.hasIfMetagenerationNotMatch()) return false; if (hasIfMetagenerationNotMatch()) { - if (getIfMetagenerationNotMatch() != other.getIfMetagenerationNotMatch()) return false; + if (getIfMetagenerationNotMatch() + != other.getIfMetagenerationNotMatch()) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -402,11 +356,13 @@ public int hashCode() { hash = (53 * hash) + getDestinationFolderId().hashCode(); if (hasIfMetagenerationMatch()) { hash = (37 * hash) + IF_METAGENERATION_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationMatch()); } if (hasIfMetagenerationNotMatch()) { hash = (37 * hash) + IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationNotMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationNotMatch()); } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); @@ -416,137 +372,132 @@ public int hashCode() { } public static com.google.storage.control.v2.RenameFolderRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.RenameFolderRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.RenameFolderRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.RenameFolderRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.RenameFolderRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.RenameFolderRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.control.v2.RenameFolderRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.control.v2.RenameFolderRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.RenameFolderRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.RenameFolderRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.RenameFolderRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.RenameFolderRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.RenameFolderRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.RenameFolderRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.control.v2.RenameFolderRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * Request message for RenameFolder. This operation is only applicable to a
                * hierarchical namespace enabled bucket.
            -   * Hierarchical namespace buckets are in allowlist preview.
                * 
            * * Protobuf type {@code google.storage.control.v2.RenameFolderRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.control.v2.RenameFolderRequest) com.google.storage.control.v2.RenameFolderRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_RenameFolderRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_RenameFolderRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_RenameFolderRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_RenameFolderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.RenameFolderRequest.class, - com.google.storage.control.v2.RenameFolderRequest.Builder.class); + com.google.storage.control.v2.RenameFolderRequest.class, com.google.storage.control.v2.RenameFolderRequest.Builder.class); } // Construct using com.google.storage.control.v2.RenameFolderRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -560,9 +511,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_RenameFolderRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_RenameFolderRequest_descriptor; } @java.lang.Override @@ -581,11 +532,8 @@ public com.google.storage.control.v2.RenameFolderRequest build() { @java.lang.Override public com.google.storage.control.v2.RenameFolderRequest buildPartial() { - com.google.storage.control.v2.RenameFolderRequest result = - new com.google.storage.control.v2.RenameFolderRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.control.v2.RenameFolderRequest result = new com.google.storage.control.v2.RenameFolderRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -617,39 +565,38 @@ private void buildPartial0(com.google.storage.control.v2.RenameFolderRequest res public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.control.v2.RenameFolderRequest) { - return mergeFrom((com.google.storage.control.v2.RenameFolderRequest) other); + return mergeFrom((com.google.storage.control.v2.RenameFolderRequest)other); } else { super.mergeFrom(other); return this; @@ -657,8 +604,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.control.v2.RenameFolderRequest other) { - if (other == com.google.storage.control.v2.RenameFolderRequest.getDefaultInstance()) - return this; + if (other == com.google.storage.control.v2.RenameFolderRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -706,43 +652,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 32: - { - ifMetagenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 32 - case 40: - { - ifMetagenerationNotMatch_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 40 - case 50: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - case 58: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 58 - case 66: - { - destinationFolderId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 32: { + ifMetagenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 40: { + ifMetagenerationNotMatch_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 40 + case 50: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 58: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 58 + case 66: { + destinationFolderId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -752,28 +692,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
                  * Required. Name of the source folder being renamed.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -782,24 +717,21 @@ public java.lang.String getName() { } } /** - * - * *
                  * Required. Name of the source folder being renamed.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -807,41 +739,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
                  * Required. Name of the source folder being renamed.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * Required. Name of the source folder being renamed.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -851,24 +772,18 @@ public Builder clearName() { return this; } /** - * - * *
                  * Required. Name of the source folder being renamed.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -878,20 +793,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object destinationFolderId_ = ""; /** - * - * *
                  * Required. The destination folder ID, e.g. `foo/bar/`.
                  * 
            * * string destination_folder_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The destinationFolderId. */ public java.lang.String getDestinationFolderId() { java.lang.Object ref = destinationFolderId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationFolderId_ = s; return s; @@ -900,21 +813,20 @@ public java.lang.String getDestinationFolderId() { } } /** - * - * *
                  * Required. The destination folder ID, e.g. `foo/bar/`.
                  * 
            * * string destination_folder_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for destinationFolderId. */ - public com.google.protobuf.ByteString getDestinationFolderIdBytes() { + public com.google.protobuf.ByteString + getDestinationFolderIdBytes() { java.lang.Object ref = destinationFolderId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); destinationFolderId_ = b; return b; } else { @@ -922,35 +834,28 @@ public com.google.protobuf.ByteString getDestinationFolderIdBytes() { } } /** - * - * *
                  * Required. The destination folder ID, e.g. `foo/bar/`.
                  * 
            * * string destination_folder_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The destinationFolderId to set. * @return This builder for chaining. */ - public Builder setDestinationFolderId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationFolderId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } destinationFolderId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                  * Required. The destination folder ID, e.g. `foo/bar/`.
                  * 
            * * string destination_folder_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDestinationFolderId() { @@ -960,21 +865,17 @@ public Builder clearDestinationFolderId() { return this; } /** - * - * *
                  * Required. The destination folder ID, e.g. `foo/bar/`.
                  * 
            * * string destination_folder_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for destinationFolderId to set. * @return This builder for chaining. */ - public Builder setDestinationFolderIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationFolderIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); destinationFolderId_ = value; bitField0_ |= 0x00000002; @@ -982,17 +883,14 @@ public Builder setDestinationFolderIdBytes(com.google.protobuf.ByteString value) return this; } - private long ifMetagenerationMatch_; + private long ifMetagenerationMatch_ ; /** - * - * *
                  * Makes the operation only succeed conditional on whether the source
                  * folder's current metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 4; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -1000,15 +898,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
                  * Makes the operation only succeed conditional on whether the source
                  * folder's current metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 4; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -1016,15 +911,12 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** - * - * *
                  * Makes the operation only succeed conditional on whether the source
                  * folder's current metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 4; - * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -1036,15 +928,12 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** - * - * *
                  * Makes the operation only succeed conditional on whether the source
                  * folder's current metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 4; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -1054,17 +943,14 @@ public Builder clearIfMetagenerationMatch() { return this; } - private long ifMetagenerationNotMatch_; + private long ifMetagenerationNotMatch_ ; /** - * - * *
                  * Makes the operation only succeed conditional on whether the source
                  * folder's current metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 5; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -1072,15 +958,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
                  * Makes the operation only succeed conditional on whether the source
                  * folder's current metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 5; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -1088,15 +971,12 @@ public long getIfMetagenerationNotMatch() { return ifMetagenerationNotMatch_; } /** - * - * *
                  * Makes the operation only succeed conditional on whether the source
                  * folder's current metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 5; - * * @param value The ifMetagenerationNotMatch to set. * @return This builder for chaining. */ @@ -1108,15 +988,12 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** - * - * *
                  * Makes the operation only succeed conditional on whether the source
                  * folder's current metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 5; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -1128,24 +1005,20 @@ public Builder clearIfMetagenerationNotMatch() { private java.lang.Object requestId_ = ""; /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted. This request is only
                  * idempotent if a `request_id` is provided.
                  * 
            * - * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1154,25 +1027,22 @@ public java.lang.String getRequestId() { } } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted. This request is only
                  * idempotent if a `request_id` is provided.
                  * 
            * - * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1180,43 +1050,32 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted. This request is only
                  * idempotent if a `request_id` is provided.
                  * 
            * - * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted. This request is only
                  * idempotent if a `request_id` is provided.
                  * 
            * - * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1226,34 +1085,28 @@ public Builder clearRequestId() { return this; } /** - * - * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted. This request is only
                  * idempotent if a `request_id` is provided.
                  * 
            * - * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1263,12 +1116,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.control.v2.RenameFolderRequest) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.RenameFolderRequest) private static final com.google.storage.control.v2.RenameFolderRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.control.v2.RenameFolderRequest(); } @@ -1277,27 +1130,27 @@ public static com.google.storage.control.v2.RenameFolderRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RenameFolderRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RenameFolderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1312,4 +1165,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.RenameFolderRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderRequestOrBuilder.java similarity index 68% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderRequestOrBuilder.java index b7799da96b..6a0f86c794 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderRequestOrBuilder.java @@ -1,169 +1,118 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto // Protobuf Java Version: 3.25.3 package com.google.storage.control.v2; -public interface RenameFolderRequestOrBuilder - extends +public interface RenameFolderRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.RenameFolderRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
                * Required. Name of the source folder being renamed.
                * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                * 
            * - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
                * Required. Name of the source folder being renamed.
                * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                * 
            * - * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
                * Required. The destination folder ID, e.g. `foo/bar/`.
                * 
            * * string destination_folder_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The destinationFolderId. */ java.lang.String getDestinationFolderId(); /** - * - * *
                * Required. The destination folder ID, e.g. `foo/bar/`.
                * 
            * * string destination_folder_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for destinationFolderId. */ - com.google.protobuf.ByteString getDestinationFolderIdBytes(); + com.google.protobuf.ByteString + getDestinationFolderIdBytes(); /** - * - * *
                * Makes the operation only succeed conditional on whether the source
                * folder's current metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 4; - * * @return Whether the ifMetagenerationMatch field is set. */ boolean hasIfMetagenerationMatch(); /** - * - * *
                * Makes the operation only succeed conditional on whether the source
                * folder's current metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 4; - * * @return The ifMetagenerationMatch. */ long getIfMetagenerationMatch(); /** - * - * *
                * Makes the operation only succeed conditional on whether the source
                * folder's current metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 5; - * * @return Whether the ifMetagenerationNotMatch field is set. */ boolean hasIfMetagenerationNotMatch(); /** - * - * *
                * Makes the operation only succeed conditional on whether the source
                * folder's current metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 5; - * * @return The ifMetagenerationNotMatch. */ long getIfMetagenerationNotMatch(); /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted. This request is only
                * idempotent if a `request_id` is provided.
                * 
            * - * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted. This request is only
                * idempotent if a `request_id` is provided.
                * 
            * - * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } - * - * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlProto.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlProto.java new file mode 100644 index 0000000000..2971dbe4c4 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlProto.java @@ -0,0 +1,457 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/storage/control/v2/storage_control.proto + +// Protobuf Java Version: 3.25.3 +package com.google.storage.control.v2; + +public final class StorageControlProto { + private StorageControlProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_PendingRenameInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_PendingRenameInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_Folder_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_Folder_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_GetFolderRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_GetFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_CreateFolderRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_CreateFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_DeleteFolderRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_DeleteFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_ListFoldersRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_ListFoldersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_ListFoldersResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_ListFoldersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_RenameFolderRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_RenameFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_RenameFolderMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_RenameFolderMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_StorageLayout_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_StorageLayout_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_GetStorageLayoutRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_GetStorageLayoutRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_ManagedFolder_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_ManagedFolder_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_GetManagedFolderRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_GetManagedFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_CreateManagedFolderRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_CreateManagedFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_DeleteManagedFolderRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_DeleteManagedFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_ListManagedFoldersRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_ListManagedFoldersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_ListManagedFoldersResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_ListManagedFoldersResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n/google/storage/control/v2/storage_cont" + + "rol.proto\022\031google.storage.control.v2\032\027go" + + "ogle/api/client.proto\032\037google/api/field_" + + "behavior.proto\032\033google/api/field_info.pr" + + "oto\032\031google/api/resource.proto\032\030google/a" + + "pi/routing.proto\032#google/longrunning/ope" + + "rations.proto\032\033google/protobuf/empty.pro" + + "to\032\037google/protobuf/timestamp.proto\"+\n\021P" + + "endingRenameInfo\022\026\n\toperation\030\001 \001(\tB\003\340A\003" + + "\"\342\002\n\006Folder\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\033\n\016metage" + + "neration\030\003 \001(\003B\003\340A\003\0224\n\013create_time\030\004 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upd" + + "ate_time\030\005 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\022N\n\023pending_rename_info\030\007 \001(\0132,.g" + + "oogle.storage.control.v2.PendingRenameIn" + + "foB\003\340A\003:l\352Ai\n\035storage.googleapis.com/Fol" + + "der\0227projects/{project}/buckets/{bucket}" + + "/folders/{folder=**}*\007folders2\006folder\"\364\001" + + "\n\020GetFolderRequest\0223\n\004name\030\006 \001(\tB%\340A\002\372A\037" + + "\n\035storage.googleapis.com/Folder\022$\n\027if_me" + + "tageneration_match\030\003 \001(\003H\000\210\001\001\022(\n\033if_meta" + + "generation_not_match\030\004 \001(\003H\001\210\001\001\022\037\n\nreque" + + "st_id\030\005 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001B\032\n\030_if_metagene" + + "ration_matchB\036\n\034_if_metageneration_not_m" + + "atch\"\325\001\n\023CreateFolderRequest\0225\n\006parent\030\001" + + " \001(\tB%\340A\002\372A\037\022\035storage.googleapis.com/Fol" + + "der\0226\n\006folder\030\002 \001(\0132!.google.storage.con" + + "trol.v2.FolderB\003\340A\002\022\026\n\tfolder_id\030\003 \001(\tB\003" + + "\340A\002\022\026\n\trecursive\030\004 \001(\010B\003\340A\001\022\037\n\nrequest_i" + + "d\030\005 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\367\001\n\023DeleteFolderReq" + + "uest\0223\n\004name\030\006 \001(\tB%\340A\002\372A\037\n\035storage.goog" + + "leapis.com/Folder\022$\n\027if_metageneration_m" + + "atch\030\003 \001(\003H\000\210\001\001\022(\n\033if_metageneration_not" + + "_match\030\004 \001(\003H\001\210\001\001\022\037\n\nrequest_id\030\005 \001(\tB\013\340" + + "A\001\342\214\317\327\010\002\010\001B\032\n\030_if_metageneration_matchB\036" + + "\n\034_if_metageneration_not_match\"\214\002\n\022ListF" + + "oldersRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\022\035s" + + "torage.googleapis.com/Folder\022\026\n\tpage_siz" + + "e\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006prefix\030\004 \001(\tB\003\340A\001\022\026\n\tdelimiter\030\010 \001(\tB\003\340" + + "A\001\022 \n\023lexicographic_start\030\006 \001(\tB\003\340A\001\022\036\n\021" + + "lexicographic_end\030\007 \001(\tB\003\340A\001\022\037\n\nrequest_" + + "id\030\t \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"b\n\023ListFoldersResp" + + "onse\0222\n\007folders\030\001 \003(\0132!.google.storage.c" + + "ontrol.v2.Folder\022\027\n\017next_page_token\030\002 \001(" + + "\t\"\233\002\n\023RenameFolderRequest\0223\n\004name\030\007 \001(\tB" + + "%\340A\002\372A\037\n\035storage.googleapis.com/Folder\022\"" + + "\n\025destination_folder_id\030\010 \001(\tB\003\340A\002\022$\n\027if" + + "_metageneration_match\030\004 \001(\003H\000\210\001\001\022(\n\033if_m" + + "etageneration_not_match\030\005 \001(\003H\001\210\001\001\022\037\n\nre" + + "quest_id\030\006 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001B\032\n\030_if_metag" + + "eneration_matchB\036\n\034_if_metageneration_no" + + "t_match\"\232\002\n\"CommonLongRunningOperationMe" + + "tadata\0224\n\013create_time\030\001 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\0224\n\013updat" + + "e_time\030\003 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\022\021\n\004type\030\004 \001(\tB\003\340A\003\022#\n\026requested_ca" + + "ncellation\030\005 \001(\010B\003\340A\003\022\035\n\020progress_percen" + + "t\030\006 \001(\005B\003\340A\003\"\247\001\n\024RenameFolderMetadata\022V\n" + + "\017common_metadata\030\001 \001(\0132=.google.storage." + + "control.v2.CommonLongRunningOperationMet" + + "adata\022\030\n\020source_folder_id\030\002 \001(\t\022\035\n\025desti" + + "nation_folder_id\030\003 \001(\t\"\331\003\n\rStorageLayout" + + "\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\025\n\010location\030\002 \001(\tB\003\340" + + "A\003\022\032\n\rlocation_type\030\003 \001(\tB\003\340A\003\022d\n\027custom" + + "_placement_config\030\004 \001(\0132>.google.storage" + + ".control.v2.StorageLayout.CustomPlacemen" + + "tConfigB\003\340A\003\022c\n\026hierarchical_namespace\030\005" + + " \001(\0132>.google.storage.control.v2.Storage" + + "Layout.HierarchicalNamespaceB\003\340A\003\032/\n\025Cus" + + "tomPlacementConfig\022\026\n\016data_locations\030\001 \003" + + "(\t\032(\n\025HierarchicalNamespace\022\017\n\007enabled\030\001" + + " \001(\010:\\\352AY\n$storage.googleapis.com/Storag" + + "eLayout\0221projects/{project}/buckets/{buc" + + "ket}/storageLayout\"\206\001\n\027GetStorageLayoutR" + + "equest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$storage.go" + + "ogleapis.com/StorageLayout\022\016\n\006prefix\030\002 \001" + + "(\t\022\037\n\nrequest_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\277\002\n\r" + + "ManagedFolder\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\033\n\016meta" + + "generation\030\003 \001(\003B\003\340A\003\0224\n\013create_time\030\004 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013u" + + "pdate_time\030\005 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003:\221\001\352A\215\001\n$storage.googleapis.com" + + "/ManagedFolder\022Fprojects/{project}/bucke" + + "ts/{bucket}/managedFolders/{managed_fold" + + "er=**}*\016managedFolders2\rmanagedFolder\"\202\002" + + "\n\027GetManagedFolderRequest\022:\n\004name\030\006 \001(\tB" + + ",\340A\002\372A&\n$storage.googleapis.com/ManagedF" + + "older\022$\n\027if_metageneration_match\030\003 \001(\003H\000" + + "\210\001\001\022(\n\033if_metageneration_not_match\030\004 \001(\003" + + "H\001\210\001\001\022\037\n\nrequest_id\030\005 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001B\032" + + "\n\030_if_metageneration_matchB\036\n\034_if_metage" + + "neration_not_match\"\342\001\n\032CreateManagedFold" + + "erRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\022$stora" + + "ge.googleapis.com/ManagedFolder\022E\n\016manag" + + "ed_folder\030\002 \001(\0132(.google.storage.control" + + ".v2.ManagedFolderB\003\340A\002\022\036\n\021managed_folder" + + "_id\030\003 \001(\tB\003\340A\002\022\037\n\nrequest_id\030\004 \001(\tB\013\340A\001\342" + + "\214\317\327\010\002\010\001\"\236\002\n\032DeleteManagedFolderRequest\022:" + + "\n\004name\030\007 \001(\tB,\340A\002\372A&\n$storage.googleapis" + + ".com/ManagedFolder\022$\n\027if_metageneration_" + + "match\030\003 \001(\003H\000\210\001\001\022(\n\033if_metageneration_no" + + "t_match\030\004 \001(\003H\001\210\001\001\022\027\n\017allow_non_empty\030\005 " + + "\001(\010\022\037\n\nrequest_id\030\006 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001B\032\n\030" + + "_if_metageneration_matchB\036\n\034_if_metagene" + + "ration_not_match\"\300\001\n\031ListManagedFoldersR" + + "equest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\022$storage." + + "googleapis.com/ManagedFolder\022\026\n\tpage_siz" + + "e\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006prefix\030\004 \001(\tB\003\340A\001\022\037\n\nrequest_id\030\005 \001(\tB\013" + + "\340A\001\342\214\317\327\010\002\010\001\"x\n\032ListManagedFoldersRespons" + + "e\022A\n\017managed_folders\030\001 \003(\0132(.google.stor" + + "age.control.v2.ManagedFolder\022\027\n\017next_pag" + + "e_token\030\002 \001(\t2\315\017\n\016StorageControl\022\232\001\n\014Cre" + + "ateFolder\022..google.storage.control.v2.Cr" + + "eateFolderRequest\032!.google.storage.contr" + + "ol.v2.Folder\"7\332A\027parent,folder,folder_id" + + "\212\323\344\223\002\027\022\025\n\006parent\022\013{bucket=**}\022\217\001\n\014Delete" + + "Folder\022..google.storage.control.v2.Delet" + + "eFolderRequest\032\026.google.protobuf.Empty\"7" + + "\332A\004name\212\323\344\223\002*\022(\n\004name\022 {bucket=projects/" + + "*/buckets/*}/**\022\224\001\n\tGetFolder\022+.google.s" + + "torage.control.v2.GetFolderRequest\032!.goo" + + "gle.storage.control.v2.Folder\"7\332A\004name\212\323" + + "\344\223\002*\022(\n\004name\022 {bucket=projects/*/buckets" + + "/*}/**\022\224\001\n\013ListFolders\022-.google.storage." + + "control.v2.ListFoldersRequest\032..google.s" + + "torage.control.v2.ListFoldersResponse\"&\332" + + "A\006parent\212\323\344\223\002\027\022\025\n\006parent\022\013{bucket=**}\022\315\001" + + "\n\014RenameFolder\022..google.storage.control." + + "v2.RenameFolderRequest\032\035.google.longrunn" + + "ing.Operation\"n\312A\036\n\006Folder\022\024RenameFolder" + + "Metadata\332A\032name,destination_folder_id\212\323\344" + + "\223\002*\022(\n\004name\022 {bucket=projects/*/buckets/" + + "*}/**\022\251\001\n\020GetStorageLayout\0222.google.stor" + + "age.control.v2.GetStorageLayoutRequest\032(" + + ".google.storage.control.v2.StorageLayout" + + "\"7\332A\004name\212\323\344\223\002*\022(\n\004name\022 {bucket=project" + + "s/*/buckets/*}/**\022\277\001\n\023CreateManagedFolde" + + "r\0225.google.storage.control.v2.CreateMana" + + "gedFolderRequest\032(.google.storage.contro" + + "l.v2.ManagedFolder\"G\332A\'parent,managed_fo" + + "lder,managed_folder_id\212\323\344\223\002\027\022\025\n\006parent\022\013" + + "{bucket=**}\022\235\001\n\023DeleteManagedFolder\0225.go" + + "ogle.storage.control.v2.DeleteManagedFol" + + "derRequest\032\026.google.protobuf.Empty\"7\332A\004n" + + "ame\212\323\344\223\002*\022(\n\004name\022 {bucket=projects/*/bu" + + "ckets/*}/**\022\251\001\n\020GetManagedFolder\0222.googl" + + "e.storage.control.v2.GetManagedFolderReq" + + "uest\032(.google.storage.control.v2.Managed" + + "Folder\"7\332A\004name\212\323\344\223\002*\022(\n\004name\022 {bucket=p" + + "rojects/*/buckets/*}/**\022\251\001\n\022ListManagedF" + + "olders\0224.google.storage.control.v2.ListM" + + "anagedFoldersRequest\0325.google.storage.co" + + "ntrol.v2.ListManagedFoldersResponse\"&\332A\006" + + "parent\212\323\344\223\002\027\022\025\n\006parent\022\013{bucket=**}\032\247\002\312A" + + "\026storage.googleapis.com\322A\212\002https://www.g" + + "oogleapis.com/auth/cloud-platform,https:" + + "//www.googleapis.com/auth/cloud-platform" + + ".read-only,https://www.googleapis.com/au" + + "th/devstorage.full_control,https://www.g" + + "oogleapis.com/auth/devstorage.read_only," + + "https://www.googleapis.com/auth/devstora" + + "ge.read_writeB\246\002\n\035com.google.storage.con" + + "trol.v2B\023StorageControlProtoP\001Z=cloud.go" + + "ogle.com/go/storage/control/apiv2/contro" + + "lpb;controlpb\252\002\037Google.Cloud.Storage.Con" + + "trol.V2\312\002\037Google\\Cloud\\Storage\\Control\\V" + + "2\352\002#Google::Cloud::Storage::Control::V2\352" + + "AD\n\035storage.googleapis.com/Bucket\022#proje" + + "cts/{project}/buckets/{bucket}b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.FieldInfoProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.api.RoutingProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_storage_control_v2_PendingRenameInfo_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_storage_control_v2_PendingRenameInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_PendingRenameInfo_descriptor, + new java.lang.String[] { "Operation", }); + internal_static_google_storage_control_v2_Folder_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_storage_control_v2_Folder_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_Folder_descriptor, + new java.lang.String[] { "Name", "Metageneration", "CreateTime", "UpdateTime", "PendingRenameInfo", }); + internal_static_google_storage_control_v2_GetFolderRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_storage_control_v2_GetFolderRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_GetFolderRequest_descriptor, + new java.lang.String[] { "Name", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "RequestId", }); + internal_static_google_storage_control_v2_CreateFolderRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_storage_control_v2_CreateFolderRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_CreateFolderRequest_descriptor, + new java.lang.String[] { "Parent", "Folder", "FolderId", "Recursive", "RequestId", }); + internal_static_google_storage_control_v2_DeleteFolderRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_storage_control_v2_DeleteFolderRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_DeleteFolderRequest_descriptor, + new java.lang.String[] { "Name", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "RequestId", }); + internal_static_google_storage_control_v2_ListFoldersRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_storage_control_v2_ListFoldersRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_ListFoldersRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Prefix", "Delimiter", "LexicographicStart", "LexicographicEnd", "RequestId", }); + internal_static_google_storage_control_v2_ListFoldersResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_storage_control_v2_ListFoldersResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_ListFoldersResponse_descriptor, + new java.lang.String[] { "Folders", "NextPageToken", }); + internal_static_google_storage_control_v2_RenameFolderRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_storage_control_v2_RenameFolderRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_RenameFolderRequest_descriptor, + new java.lang.String[] { "Name", "DestinationFolderId", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "RequestId", }); + internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "UpdateTime", "Type", "RequestedCancellation", "ProgressPercent", }); + internal_static_google_storage_control_v2_RenameFolderMetadata_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_storage_control_v2_RenameFolderMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_RenameFolderMetadata_descriptor, + new java.lang.String[] { "CommonMetadata", "SourceFolderId", "DestinationFolderId", }); + internal_static_google_storage_control_v2_StorageLayout_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_storage_control_v2_StorageLayout_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_StorageLayout_descriptor, + new java.lang.String[] { "Name", "Location", "LocationType", "CustomPlacementConfig", "HierarchicalNamespace", }); + internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_descriptor = + internal_static_google_storage_control_v2_StorageLayout_descriptor.getNestedTypes().get(0); + internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_descriptor, + new java.lang.String[] { "DataLocations", }); + internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_descriptor = + internal_static_google_storage_control_v2_StorageLayout_descriptor.getNestedTypes().get(1); + internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_descriptor, + new java.lang.String[] { "Enabled", }); + internal_static_google_storage_control_v2_GetStorageLayoutRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_storage_control_v2_GetStorageLayoutRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_GetStorageLayoutRequest_descriptor, + new java.lang.String[] { "Name", "Prefix", "RequestId", }); + internal_static_google_storage_control_v2_ManagedFolder_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_storage_control_v2_ManagedFolder_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_ManagedFolder_descriptor, + new java.lang.String[] { "Name", "Metageneration", "CreateTime", "UpdateTime", }); + internal_static_google_storage_control_v2_GetManagedFolderRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_storage_control_v2_GetManagedFolderRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_GetManagedFolderRequest_descriptor, + new java.lang.String[] { "Name", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "RequestId", }); + internal_static_google_storage_control_v2_CreateManagedFolderRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_storage_control_v2_CreateManagedFolderRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_CreateManagedFolderRequest_descriptor, + new java.lang.String[] { "Parent", "ManagedFolder", "ManagedFolderId", "RequestId", }); + internal_static_google_storage_control_v2_DeleteManagedFolderRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_storage_control_v2_DeleteManagedFolderRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_DeleteManagedFolderRequest_descriptor, + new java.lang.String[] { "Name", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "AllowNonEmpty", "RequestId", }); + internal_static_google_storage_control_v2_ListManagedFoldersRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_storage_control_v2_ListManagedFoldersRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_ListManagedFoldersRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Prefix", "RequestId", }); + internal_static_google_storage_control_v2_ListManagedFoldersResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_storage_control_v2_ListManagedFoldersResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_ListManagedFoldersResponse_descriptor, + new java.lang.String[] { "ManagedFolders", "NextPageToken", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.FieldInfoProto.fieldInfo); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.api.RoutingProto.routing); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.api.RoutingProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayout.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayout.java similarity index 66% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayout.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayout.java index df62a75829..bcf6160a2a 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayout.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayout.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto @@ -20,24 +5,21 @@ package com.google.storage.control.v2; /** - * - * *
              * The storage layout configuration of a bucket.
              * 
            * * Protobuf type {@code google.storage.control.v2.StorageLayout} */ -public final class StorageLayout extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StorageLayout extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.StorageLayout) StorageLayoutOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StorageLayout.newBuilder() to construct. private StorageLayout(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StorageLayout() { name_ = ""; location_ = ""; @@ -46,84 +28,70 @@ private StorageLayout() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StorageLayout(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_StorageLayout_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_StorageLayout_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.StorageLayout.class, - com.google.storage.control.v2.StorageLayout.Builder.class); + com.google.storage.control.v2.StorageLayout.class, com.google.storage.control.v2.StorageLayout.Builder.class); } - public interface CustomPlacementConfigOrBuilder - extends + public interface CustomPlacementConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.StorageLayout.CustomPlacementConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
                  * List of locations to use for data placement.
                  * 
            * * repeated string data_locations = 1; - * * @return A list containing the dataLocations. */ - java.util.List getDataLocationsList(); + java.util.List + getDataLocationsList(); /** - * - * *
                  * List of locations to use for data placement.
                  * 
            * * repeated string data_locations = 1; - * * @return The count of dataLocations. */ int getDataLocationsCount(); /** - * - * *
                  * List of locations to use for data placement.
                  * 
            * * repeated string data_locations = 1; - * * @param index The index of the element to return. * @return The dataLocations at the given index. */ java.lang.String getDataLocations(int index); /** - * - * *
                  * List of locations to use for data placement.
                  * 
            * * repeated string data_locations = 1; - * * @param index The index of the value to return. * @return The bytes of the dataLocations at the given index. */ - com.google.protobuf.ByteString getDataLocationsBytes(int index); + com.google.protobuf.ByteString + getDataLocationsBytes(int index); } /** - * - * *
                * Configuration for Custom Dual Regions.  It should specify precisely two
                * eligible regions within the same Multiregion. More information on regions
            @@ -132,83 +100,73 @@ public interface CustomPlacementConfigOrBuilder
                *
                * Protobuf type {@code google.storage.control.v2.StorageLayout.CustomPlacementConfig}
                */
            -  public static final class CustomPlacementConfig extends com.google.protobuf.GeneratedMessageV3
            -      implements
            +  public static final class CustomPlacementConfig extends
            +      com.google.protobuf.GeneratedMessageV3 implements
                   // @@protoc_insertion_point(message_implements:google.storage.control.v2.StorageLayout.CustomPlacementConfig)
                   CustomPlacementConfigOrBuilder {
            -    private static final long serialVersionUID = 0L;
            +  private static final long serialVersionUID = 0L;
                 // Use CustomPlacementConfig.newBuilder() to construct.
                 private CustomPlacementConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                   super(builder);
                 }
            -
                 private CustomPlacementConfig() {
            -      dataLocations_ = com.google.protobuf.LazyStringArrayList.emptyList();
            +      dataLocations_ =
            +          com.google.protobuf.LazyStringArrayList.emptyList();
                 }
             
                 @java.lang.Override
                 @SuppressWarnings({"unused"})
            -    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
            +    protected java.lang.Object newInstance(
            +        UnusedPrivateParameter unused) {
                   return new CustomPlacementConfig();
                 }
             
            -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            -      return com.google.storage.control.v2.StorageControlProto
            -          .internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_descriptor;
            +    public static final com.google.protobuf.Descriptors.Descriptor
            +        getDescriptor() {
            +      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_descriptor;
                 }
             
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
            -      return com.google.storage.control.v2.StorageControlProto
            -          .internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_fieldAccessorTable
            +      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
            -              com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.class,
            -              com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder.class);
            +              com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.class, com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder.class);
                 }
             
                 public static final int DATA_LOCATIONS_FIELD_NUMBER = 1;
            -
                 @SuppressWarnings("serial")
                 private com.google.protobuf.LazyStringArrayList dataLocations_ =
                     com.google.protobuf.LazyStringArrayList.emptyList();
                 /**
            -     *
            -     *
                  * 
                  * List of locations to use for data placement.
                  * 
            * * repeated string data_locations = 1; - * * @return A list containing the dataLocations. */ - public com.google.protobuf.ProtocolStringList getDataLocationsList() { + public com.google.protobuf.ProtocolStringList + getDataLocationsList() { return dataLocations_; } /** - * - * *
                  * List of locations to use for data placement.
                  * 
            * * repeated string data_locations = 1; - * * @return The count of dataLocations. */ public int getDataLocationsCount() { return dataLocations_.size(); } /** - * - * *
                  * List of locations to use for data placement.
                  * 
            * * repeated string data_locations = 1; - * * @param index The index of the element to return. * @return The dataLocations at the given index. */ @@ -216,23 +174,20 @@ public java.lang.String getDataLocations(int index) { return dataLocations_.get(index); } /** - * - * *
                  * List of locations to use for data placement.
                  * 
            * * repeated string data_locations = 1; - * * @param index The index of the value to return. * @return The bytes of the dataLocations at the given index. */ - public com.google.protobuf.ByteString getDataLocationsBytes(int index) { + public com.google.protobuf.ByteString + getDataLocationsBytes(int index) { return dataLocations_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -244,7 +199,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < dataLocations_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataLocations_.getRaw(i)); } @@ -273,15 +229,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.control.v2.StorageLayout.CustomPlacementConfig)) { return super.equals(obj); } - com.google.storage.control.v2.StorageLayout.CustomPlacementConfig other = - (com.google.storage.control.v2.StorageLayout.CustomPlacementConfig) obj; + com.google.storage.control.v2.StorageLayout.CustomPlacementConfig other = (com.google.storage.control.v2.StorageLayout.CustomPlacementConfig) obj; - if (!getDataLocationsList().equals(other.getDataLocationsList())) return false; + if (!getDataLocationsList() + .equals(other.getDataLocationsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -303,95 +259,89 @@ public int hashCode() { } public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.storage.control.v2.StorageLayout.CustomPlacementConfig prototype) { + public static Builder newBuilder(com.google.storage.control.v2.StorageLayout.CustomPlacementConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -401,8 +351,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
                  * Configuration for Custom Dual Regions.  It should specify precisely two
                  * eligible regions within the same Multiregion. More information on regions
            @@ -411,53 +359,51 @@ protected Builder newBuilderForType(
                  *
                  * Protobuf type {@code google.storage.control.v2.StorageLayout.CustomPlacementConfig}
                  */
            -    public static final class Builder
            -        extends com.google.protobuf.GeneratedMessageV3.Builder
            -        implements
            +    public static final class Builder extends
            +        com.google.protobuf.GeneratedMessageV3.Builder implements
                     // @@protoc_insertion_point(builder_implements:google.storage.control.v2.StorageLayout.CustomPlacementConfig)
                     com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder {
            -      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            -        return com.google.storage.control.v2.StorageControlProto
            -            .internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_descriptor;
            +      public static final com.google.protobuf.Descriptors.Descriptor
            +          getDescriptor() {
            +        return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_descriptor;
                   }
             
                   @java.lang.Override
                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                       internalGetFieldAccessorTable() {
            -        return com.google.storage.control.v2.StorageControlProto
            -            .internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_fieldAccessorTable
            +        return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_fieldAccessorTable
                         .ensureFieldAccessorsInitialized(
            -                com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.class,
            -                com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder.class);
            +                com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.class, com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder.class);
                   }
             
            -      // Construct using
            -      // com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.newBuilder()
            -      private Builder() {}
            +      // Construct using com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.newBuilder()
            +      private Builder() {
             
            -      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            -        super(parent);
                   }
             
            +      private Builder(
            +          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            +        super(parent);
            +
            +      }
                   @java.lang.Override
                   public Builder clear() {
                     super.clear();
                     bitField0_ = 0;
            -        dataLocations_ = com.google.protobuf.LazyStringArrayList.emptyList();
            +        dataLocations_ =
            +            com.google.protobuf.LazyStringArrayList.emptyList();
                     return this;
                   }
             
                   @java.lang.Override
            -      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            -        return com.google.storage.control.v2.StorageControlProto
            -            .internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_descriptor;
            +      public com.google.protobuf.Descriptors.Descriptor
            +          getDescriptorForType() {
            +        return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_descriptor;
                   }
             
                   @java.lang.Override
            -      public com.google.storage.control.v2.StorageLayout.CustomPlacementConfig
            -          getDefaultInstanceForType() {
            -        return com.google.storage.control.v2.StorageLayout.CustomPlacementConfig
            -            .getDefaultInstance();
            +      public com.google.storage.control.v2.StorageLayout.CustomPlacementConfig getDefaultInstanceForType() {
            +        return com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.getDefaultInstance();
                   }
             
                   @java.lang.Override
            @@ -471,17 +417,13 @@ public com.google.storage.control.v2.StorageLayout.CustomPlacementConfig build()
             
                   @java.lang.Override
                   public com.google.storage.control.v2.StorageLayout.CustomPlacementConfig buildPartial() {
            -        com.google.storage.control.v2.StorageLayout.CustomPlacementConfig result =
            -            new com.google.storage.control.v2.StorageLayout.CustomPlacementConfig(this);
            -        if (bitField0_ != 0) {
            -          buildPartial0(result);
            -        }
            +        com.google.storage.control.v2.StorageLayout.CustomPlacementConfig result = new com.google.storage.control.v2.StorageLayout.CustomPlacementConfig(this);
            +        if (bitField0_ != 0) { buildPartial0(result); }
                     onBuilt();
                     return result;
                   }
             
            -      private void buildPartial0(
            -          com.google.storage.control.v2.StorageLayout.CustomPlacementConfig result) {
            +      private void buildPartial0(com.google.storage.control.v2.StorageLayout.CustomPlacementConfig result) {
                     int from_bitField0_ = bitField0_;
                     if (((from_bitField0_ & 0x00000001) != 0)) {
                       dataLocations_.makeImmutable();
            @@ -493,53 +435,46 @@ private void buildPartial0(
                   public Builder clone() {
                     return super.clone();
                   }
            -
                   @java.lang.Override
                   public Builder setField(
            -          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
            +          com.google.protobuf.Descriptors.FieldDescriptor field,
            +          java.lang.Object value) {
                     return super.setField(field, value);
                   }
            -
                   @java.lang.Override
            -      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
            +      public Builder clearField(
            +          com.google.protobuf.Descriptors.FieldDescriptor field) {
                     return super.clearField(field);
                   }
            -
                   @java.lang.Override
            -      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
            +      public Builder clearOneof(
            +          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                     return super.clearOneof(oneof);
                   }
            -
                   @java.lang.Override
                   public Builder setRepeatedField(
                       com.google.protobuf.Descriptors.FieldDescriptor field,
            -          int index,
            -          java.lang.Object value) {
            +          int index, java.lang.Object value) {
                     return super.setRepeatedField(field, index, value);
                   }
            -
                   @java.lang.Override
                   public Builder addRepeatedField(
            -          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
            +          com.google.protobuf.Descriptors.FieldDescriptor field,
            +          java.lang.Object value) {
                     return super.addRepeatedField(field, value);
                   }
            -
                   @java.lang.Override
                   public Builder mergeFrom(com.google.protobuf.Message other) {
                     if (other instanceof com.google.storage.control.v2.StorageLayout.CustomPlacementConfig) {
            -          return mergeFrom(
            -              (com.google.storage.control.v2.StorageLayout.CustomPlacementConfig) other);
            +          return mergeFrom((com.google.storage.control.v2.StorageLayout.CustomPlacementConfig)other);
                     } else {
                       super.mergeFrom(other);
                       return this;
                     }
                   }
             
            -      public Builder mergeFrom(
            -          com.google.storage.control.v2.StorageLayout.CustomPlacementConfig other) {
            -        if (other
            -            == com.google.storage.control.v2.StorageLayout.CustomPlacementConfig
            -                .getDefaultInstance()) return this;
            +      public Builder mergeFrom(com.google.storage.control.v2.StorageLayout.CustomPlacementConfig other) {
            +        if (other == com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.getDefaultInstance()) return this;
                     if (!other.dataLocations_.isEmpty()) {
                       if (dataLocations_.isEmpty()) {
                         dataLocations_ = other.dataLocations_;
            @@ -576,20 +511,18 @@ public Builder mergeFrom(
                           case 0:
                             done = true;
                             break;
            -              case 10:
            -                {
            -                  java.lang.String s = input.readStringRequireUtf8();
            -                  ensureDataLocationsIsMutable();
            -                  dataLocations_.add(s);
            -                  break;
            -                } // case 10
            -              default:
            -                {
            -                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            -                    done = true; // was an endgroup tag
            -                  }
            -                  break;
            -                } // default:
            +              case 10: {
            +                java.lang.String s = input.readStringRequireUtf8();
            +                ensureDataLocationsIsMutable();
            +                dataLocations_.add(s);
            +                break;
            +              } // case 10
            +              default: {
            +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            +                  done = true; // was an endgroup tag
            +                }
            +                break;
            +              } // default:
                         } // switch (tag)
                       } // while (!done)
                     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            @@ -599,12 +532,10 @@ public Builder mergeFrom(
                     } // finally
                     return this;
                   }
            -
                   private int bitField0_;
             
                   private com.google.protobuf.LazyStringArrayList dataLocations_ =
                       com.google.protobuf.LazyStringArrayList.emptyList();
            -
                   private void ensureDataLocationsIsMutable() {
                     if (!dataLocations_.isModifiable()) {
                       dataLocations_ = new com.google.protobuf.LazyStringArrayList(dataLocations_);
            @@ -612,43 +543,35 @@ private void ensureDataLocationsIsMutable() {
                     bitField0_ |= 0x00000001;
                   }
                   /**
            -       *
            -       *
                    * 
                    * List of locations to use for data placement.
                    * 
            * * repeated string data_locations = 1; - * * @return A list containing the dataLocations. */ - public com.google.protobuf.ProtocolStringList getDataLocationsList() { + public com.google.protobuf.ProtocolStringList + getDataLocationsList() { dataLocations_.makeImmutable(); return dataLocations_; } /** - * - * *
                    * List of locations to use for data placement.
                    * 
            * * repeated string data_locations = 1; - * * @return The count of dataLocations. */ public int getDataLocationsCount() { return dataLocations_.size(); } /** - * - * *
                    * List of locations to use for data placement.
                    * 
            * * repeated string data_locations = 1; - * * @param index The index of the element to return. * @return The dataLocations at the given index. */ @@ -656,37 +579,31 @@ public java.lang.String getDataLocations(int index) { return dataLocations_.get(index); } /** - * - * *
                    * List of locations to use for data placement.
                    * 
            * * repeated string data_locations = 1; - * * @param index The index of the value to return. * @return The bytes of the dataLocations at the given index. */ - public com.google.protobuf.ByteString getDataLocationsBytes(int index) { + public com.google.protobuf.ByteString + getDataLocationsBytes(int index) { return dataLocations_.getByteString(index); } /** - * - * *
                    * List of locations to use for data placement.
                    * 
            * * repeated string data_locations = 1; - * * @param index The index to set the value at. * @param value The dataLocations to set. * @return This builder for chaining. */ - public Builder setDataLocations(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDataLocations( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDataLocationsIsMutable(); dataLocations_.set(index, value); bitField0_ |= 0x00000001; @@ -694,21 +611,17 @@ public Builder setDataLocations(int index, java.lang.String value) { return this; } /** - * - * *
                    * List of locations to use for data placement.
                    * 
            * * repeated string data_locations = 1; - * * @param value The dataLocations to add. * @return This builder for chaining. */ - public Builder addDataLocations(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDataLocations( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDataLocationsIsMutable(); dataLocations_.add(value); bitField0_ |= 0x00000001; @@ -716,58 +629,50 @@ public Builder addDataLocations(java.lang.String value) { return this; } /** - * - * *
                    * List of locations to use for data placement.
                    * 
            * * repeated string data_locations = 1; - * * @param values The dataLocations to add. * @return This builder for chaining. */ - public Builder addAllDataLocations(java.lang.Iterable values) { + public Builder addAllDataLocations( + java.lang.Iterable values) { ensureDataLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataLocations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dataLocations_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                    * List of locations to use for data placement.
                    * 
            * * repeated string data_locations = 1; - * * @return This builder for chaining. */ public Builder clearDataLocations() { - dataLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + dataLocations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
                    * List of locations to use for data placement.
                    * 
            * * repeated string data_locations = 1; - * * @param value The bytes of the dataLocations to add. * @return This builder for chaining. */ - public Builder addDataLocationsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDataLocationsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureDataLocationsIsMutable(); dataLocations_.add(value); @@ -775,7 +680,6 @@ public Builder addDataLocationsBytes(com.google.protobuf.ByteString value) { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -788,44 +692,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.control.v2.StorageLayout.CustomPlacementConfig) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.StorageLayout.CustomPlacementConfig) - private static final com.google.storage.control.v2.StorageLayout.CustomPlacementConfig - DEFAULT_INSTANCE; - + private static final com.google.storage.control.v2.StorageLayout.CustomPlacementConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.storage.control.v2.StorageLayout.CustomPlacementConfig(); } - public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig - getDefaultInstance() { + public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomPlacementConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomPlacementConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -837,83 +738,73 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.storage.control.v2.StorageLayout.CustomPlacementConfig - getDefaultInstanceForType() { + public com.google.storage.control.v2.StorageLayout.CustomPlacementConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface HierarchicalNamespaceOrBuilder - extends + public interface HierarchicalNamespaceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.StorageLayout.HierarchicalNamespace) com.google.protobuf.MessageOrBuilder { /** - * - * *
                  * Enables the hierarchical namespace feature.
                  * 
            * * bool enabled = 1; - * * @return The enabled. */ boolean getEnabled(); } /** - * - * *
                * Configuration for a bucket's hierarchical namespace feature.
                * 
            * * Protobuf type {@code google.storage.control.v2.StorageLayout.HierarchicalNamespace} */ - public static final class HierarchicalNamespace extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class HierarchicalNamespace extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.StorageLayout.HierarchicalNamespace) HierarchicalNamespaceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use HierarchicalNamespace.newBuilder() to construct. private HierarchicalNamespace(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private HierarchicalNamespace() {} + private HierarchicalNamespace() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new HierarchicalNamespace(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.class, - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder.class); + com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.class, com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder.class); } public static final int ENABLED_FIELD_NUMBER = 1; private boolean enabled_ = false; /** - * - * *
                  * Enables the hierarchical namespace feature.
                  * 
            * * bool enabled = 1; - * * @return The enabled. */ @java.lang.Override @@ -922,7 +813,6 @@ public boolean getEnabled() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -934,7 +824,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (enabled_ != false) { output.writeBool(1, enabled_); } @@ -948,7 +839,8 @@ public int getSerializedSize() { size = 0; if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enabled_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -958,15 +850,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.control.v2.StorageLayout.HierarchicalNamespace)) { return super.equals(obj); } - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace other = - (com.google.storage.control.v2.StorageLayout.HierarchicalNamespace) obj; + com.google.storage.control.v2.StorageLayout.HierarchicalNamespace other = (com.google.storage.control.v2.StorageLayout.HierarchicalNamespace) obj; - if (getEnabled() != other.getEnabled()) return false; + if (getEnabled() + != other.getEnabled()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -979,102 +871,97 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace prototype) { + public static Builder newBuilder(com.google.storage.control.v2.StorageLayout.HierarchicalNamespace prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1084,42 +971,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
                  * Configuration for a bucket's hierarchical namespace feature.
                  * 
            * * Protobuf type {@code google.storage.control.v2.StorageLayout.HierarchicalNamespace} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.control.v2.StorageLayout.HierarchicalNamespace) com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.class, - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder.class); + com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.class, com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder.class); } - // Construct using - // com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.newBuilder() - private Builder() {} + // Construct using com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1129,16 +1013,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_descriptor; } @java.lang.Override - public com.google.storage.control.v2.StorageLayout.HierarchicalNamespace - getDefaultInstanceForType() { - return com.google.storage.control.v2.StorageLayout.HierarchicalNamespace - .getDefaultInstance(); + public com.google.storage.control.v2.StorageLayout.HierarchicalNamespace getDefaultInstanceForType() { + return com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.getDefaultInstance(); } @java.lang.Override @@ -1152,17 +1034,13 @@ public com.google.storage.control.v2.StorageLayout.HierarchicalNamespace build() @java.lang.Override public com.google.storage.control.v2.StorageLayout.HierarchicalNamespace buildPartial() { - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace result = - new com.google.storage.control.v2.StorageLayout.HierarchicalNamespace(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.control.v2.StorageLayout.HierarchicalNamespace result = new com.google.storage.control.v2.StorageLayout.HierarchicalNamespace(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace result) { + private void buildPartial0(com.google.storage.control.v2.StorageLayout.HierarchicalNamespace result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.enabled_ = enabled_; @@ -1173,53 +1051,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.control.v2.StorageLayout.HierarchicalNamespace) { - return mergeFrom( - (com.google.storage.control.v2.StorageLayout.HierarchicalNamespace) other); + return mergeFrom((com.google.storage.control.v2.StorageLayout.HierarchicalNamespace)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace other) { - if (other - == com.google.storage.control.v2.StorageLayout.HierarchicalNamespace - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.storage.control.v2.StorageLayout.HierarchicalNamespace other) { + if (other == com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.getDefaultInstance()) return this; if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } @@ -1249,19 +1120,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1271,19 +1140,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private boolean enabled_; + private boolean enabled_ ; /** - * - * *
                    * Enables the hierarchical namespace feature.
                    * 
            * * bool enabled = 1; - * * @return The enabled. */ @java.lang.Override @@ -1291,14 +1156,11 @@ public boolean getEnabled() { return enabled_; } /** - * - * *
                    * Enables the hierarchical namespace feature.
                    * 
            * * bool enabled = 1; - * * @param value The enabled to set. * @return This builder for chaining. */ @@ -1310,14 +1172,11 @@ public Builder setEnabled(boolean value) { return this; } /** - * - * *
                    * Enables the hierarchical namespace feature.
                    * 
            * * bool enabled = 1; - * * @return This builder for chaining. */ public Builder clearEnabled() { @@ -1326,7 +1185,6 @@ public Builder clearEnabled() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1339,44 +1197,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.control.v2.StorageLayout.HierarchicalNamespace) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.StorageLayout.HierarchicalNamespace) - private static final com.google.storage.control.v2.StorageLayout.HierarchicalNamespace - DEFAULT_INSTANCE; - + private static final com.google.storage.control.v2.StorageLayout.HierarchicalNamespace DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.storage.control.v2.StorageLayout.HierarchicalNamespace(); } - public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace - getDefaultInstance() { + public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HierarchicalNamespace parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HierarchicalNamespace parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1388,27 +1243,23 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.storage.control.v2.StorageLayout.HierarchicalNamespace - getDefaultInstanceForType() { + public com.google.storage.control.v2.StorageLayout.HierarchicalNamespace getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
                * Output only. The name of the StorageLayout resource.
                * Format: `projects/{project}/buckets/{bucket}/storageLayout`
                * 
            * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -1417,30 +1268,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
                * Output only. The name of the StorageLayout resource.
                * Format: `projects/{project}/buckets/{bucket}/storageLayout`
                * 
            * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1449,18 +1300,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int LOCATION_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object location_ = ""; /** - * - * *
                * Output only. The location of the bucket.
                * 
            * * string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The location. */ @java.lang.Override @@ -1469,29 +1316,29 @@ public java.lang.String getLocation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } } /** - * - * *
                * Output only. The location of the bucket.
                * 
            * * string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for location. */ @java.lang.Override - public com.google.protobuf.ByteString getLocationBytes() { + public com.google.protobuf.ByteString + getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); location_ = b; return b; } else { @@ -1500,19 +1347,15 @@ public com.google.protobuf.ByteString getLocationBytes() { } public static final int LOCATION_TYPE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object locationType_ = ""; /** - * - * *
                * Output only. The location type of the bucket (region, dual-region,
                * multi-region, etc).
                * 
            * * string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The locationType. */ @java.lang.Override @@ -1521,30 +1364,30 @@ public java.lang.String getLocationType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locationType_ = s; return s; } } /** - * - * *
                * Output only. The location type of the bucket (region, dual-region,
                * multi-region, etc).
                * 
            * * string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for locationType. */ @java.lang.Override - public com.google.protobuf.ByteString getLocationTypeBytes() { + public com.google.protobuf.ByteString + getLocationTypeBytes() { java.lang.Object ref = locationType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); locationType_ = b; return b; } else { @@ -1555,17 +1398,12 @@ public com.google.protobuf.ByteString getLocationTypeBytes() { public static final int CUSTOM_PLACEMENT_CONFIG_FIELD_NUMBER = 4; private com.google.storage.control.v2.StorageLayout.CustomPlacementConfig customPlacementConfig_; /** - * - * *
                * Output only. The data placement configuration for custom dual region. If
                * there is no configuration, this is not a custom dual region bucket.
                * 
            * - * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the customPlacementConfig field is set. */ @java.lang.Override @@ -1573,60 +1411,40 @@ public boolean hasCustomPlacementConfig() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * Output only. The data placement configuration for custom dual region. If
                * there is no configuration, this is not a custom dual region bucket.
                * 
            * - * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The customPlacementConfig. */ @java.lang.Override - public com.google.storage.control.v2.StorageLayout.CustomPlacementConfig - getCustomPlacementConfig() { - return customPlacementConfig_ == null - ? com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.getDefaultInstance() - : customPlacementConfig_; + public com.google.storage.control.v2.StorageLayout.CustomPlacementConfig getCustomPlacementConfig() { + return customPlacementConfig_ == null ? com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.getDefaultInstance() : customPlacementConfig_; } /** - * - * *
                * Output only. The data placement configuration for custom dual region. If
                * there is no configuration, this is not a custom dual region bucket.
                * 
            * - * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder - getCustomPlacementConfigOrBuilder() { - return customPlacementConfig_ == null - ? com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.getDefaultInstance() - : customPlacementConfig_; + public com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder getCustomPlacementConfigOrBuilder() { + return customPlacementConfig_ == null ? com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.getDefaultInstance() : customPlacementConfig_; } public static final int HIERARCHICAL_NAMESPACE_FIELD_NUMBER = 5; private com.google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchicalNamespace_; /** - * - * *
                * Output only. The bucket's hierarchical namespace configuration. If there is
                * no configuration, the hierarchical namespace is disabled.
                * 
            * - * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the hierarchicalNamespace field is set. */ @java.lang.Override @@ -1634,48 +1452,32 @@ public boolean hasHierarchicalNamespace() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                * Output only. The bucket's hierarchical namespace configuration. If there is
                * no configuration, the hierarchical namespace is disabled.
                * 
            * - * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The hierarchicalNamespace. */ @java.lang.Override - public com.google.storage.control.v2.StorageLayout.HierarchicalNamespace - getHierarchicalNamespace() { - return hierarchicalNamespace_ == null - ? com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.getDefaultInstance() - : hierarchicalNamespace_; + public com.google.storage.control.v2.StorageLayout.HierarchicalNamespace getHierarchicalNamespace() { + return hierarchicalNamespace_ == null ? com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.getDefaultInstance() : hierarchicalNamespace_; } /** - * - * *
                * Output only. The bucket's hierarchical namespace configuration. If there is
                * no configuration, the hierarchical namespace is disabled.
                * 
            * - * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder - getHierarchicalNamespaceOrBuilder() { - return hierarchicalNamespace_ == null - ? com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.getDefaultInstance() - : hierarchicalNamespace_; + public com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder getHierarchicalNamespaceOrBuilder() { + return hierarchicalNamespace_ == null ? com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.getDefaultInstance() : hierarchicalNamespace_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1687,7 +1489,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1722,12 +1525,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, locationType_); } if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCustomPlacementConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCustomPlacementConfig()); } if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(5, getHierarchicalNamespace()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getHierarchicalNamespace()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1737,24 +1540,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.control.v2.StorageLayout)) { return super.equals(obj); } - com.google.storage.control.v2.StorageLayout other = - (com.google.storage.control.v2.StorageLayout) obj; + com.google.storage.control.v2.StorageLayout other = (com.google.storage.control.v2.StorageLayout) obj; - if (!getName().equals(other.getName())) return false; - if (!getLocation().equals(other.getLocation())) return false; - if (!getLocationType().equals(other.getLocationType())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getLocation() + .equals(other.getLocation())) return false; + if (!getLocationType() + .equals(other.getLocationType())) return false; if (hasCustomPlacementConfig() != other.hasCustomPlacementConfig()) return false; if (hasCustomPlacementConfig()) { - if (!getCustomPlacementConfig().equals(other.getCustomPlacementConfig())) return false; + if (!getCustomPlacementConfig() + .equals(other.getCustomPlacementConfig())) return false; } if (hasHierarchicalNamespace() != other.hasHierarchicalNamespace()) return false; if (hasHierarchicalNamespace()) { - if (!getHierarchicalNamespace().equals(other.getHierarchicalNamespace())) return false; + if (!getHierarchicalNamespace() + .equals(other.getHierarchicalNamespace())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1786,127 +1593,120 @@ public int hashCode() { return hash; } - public static com.google.storage.control.v2.StorageLayout parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.control.v2.StorageLayout parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.StorageLayout parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.StorageLayout parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.StorageLayout parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.StorageLayout parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.control.v2.StorageLayout parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.StorageLayout parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.StorageLayout parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.StorageLayout parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.StorageLayout parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.StorageLayout parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.StorageLayout parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.control.v2.StorageLayout parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.control.v2.StorageLayout prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * The storage layout configuration of a bucket.
                * 
            * * Protobuf type {@code google.storage.control.v2.StorageLayout} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.control.v2.StorageLayout) com.google.storage.control.v2.StorageLayoutOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_StorageLayout_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_StorageLayout_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.StorageLayout.class, - com.google.storage.control.v2.StorageLayout.Builder.class); + com.google.storage.control.v2.StorageLayout.class, com.google.storage.control.v2.StorageLayout.Builder.class); } // Construct using com.google.storage.control.v2.StorageLayout.newBuilder() @@ -1914,18 +1714,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) { getCustomPlacementConfigFieldBuilder(); getHierarchicalNamespaceFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1947,9 +1747,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto - .internal_static_google_storage_control_v2_StorageLayout_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_descriptor; } @java.lang.Override @@ -1968,11 +1768,8 @@ public com.google.storage.control.v2.StorageLayout build() { @java.lang.Override public com.google.storage.control.v2.StorageLayout buildPartial() { - com.google.storage.control.v2.StorageLayout result = - new com.google.storage.control.v2.StorageLayout(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.control.v2.StorageLayout result = new com.google.storage.control.v2.StorageLayout(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1990,17 +1787,15 @@ private void buildPartial0(com.google.storage.control.v2.StorageLayout result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { - result.customPlacementConfig_ = - customPlacementConfigBuilder_ == null - ? customPlacementConfig_ - : customPlacementConfigBuilder_.build(); + result.customPlacementConfig_ = customPlacementConfigBuilder_ == null + ? customPlacementConfig_ + : customPlacementConfigBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.hierarchicalNamespace_ = - hierarchicalNamespaceBuilder_ == null - ? hierarchicalNamespace_ - : hierarchicalNamespaceBuilder_.build(); + result.hierarchicalNamespace_ = hierarchicalNamespaceBuilder_ == null + ? hierarchicalNamespace_ + : hierarchicalNamespaceBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -2010,39 +1805,38 @@ private void buildPartial0(com.google.storage.control.v2.StorageLayout result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.control.v2.StorageLayout) { - return mergeFrom((com.google.storage.control.v2.StorageLayout) other); + return mergeFrom((com.google.storage.control.v2.StorageLayout)other); } else { super.mergeFrom(other); return this; @@ -2098,45 +1892,41 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - location_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - locationType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage( - getCustomPlacementConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage( - getHierarchicalNamespaceFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + locationType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getCustomPlacementConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getHierarchicalNamespaceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2146,26 +1936,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
                  * Output only. The name of the StorageLayout resource.
                  * Format: `projects/{project}/buckets/{bucket}/storageLayout`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2174,22 +1961,21 @@ public java.lang.String getName() { } } /** - * - * *
                  * Output only. The name of the StorageLayout resource.
                  * Format: `projects/{project}/buckets/{bucket}/storageLayout`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2197,37 +1983,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
                  * Output only. The name of the StorageLayout resource.
                  * Format: `projects/{project}/buckets/{bucket}/storageLayout`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * Output only. The name of the StorageLayout resource.
                  * Format: `projects/{project}/buckets/{bucket}/storageLayout`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -2237,22 +2016,18 @@ public Builder clearName() { return this; } /** - * - * *
                  * Output only. The name of the StorageLayout resource.
                  * Format: `projects/{project}/buckets/{bucket}/storageLayout`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -2262,20 +2037,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object location_ = ""; /** - * - * *
                  * Output only. The location of the bucket.
                  * 
            * * string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; @@ -2284,21 +2057,20 @@ public java.lang.String getLocation() { } } /** - * - * *
                  * Output only. The location of the bucket.
                  * 
            * * string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for location. */ - public com.google.protobuf.ByteString getLocationBytes() { + public com.google.protobuf.ByteString + getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); location_ = b; return b; } else { @@ -2306,35 +2078,28 @@ public com.google.protobuf.ByteString getLocationBytes() { } } /** - * - * *
                  * Output only. The location of the bucket.
                  * 
            * * string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLocation( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } location_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                  * Output only. The location of the bucket.
                  * 
            * * string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearLocation() { @@ -2344,21 +2109,17 @@ public Builder clearLocation() { return this; } /** - * - * *
                  * Output only. The location of the bucket.
                  * 
            * * string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for location to set. * @return This builder for chaining. */ - public Builder setLocationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLocationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); location_ = value; bitField0_ |= 0x00000002; @@ -2368,21 +2129,19 @@ public Builder setLocationBytes(com.google.protobuf.ByteString value) { private java.lang.Object locationType_ = ""; /** - * - * *
                  * Output only. The location type of the bucket (region, dual-region,
                  * multi-region, etc).
                  * 
            * * string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The locationType. */ public java.lang.String getLocationType() { java.lang.Object ref = locationType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locationType_ = s; return s; @@ -2391,22 +2150,21 @@ public java.lang.String getLocationType() { } } /** - * - * *
                  * Output only. The location type of the bucket (region, dual-region,
                  * multi-region, etc).
                  * 
            * * string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for locationType. */ - public com.google.protobuf.ByteString getLocationTypeBytes() { + public com.google.protobuf.ByteString + getLocationTypeBytes() { java.lang.Object ref = locationType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); locationType_ = b; return b; } else { @@ -2414,37 +2172,30 @@ public com.google.protobuf.ByteString getLocationTypeBytes() { } } /** - * - * *
                  * Output only. The location type of the bucket (region, dual-region,
                  * multi-region, etc).
                  * 
            * * string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The locationType to set. * @return This builder for chaining. */ - public Builder setLocationType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLocationType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } locationType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
                  * Output only. The location type of the bucket (region, dual-region,
                  * multi-region, etc).
                  * 
            * * string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearLocationType() { @@ -2454,22 +2205,18 @@ public Builder clearLocationType() { return this; } /** - * - * *
                  * Output only. The location type of the bucket (region, dual-region,
                  * multi-region, etc).
                  * 
            * * string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for locationType to set. * @return This builder for chaining. */ - public Builder setLocationTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLocationTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); locationType_ = value; bitField0_ |= 0x00000004; @@ -2477,68 +2224,46 @@ public Builder setLocationTypeBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.storage.control.v2.StorageLayout.CustomPlacementConfig - customPlacementConfig_; + private com.google.storage.control.v2.StorageLayout.CustomPlacementConfig customPlacementConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.StorageLayout.CustomPlacementConfig, - com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder, - com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder> - customPlacementConfigBuilder_; + com.google.storage.control.v2.StorageLayout.CustomPlacementConfig, com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder, com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder> customPlacementConfigBuilder_; /** - * - * *
                  * Output only. The data placement configuration for custom dual region. If
                  * there is no configuration, this is not a custom dual region bucket.
                  * 
            * - * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the customPlacementConfig field is set. */ public boolean hasCustomPlacementConfig() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
                  * Output only. The data placement configuration for custom dual region. If
                  * there is no configuration, this is not a custom dual region bucket.
                  * 
            * - * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The customPlacementConfig. */ - public com.google.storage.control.v2.StorageLayout.CustomPlacementConfig - getCustomPlacementConfig() { + public com.google.storage.control.v2.StorageLayout.CustomPlacementConfig getCustomPlacementConfig() { if (customPlacementConfigBuilder_ == null) { - return customPlacementConfig_ == null - ? com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.getDefaultInstance() - : customPlacementConfig_; + return customPlacementConfig_ == null ? com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.getDefaultInstance() : customPlacementConfig_; } else { return customPlacementConfigBuilder_.getMessage(); } } /** - * - * *
                  * Output only. The data placement configuration for custom dual region. If
                  * there is no configuration, this is not a custom dual region bucket.
                  * 
            * - * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCustomPlacementConfig( - com.google.storage.control.v2.StorageLayout.CustomPlacementConfig value) { + public Builder setCustomPlacementConfig(com.google.storage.control.v2.StorageLayout.CustomPlacementConfig value) { if (customPlacementConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2552,16 +2277,12 @@ public Builder setCustomPlacementConfig( return this; } /** - * - * *
                  * Output only. The data placement configuration for custom dual region. If
                  * there is no configuration, this is not a custom dual region bucket.
                  * 
            * - * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCustomPlacementConfig( com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder builderForValue) { @@ -2575,25 +2296,18 @@ public Builder setCustomPlacementConfig( return this; } /** - * - * *
                  * Output only. The data placement configuration for custom dual region. If
                  * there is no configuration, this is not a custom dual region bucket.
                  * 
            * - * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeCustomPlacementConfig( - com.google.storage.control.v2.StorageLayout.CustomPlacementConfig value) { + public Builder mergeCustomPlacementConfig(com.google.storage.control.v2.StorageLayout.CustomPlacementConfig value) { if (customPlacementConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && customPlacementConfig_ != null - && customPlacementConfig_ - != com.google.storage.control.v2.StorageLayout.CustomPlacementConfig - .getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + customPlacementConfig_ != null && + customPlacementConfig_ != com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.getDefaultInstance()) { getCustomPlacementConfigBuilder().mergeFrom(value); } else { customPlacementConfig_ = value; @@ -2608,16 +2322,12 @@ public Builder mergeCustomPlacementConfig( return this; } /** - * - * *
                  * Output only. The data placement configuration for custom dual region. If
                  * there is no configuration, this is not a custom dual region bucket.
                  * 
            * - * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCustomPlacementConfig() { bitField0_ = (bitField0_ & ~0x00000008); @@ -2630,136 +2340,96 @@ public Builder clearCustomPlacementConfig() { return this; } /** - * - * *
                  * Output only. The data placement configuration for custom dual region. If
                  * there is no configuration, this is not a custom dual region bucket.
                  * 
            * - * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder - getCustomPlacementConfigBuilder() { + public com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder getCustomPlacementConfigBuilder() { bitField0_ |= 0x00000008; onChanged(); return getCustomPlacementConfigFieldBuilder().getBuilder(); } /** - * - * *
                  * Output only. The data placement configuration for custom dual region. If
                  * there is no configuration, this is not a custom dual region bucket.
                  * 
            * - * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder - getCustomPlacementConfigOrBuilder() { + public com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder getCustomPlacementConfigOrBuilder() { if (customPlacementConfigBuilder_ != null) { return customPlacementConfigBuilder_.getMessageOrBuilder(); } else { - return customPlacementConfig_ == null - ? com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.getDefaultInstance() - : customPlacementConfig_; + return customPlacementConfig_ == null ? + com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.getDefaultInstance() : customPlacementConfig_; } } /** - * - * *
                  * Output only. The data placement configuration for custom dual region. If
                  * there is no configuration, this is not a custom dual region bucket.
                  * 
            * - * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.StorageLayout.CustomPlacementConfig, - com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder, - com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder> + com.google.storage.control.v2.StorageLayout.CustomPlacementConfig, com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder, com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder> getCustomPlacementConfigFieldBuilder() { if (customPlacementConfigBuilder_ == null) { - customPlacementConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.StorageLayout.CustomPlacementConfig, - com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder, - com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder>( - getCustomPlacementConfig(), getParentForChildren(), isClean()); + customPlacementConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.control.v2.StorageLayout.CustomPlacementConfig, com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder, com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder>( + getCustomPlacementConfig(), + getParentForChildren(), + isClean()); customPlacementConfig_ = null; } return customPlacementConfigBuilder_; } - private com.google.storage.control.v2.StorageLayout.HierarchicalNamespace - hierarchicalNamespace_; + private com.google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchicalNamespace_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace, - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder, - com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder> - hierarchicalNamespaceBuilder_; + com.google.storage.control.v2.StorageLayout.HierarchicalNamespace, com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder, com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder> hierarchicalNamespaceBuilder_; /** - * - * *
                  * Output only. The bucket's hierarchical namespace configuration. If there is
                  * no configuration, the hierarchical namespace is disabled.
                  * 
            * - * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the hierarchicalNamespace field is set. */ public boolean hasHierarchicalNamespace() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
                  * Output only. The bucket's hierarchical namespace configuration. If there is
                  * no configuration, the hierarchical namespace is disabled.
                  * 
            * - * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The hierarchicalNamespace. */ - public com.google.storage.control.v2.StorageLayout.HierarchicalNamespace - getHierarchicalNamespace() { + public com.google.storage.control.v2.StorageLayout.HierarchicalNamespace getHierarchicalNamespace() { if (hierarchicalNamespaceBuilder_ == null) { - return hierarchicalNamespace_ == null - ? com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.getDefaultInstance() - : hierarchicalNamespace_; + return hierarchicalNamespace_ == null ? com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.getDefaultInstance() : hierarchicalNamespace_; } else { return hierarchicalNamespaceBuilder_.getMessage(); } } /** - * - * *
                  * Output only. The bucket's hierarchical namespace configuration. If there is
                  * no configuration, the hierarchical namespace is disabled.
                  * 
            * - * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setHierarchicalNamespace( - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace value) { + public Builder setHierarchicalNamespace(com.google.storage.control.v2.StorageLayout.HierarchicalNamespace value) { if (hierarchicalNamespaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2773,16 +2443,12 @@ public Builder setHierarchicalNamespace( return this; } /** - * - * *
                  * Output only. The bucket's hierarchical namespace configuration. If there is
                  * no configuration, the hierarchical namespace is disabled.
                  * 
            * - * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setHierarchicalNamespace( com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder builderForValue) { @@ -2796,25 +2462,18 @@ public Builder setHierarchicalNamespace( return this; } /** - * - * *
                  * Output only. The bucket's hierarchical namespace configuration. If there is
                  * no configuration, the hierarchical namespace is disabled.
                  * 
            * - * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeHierarchicalNamespace( - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace value) { + public Builder mergeHierarchicalNamespace(com.google.storage.control.v2.StorageLayout.HierarchicalNamespace value) { if (hierarchicalNamespaceBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && hierarchicalNamespace_ != null - && hierarchicalNamespace_ - != com.google.storage.control.v2.StorageLayout.HierarchicalNamespace - .getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + hierarchicalNamespace_ != null && + hierarchicalNamespace_ != com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.getDefaultInstance()) { getHierarchicalNamespaceBuilder().mergeFrom(value); } else { hierarchicalNamespace_ = value; @@ -2829,16 +2488,12 @@ public Builder mergeHierarchicalNamespace( return this; } /** - * - * *
                  * Output only. The bucket's hierarchical namespace configuration. If there is
                  * no configuration, the hierarchical namespace is disabled.
                  * 
            * - * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearHierarchicalNamespace() { bitField0_ = (bitField0_ & ~0x00000010); @@ -2851,76 +2506,58 @@ public Builder clearHierarchicalNamespace() { return this; } /** - * - * *
                  * Output only. The bucket's hierarchical namespace configuration. If there is
                  * no configuration, the hierarchical namespace is disabled.
                  * 
            * - * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder - getHierarchicalNamespaceBuilder() { + public com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder getHierarchicalNamespaceBuilder() { bitField0_ |= 0x00000010; onChanged(); return getHierarchicalNamespaceFieldBuilder().getBuilder(); } /** - * - * *
                  * Output only. The bucket's hierarchical namespace configuration. If there is
                  * no configuration, the hierarchical namespace is disabled.
                  * 
            * - * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder - getHierarchicalNamespaceOrBuilder() { + public com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder getHierarchicalNamespaceOrBuilder() { if (hierarchicalNamespaceBuilder_ != null) { return hierarchicalNamespaceBuilder_.getMessageOrBuilder(); } else { - return hierarchicalNamespace_ == null - ? com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.getDefaultInstance() - : hierarchicalNamespace_; + return hierarchicalNamespace_ == null ? + com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.getDefaultInstance() : hierarchicalNamespace_; } } /** - * - * *
                  * Output only. The bucket's hierarchical namespace configuration. If there is
                  * no configuration, the hierarchical namespace is disabled.
                  * 
            * - * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace, - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder, - com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder> + com.google.storage.control.v2.StorageLayout.HierarchicalNamespace, com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder, com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder> getHierarchicalNamespaceFieldBuilder() { if (hierarchicalNamespaceBuilder_ == null) { - hierarchicalNamespaceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace, - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder, - com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder>( - getHierarchicalNamespace(), getParentForChildren(), isClean()); + hierarchicalNamespaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.control.v2.StorageLayout.HierarchicalNamespace, com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder, com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder>( + getHierarchicalNamespace(), + getParentForChildren(), + isClean()); hierarchicalNamespace_ = null; } return hierarchicalNamespaceBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2930,12 +2567,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.control.v2.StorageLayout) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.StorageLayout) private static final com.google.storage.control.v2.StorageLayout DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.control.v2.StorageLayout(); } @@ -2944,27 +2581,27 @@ public static com.google.storage.control.v2.StorageLayout getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StorageLayout parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StorageLayout parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2979,4 +2616,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.StorageLayout getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayoutName.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayoutName.java similarity index 100% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayoutName.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayoutName.java diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayoutOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayoutOrBuilder.java similarity index 63% rename from proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayoutOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayoutOrBuilder.java index cc07785db2..80e02a9874 100644 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayoutOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayoutOrBuilder.java @@ -1,195 +1,134 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto // Protobuf Java Version: 3.25.3 package com.google.storage.control.v2; -public interface StorageLayoutOrBuilder - extends +public interface StorageLayoutOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.StorageLayout) com.google.protobuf.MessageOrBuilder { /** - * - * *
                * Output only. The name of the StorageLayout resource.
                * Format: `projects/{project}/buckets/{bucket}/storageLayout`
                * 
            * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
                * Output only. The name of the StorageLayout resource.
                * Format: `projects/{project}/buckets/{bucket}/storageLayout`
                * 
            * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
                * Output only. The location of the bucket.
                * 
            * * string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The location. */ java.lang.String getLocation(); /** - * - * *
                * Output only. The location of the bucket.
                * 
            * * string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for location. */ - com.google.protobuf.ByteString getLocationBytes(); + com.google.protobuf.ByteString + getLocationBytes(); /** - * - * *
                * Output only. The location type of the bucket (region, dual-region,
                * multi-region, etc).
                * 
            * * string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The locationType. */ java.lang.String getLocationType(); /** - * - * *
                * Output only. The location type of the bucket (region, dual-region,
                * multi-region, etc).
                * 
            * * string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for locationType. */ - com.google.protobuf.ByteString getLocationTypeBytes(); + com.google.protobuf.ByteString + getLocationTypeBytes(); /** - * - * *
                * Output only. The data placement configuration for custom dual region. If
                * there is no configuration, this is not a custom dual region bucket.
                * 
            * - * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the customPlacementConfig field is set. */ boolean hasCustomPlacementConfig(); /** - * - * *
                * Output only. The data placement configuration for custom dual region. If
                * there is no configuration, this is not a custom dual region bucket.
                * 
            * - * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The customPlacementConfig. */ com.google.storage.control.v2.StorageLayout.CustomPlacementConfig getCustomPlacementConfig(); /** - * - * *
                * Output only. The data placement configuration for custom dual region. If
                * there is no configuration, this is not a custom dual region bucket.
                * 
            * - * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder - getCustomPlacementConfigOrBuilder(); + com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder getCustomPlacementConfigOrBuilder(); /** - * - * *
                * Output only. The bucket's hierarchical namespace configuration. If there is
                * no configuration, the hierarchical namespace is disabled.
                * 
            * - * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the hierarchicalNamespace field is set. */ boolean hasHierarchicalNamespace(); /** - * - * *
                * Output only. The bucket's hierarchical namespace configuration. If there is
                * no configuration, the hierarchical namespace is disabled.
                * 
            * - * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The hierarchicalNamespace. */ com.google.storage.control.v2.StorageLayout.HierarchicalNamespace getHierarchicalNamespace(); /** - * - * *
                * Output only. The bucket's hierarchical namespace configuration. If there is
                * no configuration, the hierarchical namespace is disabled.
                * 
            * - * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder - getHierarchicalNamespaceOrBuilder(); + com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder getHierarchicalNamespaceOrBuilder(); } diff --git a/proto-google-cloud-storage-control-v2/src/main/proto/google/storage/control/v2/storage_control.proto b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/proto/google/storage/control/v2/storage_control.proto similarity index 97% rename from proto-google-cloud-storage-control-v2/src/main/proto/google/storage/control/v2/storage_control.proto rename to owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/proto/google/storage/control/v2/storage_control.proto index 373e2cfd01..28551e3ef3 100644 --- a/proto-google-cloud-storage-control-v2/src/main/proto/google/storage/control/v2/storage_control.proto +++ b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/proto/google/storage/control/v2/storage_control.proto @@ -49,7 +49,6 @@ service StorageControl { // Creates a new folder. This operation is only applicable to a hierarchical // namespace enabled bucket. - // Hierarchical namespace buckets are in allowlist preview. rpc CreateFolder(CreateFolderRequest) returns (Folder) { option (google.api.routing) = { routing_parameters { field: "parent" path_template: "{bucket=**}" } @@ -59,7 +58,6 @@ service StorageControl { // Permanently deletes an empty folder. This operation is only applicable to a // hierarchical namespace enabled bucket. - // Hierarchical namespace buckets are in allowlist preview. rpc DeleteFolder(DeleteFolderRequest) returns (google.protobuf.Empty) { option (google.api.routing) = { routing_parameters { @@ -72,7 +70,6 @@ service StorageControl { // Returns metadata for the specified folder. This operation is only // applicable to a hierarchical namespace enabled bucket. - // Hierarchical namespace buckets are in allowlist preview. rpc GetFolder(GetFolderRequest) returns (Folder) { option (google.api.routing) = { routing_parameters { @@ -85,7 +82,6 @@ service StorageControl { // Retrieves a list of folders. This operation is only applicable to a // hierarchical namespace enabled bucket. - // Hierarchical namespace buckets are in allowlist preview. rpc ListFolders(ListFoldersRequest) returns (ListFoldersResponse) { option (google.api.routing) = { routing_parameters { field: "parent" path_template: "{bucket=**}" } @@ -97,7 +93,6 @@ service StorageControl { // applicable to a hierarchical namespace enabled bucket. During a rename, the // source and destination folders are locked until the long running operation // completes. - // Hierarchical namespace buckets are in allowlist preview. rpc RenameFolder(RenameFolderRequest) returns (google.longrunning.Operation) { option (google.api.routing) = { routing_parameters { @@ -173,7 +168,6 @@ message PendingRenameInfo { // A folder resource. This resource can only exist in a hierarchical namespace // enabled bucket. -// Hierarchical namespace buckets are in allowlist preview. message Folder { option (google.api.resource) = { type: "storage.googleapis.com/Folder" @@ -209,7 +203,6 @@ message Folder { // Request message for GetFolder. This operation is only applicable to a // hierarchical namespace enabled bucket. -// Hierarchical namespace buckets are in allowlist preview. message GetFolderRequest { // Required. Name of the folder. // Format: `projects/{project}/buckets/{bucket}/folders/{folder}` @@ -236,7 +229,6 @@ message GetFolderRequest { // Request message for CreateFolder. This operation is only applicable to a // hierarchical namespace enabled bucket. -// Hierarchical namespace buckets are in allowlist preview. message CreateFolderRequest { // Required. Name of the bucket in which the folder will reside. The bucket // must be a hierarchical namespace enabled bucket. @@ -274,7 +266,6 @@ message CreateFolderRequest { // Request message for DeleteFolder. This operation is only applicable to a // hierarchical namespace enabled bucket. -// Hierarchical namespace buckets are in allowlist preview. message DeleteFolderRequest { // Required. Name of the folder. // Format: `projects/{project}/buckets/{bucket}/folders/{folder}` @@ -301,7 +292,6 @@ message DeleteFolderRequest { // Request message for ListFolders. This operation is only applicable to a // hierarchical namespace enabled bucket. -// Hierarchical namespace buckets are in allowlist preview. message ListFoldersRequest { // Required. Name of the bucket in which to look for folders. The bucket must // be a hierarchical namespace enabled bucket. @@ -361,7 +351,6 @@ message ListFoldersResponse { // Request message for RenameFolder. This operation is only applicable to a // hierarchical namespace enabled bucket. -// Hierarchical namespace buckets are in allowlist preview. message RenameFolderRequest { // Required. Name of the source folder being renamed. // Format: `projects/{project}/buckets/{bucket}/folders/{folder}` diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequest.java similarity index 76% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequest.java index 910d25b01d..30df420de5 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequest.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,62 +5,55 @@ package com.google.storage.v2; /** - * - * *
              * Request message for BidiWriteObject.
              * 
            * * Protobuf type {@code google.storage.v2.BidiWriteObjectRequest} */ -public final class BidiWriteObjectRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BidiWriteObjectRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.BidiWriteObjectRequest) BidiWriteObjectRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BidiWriteObjectRequest.newBuilder() to construct. private BidiWriteObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BidiWriteObjectRequest() {} + private BidiWriteObjectRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BidiWriteObjectRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_BidiWriteObjectRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BidiWriteObjectRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_BidiWriteObjectRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BidiWriteObjectRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.BidiWriteObjectRequest.class, - com.google.storage.v2.BidiWriteObjectRequest.Builder.class); + com.google.storage.v2.BidiWriteObjectRequest.class, com.google.storage.v2.BidiWriteObjectRequest.Builder.class); } private int bitField0_; private int firstMessageCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object firstMessage_; - public enum FirstMessageCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { UPLOAD_ID(1), WRITE_OBJECT_SPEC(2), FIRSTMESSAGE_NOT_SET(0); private final int value; - private FirstMessageCase(int value) { this.value = value; } @@ -91,39 +69,32 @@ public static FirstMessageCase valueOf(int value) { public static FirstMessageCase forNumber(int value) { switch (value) { - case 1: - return UPLOAD_ID; - case 2: - return WRITE_OBJECT_SPEC; - case 0: - return FIRSTMESSAGE_NOT_SET; - default: - return null; + case 1: return UPLOAD_ID; + case 2: return WRITE_OBJECT_SPEC; + case 0: return FIRSTMESSAGE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public FirstMessageCase getFirstMessageCase() { - return FirstMessageCase.forNumber(firstMessageCase_); + public FirstMessageCase + getFirstMessageCase() { + return FirstMessageCase.forNumber( + firstMessageCase_); } private int dataCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object data_; - public enum DataCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CHECKSUMMED_DATA(4), DATA_NOT_SET(0); private final int value; - private DataCase(int value) { this.value = value; } @@ -139,50 +110,42 @@ public static DataCase valueOf(int value) { public static DataCase forNumber(int value) { switch (value) { - case 4: - return CHECKSUMMED_DATA; - case 0: - return DATA_NOT_SET; - default: - return null; + case 4: return CHECKSUMMED_DATA; + case 0: return DATA_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DataCase getDataCase() { - return DataCase.forNumber(dataCase_); + public DataCase + getDataCase() { + return DataCase.forNumber( + dataCase_); } public static final int UPLOAD_ID_FIELD_NUMBER = 1; /** - * - * *
                * For resumable uploads. This should be the `upload_id` returned from a
                * call to `StartResumableWriteResponse`.
                * 
            * * string upload_id = 1; - * * @return Whether the uploadId field is set. */ public boolean hasUploadId() { return firstMessageCase_ == 1; } /** - * - * *
                * For resumable uploads. This should be the `upload_id` returned from a
                * call to `StartResumableWriteResponse`.
                * 
            * * string upload_id = 1; - * * @return The uploadId. */ public java.lang.String getUploadId() { @@ -193,7 +156,8 @@ public java.lang.String getUploadId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (firstMessageCase_ == 1) { firstMessage_ = s; @@ -202,25 +166,24 @@ public java.lang.String getUploadId() { } } /** - * - * *
                * For resumable uploads. This should be the `upload_id` returned from a
                * call to `StartResumableWriteResponse`.
                * 
            * * string upload_id = 1; - * * @return The bytes for uploadId. */ - public com.google.protobuf.ByteString getUploadIdBytes() { + public com.google.protobuf.ByteString + getUploadIdBytes() { java.lang.Object ref = ""; if (firstMessageCase_ == 1) { ref = firstMessage_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (firstMessageCase_ == 1) { firstMessage_ = b; } @@ -232,15 +195,12 @@ public com.google.protobuf.ByteString getUploadIdBytes() { public static final int WRITE_OBJECT_SPEC_FIELD_NUMBER = 2; /** - * - * *
                * For non-resumable uploads. Describes the overall upload, including the
                * destination bucket and object name, preconditions, etc.
                * 
            * * .google.storage.v2.WriteObjectSpec write_object_spec = 2; - * * @return Whether the writeObjectSpec field is set. */ @java.lang.Override @@ -248,27 +208,22 @@ public boolean hasWriteObjectSpec() { return firstMessageCase_ == 2; } /** - * - * *
                * For non-resumable uploads. Describes the overall upload, including the
                * destination bucket and object name, preconditions, etc.
                * 
            * * .google.storage.v2.WriteObjectSpec write_object_spec = 2; - * * @return The writeObjectSpec. */ @java.lang.Override public com.google.storage.v2.WriteObjectSpec getWriteObjectSpec() { if (firstMessageCase_ == 2) { - return (com.google.storage.v2.WriteObjectSpec) firstMessage_; + return (com.google.storage.v2.WriteObjectSpec) firstMessage_; } return com.google.storage.v2.WriteObjectSpec.getDefaultInstance(); } /** - * - * *
                * For non-resumable uploads. Describes the overall upload, including the
                * destination bucket and object name, preconditions, etc.
            @@ -279,7 +234,7 @@ public com.google.storage.v2.WriteObjectSpec getWriteObjectSpec() {
               @java.lang.Override
               public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilder() {
                 if (firstMessageCase_ == 2) {
            -      return (com.google.storage.v2.WriteObjectSpec) firstMessage_;
            +       return (com.google.storage.v2.WriteObjectSpec) firstMessage_;
                 }
                 return com.google.storage.v2.WriteObjectSpec.getDefaultInstance();
               }
            @@ -287,8 +242,6 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde
               public static final int WRITE_OFFSET_FIELD_NUMBER = 3;
               private long writeOffset_ = 0L;
               /**
            -   *
            -   *
                * 
                * Required. The offset from the beginning of the object at which the data
                * should be written.
            @@ -306,7 +259,6 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde
                * 
            * * int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The writeOffset. */ @java.lang.Override @@ -316,15 +268,12 @@ public long getWriteOffset() { public static final int CHECKSUMMED_DATA_FIELD_NUMBER = 4; /** - * - * *
                * The data to insert. If a crc32c checksum is provided that doesn't match
                * the checksum computed by the service, the request will fail.
                * 
            * * .google.storage.v2.ChecksummedData checksummed_data = 4; - * * @return Whether the checksummedData field is set. */ @java.lang.Override @@ -332,27 +281,22 @@ public boolean hasChecksummedData() { return dataCase_ == 4; } /** - * - * *
                * The data to insert. If a crc32c checksum is provided that doesn't match
                * the checksum computed by the service, the request will fail.
                * 
            * * .google.storage.v2.ChecksummedData checksummed_data = 4; - * * @return The checksummedData. */ @java.lang.Override public com.google.storage.v2.ChecksummedData getChecksummedData() { if (dataCase_ == 4) { - return (com.google.storage.v2.ChecksummedData) data_; + return (com.google.storage.v2.ChecksummedData) data_; } return com.google.storage.v2.ChecksummedData.getDefaultInstance(); } /** - * - * *
                * The data to insert. If a crc32c checksum is provided that doesn't match
                * the checksum computed by the service, the request will fail.
            @@ -363,7 +307,7 @@ public com.google.storage.v2.ChecksummedData getChecksummedData() {
               @java.lang.Override
               public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilder() {
                 if (dataCase_ == 4) {
            -      return (com.google.storage.v2.ChecksummedData) data_;
            +       return (com.google.storage.v2.ChecksummedData) data_;
                 }
                 return com.google.storage.v2.ChecksummedData.getDefaultInstance();
               }
            @@ -371,8 +315,6 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
               public static final int OBJECT_CHECKSUMS_FIELD_NUMBER = 6;
               private com.google.storage.v2.ObjectChecksums objectChecksums_;
               /**
            -   *
            -   *
                * 
                * Checksums for the complete object. If the checksums computed by the service
                * don't match the specified checksums the call will fail. May only be
            @@ -381,7 +323,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 @@ -389,8 +330,6 @@ public boolean hasObjectChecksums() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * Checksums for the complete object. If the checksums computed by the service
                * don't match the specified checksums the call will fail. May only be
            @@ -399,18 +338,13 @@ public boolean hasObjectChecksums() {
                * 
            * * .google.storage.v2.ObjectChecksums object_checksums = 6; - * * @return The objectChecksums. */ @java.lang.Override public com.google.storage.v2.ObjectChecksums getObjectChecksums() { - return objectChecksums_ == null - ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() - : objectChecksums_; + return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_; } /** - * - * *
                * Checksums for the complete object. If the checksums computed by the service
                * don't match the specified checksums the call will fail. May only be
            @@ -422,16 +356,12 @@ public com.google.storage.v2.ObjectChecksums getObjectChecksums() {
                */
               @java.lang.Override
               public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilder() {
            -    return objectChecksums_ == null
            -        ? com.google.storage.v2.ObjectChecksums.getDefaultInstance()
            -        : objectChecksums_;
            +    return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_;
               }
             
               public static final int STATE_LOOKUP_FIELD_NUMBER = 7;
               private boolean stateLookup_ = false;
               /**
            -   *
            -   *
                * 
                * For each BidiWriteObjectRequest where state_lookup is `true` or the client
                * closes the stream, the service will send a BidiWriteObjectResponse
            @@ -444,7 +374,6 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
                * 
            * * bool state_lookup = 7; - * * @return The stateLookup. */ @java.lang.Override @@ -455,8 +384,6 @@ public boolean getStateLookup() { public static final int FLUSH_FIELD_NUMBER = 8; private boolean flush_ = false; /** - * - * *
                * Persists data written on the stream, up to and including the current
                * message, to permanent storage. This option should be used sparingly as it
            @@ -467,7 +394,6 @@ public boolean getStateLookup() {
                * 
            * * bool flush = 8; - * * @return The flush. */ @java.lang.Override @@ -478,8 +404,6 @@ public boolean getFlush() { public static final int FINISH_WRITE_FIELD_NUMBER = 9; private boolean finishWrite_ = false; /** - * - * *
                * If `true`, this indicates that the write is complete. Sending any
                * `WriteObjectRequest`s subsequent to one in which `finish_write` is `true`
            @@ -490,7 +414,6 @@ public boolean getFlush() {
                * 
            * * bool finish_write = 9; - * * @return The finishWrite. */ @java.lang.Override @@ -501,14 +424,11 @@ public boolean getFinishWrite() { public static final int COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER = 10; private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; - * * @return Whether the commonObjectRequestParams field is set. */ @java.lang.Override @@ -516,25 +436,18 @@ 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 = 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.
                * 
            @@ -542,15 +455,11 @@ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestPar * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ @java.lang.Override - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -562,7 +471,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (firstMessageCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, firstMessage_); } @@ -603,34 +513,36 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, firstMessage_); } if (firstMessageCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.storage.v2.WriteObjectSpec) firstMessage_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.storage.v2.WriteObjectSpec) firstMessage_); } if (writeOffset_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, writeOffset_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, writeOffset_); } if (dataCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.storage.v2.ChecksummedData) data_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.storage.v2.ChecksummedData) data_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getObjectChecksums()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getObjectChecksums()); } if (stateLookup_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, stateLookup_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, stateLookup_); } if (flush_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, flush_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, flush_); } if (finishWrite_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, finishWrite_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, finishWrite_); } if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 10, getCommonObjectRequestParams()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getCommonObjectRequestParams()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -640,34 +552,40 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.BidiWriteObjectRequest)) { return super.equals(obj); } - com.google.storage.v2.BidiWriteObjectRequest other = - (com.google.storage.v2.BidiWriteObjectRequest) obj; + com.google.storage.v2.BidiWriteObjectRequest other = (com.google.storage.v2.BidiWriteObjectRequest) obj; - if (getWriteOffset() != other.getWriteOffset()) return false; + if (getWriteOffset() + != other.getWriteOffset()) return false; if (hasObjectChecksums() != other.hasObjectChecksums()) return false; if (hasObjectChecksums()) { - if (!getObjectChecksums().equals(other.getObjectChecksums())) return false; - } - if (getStateLookup() != other.getStateLookup()) return false; - if (getFlush() != other.getFlush()) return false; - if (getFinishWrite() != other.getFinishWrite()) return false; + if (!getObjectChecksums() + .equals(other.getObjectChecksums())) return false; + } + if (getStateLookup() + != other.getStateLookup()) return false; + if (getFlush() + != other.getFlush()) return false; + if (getFinishWrite() + != other.getFinishWrite()) return false; if (hasCommonObjectRequestParams() != other.hasCommonObjectRequestParams()) return false; if (hasCommonObjectRequestParams()) { - if (!getCommonObjectRequestParams().equals(other.getCommonObjectRequestParams())) - return false; + if (!getCommonObjectRequestParams() + .equals(other.getCommonObjectRequestParams())) return false; } if (!getFirstMessageCase().equals(other.getFirstMessageCase())) return false; switch (firstMessageCase_) { case 1: - if (!getUploadId().equals(other.getUploadId())) return false; + if (!getUploadId() + .equals(other.getUploadId())) return false; break; case 2: - if (!getWriteObjectSpec().equals(other.getWriteObjectSpec())) return false; + if (!getWriteObjectSpec() + .equals(other.getWriteObjectSpec())) return false; break; case 0: default: @@ -675,7 +593,8 @@ public boolean equals(final java.lang.Object obj) { if (!getDataCase().equals(other.getDataCase())) return false; switch (dataCase_) { case 4: - if (!getChecksummedData().equals(other.getChecksummedData())) return false; + if (!getChecksummedData() + .equals(other.getChecksummedData())) return false; break; case 0: default: @@ -692,17 +611,21 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + WRITE_OFFSET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getWriteOffset()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getWriteOffset()); if (hasObjectChecksums()) { hash = (37 * hash) + OBJECT_CHECKSUMS_FIELD_NUMBER; hash = (53 * hash) + getObjectChecksums().hashCode(); } hash = (37 * hash) + STATE_LOOKUP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStateLookup()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getStateLookup()); hash = (37 * hash) + FLUSH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFlush()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getFlush()); hash = (37 * hash) + FINISH_WRITE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFinishWrite()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getFinishWrite()); if (hasCommonObjectRequestParams()) { hash = (37 * hash) + COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER; hash = (53 * hash) + getCommonObjectRequestParams().hashCode(); @@ -732,127 +655,120 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.BidiWriteObjectRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.BidiWriteObjectRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.BidiWriteObjectRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.BidiWriteObjectRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.BidiWriteObjectRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.BidiWriteObjectRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.BidiWriteObjectRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.BidiWriteObjectRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.BidiWriteObjectRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.BidiWriteObjectRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.BidiWriteObjectRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.BidiWriteObjectRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.BidiWriteObjectRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.BidiWriteObjectRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.BidiWriteObjectRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * Request message for BidiWriteObject.
                * 
            * * Protobuf type {@code google.storage.v2.BidiWriteObjectRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.BidiWriteObjectRequest) com.google.storage.v2.BidiWriteObjectRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_BidiWriteObjectRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BidiWriteObjectRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_BidiWriteObjectRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BidiWriteObjectRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.BidiWriteObjectRequest.class, - com.google.storage.v2.BidiWriteObjectRequest.Builder.class); + com.google.storage.v2.BidiWriteObjectRequest.class, com.google.storage.v2.BidiWriteObjectRequest.Builder.class); } // Construct using com.google.storage.v2.BidiWriteObjectRequest.newBuilder() @@ -860,18 +776,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) { getObjectChecksumsFieldBuilder(); getCommonObjectRequestParamsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -904,9 +820,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_BidiWriteObjectRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BidiWriteObjectRequest_descriptor; } @java.lang.Override @@ -925,11 +841,8 @@ public com.google.storage.v2.BidiWriteObjectRequest build() { @java.lang.Override public com.google.storage.v2.BidiWriteObjectRequest buildPartial() { - com.google.storage.v2.BidiWriteObjectRequest result = - new com.google.storage.v2.BidiWriteObjectRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.BidiWriteObjectRequest result = new com.google.storage.v2.BidiWriteObjectRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -942,8 +855,9 @@ private void buildPartial0(com.google.storage.v2.BidiWriteObjectRequest result) } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { - result.objectChecksums_ = - objectChecksumsBuilder_ == null ? objectChecksums_ : objectChecksumsBuilder_.build(); + result.objectChecksums_ = objectChecksumsBuilder_ == null + ? objectChecksums_ + : objectChecksumsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000020) != 0)) { @@ -956,10 +870,9 @@ private void buildPartial0(com.google.storage.v2.BidiWriteObjectRequest result) result.finishWrite_ = finishWrite_; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.commonObjectRequestParams_ = - commonObjectRequestParamsBuilder_ == null - ? commonObjectRequestParams_ - : commonObjectRequestParamsBuilder_.build(); + result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null + ? commonObjectRequestParams_ + : commonObjectRequestParamsBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -968,12 +881,14 @@ private void buildPartial0(com.google.storage.v2.BidiWriteObjectRequest result) private void buildPartialOneofs(com.google.storage.v2.BidiWriteObjectRequest result) { result.firstMessageCase_ = firstMessageCase_; result.firstMessage_ = this.firstMessage_; - if (firstMessageCase_ == 2 && writeObjectSpecBuilder_ != null) { + if (firstMessageCase_ == 2 && + writeObjectSpecBuilder_ != null) { result.firstMessage_ = writeObjectSpecBuilder_.build(); } result.dataCase_ = dataCase_; result.data_ = this.data_; - if (dataCase_ == 4 && checksummedDataBuilder_ != null) { + if (dataCase_ == 4 && + checksummedDataBuilder_ != null) { result.data_ = checksummedDataBuilder_.build(); } } @@ -982,39 +897,38 @@ private void buildPartialOneofs(com.google.storage.v2.BidiWriteObjectRequest res public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.BidiWriteObjectRequest) { - return mergeFrom((com.google.storage.v2.BidiWriteObjectRequest) other); + return mergeFrom((com.google.storage.v2.BidiWriteObjectRequest)other); } else { super.mergeFrom(other); return this; @@ -1042,33 +956,28 @@ public Builder mergeFrom(com.google.storage.v2.BidiWriteObjectRequest other) { mergeCommonObjectRequestParams(other.getCommonObjectRequestParams()); } switch (other.getFirstMessageCase()) { - case UPLOAD_ID: - { - firstMessageCase_ = 1; - firstMessage_ = other.firstMessage_; - onChanged(); - break; - } - case WRITE_OBJECT_SPEC: - { - mergeWriteObjectSpec(other.getWriteObjectSpec()); - break; - } - case FIRSTMESSAGE_NOT_SET: - { - break; - } + case UPLOAD_ID: { + firstMessageCase_ = 1; + firstMessage_ = other.firstMessage_; + onChanged(); + break; + } + case WRITE_OBJECT_SPEC: { + mergeWriteObjectSpec(other.getWriteObjectSpec()); + break; + } + case FIRSTMESSAGE_NOT_SET: { + break; + } } switch (other.getDataCase()) { - case CHECKSUMMED_DATA: - { - mergeChecksummedData(other.getChecksummedData()); - break; - } - case DATA_NOT_SET: - { - break; - } + case CHECKSUMMED_DATA: { + mergeChecksummedData(other.getChecksummedData()); + break; + } + case DATA_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1096,69 +1005,66 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - firstMessageCase_ = 1; - firstMessage_ = s; - break; - } // case 10 - case 18: - { - input.readMessage(getWriteObjectSpecFieldBuilder().getBuilder(), extensionRegistry); - firstMessageCase_ = 2; - break; - } // case 18 - case 24: - { - writeOffset_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - input.readMessage(getChecksummedDataFieldBuilder().getBuilder(), extensionRegistry); - dataCase_ = 4; - break; - } // case 34 - case 50: - { - input.readMessage(getObjectChecksumsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 50 - case 56: - { - stateLookup_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 56 - case 64: - { - flush_ = input.readBool(); - bitField0_ |= 0x00000040; - break; - } // case 64 - case 72: - { - finishWrite_ = input.readBool(); - bitField0_ |= 0x00000080; - break; - } // case 72 - case 82: - { - input.readMessage( - getCommonObjectRequestParamsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + firstMessageCase_ = 1; + firstMessage_ = s; + break; + } // case 10 + case 18: { + input.readMessage( + getWriteObjectSpecFieldBuilder().getBuilder(), + extensionRegistry); + firstMessageCase_ = 2; + break; + } // case 18 + case 24: { + writeOffset_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + input.readMessage( + getChecksummedDataFieldBuilder().getBuilder(), + extensionRegistry); + dataCase_ = 4; + break; + } // case 34 + case 50: { + input.readMessage( + getObjectChecksumsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 56: { + stateLookup_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 56 + case 64: { + flush_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 64 + case 72: { + finishWrite_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 72 + case 82: { + input.readMessage( + getCommonObjectRequestParamsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1168,12 +1074,12 @@ public Builder mergeFrom( } // finally return this; } - private int firstMessageCase_ = 0; private java.lang.Object firstMessage_; - - public FirstMessageCase getFirstMessageCase() { - return FirstMessageCase.forNumber(firstMessageCase_); + public FirstMessageCase + getFirstMessageCase() { + return FirstMessageCase.forNumber( + firstMessageCase_); } public Builder clearFirstMessage() { @@ -1185,9 +1091,10 @@ public Builder clearFirstMessage() { private int dataCase_ = 0; private java.lang.Object data_; - - public DataCase getDataCase() { - return DataCase.forNumber(dataCase_); + public DataCase + getDataCase() { + return DataCase.forNumber( + dataCase_); } public Builder clearData() { @@ -1200,15 +1107,12 @@ public Builder clearData() { private int bitField0_; /** - * - * *
                  * For resumable uploads. This should be the `upload_id` returned from a
                  * call to `StartResumableWriteResponse`.
                  * 
            * * string upload_id = 1; - * * @return Whether the uploadId field is set. */ @java.lang.Override @@ -1216,15 +1120,12 @@ public boolean hasUploadId() { return firstMessageCase_ == 1; } /** - * - * *
                  * For resumable uploads. This should be the `upload_id` returned from a
                  * call to `StartResumableWriteResponse`.
                  * 
            * * string upload_id = 1; - * * @return The uploadId. */ @java.lang.Override @@ -1234,7 +1135,8 @@ public java.lang.String getUploadId() { ref = firstMessage_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (firstMessageCase_ == 1) { firstMessage_ = s; @@ -1245,26 +1147,25 @@ public java.lang.String getUploadId() { } } /** - * - * *
                  * For resumable uploads. This should be the `upload_id` returned from a
                  * call to `StartResumableWriteResponse`.
                  * 
            * * string upload_id = 1; - * * @return The bytes for uploadId. */ @java.lang.Override - public com.google.protobuf.ByteString getUploadIdBytes() { + public com.google.protobuf.ByteString + getUploadIdBytes() { java.lang.Object ref = ""; if (firstMessageCase_ == 1) { ref = firstMessage_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (firstMessageCase_ == 1) { firstMessage_ = b; } @@ -1274,37 +1175,30 @@ public com.google.protobuf.ByteString getUploadIdBytes() { } } /** - * - * *
                  * For resumable uploads. This should be the `upload_id` returned from a
                  * call to `StartResumableWriteResponse`.
                  * 
            * * string upload_id = 1; - * * @param value The uploadId to set. * @return This builder for chaining. */ - public Builder setUploadId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUploadId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } firstMessageCase_ = 1; firstMessage_ = value; onChanged(); return this; } /** - * - * *
                  * For resumable uploads. This should be the `upload_id` returned from a
                  * call to `StartResumableWriteResponse`.
                  * 
            * * string upload_id = 1; - * * @return This builder for chaining. */ public Builder clearUploadId() { @@ -1316,22 +1210,18 @@ public Builder clearUploadId() { return this; } /** - * - * *
                  * For resumable uploads. This should be the `upload_id` returned from a
                  * call to `StartResumableWriteResponse`.
                  * 
            * * string upload_id = 1; - * * @param value The bytes for uploadId to set. * @return This builder for chaining. */ - public Builder setUploadIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUploadIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); firstMessageCase_ = 1; firstMessage_ = value; @@ -1340,20 +1230,14 @@ public Builder setUploadIdBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.WriteObjectSpec, - com.google.storage.v2.WriteObjectSpec.Builder, - com.google.storage.v2.WriteObjectSpecOrBuilder> - writeObjectSpecBuilder_; + com.google.storage.v2.WriteObjectSpec, com.google.storage.v2.WriteObjectSpec.Builder, com.google.storage.v2.WriteObjectSpecOrBuilder> writeObjectSpecBuilder_; /** - * - * *
                  * For non-resumable uploads. Describes the overall upload, including the
                  * destination bucket and object name, preconditions, etc.
                  * 
            * * .google.storage.v2.WriteObjectSpec write_object_spec = 2; - * * @return Whether the writeObjectSpec field is set. */ @java.lang.Override @@ -1361,15 +1245,12 @@ public boolean hasWriteObjectSpec() { return firstMessageCase_ == 2; } /** - * - * *
                  * For non-resumable uploads. Describes the overall upload, including the
                  * destination bucket and object name, preconditions, etc.
                  * 
            * * .google.storage.v2.WriteObjectSpec write_object_spec = 2; - * * @return The writeObjectSpec. */ @java.lang.Override @@ -1387,8 +1268,6 @@ public com.google.storage.v2.WriteObjectSpec getWriteObjectSpec() { } } /** - * - * *
                  * For non-resumable uploads. Describes the overall upload, including the
                  * destination bucket and object name, preconditions, etc.
            @@ -1410,8 +1289,6 @@ public Builder setWriteObjectSpec(com.google.storage.v2.WriteObjectSpec value) {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * For non-resumable uploads. Describes the overall upload, including the
                  * destination bucket and object name, preconditions, etc.
            @@ -1431,8 +1308,6 @@ public Builder setWriteObjectSpec(
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * For non-resumable uploads. Describes the overall upload, including the
                  * destination bucket and object name, preconditions, etc.
            @@ -1442,13 +1317,10 @@ public Builder setWriteObjectSpec(
                  */
                 public Builder mergeWriteObjectSpec(com.google.storage.v2.WriteObjectSpec value) {
                   if (writeObjectSpecBuilder_ == null) {
            -        if (firstMessageCase_ == 2
            -            && firstMessage_ != com.google.storage.v2.WriteObjectSpec.getDefaultInstance()) {
            -          firstMessage_ =
            -              com.google.storage.v2.WriteObjectSpec.newBuilder(
            -                      (com.google.storage.v2.WriteObjectSpec) firstMessage_)
            -                  .mergeFrom(value)
            -                  .buildPartial();
            +        if (firstMessageCase_ == 2 &&
            +            firstMessage_ != com.google.storage.v2.WriteObjectSpec.getDefaultInstance()) {
            +          firstMessage_ = com.google.storage.v2.WriteObjectSpec.newBuilder((com.google.storage.v2.WriteObjectSpec) firstMessage_)
            +              .mergeFrom(value).buildPartial();
                     } else {
                       firstMessage_ = value;
                     }
            @@ -1464,8 +1336,6 @@ public Builder mergeWriteObjectSpec(com.google.storage.v2.WriteObjectSpec value)
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * For non-resumable uploads. Describes the overall upload, including the
                  * destination bucket and object name, preconditions, etc.
            @@ -1490,8 +1360,6 @@ public Builder clearWriteObjectSpec() {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * For non-resumable uploads. Describes the overall upload, including the
                  * destination bucket and object name, preconditions, etc.
            @@ -1503,8 +1371,6 @@ public com.google.storage.v2.WriteObjectSpec.Builder getWriteObjectSpecBuilder()
                   return getWriteObjectSpecFieldBuilder().getBuilder();
                 }
                 /**
            -     *
            -     *
                  * 
                  * For non-resumable uploads. Describes the overall upload, including the
                  * destination bucket and object name, preconditions, etc.
            @@ -1524,8 +1390,6 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde
                   }
                 }
                 /**
            -     *
            -     *
                  * 
                  * For non-resumable uploads. Describes the overall upload, including the
                  * destination bucket and object name, preconditions, etc.
            @@ -1534,19 +1398,14 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde
                  * .google.storage.v2.WriteObjectSpec write_object_spec = 2;
                  */
                 private com.google.protobuf.SingleFieldBuilderV3<
            -            com.google.storage.v2.WriteObjectSpec,
            -            com.google.storage.v2.WriteObjectSpec.Builder,
            -            com.google.storage.v2.WriteObjectSpecOrBuilder>
            +        com.google.storage.v2.WriteObjectSpec, com.google.storage.v2.WriteObjectSpec.Builder, com.google.storage.v2.WriteObjectSpecOrBuilder> 
                     getWriteObjectSpecFieldBuilder() {
                   if (writeObjectSpecBuilder_ == null) {
                     if (!(firstMessageCase_ == 2)) {
                       firstMessage_ = com.google.storage.v2.WriteObjectSpec.getDefaultInstance();
                     }
            -        writeObjectSpecBuilder_ =
            -            new com.google.protobuf.SingleFieldBuilderV3<
            -                com.google.storage.v2.WriteObjectSpec,
            -                com.google.storage.v2.WriteObjectSpec.Builder,
            -                com.google.storage.v2.WriteObjectSpecOrBuilder>(
            +        writeObjectSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            +            com.google.storage.v2.WriteObjectSpec, com.google.storage.v2.WriteObjectSpec.Builder, com.google.storage.v2.WriteObjectSpecOrBuilder>(
                             (com.google.storage.v2.WriteObjectSpec) firstMessage_,
                             getParentForChildren(),
                             isClean());
            @@ -1557,10 +1416,8 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde
                   return writeObjectSpecBuilder_;
                 }
             
            -    private long writeOffset_;
            +    private long writeOffset_ ;
                 /**
            -     *
            -     *
                  * 
                  * Required. The offset from the beginning of the object at which the data
                  * should be written.
            @@ -1578,7 +1435,6 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde
                  * 
            * * int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The writeOffset. */ @java.lang.Override @@ -1586,8 +1442,6 @@ public long getWriteOffset() { return writeOffset_; } /** - * - * *
                  * Required. The offset from the beginning of the object at which the data
                  * should be written.
            @@ -1605,7 +1459,6 @@ public long getWriteOffset() {
                  * 
            * * int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The writeOffset to set. * @return This builder for chaining. */ @@ -1617,8 +1470,6 @@ public Builder setWriteOffset(long value) { return this; } /** - * - * *
                  * Required. The offset from the beginning of the object at which the data
                  * should be written.
            @@ -1636,7 +1487,6 @@ public Builder setWriteOffset(long value) {
                  * 
            * * int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearWriteOffset() { @@ -1647,20 +1497,14 @@ public Builder clearWriteOffset() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.ChecksummedData, - com.google.storage.v2.ChecksummedData.Builder, - com.google.storage.v2.ChecksummedDataOrBuilder> - checksummedDataBuilder_; + com.google.storage.v2.ChecksummedData, com.google.storage.v2.ChecksummedData.Builder, com.google.storage.v2.ChecksummedDataOrBuilder> checksummedDataBuilder_; /** - * - * *
                  * The data to insert. If a crc32c checksum is provided that doesn't match
                  * the checksum computed by the service, the request will fail.
                  * 
            * * .google.storage.v2.ChecksummedData checksummed_data = 4; - * * @return Whether the checksummedData field is set. */ @java.lang.Override @@ -1668,15 +1512,12 @@ public boolean hasChecksummedData() { return dataCase_ == 4; } /** - * - * *
                  * The data to insert. If a crc32c checksum is provided that doesn't match
                  * the checksum computed by the service, the request will fail.
                  * 
            * * .google.storage.v2.ChecksummedData checksummed_data = 4; - * * @return The checksummedData. */ @java.lang.Override @@ -1694,8 +1535,6 @@ public com.google.storage.v2.ChecksummedData getChecksummedData() { } } /** - * - * *
                  * The data to insert. If a crc32c checksum is provided that doesn't match
                  * the checksum computed by the service, the request will fail.
            @@ -1717,8 +1556,6 @@ public Builder setChecksummedData(com.google.storage.v2.ChecksummedData value) {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * The data to insert. If a crc32c checksum is provided that doesn't match
                  * the checksum computed by the service, the request will fail.
            @@ -1738,8 +1575,6 @@ public Builder setChecksummedData(
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * The data to insert. If a crc32c checksum is provided that doesn't match
                  * the checksum computed by the service, the request will fail.
            @@ -1749,12 +1584,10 @@ public Builder setChecksummedData(
                  */
                 public Builder mergeChecksummedData(com.google.storage.v2.ChecksummedData value) {
                   if (checksummedDataBuilder_ == null) {
            -        if (dataCase_ == 4 && data_ != com.google.storage.v2.ChecksummedData.getDefaultInstance()) {
            -          data_ =
            -              com.google.storage.v2.ChecksummedData.newBuilder(
            -                      (com.google.storage.v2.ChecksummedData) data_)
            -                  .mergeFrom(value)
            -                  .buildPartial();
            +        if (dataCase_ == 4 &&
            +            data_ != com.google.storage.v2.ChecksummedData.getDefaultInstance()) {
            +          data_ = com.google.storage.v2.ChecksummedData.newBuilder((com.google.storage.v2.ChecksummedData) data_)
            +              .mergeFrom(value).buildPartial();
                     } else {
                       data_ = value;
                     }
            @@ -1770,8 +1603,6 @@ public Builder mergeChecksummedData(com.google.storage.v2.ChecksummedData value)
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * The data to insert. If a crc32c checksum is provided that doesn't match
                  * the checksum computed by the service, the request will fail.
            @@ -1796,8 +1627,6 @@ public Builder clearChecksummedData() {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * The data to insert. If a crc32c checksum is provided that doesn't match
                  * the checksum computed by the service, the request will fail.
            @@ -1809,8 +1638,6 @@ public com.google.storage.v2.ChecksummedData.Builder getChecksummedDataBuilder()
                   return getChecksummedDataFieldBuilder().getBuilder();
                 }
                 /**
            -     *
            -     *
                  * 
                  * The data to insert. If a crc32c checksum is provided that doesn't match
                  * the checksum computed by the service, the request will fail.
            @@ -1830,8 +1657,6 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
                   }
                 }
                 /**
            -     *
            -     *
                  * 
                  * The data to insert. If a crc32c checksum is provided that doesn't match
                  * the checksum computed by the service, the request will fail.
            @@ -1840,20 +1665,17 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
                  * .google.storage.v2.ChecksummedData checksummed_data = 4;
                  */
                 private com.google.protobuf.SingleFieldBuilderV3<
            -            com.google.storage.v2.ChecksummedData,
            -            com.google.storage.v2.ChecksummedData.Builder,
            -            com.google.storage.v2.ChecksummedDataOrBuilder>
            +        com.google.storage.v2.ChecksummedData, com.google.storage.v2.ChecksummedData.Builder, com.google.storage.v2.ChecksummedDataOrBuilder> 
                     getChecksummedDataFieldBuilder() {
                   if (checksummedDataBuilder_ == null) {
                     if (!(dataCase_ == 4)) {
                       data_ = com.google.storage.v2.ChecksummedData.getDefaultInstance();
                     }
            -        checksummedDataBuilder_ =
            -            new com.google.protobuf.SingleFieldBuilderV3<
            -                com.google.storage.v2.ChecksummedData,
            -                com.google.storage.v2.ChecksummedData.Builder,
            -                com.google.storage.v2.ChecksummedDataOrBuilder>(
            -                (com.google.storage.v2.ChecksummedData) data_, getParentForChildren(), isClean());
            +        checksummedDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            +            com.google.storage.v2.ChecksummedData, com.google.storage.v2.ChecksummedData.Builder, com.google.storage.v2.ChecksummedDataOrBuilder>(
            +                (com.google.storage.v2.ChecksummedData) data_,
            +                getParentForChildren(),
            +                isClean());
                     data_ = null;
                   }
                   dataCase_ = 4;
            @@ -1863,13 +1685,8 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
             
                 private com.google.storage.v2.ObjectChecksums objectChecksums_;
                 private com.google.protobuf.SingleFieldBuilderV3<
            -            com.google.storage.v2.ObjectChecksums,
            -            com.google.storage.v2.ObjectChecksums.Builder,
            -            com.google.storage.v2.ObjectChecksumsOrBuilder>
            -        objectChecksumsBuilder_;
            +        com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder> objectChecksumsBuilder_;
                 /**
            -     *
            -     *
                  * 
                  * Checksums for the complete object. If the checksums computed by the service
                  * don't match the specified checksums the call will fail. May only be
            @@ -1878,15 +1695,12 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
                  * 
            * * .google.storage.v2.ObjectChecksums object_checksums = 6; - * * @return Whether the objectChecksums field is set. */ public boolean hasObjectChecksums() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
                  * Checksums for the complete object. If the checksums computed by the service
                  * don't match the specified checksums the call will fail. May only be
            @@ -1895,21 +1709,16 @@ public boolean hasObjectChecksums() {
                  * 
            * * .google.storage.v2.ObjectChecksums object_checksums = 6; - * * @return The objectChecksums. */ public com.google.storage.v2.ObjectChecksums getObjectChecksums() { if (objectChecksumsBuilder_ == null) { - return objectChecksums_ == null - ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() - : objectChecksums_; + return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_; } else { return objectChecksumsBuilder_.getMessage(); } } /** - * - * *
                  * Checksums for the complete object. If the checksums computed by the service
                  * don't match the specified checksums the call will fail. May only be
            @@ -1933,8 +1742,6 @@ public Builder setObjectChecksums(com.google.storage.v2.ObjectChecksums value) {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Checksums for the complete object. If the checksums computed by the service
                  * don't match the specified checksums the call will fail. May only be
            @@ -1956,8 +1763,6 @@ public Builder setObjectChecksums(
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Checksums for the complete object. If the checksums computed by the service
                  * don't match the specified checksums the call will fail. May only be
            @@ -1969,9 +1774,9 @@ public Builder setObjectChecksums(
                  */
                 public Builder mergeObjectChecksums(com.google.storage.v2.ObjectChecksums value) {
                   if (objectChecksumsBuilder_ == null) {
            -        if (((bitField0_ & 0x00000010) != 0)
            -            && objectChecksums_ != null
            -            && objectChecksums_ != com.google.storage.v2.ObjectChecksums.getDefaultInstance()) {
            +        if (((bitField0_ & 0x00000010) != 0) &&
            +          objectChecksums_ != null &&
            +          objectChecksums_ != com.google.storage.v2.ObjectChecksums.getDefaultInstance()) {
                       getObjectChecksumsBuilder().mergeFrom(value);
                     } else {
                       objectChecksums_ = value;
            @@ -1986,8 +1791,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 specified checksums the call will fail. May only be
            @@ -2008,8 +1811,6 @@ public Builder clearObjectChecksums() {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Checksums for the complete object. If the checksums computed by the service
                  * don't match the specified checksums the call will fail. May only be
            @@ -2025,8 +1826,6 @@ public com.google.storage.v2.ObjectChecksums.Builder getObjectChecksumsBuilder()
                   return getObjectChecksumsFieldBuilder().getBuilder();
                 }
                 /**
            -     *
            -     *
                  * 
                  * Checksums for the complete object. If the checksums computed by the service
                  * don't match the specified checksums the call will fail. May only be
            @@ -2040,14 +1839,11 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
                   if (objectChecksumsBuilder_ != null) {
                     return objectChecksumsBuilder_.getMessageOrBuilder();
                   } else {
            -        return objectChecksums_ == null
            -            ? com.google.storage.v2.ObjectChecksums.getDefaultInstance()
            -            : objectChecksums_;
            +        return objectChecksums_ == null ?
            +            com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_;
                   }
                 }
                 /**
            -     *
            -     *
                  * 
                  * Checksums for the complete object. If the checksums computed by the service
                  * don't match the specified checksums the call will fail. May only be
            @@ -2058,26 +1854,21 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
                  * .google.storage.v2.ObjectChecksums object_checksums = 6;
                  */
                 private com.google.protobuf.SingleFieldBuilderV3<
            -            com.google.storage.v2.ObjectChecksums,
            -            com.google.storage.v2.ObjectChecksums.Builder,
            -            com.google.storage.v2.ObjectChecksumsOrBuilder>
            +        com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder> 
                     getObjectChecksumsFieldBuilder() {
                   if (objectChecksumsBuilder_ == null) {
            -        objectChecksumsBuilder_ =
            -            new com.google.protobuf.SingleFieldBuilderV3<
            -                com.google.storage.v2.ObjectChecksums,
            -                com.google.storage.v2.ObjectChecksums.Builder,
            -                com.google.storage.v2.ObjectChecksumsOrBuilder>(
            -                getObjectChecksums(), getParentForChildren(), isClean());
            +        objectChecksumsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            +            com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder>(
            +                getObjectChecksums(),
            +                getParentForChildren(),
            +                isClean());
                     objectChecksums_ = null;
                   }
                   return objectChecksumsBuilder_;
                 }
             
            -    private boolean stateLookup_;
            +    private boolean stateLookup_ ;
                 /**
            -     *
            -     *
                  * 
                  * For each BidiWriteObjectRequest where state_lookup is `true` or the client
                  * closes the stream, the service will send a BidiWriteObjectResponse
            @@ -2090,7 +1881,6 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
                  * 
            * * bool state_lookup = 7; - * * @return The stateLookup. */ @java.lang.Override @@ -2098,8 +1888,6 @@ public boolean getStateLookup() { return stateLookup_; } /** - * - * *
                  * For each BidiWriteObjectRequest where state_lookup is `true` or the client
                  * closes the stream, the service will send a BidiWriteObjectResponse
            @@ -2112,7 +1900,6 @@ public boolean getStateLookup() {
                  * 
            * * bool state_lookup = 7; - * * @param value The stateLookup to set. * @return This builder for chaining. */ @@ -2124,8 +1911,6 @@ public Builder setStateLookup(boolean value) { return this; } /** - * - * *
                  * For each BidiWriteObjectRequest where state_lookup is `true` or the client
                  * closes the stream, the service will send a BidiWriteObjectResponse
            @@ -2138,7 +1923,6 @@ public Builder setStateLookup(boolean value) {
                  * 
            * * bool state_lookup = 7; - * * @return This builder for chaining. */ public Builder clearStateLookup() { @@ -2148,10 +1932,8 @@ public Builder clearStateLookup() { return this; } - private boolean flush_; + private boolean flush_ ; /** - * - * *
                  * Persists data written on the stream, up to and including the current
                  * message, to permanent storage. This option should be used sparingly as it
            @@ -2162,7 +1944,6 @@ public Builder clearStateLookup() {
                  * 
            * * bool flush = 8; - * * @return The flush. */ @java.lang.Override @@ -2170,8 +1951,6 @@ public boolean getFlush() { return flush_; } /** - * - * *
                  * Persists data written on the stream, up to and including the current
                  * message, to permanent storage. This option should be used sparingly as it
            @@ -2182,7 +1961,6 @@ public boolean getFlush() {
                  * 
            * * bool flush = 8; - * * @param value The flush to set. * @return This builder for chaining. */ @@ -2194,8 +1972,6 @@ public Builder setFlush(boolean value) { return this; } /** - * - * *
                  * Persists data written on the stream, up to and including the current
                  * message, to permanent storage. This option should be used sparingly as it
            @@ -2206,7 +1982,6 @@ public Builder setFlush(boolean value) {
                  * 
            * * bool flush = 8; - * * @return This builder for chaining. */ public Builder clearFlush() { @@ -2216,10 +1991,8 @@ public Builder clearFlush() { return this; } - private boolean finishWrite_; + private boolean finishWrite_ ; /** - * - * *
                  * If `true`, this indicates that the write is complete. Sending any
                  * `WriteObjectRequest`s subsequent to one in which `finish_write` is `true`
            @@ -2230,7 +2003,6 @@ public Builder clearFlush() {
                  * 
            * * bool finish_write = 9; - * * @return The finishWrite. */ @java.lang.Override @@ -2238,8 +2010,6 @@ public boolean getFinishWrite() { return finishWrite_; } /** - * - * *
                  * If `true`, this indicates that the write is complete. Sending any
                  * `WriteObjectRequest`s subsequent to one in which `finish_write` is `true`
            @@ -2250,7 +2020,6 @@ public boolean getFinishWrite() {
                  * 
            * * bool finish_write = 9; - * * @param value The finishWrite to set. * @return This builder for chaining. */ @@ -2262,8 +2031,6 @@ public Builder setFinishWrite(boolean value) { return this; } /** - * - * *
                  * If `true`, this indicates that the write is complete. Sending any
                  * `WriteObjectRequest`s subsequent to one in which `finish_write` is `true`
            @@ -2274,7 +2041,6 @@ public Builder setFinishWrite(boolean value) {
                  * 
            * * bool finish_write = 9; - * * @return This builder for chaining. */ public Builder clearFinishWrite() { @@ -2286,55 +2052,41 @@ public Builder clearFinishWrite() { private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> - commonObjectRequestParamsBuilder_; + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> commonObjectRequestParamsBuilder_; /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; - * * @return Whether the commonObjectRequestParams field is set. */ public boolean hasCommonObjectRequestParams() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; - * * @return The commonObjectRequestParams. */ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { if (commonObjectRequestParamsBuilder_ == null) { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } else { return commonObjectRequestParamsBuilder_.getMessage(); } } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ - public Builder setCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2348,8 +2100,6 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -2368,21 +2118,17 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ - public Builder mergeCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && commonObjectRequestParams_ != null - && commonObjectRequestParams_ - != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + commonObjectRequestParams_ != null && + commonObjectRequestParams_ != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { getCommonObjectRequestParamsBuilder().mergeFrom(value); } else { commonObjectRequestParams_ = value; @@ -2397,8 +2143,6 @@ public Builder mergeCommonObjectRequestParams( return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -2416,42 +2160,33 @@ public Builder clearCommonObjectRequestParams() { return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ - public com.google.storage.v2.CommonObjectRequestParams.Builder - getCommonObjectRequestParamsBuilder() { + public com.google.storage.v2.CommonObjectRequestParams.Builder getCommonObjectRequestParamsBuilder() { bitField0_ |= 0x00000100; onChanged(); return getCommonObjectRequestParamsFieldBuilder().getBuilder(); } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { if (commonObjectRequestParamsBuilder_ != null) { return commonObjectRequestParamsBuilder_.getMessageOrBuilder(); } else { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? + com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -2459,24 +2194,21 @@ public Builder clearCommonObjectRequestParams() { * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> getCommonObjectRequestParamsFieldBuilder() { if (commonObjectRequestParamsBuilder_ == null) { - commonObjectRequestParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( - getCommonObjectRequestParams(), getParentForChildren(), isClean()); + commonObjectRequestParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( + getCommonObjectRequestParams(), + getParentForChildren(), + isClean()); commonObjectRequestParams_ = null; } return commonObjectRequestParamsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2486,12 +2218,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.BidiWriteObjectRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.BidiWriteObjectRequest) private static final com.google.storage.v2.BidiWriteObjectRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.BidiWriteObjectRequest(); } @@ -2500,27 +2232,27 @@ public static com.google.storage.v2.BidiWriteObjectRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BidiWriteObjectRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BidiWriteObjectRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2535,4 +2267,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.BidiWriteObjectRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequestOrBuilder.java similarity index 89% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequestOrBuilder.java index 0277e95f72..c5bc0af516 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequestOrBuilder.java @@ -1,98 +1,66 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 package com.google.storage.v2; -public interface BidiWriteObjectRequestOrBuilder - extends +public interface BidiWriteObjectRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.BidiWriteObjectRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
                * For resumable uploads. This should be the `upload_id` returned from a
                * call to `StartResumableWriteResponse`.
                * 
            * * string upload_id = 1; - * * @return Whether the uploadId field is set. */ boolean hasUploadId(); /** - * - * *
                * For resumable uploads. This should be the `upload_id` returned from a
                * call to `StartResumableWriteResponse`.
                * 
            * * string upload_id = 1; - * * @return The uploadId. */ java.lang.String getUploadId(); /** - * - * *
                * For resumable uploads. This should be the `upload_id` returned from a
                * call to `StartResumableWriteResponse`.
                * 
            * * string upload_id = 1; - * * @return The bytes for uploadId. */ - com.google.protobuf.ByteString getUploadIdBytes(); + com.google.protobuf.ByteString + getUploadIdBytes(); /** - * - * *
                * For non-resumable uploads. Describes the overall upload, including the
                * destination bucket and object name, preconditions, etc.
                * 
            * * .google.storage.v2.WriteObjectSpec write_object_spec = 2; - * * @return Whether the writeObjectSpec field is set. */ boolean hasWriteObjectSpec(); /** - * - * *
                * For non-resumable uploads. Describes the overall upload, including the
                * destination bucket and object name, preconditions, etc.
                * 
            * * .google.storage.v2.WriteObjectSpec write_object_spec = 2; - * * @return The writeObjectSpec. */ com.google.storage.v2.WriteObjectSpec getWriteObjectSpec(); /** - * - * *
                * For non-resumable uploads. Describes the overall upload, including the
                * destination bucket and object name, preconditions, etc.
            @@ -103,8 +71,6 @@ public interface BidiWriteObjectRequestOrBuilder
               com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilder();
             
               /**
            -   *
            -   *
                * 
                * Required. The offset from the beginning of the object at which the data
                * should be written.
            @@ -122,40 +88,31 @@ public interface BidiWriteObjectRequestOrBuilder
                * 
            * * int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The writeOffset. */ long getWriteOffset(); /** - * - * *
                * The data to insert. If a crc32c checksum is provided that doesn't match
                * the checksum computed by the service, the request will fail.
                * 
            * * .google.storage.v2.ChecksummedData checksummed_data = 4; - * * @return Whether the checksummedData field is set. */ boolean hasChecksummedData(); /** - * - * *
                * The data to insert. If a crc32c checksum is provided that doesn't match
                * the checksum computed by the service, the request will fail.
                * 
            * * .google.storage.v2.ChecksummedData checksummed_data = 4; - * * @return The checksummedData. */ com.google.storage.v2.ChecksummedData getChecksummedData(); /** - * - * *
                * The data to insert. If a crc32c checksum is provided that doesn't match
                * the checksum computed by the service, the request will fail.
            @@ -166,8 +123,6 @@ public interface BidiWriteObjectRequestOrBuilder
               com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilder();
             
               /**
            -   *
            -   *
                * 
                * Checksums for the complete object. If the checksums computed by the service
                * don't match the specified checksums the call will fail. May only be
            @@ -176,13 +131,10 @@ public interface BidiWriteObjectRequestOrBuilder
                * 
            * * .google.storage.v2.ObjectChecksums object_checksums = 6; - * * @return Whether the objectChecksums field is set. */ boolean hasObjectChecksums(); /** - * - * *
                * Checksums for the complete object. If the checksums computed by the service
                * don't match the specified checksums the call will fail. May only be
            @@ -191,13 +143,10 @@ public interface BidiWriteObjectRequestOrBuilder
                * 
            * * .google.storage.v2.ObjectChecksums object_checksums = 6; - * * @return The objectChecksums. */ com.google.storage.v2.ObjectChecksums getObjectChecksums(); /** - * - * *
                * Checksums for the complete object. If the checksums computed by the service
                * don't match the specified checksums the call will fail. May only be
            @@ -210,8 +159,6 @@ public interface BidiWriteObjectRequestOrBuilder
               com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilder();
             
               /**
            -   *
            -   *
                * 
                * For each BidiWriteObjectRequest where state_lookup is `true` or the client
                * closes the stream, the service will send a BidiWriteObjectResponse
            @@ -224,14 +171,11 @@ public interface BidiWriteObjectRequestOrBuilder
                * 
            * * bool state_lookup = 7; - * * @return The stateLookup. */ boolean getStateLookup(); /** - * - * *
                * Persists data written on the stream, up to and including the current
                * message, to permanent storage. This option should be used sparingly as it
            @@ -242,14 +186,11 @@ public interface BidiWriteObjectRequestOrBuilder
                * 
            * * bool flush = 8; - * * @return The flush. */ boolean getFlush(); /** - * - * *
                * If `true`, this indicates that the write is complete. Sending any
                * `WriteObjectRequest`s subsequent to one in which `finish_write` is `true`
            @@ -260,38 +201,29 @@ public interface BidiWriteObjectRequestOrBuilder
                * 
            * * bool finish_write = 9; - * * @return The finishWrite. */ boolean getFinishWrite(); /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; - * * @return Whether the commonObjectRequestParams field is set. */ boolean hasCommonObjectRequestParams(); /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; - * * @return The commonObjectRequestParams. */ com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams(); /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponse.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponse.java similarity index 70% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponse.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponse.java index c101557ed6..6a5a029f56 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponse.java @@ -1,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,61 +5,54 @@ package com.google.storage.v2; /** - * - * *
              * Response message for BidiWriteObject.
              * 
            * * Protobuf type {@code google.storage.v2.BidiWriteObjectResponse} */ -public final class BidiWriteObjectResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BidiWriteObjectResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.BidiWriteObjectResponse) BidiWriteObjectResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BidiWriteObjectResponse.newBuilder() to construct. private BidiWriteObjectResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BidiWriteObjectResponse() {} + private BidiWriteObjectResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BidiWriteObjectResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_BidiWriteObjectResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BidiWriteObjectResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_BidiWriteObjectResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BidiWriteObjectResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.BidiWriteObjectResponse.class, - com.google.storage.v2.BidiWriteObjectResponse.Builder.class); + com.google.storage.v2.BidiWriteObjectResponse.class, com.google.storage.v2.BidiWriteObjectResponse.Builder.class); } private int writeStatusCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object writeStatus_; - public enum WriteStatusCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PERSISTED_SIZE(1), RESOURCE(2), WRITESTATUS_NOT_SET(0); private final int value; - private WriteStatusCase(int value) { this.value = value; } @@ -90,37 +68,31 @@ public static WriteStatusCase valueOf(int value) { public static WriteStatusCase forNumber(int value) { switch (value) { - case 1: - return PERSISTED_SIZE; - case 2: - return RESOURCE; - case 0: - return WRITESTATUS_NOT_SET; - default: - return null; + case 1: return PERSISTED_SIZE; + case 2: return RESOURCE; + case 0: return WRITESTATUS_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public WriteStatusCase getWriteStatusCase() { - return WriteStatusCase.forNumber(writeStatusCase_); + public WriteStatusCase + getWriteStatusCase() { + return WriteStatusCase.forNumber( + writeStatusCase_); } public static final int PERSISTED_SIZE_FIELD_NUMBER = 1; /** - * - * *
                * The total number of bytes that have been processed for the given object
                * from all `WriteObject` calls. Only set if the upload has not finalized.
                * 
            * * int64 persisted_size = 1; - * * @return Whether the persistedSize field is set. */ @java.lang.Override @@ -128,15 +100,12 @@ public boolean hasPersistedSize() { return writeStatusCase_ == 1; } /** - * - * *
                * The total number of bytes that have been processed for the given object
                * from all `WriteObject` calls. Only set if the upload has not finalized.
                * 
            * * int64 persisted_size = 1; - * * @return The persistedSize. */ @java.lang.Override @@ -149,15 +118,12 @@ public long getPersistedSize() { public static final int RESOURCE_FIELD_NUMBER = 2; /** - * - * *
                * A resource containing the metadata for the uploaded object. Only set if
                * the upload has finalized.
                * 
            * * .google.storage.v2.Object resource = 2; - * * @return Whether the resource field is set. */ @java.lang.Override @@ -165,27 +131,22 @@ public boolean hasResource() { return writeStatusCase_ == 2; } /** - * - * *
                * A resource containing the metadata for the uploaded object. Only set if
                * the upload has finalized.
                * 
            * * .google.storage.v2.Object resource = 2; - * * @return The resource. */ @java.lang.Override public com.google.storage.v2.Object getResource() { if (writeStatusCase_ == 2) { - return (com.google.storage.v2.Object) writeStatus_; + return (com.google.storage.v2.Object) writeStatus_; } return com.google.storage.v2.Object.getDefaultInstance(); } /** - * - * *
                * A resource containing the metadata for the uploaded object. Only set if
                * the upload has finalized.
            @@ -196,13 +157,12 @@ public com.google.storage.v2.Object getResource() {
               @java.lang.Override
               public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
                 if (writeStatusCase_ == 2) {
            -      return (com.google.storage.v2.Object) writeStatus_;
            +       return (com.google.storage.v2.Object) writeStatus_;
                 }
                 return com.google.storage.v2.Object.getDefaultInstance();
               }
             
               private byte memoizedIsInitialized = -1;
            -
               @java.lang.Override
               public final boolean isInitialized() {
                 byte isInitialized = memoizedIsInitialized;
            @@ -214,9 +174,11 @@ public final boolean isInitialized() {
               }
             
               @java.lang.Override
            -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
            +  public void writeTo(com.google.protobuf.CodedOutputStream output)
            +                      throws java.io.IOException {
                 if (writeStatusCase_ == 1) {
            -      output.writeInt64(1, (long) ((java.lang.Long) writeStatus_));
            +      output.writeInt64(
            +          1, (long)((java.lang.Long) writeStatus_));
                 }
                 if (writeStatusCase_ == 2) {
                   output.writeMessage(2, (com.google.storage.v2.Object) writeStatus_);
            @@ -231,14 +193,13 @@ public int getSerializedSize() {
             
                 size = 0;
                 if (writeStatusCase_ == 1) {
            -      size +=
            -          com.google.protobuf.CodedOutputStream.computeInt64Size(
            -              1, (long) ((java.lang.Long) writeStatus_));
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeInt64Size(
            +            1, (long)((java.lang.Long) writeStatus_));
                 }
                 if (writeStatusCase_ == 2) {
            -      size +=
            -          com.google.protobuf.CodedOutputStream.computeMessageSize(
            -              2, (com.google.storage.v2.Object) writeStatus_);
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeMessageSize(2, (com.google.storage.v2.Object) writeStatus_);
                 }
                 size += getUnknownFields().getSerializedSize();
                 memoizedSize = size;
            @@ -248,21 +209,22 @@ public int getSerializedSize() {
               @java.lang.Override
               public boolean equals(final java.lang.Object obj) {
                 if (obj == this) {
            -      return true;
            +     return true;
                 }
                 if (!(obj instanceof com.google.storage.v2.BidiWriteObjectResponse)) {
                   return super.equals(obj);
                 }
            -    com.google.storage.v2.BidiWriteObjectResponse other =
            -        (com.google.storage.v2.BidiWriteObjectResponse) obj;
            +    com.google.storage.v2.BidiWriteObjectResponse other = (com.google.storage.v2.BidiWriteObjectResponse) obj;
             
                 if (!getWriteStatusCase().equals(other.getWriteStatusCase())) return false;
                 switch (writeStatusCase_) {
                   case 1:
            -        if (getPersistedSize() != other.getPersistedSize()) return false;
            +        if (getPersistedSize()
            +            != other.getPersistedSize()) return false;
                     break;
                   case 2:
            -        if (!getResource().equals(other.getResource())) return false;
            +        if (!getResource()
            +            .equals(other.getResource())) return false;
                     break;
                   case 0:
                   default:
            @@ -281,7 +243,8 @@ public int hashCode() {
                 switch (writeStatusCase_) {
                   case 1:
                     hash = (37 * hash) + PERSISTED_SIZE_FIELD_NUMBER;
            -        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPersistedSize());
            +        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            +            getPersistedSize());
                     break;
                   case 2:
                     hash = (37 * hash) + RESOURCE_FIELD_NUMBER;
            @@ -295,136 +258,132 @@ public int hashCode() {
                 return hash;
               }
             
            -  public static com.google.storage.v2.BidiWriteObjectResponse parseFrom(java.nio.ByteBuffer data)
            +  public static com.google.storage.v2.BidiWriteObjectResponse parseFrom(
            +      java.nio.ByteBuffer data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
            -
               public static com.google.storage.v2.BidiWriteObjectResponse parseFrom(
            -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      java.nio.ByteBuffer data,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
            -
               public static com.google.storage.v2.BidiWriteObjectResponse parseFrom(
                   com.google.protobuf.ByteString data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
            -
               public static com.google.storage.v2.BidiWriteObjectResponse parseFrom(
                   com.google.protobuf.ByteString data,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
            -
               public static com.google.storage.v2.BidiWriteObjectResponse parseFrom(byte[] data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
            -
               public static com.google.storage.v2.BidiWriteObjectResponse parseFrom(
            -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      byte[] data,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
            -
               public static com.google.storage.v2.BidiWriteObjectResponse parseFrom(java.io.InputStream input)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input);
               }
            -
               public static com.google.storage.v2.BidiWriteObjectResponse parseFrom(
            -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      java.io.InputStream input,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            -        PARSER, input, extensionRegistry);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input, extensionRegistry);
               }
             
            -  public static com.google.storage.v2.BidiWriteObjectResponse parseDelimitedFrom(
            -      java.io.InputStream input) throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
            +  public static com.google.storage.v2.BidiWriteObjectResponse parseDelimitedFrom(java.io.InputStream input)
            +      throws java.io.IOException {
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseDelimitedWithIOException(PARSER, input);
               }
             
               public static com.google.storage.v2.BidiWriteObjectResponse parseDelimitedFrom(
            -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      java.io.InputStream input,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            -        PARSER, input, extensionRegistry);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
               }
            -
               public static com.google.storage.v2.BidiWriteObjectResponse parseFrom(
            -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
            +      com.google.protobuf.CodedInputStream input)
            +      throws java.io.IOException {
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input);
               }
            -
               public static com.google.storage.v2.BidiWriteObjectResponse parseFrom(
                   com.google.protobuf.CodedInputStream input,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            -        PARSER, input, extensionRegistry);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input, extensionRegistry);
               }
             
               @java.lang.Override
            -  public Builder newBuilderForType() {
            -    return newBuilder();
            -  }
            -
            +  public Builder newBuilderForType() { return newBuilder(); }
               public static Builder newBuilder() {
                 return DEFAULT_INSTANCE.toBuilder();
               }
            -
               public static Builder newBuilder(com.google.storage.v2.BidiWriteObjectResponse prototype) {
                 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
               }
            -
               @java.lang.Override
               public Builder toBuilder() {
            -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
            +    return this == DEFAULT_INSTANCE
            +        ? new Builder() : new Builder().mergeFrom(this);
               }
             
               @java.lang.Override
            -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            +  protected Builder newBuilderForType(
            +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 Builder builder = new Builder(parent);
                 return builder;
               }
               /**
            -   *
            -   *
                * 
                * Response message for BidiWriteObject.
                * 
            * * Protobuf type {@code google.storage.v2.BidiWriteObjectResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.BidiWriteObjectResponse) com.google.storage.v2.BidiWriteObjectResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_BidiWriteObjectResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BidiWriteObjectResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_BidiWriteObjectResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BidiWriteObjectResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.BidiWriteObjectResponse.class, - com.google.storage.v2.BidiWriteObjectResponse.Builder.class); + com.google.storage.v2.BidiWriteObjectResponse.class, com.google.storage.v2.BidiWriteObjectResponse.Builder.class); } // Construct using com.google.storage.v2.BidiWriteObjectResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -438,9 +397,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_BidiWriteObjectResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BidiWriteObjectResponse_descriptor; } @java.lang.Override @@ -459,11 +418,8 @@ public com.google.storage.v2.BidiWriteObjectResponse build() { @java.lang.Override public com.google.storage.v2.BidiWriteObjectResponse buildPartial() { - com.google.storage.v2.BidiWriteObjectResponse result = - new com.google.storage.v2.BidiWriteObjectResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.BidiWriteObjectResponse result = new com.google.storage.v2.BidiWriteObjectResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -476,7 +432,8 @@ private void buildPartial0(com.google.storage.v2.BidiWriteObjectResponse result) private void buildPartialOneofs(com.google.storage.v2.BidiWriteObjectResponse result) { result.writeStatusCase_ = writeStatusCase_; result.writeStatus_ = this.writeStatus_; - if (writeStatusCase_ == 2 && resourceBuilder_ != null) { + if (writeStatusCase_ == 2 && + resourceBuilder_ != null) { result.writeStatus_ = resourceBuilder_.build(); } } @@ -485,39 +442,38 @@ private void buildPartialOneofs(com.google.storage.v2.BidiWriteObjectResponse re public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.BidiWriteObjectResponse) { - return mergeFrom((com.google.storage.v2.BidiWriteObjectResponse) other); + return mergeFrom((com.google.storage.v2.BidiWriteObjectResponse)other); } else { super.mergeFrom(other); return this; @@ -527,20 +483,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.storage.v2.BidiWriteObjectResponse other) { if (other == com.google.storage.v2.BidiWriteObjectResponse.getDefaultInstance()) return this; switch (other.getWriteStatusCase()) { - case PERSISTED_SIZE: - { - setPersistedSize(other.getPersistedSize()); - break; - } - case RESOURCE: - { - mergeResource(other.getResource()); - break; - } - case WRITESTATUS_NOT_SET: - { - break; - } + case PERSISTED_SIZE: { + setPersistedSize(other.getPersistedSize()); + break; + } + case RESOURCE: { + mergeResource(other.getResource()); + break; + } + case WRITESTATUS_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -568,25 +521,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - writeStatus_ = input.readInt64(); - writeStatusCase_ = 1; - break; - } // case 8 - case 18: - { - input.readMessage(getResourceFieldBuilder().getBuilder(), extensionRegistry); - writeStatusCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + writeStatus_ = input.readInt64(); + writeStatusCase_ = 1; + break; + } // case 8 + case 18: { + input.readMessage( + getResourceFieldBuilder().getBuilder(), + extensionRegistry); + writeStatusCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -596,12 +548,12 @@ public Builder mergeFrom( } // finally return this; } - private int writeStatusCase_ = 0; private java.lang.Object writeStatus_; - - public WriteStatusCase getWriteStatusCase() { - return WriteStatusCase.forNumber(writeStatusCase_); + public WriteStatusCase + getWriteStatusCase() { + return WriteStatusCase.forNumber( + writeStatusCase_); } public Builder clearWriteStatus() { @@ -614,30 +566,24 @@ public Builder clearWriteStatus() { private int bitField0_; /** - * - * *
                  * The total number of bytes that have been processed for the given object
                  * from all `WriteObject` calls. Only set if the upload has not finalized.
                  * 
            * * int64 persisted_size = 1; - * * @return Whether the persistedSize field is set. */ public boolean hasPersistedSize() { return writeStatusCase_ == 1; } /** - * - * *
                  * The total number of bytes that have been processed for the given object
                  * from all `WriteObject` calls. Only set if the upload has not finalized.
                  * 
            * * int64 persisted_size = 1; - * * @return The persistedSize. */ public long getPersistedSize() { @@ -647,15 +593,12 @@ public long getPersistedSize() { return 0L; } /** - * - * *
                  * The total number of bytes that have been processed for the given object
                  * from all `WriteObject` calls. Only set if the upload has not finalized.
                  * 
            * * int64 persisted_size = 1; - * * @param value The persistedSize to set. * @return This builder for chaining. */ @@ -667,15 +610,12 @@ public Builder setPersistedSize(long value) { return this; } /** - * - * *
                  * The total number of bytes that have been processed for the given object
                  * from all `WriteObject` calls. Only set if the upload has not finalized.
                  * 
            * * int64 persisted_size = 1; - * * @return This builder for chaining. */ public Builder clearPersistedSize() { @@ -688,20 +628,14 @@ public Builder clearPersistedSize() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Object, - com.google.storage.v2.Object.Builder, - com.google.storage.v2.ObjectOrBuilder> - resourceBuilder_; + com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> resourceBuilder_; /** - * - * *
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
                  * 
            * * .google.storage.v2.Object resource = 2; - * * @return Whether the resource field is set. */ @java.lang.Override @@ -709,15 +643,12 @@ public boolean hasResource() { return writeStatusCase_ == 2; } /** - * - * *
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
                  * 
            * * .google.storage.v2.Object resource = 2; - * * @return The resource. */ @java.lang.Override @@ -735,8 +666,6 @@ public com.google.storage.v2.Object getResource() { } } /** - * - * *
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
            @@ -758,8 +687,6 @@ public Builder setResource(com.google.storage.v2.Object value) {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
            @@ -767,7 +694,8 @@ public Builder setResource(com.google.storage.v2.Object value) {
                  *
                  * .google.storage.v2.Object resource = 2;
                  */
            -    public Builder setResource(com.google.storage.v2.Object.Builder builderForValue) {
            +    public Builder setResource(
            +        com.google.storage.v2.Object.Builder builderForValue) {
                   if (resourceBuilder_ == null) {
                     writeStatus_ = builderForValue.build();
                     onChanged();
            @@ -778,8 +706,6 @@ public Builder setResource(com.google.storage.v2.Object.Builder builderForValue)
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
            @@ -789,12 +715,10 @@ public Builder setResource(com.google.storage.v2.Object.Builder builderForValue)
                  */
                 public Builder mergeResource(com.google.storage.v2.Object value) {
                   if (resourceBuilder_ == null) {
            -        if (writeStatusCase_ == 2
            -            && writeStatus_ != com.google.storage.v2.Object.getDefaultInstance()) {
            -          writeStatus_ =
            -              com.google.storage.v2.Object.newBuilder((com.google.storage.v2.Object) writeStatus_)
            -                  .mergeFrom(value)
            -                  .buildPartial();
            +        if (writeStatusCase_ == 2 &&
            +            writeStatus_ != com.google.storage.v2.Object.getDefaultInstance()) {
            +          writeStatus_ = com.google.storage.v2.Object.newBuilder((com.google.storage.v2.Object) writeStatus_)
            +              .mergeFrom(value).buildPartial();
                     } else {
                       writeStatus_ = value;
                     }
            @@ -810,8 +734,6 @@ public Builder mergeResource(com.google.storage.v2.Object value) {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
            @@ -836,8 +758,6 @@ public Builder clearResource() {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
            @@ -849,8 +769,6 @@ public com.google.storage.v2.Object.Builder getResourceBuilder() {
                   return getResourceFieldBuilder().getBuilder();
                 }
                 /**
            -     *
            -     *
                  * 
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
            @@ -870,8 +788,6 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
                   }
                 }
                 /**
            -     *
            -     *
                  * 
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
            @@ -880,29 +796,26 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
                  * .google.storage.v2.Object resource = 2;
                  */
                 private com.google.protobuf.SingleFieldBuilderV3<
            -            com.google.storage.v2.Object,
            -            com.google.storage.v2.Object.Builder,
            -            com.google.storage.v2.ObjectOrBuilder>
            +        com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> 
                     getResourceFieldBuilder() {
                   if (resourceBuilder_ == null) {
                     if (!(writeStatusCase_ == 2)) {
                       writeStatus_ = com.google.storage.v2.Object.getDefaultInstance();
                     }
            -        resourceBuilder_ =
            -            new com.google.protobuf.SingleFieldBuilderV3<
            -                com.google.storage.v2.Object,
            -                com.google.storage.v2.Object.Builder,
            -                com.google.storage.v2.ObjectOrBuilder>(
            -                (com.google.storage.v2.Object) writeStatus_, getParentForChildren(), isClean());
            +        resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            +            com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder>(
            +                (com.google.storage.v2.Object) writeStatus_,
            +                getParentForChildren(),
            +                isClean());
                     writeStatus_ = null;
                   }
                   writeStatusCase_ = 2;
                   onChanged();
                   return resourceBuilder_;
                 }
            -
                 @java.lang.Override
            -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
            +    public final Builder setUnknownFields(
            +        final com.google.protobuf.UnknownFieldSet unknownFields) {
                   return super.setUnknownFields(unknownFields);
                 }
             
            @@ -912,12 +825,12 @@ public final Builder mergeUnknownFields(
                   return super.mergeUnknownFields(unknownFields);
                 }
             
            +
                 // @@protoc_insertion_point(builder_scope:google.storage.v2.BidiWriteObjectResponse)
               }
             
               // @@protoc_insertion_point(class_scope:google.storage.v2.BidiWriteObjectResponse)
               private static final com.google.storage.v2.BidiWriteObjectResponse DEFAULT_INSTANCE;
            -
               static {
                 DEFAULT_INSTANCE = new com.google.storage.v2.BidiWriteObjectResponse();
               }
            @@ -926,27 +839,27 @@ public static com.google.storage.v2.BidiWriteObjectResponse getDefaultInstance()
                 return DEFAULT_INSTANCE;
               }
             
            -  private static final com.google.protobuf.Parser PARSER =
            -      new com.google.protobuf.AbstractParser() {
            -        @java.lang.Override
            -        public BidiWriteObjectResponse parsePartialFrom(
            -            com.google.protobuf.CodedInputStream input,
            -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            -            throws com.google.protobuf.InvalidProtocolBufferException {
            -          Builder builder = newBuilder();
            -          try {
            -            builder.mergeFrom(input, extensionRegistry);
            -          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            -            throw e.setUnfinishedMessage(builder.buildPartial());
            -          } catch (com.google.protobuf.UninitializedMessageException e) {
            -            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
            -          } catch (java.io.IOException e) {
            -            throw new com.google.protobuf.InvalidProtocolBufferException(e)
            -                .setUnfinishedMessage(builder.buildPartial());
            -          }
            -          return builder.buildPartial();
            -        }
            -      };
            +  private static final com.google.protobuf.Parser
            +      PARSER = new com.google.protobuf.AbstractParser() {
            +    @java.lang.Override
            +    public BidiWriteObjectResponse parsePartialFrom(
            +        com.google.protobuf.CodedInputStream input,
            +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +        throws com.google.protobuf.InvalidProtocolBufferException {
            +      Builder builder = newBuilder();
            +      try {
            +        builder.mergeFrom(input, extensionRegistry);
            +      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            +        throw e.setUnfinishedMessage(builder.buildPartial());
            +      } catch (com.google.protobuf.UninitializedMessageException e) {
            +        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
            +      } catch (java.io.IOException e) {
            +        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            +            .setUnfinishedMessage(builder.buildPartial());
            +      }
            +      return builder.buildPartial();
            +    }
            +  };
             
               public static com.google.protobuf.Parser parser() {
                 return PARSER;
            @@ -961,4 +874,6 @@ public com.google.protobuf.Parser getParserForType() {
               public com.google.storage.v2.BidiWriteObjectResponse getDefaultInstanceForType() {
                 return DEFAULT_INSTANCE;
               }
            +
             }
            +
            diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponseOrBuilder.java
            similarity index 71%
            rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponseOrBuilder.java
            rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponseOrBuilder.java
            index 528a442896..08d60780a9 100644
            --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponseOrBuilder.java
            +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponseOrBuilder.java
            @@ -1,85 +1,55 @@
            -/*
            - * Copyright 2024 Google LLC
            - *
            - * Licensed under the Apache License, Version 2.0 (the "License");
            - * you may not use this file except in compliance with the License.
            - * You may obtain a copy of the License at
            - *
            - *     https://www.apache.org/licenses/LICENSE-2.0
            - *
            - * Unless required by applicable law or agreed to in writing, software
            - * distributed under the License is distributed on an "AS IS" BASIS,
            - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            - * See the License for the specific language governing permissions and
            - * limitations under the License.
            - */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
             // Protobuf Java Version: 3.25.3
             package com.google.storage.v2;
             
            -public interface BidiWriteObjectResponseOrBuilder
            -    extends
            +public interface BidiWriteObjectResponseOrBuilder extends
                 // @@protoc_insertion_point(interface_extends:google.storage.v2.BidiWriteObjectResponse)
                 com.google.protobuf.MessageOrBuilder {
             
               /**
            -   *
            -   *
                * 
                * The total number of bytes that have been processed for the given object
                * from all `WriteObject` calls. Only set if the upload has not finalized.
                * 
            * * int64 persisted_size = 1; - * * @return Whether the persistedSize field is set. */ boolean hasPersistedSize(); /** - * - * *
                * The total number of bytes that have been processed for the given object
                * from all `WriteObject` calls. Only set if the upload has not finalized.
                * 
            * * int64 persisted_size = 1; - * * @return The persistedSize. */ long getPersistedSize(); /** - * - * *
                * A resource containing the metadata for the uploaded object. Only set if
                * the upload has finalized.
                * 
            * * .google.storage.v2.Object resource = 2; - * * @return Whether the resource field is set. */ boolean hasResource(); /** - * - * *
                * A resource containing the metadata for the uploaded object. Only set if
                * the upload has finalized.
                * 
            * * .google.storage.v2.Object resource = 2; - * * @return The resource. */ com.google.storage.v2.Object getResource(); /** - * - * *
                * A resource containing the metadata for the uploaded object. Only set if
                * the upload has finalized.
            diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Bucket.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Bucket.java
            similarity index 75%
            rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Bucket.java
            rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Bucket.java
            index 67a5df95bd..d5c5e4458b 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,18 +1,3 @@
            -/*
            - * Copyright 2024 Google LLC
            - *
            - * Licensed under the Apache License, Version 2.0 (the "License");
            - * you may not use this file except in compliance with the License.
            - * You may obtain a copy of the License at
            - *
            - *     https://www.apache.org/licenses/LICENSE-2.0
            - *
            - * Unless required by applicable law or agreed to in writing, software
            - * distributed under the License is distributed on an "AS IS" BASIS,
            - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            - * See the License for the specific language governing permissions and
            - * limitations under the License.
            - */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
            @@ -20,24 +5,21 @@
             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_ = ""; @@ -54,11 +36,13 @@ private Bucket() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Bucket(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_descriptor; } @@ -70,90 +54,79 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl case 15: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.storage.v2.Bucket.class, com.google.storage.v2.Bucket.Builder.class); } - public interface BillingOrBuilder - extends + public interface BillingOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.Billing) com.google.protobuf.MessageOrBuilder { /** - * - * *
                  * When set to true, Requester Pays is enabled for this bucket.
                  * 
            * * bool requester_pays = 1; - * * @return The requesterPays. */ boolean getRequesterPays(); } /** - * - * *
                * Billing properties of a bucket.
                * 
            * * Protobuf type {@code google.storage.v2.Bucket.Billing} */ - public static final class Billing extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Billing extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.Billing) BillingOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Billing.newBuilder() to construct. private Billing(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Billing() {} + private Billing() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Billing(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Billing_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Billing_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Billing_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Billing_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.Billing.class, - com.google.storage.v2.Bucket.Billing.Builder.class); + com.google.storage.v2.Bucket.Billing.class, com.google.storage.v2.Bucket.Billing.Builder.class); } public static final int REQUESTER_PAYS_FIELD_NUMBER = 1; private boolean requesterPays_ = false; /** - * - * *
                  * When set to true, Requester Pays is enabled for this bucket.
                  * 
            * * bool requester_pays = 1; - * * @return The requesterPays. */ @java.lang.Override @@ -162,7 +135,6 @@ public boolean getRequesterPays() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -174,7 +146,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (requesterPays_ != false) { output.writeBool(1, requesterPays_); } @@ -188,7 +161,8 @@ public int getSerializedSize() { size = 0; if (requesterPays_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, requesterPays_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, requesterPays_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -198,14 +172,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.Bucket.Billing)) { return super.equals(obj); } com.google.storage.v2.Bucket.Billing other = (com.google.storage.v2.Bucket.Billing) obj; - if (getRequesterPays() != other.getRequesterPays()) return false; + if (getRequesterPays() + != other.getRequesterPays()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -218,100 +193,97 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + REQUESTER_PAYS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequesterPays()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRequesterPays()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.storage.v2.Bucket.Billing parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.Bucket.Billing parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Billing parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.Billing parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Billing parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.Billing parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Billing parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.Billing parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.Bucket.Billing parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.storage.v2.Bucket.Billing parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.Bucket.Billing parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.Bucket.Billing parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.Bucket.Billing parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.Bucket.Billing prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -321,41 +293,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
                  * Billing properties of a bucket.
                  * 
            * * Protobuf type {@code google.storage.v2.Bucket.Billing} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.Bucket.Billing) com.google.storage.v2.Bucket.BillingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Billing_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Billing_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Billing_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Billing_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.Billing.class, - com.google.storage.v2.Bucket.Billing.Builder.class); + com.google.storage.v2.Bucket.Billing.class, com.google.storage.v2.Bucket.Billing.Builder.class); } // Construct using com.google.storage.v2.Bucket.Billing.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -365,9 +335,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Billing_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Billing_descriptor; } @java.lang.Override @@ -386,11 +356,8 @@ public com.google.storage.v2.Bucket.Billing build() { @java.lang.Override public com.google.storage.v2.Bucket.Billing buildPartial() { - com.google.storage.v2.Bucket.Billing result = - new com.google.storage.v2.Bucket.Billing(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.Bucket.Billing result = new com.google.storage.v2.Bucket.Billing(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -406,41 +373,38 @@ private void buildPartial0(com.google.storage.v2.Bucket.Billing result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.Bucket.Billing) { - return mergeFrom((com.google.storage.v2.Bucket.Billing) other); + return mergeFrom((com.google.storage.v2.Bucket.Billing)other); } else { super.mergeFrom(other); return this; @@ -478,19 +442,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - requesterPays_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + requesterPays_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -500,19 +462,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private boolean requesterPays_; + private boolean requesterPays_ ; /** - * - * *
                    * When set to true, Requester Pays is enabled for this bucket.
                    * 
            * * bool requester_pays = 1; - * * @return The requesterPays. */ @java.lang.Override @@ -520,14 +478,11 @@ public boolean getRequesterPays() { return requesterPays_; } /** - * - * *
                    * When set to true, Requester Pays is enabled for this bucket.
                    * 
            * * bool requester_pays = 1; - * * @param value The requesterPays to set. * @return This builder for chaining. */ @@ -539,14 +494,11 @@ public Builder setRequesterPays(boolean value) { return this; } /** - * - * *
                    * When set to true, Requester Pays is enabled for this bucket.
                    * 
            * * bool requester_pays = 1; - * * @return This builder for chaining. */ public Builder clearRequesterPays() { @@ -555,7 +507,6 @@ public Builder clearRequesterPays() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -568,12 +519,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.Bucket.Billing) } // @@protoc_insertion_point(class_scope:google.storage.v2.Bucket.Billing) private static final com.google.storage.v2.Bucket.Billing DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.Bucket.Billing(); } @@ -582,28 +533,27 @@ public static com.google.storage.v2.Bucket.Billing getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Billing parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Billing parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -618,16 +568,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.Billing getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface CorsOrBuilder - extends + public interface CorsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.Cors) com.google.protobuf.MessageOrBuilder { /** - * - * *
                  * The list of Origins eligible to receive CORS response headers. See
                  * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
            @@ -635,13 +583,11 @@ public interface CorsOrBuilder
                  * 
            * * repeated string origin = 1; - * * @return A list containing the origin. */ - java.util.List getOriginList(); + java.util.List + getOriginList(); /** - * - * *
                  * The list of Origins eligible to receive CORS response headers. See
                  * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
            @@ -649,13 +595,10 @@ public interface CorsOrBuilder
                  * 
            * * repeated string origin = 1; - * * @return The count of origin. */ int getOriginCount(); /** - * - * *
                  * The list of Origins eligible to receive CORS response headers. See
                  * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
            @@ -663,14 +606,11 @@ public interface CorsOrBuilder
                  * 
            * * repeated string origin = 1; - * * @param index The index of the element to return. * @return The origin at the given index. */ java.lang.String getOrigin(int index); /** - * - * *
                  * The list of Origins eligible to receive CORS response headers. See
                  * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
            @@ -678,15 +618,13 @@ public interface CorsOrBuilder
                  * 
            * * repeated string origin = 1; - * * @param index The index of the value to return. * @return The bytes of the origin at the given index. */ - com.google.protobuf.ByteString getOriginBytes(int index); + com.google.protobuf.ByteString + getOriginBytes(int index); /** - * - * *
                  * The list of HTTP methods on which to include CORS response headers,
                  * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
            @@ -694,13 +632,11 @@ public interface CorsOrBuilder
                  * 
            * * repeated string method = 2; - * * @return A list containing the method. */ - java.util.List getMethodList(); + java.util.List + getMethodList(); /** - * - * *
                  * The list of HTTP methods on which to include CORS response headers,
                  * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
            @@ -708,13 +644,10 @@ public interface CorsOrBuilder
                  * 
            * * repeated string method = 2; - * * @return The count of method. */ int getMethodCount(); /** - * - * *
                  * The list of HTTP methods on which to include CORS response headers,
                  * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
            @@ -722,14 +655,11 @@ public interface CorsOrBuilder
                  * 
            * * repeated string method = 2; - * * @param index The index of the element to return. * @return The method at the given index. */ java.lang.String getMethod(int index); /** - * - * *
                  * The list of HTTP methods on which to include CORS response headers,
                  * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
            @@ -737,15 +667,13 @@ public interface CorsOrBuilder
                  * 
            * * repeated string method = 2; - * * @param index The index of the value to return. * @return The bytes of the method at the given index. */ - com.google.protobuf.ByteString getMethodBytes(int index); + com.google.protobuf.ByteString + getMethodBytes(int index); /** - * - * *
                  * The list of HTTP headers other than the
                  * [https://www.w3.org/TR/cors/#simple-response-header][simple response
            @@ -753,13 +681,11 @@ public interface CorsOrBuilder
                  * 
            * * repeated string response_header = 3; - * * @return A list containing the responseHeader. */ - java.util.List getResponseHeaderList(); + java.util.List + getResponseHeaderList(); /** - * - * *
                  * The list of HTTP headers other than the
                  * [https://www.w3.org/TR/cors/#simple-response-header][simple response
            @@ -767,13 +693,10 @@ public interface CorsOrBuilder
                  * 
            * * repeated string response_header = 3; - * * @return The count of responseHeader. */ int getResponseHeaderCount(); /** - * - * *
                  * The list of HTTP headers other than the
                  * [https://www.w3.org/TR/cors/#simple-response-header][simple response
            @@ -781,14 +704,11 @@ public interface CorsOrBuilder
                  * 
            * * repeated string response_header = 3; - * * @param index The index of the element to return. * @return The responseHeader at the given index. */ java.lang.String getResponseHeader(int index); /** - * - * *
                  * The list of HTTP headers other than the
                  * [https://www.w3.org/TR/cors/#simple-response-header][simple response
            @@ -796,15 +716,13 @@ public interface CorsOrBuilder
                  * 
            * * repeated string response_header = 3; - * * @param index The index of the value to return. * @return The bytes of the responseHeader at the given index. */ - com.google.protobuf.ByteString getResponseHeaderBytes(int index); + com.google.protobuf.ByteString + getResponseHeaderBytes(int index); /** - * - * *
                  * The value, in seconds, to return in the
                  * [https://www.w3.org/TR/cors/#access-control-max-age-response-header][Access-Control-Max-Age
            @@ -812,14 +730,11 @@ public interface CorsOrBuilder
                  * 
            * * int32 max_age_seconds = 4; - * * @return The maxAgeSeconds. */ int getMaxAgeSeconds(); } /** - * - * *
                * Cross-Origin Response sharing (CORS) properties for a bucket.
                * For more on Cloud Storage and CORS, see
            @@ -829,51 +744,49 @@ public interface CorsOrBuilder
                *
                * Protobuf type {@code google.storage.v2.Bucket.Cors}
                */
            -  public static final class Cors extends com.google.protobuf.GeneratedMessageV3
            -      implements
            +  public static final class Cors extends
            +      com.google.protobuf.GeneratedMessageV3 implements
                   // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.Cors)
                   CorsOrBuilder {
            -    private static final long serialVersionUID = 0L;
            +  private static final long serialVersionUID = 0L;
                 // Use Cors.newBuilder() to construct.
                 private Cors(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                   super(builder);
                 }
            -
                 private Cors() {
            -      origin_ = com.google.protobuf.LazyStringArrayList.emptyList();
            -      method_ = com.google.protobuf.LazyStringArrayList.emptyList();
            -      responseHeader_ = com.google.protobuf.LazyStringArrayList.emptyList();
            +      origin_ =
            +          com.google.protobuf.LazyStringArrayList.emptyList();
            +      method_ =
            +          com.google.protobuf.LazyStringArrayList.emptyList();
            +      responseHeader_ =
            +          com.google.protobuf.LazyStringArrayList.emptyList();
                 }
             
                 @java.lang.Override
                 @SuppressWarnings({"unused"})
            -    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
            +    protected java.lang.Object newInstance(
            +        UnusedPrivateParameter unused) {
                   return new Cors();
                 }
             
            -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            -      return com.google.storage.v2.StorageProto
            -          .internal_static_google_storage_v2_Bucket_Cors_descriptor;
            +    public static final com.google.protobuf.Descriptors.Descriptor
            +        getDescriptor() {
            +      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Cors_descriptor;
                 }
             
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
            -      return com.google.storage.v2.StorageProto
            -          .internal_static_google_storage_v2_Bucket_Cors_fieldAccessorTable
            +      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Cors_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
            -              com.google.storage.v2.Bucket.Cors.class,
            -              com.google.storage.v2.Bucket.Cors.Builder.class);
            +              com.google.storage.v2.Bucket.Cors.class, com.google.storage.v2.Bucket.Cors.Builder.class);
                 }
             
                 public static final int ORIGIN_FIELD_NUMBER = 1;
            -
                 @SuppressWarnings("serial")
                 private com.google.protobuf.LazyStringArrayList origin_ =
                     com.google.protobuf.LazyStringArrayList.emptyList();
                 /**
            -     *
            -     *
                  * 
                  * The list of Origins eligible to receive CORS response headers. See
                  * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
            @@ -881,15 +794,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                  * 
            * * repeated string origin = 1; - * * @return A list containing the origin. */ - public com.google.protobuf.ProtocolStringList getOriginList() { + public com.google.protobuf.ProtocolStringList + getOriginList() { return origin_; } /** - * - * *
                  * The list of Origins eligible to receive CORS response headers. See
                  * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
            @@ -897,15 +808,12 @@ public com.google.protobuf.ProtocolStringList getOriginList() {
                  * 
            * * repeated string origin = 1; - * * @return The count of origin. */ public int getOriginCount() { return origin_.size(); } /** - * - * *
                  * The list of Origins eligible to receive CORS response headers. See
                  * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
            @@ -913,7 +821,6 @@ public int getOriginCount() {
                  * 
            * * repeated string origin = 1; - * * @param index The index of the element to return. * @return The origin at the given index. */ @@ -921,8 +828,6 @@ public java.lang.String getOrigin(int index) { return origin_.get(index); } /** - * - * *
                  * The list of Origins eligible to receive CORS response headers. See
                  * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
            @@ -930,22 +835,19 @@ public java.lang.String getOrigin(int index) {
                  * 
            * * repeated string origin = 1; - * * @param index The index of the value to return. * @return The bytes of the origin at the given index. */ - public com.google.protobuf.ByteString getOriginBytes(int index) { + public com.google.protobuf.ByteString + getOriginBytes(int index) { return origin_.getByteString(index); } public static final int METHOD_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList method_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
                  * The list of HTTP methods on which to include CORS response headers,
                  * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
            @@ -953,15 +855,13 @@ public com.google.protobuf.ByteString getOriginBytes(int index) {
                  * 
            * * repeated string method = 2; - * * @return A list containing the method. */ - public com.google.protobuf.ProtocolStringList getMethodList() { + public com.google.protobuf.ProtocolStringList + getMethodList() { return method_; } /** - * - * *
                  * The list of HTTP methods on which to include CORS response headers,
                  * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
            @@ -969,15 +869,12 @@ public com.google.protobuf.ProtocolStringList getMethodList() {
                  * 
            * * repeated string method = 2; - * * @return The count of method. */ public int getMethodCount() { return method_.size(); } /** - * - * *
                  * The list of HTTP methods on which to include CORS response headers,
                  * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
            @@ -985,7 +882,6 @@ public int getMethodCount() {
                  * 
            * * repeated string method = 2; - * * @param index The index of the element to return. * @return The method at the given index. */ @@ -993,8 +889,6 @@ public java.lang.String getMethod(int index) { return method_.get(index); } /** - * - * *
                  * The list of HTTP methods on which to include CORS response headers,
                  * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
            @@ -1002,22 +896,19 @@ public java.lang.String getMethod(int index) {
                  * 
            * * repeated string method = 2; - * * @param index The index of the value to return. * @return The bytes of the method at the given index. */ - public com.google.protobuf.ByteString getMethodBytes(int index) { + public com.google.protobuf.ByteString + getMethodBytes(int index) { return method_.getByteString(index); } public static final int RESPONSE_HEADER_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList responseHeader_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
                  * The list of HTTP headers other than the
                  * [https://www.w3.org/TR/cors/#simple-response-header][simple response
            @@ -1025,15 +916,13 @@ public com.google.protobuf.ByteString getMethodBytes(int index) {
                  * 
            * * repeated string response_header = 3; - * * @return A list containing the responseHeader. */ - public com.google.protobuf.ProtocolStringList getResponseHeaderList() { + public com.google.protobuf.ProtocolStringList + getResponseHeaderList() { return responseHeader_; } /** - * - * *
                  * The list of HTTP headers other than the
                  * [https://www.w3.org/TR/cors/#simple-response-header][simple response
            @@ -1041,15 +930,12 @@ public com.google.protobuf.ProtocolStringList getResponseHeaderList() {
                  * 
            * * repeated string response_header = 3; - * * @return The count of responseHeader. */ public int getResponseHeaderCount() { return responseHeader_.size(); } /** - * - * *
                  * The list of HTTP headers other than the
                  * [https://www.w3.org/TR/cors/#simple-response-header][simple response
            @@ -1057,7 +943,6 @@ public int getResponseHeaderCount() {
                  * 
            * * repeated string response_header = 3; - * * @param index The index of the element to return. * @return The responseHeader at the given index. */ @@ -1065,8 +950,6 @@ public java.lang.String getResponseHeader(int index) { return responseHeader_.get(index); } /** - * - * *
                  * The list of HTTP headers other than the
                  * [https://www.w3.org/TR/cors/#simple-response-header][simple response
            @@ -1074,19 +957,17 @@ public java.lang.String getResponseHeader(int index) {
                  * 
            * * repeated string response_header = 3; - * * @param index The index of the value to return. * @return The bytes of the responseHeader at the given index. */ - public com.google.protobuf.ByteString getResponseHeaderBytes(int index) { + public com.google.protobuf.ByteString + getResponseHeaderBytes(int index) { return responseHeader_.getByteString(index); } public static final int MAX_AGE_SECONDS_FIELD_NUMBER = 4; private int maxAgeSeconds_ = 0; /** - * - * *
                  * The value, in seconds, to return in the
                  * [https://www.w3.org/TR/cors/#access-control-max-age-response-header][Access-Control-Max-Age
            @@ -1094,7 +975,6 @@ public com.google.protobuf.ByteString getResponseHeaderBytes(int index) {
                  * 
            * * int32 max_age_seconds = 4; - * * @return The maxAgeSeconds. */ @java.lang.Override @@ -1103,7 +983,6 @@ public int getMaxAgeSeconds() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1115,7 +994,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < origin_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, origin_.getRaw(i)); } @@ -1162,7 +1042,8 @@ public int getSerializedSize() { size += 1 * getResponseHeaderList().size(); } if (maxAgeSeconds_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, maxAgeSeconds_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, maxAgeSeconds_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1172,17 +1053,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.Bucket.Cors)) { return super.equals(obj); } com.google.storage.v2.Bucket.Cors other = (com.google.storage.v2.Bucket.Cors) obj; - if (!getOriginList().equals(other.getOriginList())) return false; - if (!getMethodList().equals(other.getMethodList())) return false; - if (!getResponseHeaderList().equals(other.getResponseHeaderList())) return false; - if (getMaxAgeSeconds() != other.getMaxAgeSeconds()) return false; + if (!getOriginList() + .equals(other.getOriginList())) return false; + if (!getMethodList() + .equals(other.getMethodList())) return false; + if (!getResponseHeaderList() + .equals(other.getResponseHeaderList())) return false; + if (getMaxAgeSeconds() + != other.getMaxAgeSeconds()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1213,93 +1098,90 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.Bucket.Cors parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.Bucket.Cors parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Cors parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.v2.Bucket.Cors parseFrom(com.google.protobuf.ByteString data) + public static com.google.storage.v2.Bucket.Cors parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Cors parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.Cors parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Cors parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.Cors parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.Bucket.Cors parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.storage.v2.Bucket.Cors parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.Bucket.Cors parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.Bucket.Cors parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.Bucket.Cors parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.Bucket.Cors prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1309,8 +1191,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
                  * Cross-Origin Response sharing (CORS) properties for a bucket.
                  * For more on Cloud Storage and CORS, see
            @@ -1320,48 +1200,51 @@ protected Builder newBuilderForType(
                  *
                  * Protobuf type {@code google.storage.v2.Bucket.Cors}
                  */
            -    public static final class Builder
            -        extends com.google.protobuf.GeneratedMessageV3.Builder
            -        implements
            +    public static final class Builder extends
            +        com.google.protobuf.GeneratedMessageV3.Builder implements
                     // @@protoc_insertion_point(builder_implements:google.storage.v2.Bucket.Cors)
                     com.google.storage.v2.Bucket.CorsOrBuilder {
            -      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            -        return com.google.storage.v2.StorageProto
            -            .internal_static_google_storage_v2_Bucket_Cors_descriptor;
            +      public static final com.google.protobuf.Descriptors.Descriptor
            +          getDescriptor() {
            +        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Cors_descriptor;
                   }
             
                   @java.lang.Override
                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                       internalGetFieldAccessorTable() {
            -        return com.google.storage.v2.StorageProto
            -            .internal_static_google_storage_v2_Bucket_Cors_fieldAccessorTable
            +        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Cors_fieldAccessorTable
                         .ensureFieldAccessorsInitialized(
            -                com.google.storage.v2.Bucket.Cors.class,
            -                com.google.storage.v2.Bucket.Cors.Builder.class);
            +                com.google.storage.v2.Bucket.Cors.class, com.google.storage.v2.Bucket.Cors.Builder.class);
                   }
             
                   // Construct using com.google.storage.v2.Bucket.Cors.newBuilder()
            -      private Builder() {}
            +      private Builder() {
             
            -      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            -        super(parent);
                   }
             
            +      private Builder(
            +          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            +        super(parent);
            +
            +      }
                   @java.lang.Override
                   public Builder clear() {
                     super.clear();
                     bitField0_ = 0;
            -        origin_ = com.google.protobuf.LazyStringArrayList.emptyList();
            -        method_ = com.google.protobuf.LazyStringArrayList.emptyList();
            -        responseHeader_ = com.google.protobuf.LazyStringArrayList.emptyList();
            +        origin_ =
            +            com.google.protobuf.LazyStringArrayList.emptyList();
            +        method_ =
            +            com.google.protobuf.LazyStringArrayList.emptyList();
            +        responseHeader_ =
            +            com.google.protobuf.LazyStringArrayList.emptyList();
                     maxAgeSeconds_ = 0;
                     return this;
                   }
             
                   @java.lang.Override
            -      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            -        return com.google.storage.v2.StorageProto
            -            .internal_static_google_storage_v2_Bucket_Cors_descriptor;
            +      public com.google.protobuf.Descriptors.Descriptor
            +          getDescriptorForType() {
            +        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Cors_descriptor;
                   }
             
                   @java.lang.Override
            @@ -1381,9 +1264,7 @@ public com.google.storage.v2.Bucket.Cors build() {
                   @java.lang.Override
                   public com.google.storage.v2.Bucket.Cors buildPartial() {
                     com.google.storage.v2.Bucket.Cors result = new com.google.storage.v2.Bucket.Cors(this);
            -        if (bitField0_ != 0) {
            -          buildPartial0(result);
            -        }
            +        if (bitField0_ != 0) { buildPartial0(result); }
                     onBuilt();
                     return result;
                   }
            @@ -1411,41 +1292,38 @@ private void buildPartial0(com.google.storage.v2.Bucket.Cors result) {
                   public Builder clone() {
                     return super.clone();
                   }
            -
                   @java.lang.Override
                   public Builder setField(
            -          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
            +          com.google.protobuf.Descriptors.FieldDescriptor field,
            +          java.lang.Object value) {
                     return super.setField(field, value);
                   }
            -
                   @java.lang.Override
            -      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
            +      public Builder clearField(
            +          com.google.protobuf.Descriptors.FieldDescriptor field) {
                     return super.clearField(field);
                   }
            -
                   @java.lang.Override
            -      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
            +      public Builder clearOneof(
            +          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                     return super.clearOneof(oneof);
                   }
            -
                   @java.lang.Override
                   public Builder setRepeatedField(
                       com.google.protobuf.Descriptors.FieldDescriptor field,
            -          int index,
            -          java.lang.Object value) {
            +          int index, java.lang.Object value) {
                     return super.setRepeatedField(field, index, value);
                   }
            -
                   @java.lang.Override
                   public Builder addRepeatedField(
            -          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
            +          com.google.protobuf.Descriptors.FieldDescriptor field,
            +          java.lang.Object value) {
                     return super.addRepeatedField(field, value);
                   }
            -
                   @java.lang.Override
                   public Builder mergeFrom(com.google.protobuf.Message other) {
                     if (other instanceof com.google.storage.v2.Bucket.Cors) {
            -          return mergeFrom((com.google.storage.v2.Bucket.Cors) other);
            +          return mergeFrom((com.google.storage.v2.Bucket.Cors)other);
                     } else {
                       super.mergeFrom(other);
                       return this;
            @@ -1513,40 +1391,35 @@ public Builder mergeFrom(
                           case 0:
                             done = true;
                             break;
            -              case 10:
            -                {
            -                  java.lang.String s = input.readStringRequireUtf8();
            -                  ensureOriginIsMutable();
            -                  origin_.add(s);
            -                  break;
            -                } // case 10
            -              case 18:
            -                {
            -                  java.lang.String s = input.readStringRequireUtf8();
            -                  ensureMethodIsMutable();
            -                  method_.add(s);
            -                  break;
            -                } // case 18
            -              case 26:
            -                {
            -                  java.lang.String s = input.readStringRequireUtf8();
            -                  ensureResponseHeaderIsMutable();
            -                  responseHeader_.add(s);
            -                  break;
            -                } // case 26
            -              case 32:
            -                {
            -                  maxAgeSeconds_ = input.readInt32();
            -                  bitField0_ |= 0x00000008;
            -                  break;
            -                } // case 32
            -              default:
            -                {
            -                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            -                    done = true; // was an endgroup tag
            -                  }
            -                  break;
            -                } // default:
            +              case 10: {
            +                java.lang.String s = input.readStringRequireUtf8();
            +                ensureOriginIsMutable();
            +                origin_.add(s);
            +                break;
            +              } // case 10
            +              case 18: {
            +                java.lang.String s = input.readStringRequireUtf8();
            +                ensureMethodIsMutable();
            +                method_.add(s);
            +                break;
            +              } // case 18
            +              case 26: {
            +                java.lang.String s = input.readStringRequireUtf8();
            +                ensureResponseHeaderIsMutable();
            +                responseHeader_.add(s);
            +                break;
            +              } // case 26
            +              case 32: {
            +                maxAgeSeconds_ = input.readInt32();
            +                bitField0_ |= 0x00000008;
            +                break;
            +              } // case 32
            +              default: {
            +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            +                  done = true; // was an endgroup tag
            +                }
            +                break;
            +              } // default:
                         } // switch (tag)
                       } // while (!done)
                     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            @@ -1556,12 +1429,10 @@ public Builder mergeFrom(
                     } // finally
                     return this;
                   }
            -
                   private int bitField0_;
             
                   private com.google.protobuf.LazyStringArrayList origin_ =
                       com.google.protobuf.LazyStringArrayList.emptyList();
            -
                   private void ensureOriginIsMutable() {
                     if (!origin_.isModifiable()) {
                       origin_ = new com.google.protobuf.LazyStringArrayList(origin_);
            @@ -1569,8 +1440,6 @@ private void ensureOriginIsMutable() {
                     bitField0_ |= 0x00000001;
                   }
                   /**
            -       *
            -       *
                    * 
                    * The list of Origins eligible to receive CORS response headers. See
                    * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
            @@ -1578,16 +1447,14 @@ private void ensureOriginIsMutable() {
                    * 
            * * repeated string origin = 1; - * * @return A list containing the origin. */ - public com.google.protobuf.ProtocolStringList getOriginList() { + public com.google.protobuf.ProtocolStringList + getOriginList() { origin_.makeImmutable(); return origin_; } /** - * - * *
                    * The list of Origins eligible to receive CORS response headers. See
                    * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
            @@ -1595,15 +1462,12 @@ public com.google.protobuf.ProtocolStringList getOriginList() {
                    * 
            * * repeated string origin = 1; - * * @return The count of origin. */ public int getOriginCount() { return origin_.size(); } /** - * - * *
                    * The list of Origins eligible to receive CORS response headers. See
                    * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
            @@ -1611,7 +1475,6 @@ public int getOriginCount() {
                    * 
            * * repeated string origin = 1; - * * @param index The index of the element to return. * @return The origin at the given index. */ @@ -1619,8 +1482,6 @@ public java.lang.String getOrigin(int index) { return origin_.get(index); } /** - * - * *
                    * The list of Origins eligible to receive CORS response headers. See
                    * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
            @@ -1628,16 +1489,14 @@ public java.lang.String getOrigin(int index) {
                    * 
            * * repeated string origin = 1; - * * @param index The index of the value to return. * @return The bytes of the origin at the given index. */ - public com.google.protobuf.ByteString getOriginBytes(int index) { + public com.google.protobuf.ByteString + getOriginBytes(int index) { return origin_.getByteString(index); } /** - * - * *
                    * The list of Origins eligible to receive CORS response headers. See
                    * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
            @@ -1645,15 +1504,13 @@ public com.google.protobuf.ByteString getOriginBytes(int index) {
                    * 
            * * repeated string origin = 1; - * * @param index The index to set the value at. * @param value The origin to set. * @return This builder for chaining. */ - public Builder setOrigin(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrigin( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureOriginIsMutable(); origin_.set(index, value); bitField0_ |= 0x00000001; @@ -1661,8 +1518,6 @@ public Builder setOrigin(int index, java.lang.String value) { return this; } /** - * - * *
                    * The list of Origins eligible to receive CORS response headers. See
                    * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
            @@ -1670,14 +1525,12 @@ public Builder setOrigin(int index, java.lang.String value) {
                    * 
            * * repeated string origin = 1; - * * @param value The origin to add. * @return This builder for chaining. */ - public Builder addOrigin(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addOrigin( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureOriginIsMutable(); origin_.add(value); bitField0_ |= 0x00000001; @@ -1685,8 +1538,6 @@ public Builder addOrigin(java.lang.String value) { return this; } /** - * - * *
                    * The list of Origins eligible to receive CORS response headers. See
                    * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
            @@ -1694,20 +1545,19 @@ public Builder addOrigin(java.lang.String value) {
                    * 
            * * repeated string origin = 1; - * * @param values The origin to add. * @return This builder for chaining. */ - public Builder addAllOrigin(java.lang.Iterable values) { + public Builder addAllOrigin( + java.lang.Iterable values) { ensureOriginIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, origin_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, origin_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                    * The list of Origins eligible to receive CORS response headers. See
                    * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
            @@ -1715,19 +1565,16 @@ public Builder addAllOrigin(java.lang.Iterable values) {
                    * 
            * * repeated string origin = 1; - * * @return This builder for chaining. */ public Builder clearOrigin() { - origin_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + origin_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
                    * The list of Origins eligible to receive CORS response headers. See
                    * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
            @@ -1735,14 +1582,12 @@ public Builder clearOrigin() {
                    * 
            * * repeated string origin = 1; - * * @param value The bytes of the origin to add. * @return This builder for chaining. */ - public Builder addOriginBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addOriginBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureOriginIsMutable(); origin_.add(value); @@ -1753,7 +1598,6 @@ public Builder addOriginBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList method_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureMethodIsMutable() { if (!method_.isModifiable()) { method_ = new com.google.protobuf.LazyStringArrayList(method_); @@ -1761,8 +1605,6 @@ private void ensureMethodIsMutable() { bitField0_ |= 0x00000002; } /** - * - * *
                    * The list of HTTP methods on which to include CORS response headers,
                    * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
            @@ -1770,16 +1612,14 @@ private void ensureMethodIsMutable() {
                    * 
            * * repeated string method = 2; - * * @return A list containing the method. */ - public com.google.protobuf.ProtocolStringList getMethodList() { + public com.google.protobuf.ProtocolStringList + getMethodList() { method_.makeImmutable(); return method_; } /** - * - * *
                    * The list of HTTP methods on which to include CORS response headers,
                    * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
            @@ -1787,15 +1627,12 @@ public com.google.protobuf.ProtocolStringList getMethodList() {
                    * 
            * * repeated string method = 2; - * * @return The count of method. */ public int getMethodCount() { return method_.size(); } /** - * - * *
                    * The list of HTTP methods on which to include CORS response headers,
                    * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
            @@ -1803,7 +1640,6 @@ public int getMethodCount() {
                    * 
            * * repeated string method = 2; - * * @param index The index of the element to return. * @return The method at the given index. */ @@ -1811,8 +1647,6 @@ public java.lang.String getMethod(int index) { return method_.get(index); } /** - * - * *
                    * The list of HTTP methods on which to include CORS response headers,
                    * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
            @@ -1820,16 +1654,14 @@ public java.lang.String getMethod(int index) {
                    * 
            * * repeated string method = 2; - * * @param index The index of the value to return. * @return The bytes of the method at the given index. */ - public com.google.protobuf.ByteString getMethodBytes(int index) { + public com.google.protobuf.ByteString + getMethodBytes(int index) { return method_.getByteString(index); } /** - * - * *
                    * The list of HTTP methods on which to include CORS response headers,
                    * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
            @@ -1837,15 +1669,13 @@ public com.google.protobuf.ByteString getMethodBytes(int index) {
                    * 
            * * repeated string method = 2; - * * @param index The index to set the value at. * @param value The method to set. * @return This builder for chaining. */ - public Builder setMethod(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMethod( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureMethodIsMutable(); method_.set(index, value); bitField0_ |= 0x00000002; @@ -1853,8 +1683,6 @@ public Builder setMethod(int index, java.lang.String value) { return this; } /** - * - * *
                    * The list of HTTP methods on which to include CORS response headers,
                    * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
            @@ -1862,14 +1690,12 @@ public Builder setMethod(int index, java.lang.String value) {
                    * 
            * * repeated string method = 2; - * * @param value The method to add. * @return This builder for chaining. */ - public Builder addMethod(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addMethod( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureMethodIsMutable(); method_.add(value); bitField0_ |= 0x00000002; @@ -1877,8 +1703,6 @@ public Builder addMethod(java.lang.String value) { return this; } /** - * - * *
                    * The list of HTTP methods on which to include CORS response headers,
                    * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
            @@ -1886,20 +1710,19 @@ public Builder addMethod(java.lang.String value) {
                    * 
            * * repeated string method = 2; - * * @param values The method to add. * @return This builder for chaining. */ - public Builder addAllMethod(java.lang.Iterable values) { + public Builder addAllMethod( + java.lang.Iterable values) { ensureMethodIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, method_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, method_); bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                    * The list of HTTP methods on which to include CORS response headers,
                    * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
            @@ -1907,19 +1730,16 @@ public Builder addAllMethod(java.lang.Iterable values) {
                    * 
            * * repeated string method = 2; - * * @return This builder for chaining. */ public Builder clearMethod() { - method_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + method_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** - * - * *
                    * The list of HTTP methods on which to include CORS response headers,
                    * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
            @@ -1927,14 +1747,12 @@ public Builder clearMethod() {
                    * 
            * * repeated string method = 2; - * * @param value The bytes of the method to add. * @return This builder for chaining. */ - public Builder addMethodBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addMethodBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureMethodIsMutable(); method_.add(value); @@ -1945,7 +1763,6 @@ public Builder addMethodBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList responseHeader_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureResponseHeaderIsMutable() { if (!responseHeader_.isModifiable()) { responseHeader_ = new com.google.protobuf.LazyStringArrayList(responseHeader_); @@ -1953,8 +1770,6 @@ private void ensureResponseHeaderIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
                    * The list of HTTP headers other than the
                    * [https://www.w3.org/TR/cors/#simple-response-header][simple response
            @@ -1962,16 +1777,14 @@ private void ensureResponseHeaderIsMutable() {
                    * 
            * * repeated string response_header = 3; - * * @return A list containing the responseHeader. */ - public com.google.protobuf.ProtocolStringList getResponseHeaderList() { + public com.google.protobuf.ProtocolStringList + getResponseHeaderList() { responseHeader_.makeImmutable(); return responseHeader_; } /** - * - * *
                    * The list of HTTP headers other than the
                    * [https://www.w3.org/TR/cors/#simple-response-header][simple response
            @@ -1979,15 +1792,12 @@ public com.google.protobuf.ProtocolStringList getResponseHeaderList() {
                    * 
            * * repeated string response_header = 3; - * * @return The count of responseHeader. */ public int getResponseHeaderCount() { return responseHeader_.size(); } /** - * - * *
                    * The list of HTTP headers other than the
                    * [https://www.w3.org/TR/cors/#simple-response-header][simple response
            @@ -1995,7 +1805,6 @@ public int getResponseHeaderCount() {
                    * 
            * * repeated string response_header = 3; - * * @param index The index of the element to return. * @return The responseHeader at the given index. */ @@ -2003,8 +1812,6 @@ public java.lang.String getResponseHeader(int index) { return responseHeader_.get(index); } /** - * - * *
                    * The list of HTTP headers other than the
                    * [https://www.w3.org/TR/cors/#simple-response-header][simple response
            @@ -2012,16 +1819,14 @@ public java.lang.String getResponseHeader(int index) {
                    * 
            * * repeated string response_header = 3; - * * @param index The index of the value to return. * @return The bytes of the responseHeader at the given index. */ - public com.google.protobuf.ByteString getResponseHeaderBytes(int index) { + public com.google.protobuf.ByteString + getResponseHeaderBytes(int index) { return responseHeader_.getByteString(index); } /** - * - * *
                    * The list of HTTP headers other than the
                    * [https://www.w3.org/TR/cors/#simple-response-header][simple response
            @@ -2029,15 +1834,13 @@ public com.google.protobuf.ByteString getResponseHeaderBytes(int index) {
                    * 
            * * repeated string response_header = 3; - * * @param index The index to set the value at. * @param value The responseHeader to set. * @return This builder for chaining. */ - public Builder setResponseHeader(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResponseHeader( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureResponseHeaderIsMutable(); responseHeader_.set(index, value); bitField0_ |= 0x00000004; @@ -2045,8 +1848,6 @@ public Builder setResponseHeader(int index, java.lang.String value) { return this; } /** - * - * *
                    * The list of HTTP headers other than the
                    * [https://www.w3.org/TR/cors/#simple-response-header][simple response
            @@ -2054,14 +1855,12 @@ public Builder setResponseHeader(int index, java.lang.String value) {
                    * 
            * * repeated string response_header = 3; - * * @param value The responseHeader to add. * @return This builder for chaining. */ - public Builder addResponseHeader(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addResponseHeader( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureResponseHeaderIsMutable(); responseHeader_.add(value); bitField0_ |= 0x00000004; @@ -2069,8 +1868,6 @@ public Builder addResponseHeader(java.lang.String value) { return this; } /** - * - * *
                    * The list of HTTP headers other than the
                    * [https://www.w3.org/TR/cors/#simple-response-header][simple response
            @@ -2078,20 +1875,19 @@ public Builder addResponseHeader(java.lang.String value) {
                    * 
            * * repeated string response_header = 3; - * * @param values The responseHeader to add. * @return This builder for chaining. */ - public Builder addAllResponseHeader(java.lang.Iterable values) { + public Builder addAllResponseHeader( + java.lang.Iterable values) { ensureResponseHeaderIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, responseHeader_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, responseHeader_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
                    * The list of HTTP headers other than the
                    * [https://www.w3.org/TR/cors/#simple-response-header][simple response
            @@ -2099,19 +1895,16 @@ public Builder addAllResponseHeader(java.lang.Iterable values)
                    * 
            * * repeated string response_header = 3; - * * @return This builder for chaining. */ public Builder clearResponseHeader() { - responseHeader_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + responseHeader_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
                    * The list of HTTP headers other than the
                    * [https://www.w3.org/TR/cors/#simple-response-header][simple response
            @@ -2119,14 +1912,12 @@ public Builder clearResponseHeader() {
                    * 
            * * repeated string response_header = 3; - * * @param value The bytes of the responseHeader to add. * @return This builder for chaining. */ - public Builder addResponseHeaderBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addResponseHeaderBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureResponseHeaderIsMutable(); responseHeader_.add(value); @@ -2135,10 +1926,8 @@ public Builder addResponseHeaderBytes(com.google.protobuf.ByteString value) { return this; } - private int maxAgeSeconds_; + private int maxAgeSeconds_ ; /** - * - * *
                    * The value, in seconds, to return in the
                    * [https://www.w3.org/TR/cors/#access-control-max-age-response-header][Access-Control-Max-Age
            @@ -2146,7 +1935,6 @@ public Builder addResponseHeaderBytes(com.google.protobuf.ByteString value) {
                    * 
            * * int32 max_age_seconds = 4; - * * @return The maxAgeSeconds. */ @java.lang.Override @@ -2154,8 +1942,6 @@ public int getMaxAgeSeconds() { return maxAgeSeconds_; } /** - * - * *
                    * The value, in seconds, to return in the
                    * [https://www.w3.org/TR/cors/#access-control-max-age-response-header][Access-Control-Max-Age
            @@ -2163,7 +1949,6 @@ public int getMaxAgeSeconds() {
                    * 
            * * int32 max_age_seconds = 4; - * * @param value The maxAgeSeconds to set. * @return This builder for chaining. */ @@ -2175,8 +1960,6 @@ public Builder setMaxAgeSeconds(int value) { return this; } /** - * - * *
                    * The value, in seconds, to return in the
                    * [https://www.w3.org/TR/cors/#access-control-max-age-response-header][Access-Control-Max-Age
            @@ -2184,7 +1967,6 @@ public Builder setMaxAgeSeconds(int value) {
                    * 
            * * int32 max_age_seconds = 4; - * * @return This builder for chaining. */ public Builder clearMaxAgeSeconds() { @@ -2193,7 +1975,6 @@ public Builder clearMaxAgeSeconds() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2206,12 +1987,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.Bucket.Cors) } // @@protoc_insertion_point(class_scope:google.storage.v2.Bucket.Cors) private static final com.google.storage.v2.Bucket.Cors DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.Bucket.Cors(); } @@ -2220,28 +2001,27 @@ public static com.google.storage.v2.Bucket.Cors getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Cors parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Cors parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2256,98 +2036,85 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.Cors getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface EncryptionOrBuilder - extends + public interface EncryptionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.Encryption) com.google.protobuf.MessageOrBuilder { /** - * - * *
                  * The name of the Cloud KMS key that will be used to encrypt objects
                  * inserted into this bucket, if no encryption method is specified.
                  * 
            * * string default_kms_key = 1 [(.google.api.resource_reference) = { ... } - * * @return The defaultKmsKey. */ java.lang.String getDefaultKmsKey(); /** - * - * *
                  * The name of the Cloud KMS key that will be used to encrypt objects
                  * inserted into this bucket, if no encryption method is specified.
                  * 
            * * string default_kms_key = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for defaultKmsKey. */ - com.google.protobuf.ByteString getDefaultKmsKeyBytes(); + com.google.protobuf.ByteString + getDefaultKmsKeyBytes(); } /** - * - * *
                * Encryption properties of a bucket.
                * 
            * * Protobuf type {@code google.storage.v2.Bucket.Encryption} */ - public static final class Encryption extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Encryption extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.Encryption) EncryptionOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Encryption.newBuilder() to construct. private Encryption(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Encryption() { defaultKmsKey_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Encryption(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Encryption_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Encryption_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Encryption_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Encryption_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.Encryption.class, - com.google.storage.v2.Bucket.Encryption.Builder.class); + com.google.storage.v2.Bucket.Encryption.class, com.google.storage.v2.Bucket.Encryption.Builder.class); } public static final int DEFAULT_KMS_KEY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object defaultKmsKey_ = ""; /** - * - * *
                  * The name of the Cloud KMS key that will be used to encrypt objects
                  * inserted into this bucket, if no encryption method is specified.
                  * 
            * * string default_kms_key = 1 [(.google.api.resource_reference) = { ... } - * * @return The defaultKmsKey. */ @java.lang.Override @@ -2356,30 +2123,30 @@ public java.lang.String getDefaultKmsKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); defaultKmsKey_ = s; return s; } } /** - * - * *
                  * The name of the Cloud KMS key that will be used to encrypt objects
                  * inserted into this bucket, if no encryption method is specified.
                  * 
            * * string default_kms_key = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for defaultKmsKey. */ @java.lang.Override - public com.google.protobuf.ByteString getDefaultKmsKeyBytes() { + public com.google.protobuf.ByteString + getDefaultKmsKeyBytes() { java.lang.Object ref = defaultKmsKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); defaultKmsKey_ = b; return b; } else { @@ -2388,7 +2155,6 @@ public com.google.protobuf.ByteString getDefaultKmsKeyBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2400,7 +2166,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultKmsKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, defaultKmsKey_); } @@ -2424,14 +2191,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.Bucket.Encryption)) { return super.equals(obj); } com.google.storage.v2.Bucket.Encryption other = (com.google.storage.v2.Bucket.Encryption) obj; - if (!getDefaultKmsKey().equals(other.getDefaultKmsKey())) return false; + if (!getDefaultKmsKey() + .equals(other.getDefaultKmsKey())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2450,94 +2218,90 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.Bucket.Encryption parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.Bucket.Encryption parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Encryption parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.Encryption parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Encryption parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.Encryption parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Encryption parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.Encryption parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.Bucket.Encryption parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.Bucket.Encryption parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.Bucket.Encryption parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.Bucket.Encryption parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.Bucket.Encryption parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.Bucket.Encryption parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.Bucket.Encryption prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2547,41 +2311,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
                  * Encryption properties of a bucket.
                  * 
            * * Protobuf type {@code google.storage.v2.Bucket.Encryption} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.Bucket.Encryption) com.google.storage.v2.Bucket.EncryptionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Encryption_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Encryption_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Encryption_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Encryption_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.Encryption.class, - com.google.storage.v2.Bucket.Encryption.Builder.class); + com.google.storage.v2.Bucket.Encryption.class, com.google.storage.v2.Bucket.Encryption.Builder.class); } // Construct using com.google.storage.v2.Bucket.Encryption.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2591,9 +2353,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Encryption_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Encryption_descriptor; } @java.lang.Override @@ -2612,11 +2374,8 @@ public com.google.storage.v2.Bucket.Encryption build() { @java.lang.Override public com.google.storage.v2.Bucket.Encryption buildPartial() { - com.google.storage.v2.Bucket.Encryption result = - new com.google.storage.v2.Bucket.Encryption(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.Bucket.Encryption result = new com.google.storage.v2.Bucket.Encryption(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -2632,41 +2391,38 @@ private void buildPartial0(com.google.storage.v2.Bucket.Encryption result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.Bucket.Encryption) { - return mergeFrom((com.google.storage.v2.Bucket.Encryption) other); + return mergeFrom((com.google.storage.v2.Bucket.Encryption)other); } else { super.mergeFrom(other); return this; @@ -2706,19 +2462,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - defaultKmsKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + defaultKmsKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2728,26 +2482,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object defaultKmsKey_ = ""; /** - * - * *
                    * The name of the Cloud KMS key that will be used to encrypt objects
                    * inserted into this bucket, if no encryption method is specified.
                    * 
            * * string default_kms_key = 1 [(.google.api.resource_reference) = { ... } - * * @return The defaultKmsKey. */ public java.lang.String getDefaultKmsKey() { java.lang.Object ref = defaultKmsKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); defaultKmsKey_ = s; return s; @@ -2756,22 +2507,21 @@ public java.lang.String getDefaultKmsKey() { } } /** - * - * *
                    * The name of the Cloud KMS key that will be used to encrypt objects
                    * inserted into this bucket, if no encryption method is specified.
                    * 
            * * string default_kms_key = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for defaultKmsKey. */ - public com.google.protobuf.ByteString getDefaultKmsKeyBytes() { + public com.google.protobuf.ByteString + getDefaultKmsKeyBytes() { java.lang.Object ref = defaultKmsKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); defaultKmsKey_ = b; return b; } else { @@ -2779,37 +2529,30 @@ public com.google.protobuf.ByteString getDefaultKmsKeyBytes() { } } /** - * - * *
                    * The name of the Cloud KMS key that will be used to encrypt objects
                    * inserted into this bucket, if no encryption method is specified.
                    * 
            * * string default_kms_key = 1 [(.google.api.resource_reference) = { ... } - * * @param value The defaultKmsKey to set. * @return This builder for chaining. */ - public Builder setDefaultKmsKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDefaultKmsKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } defaultKmsKey_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                    * The name of the Cloud KMS key that will be used to encrypt objects
                    * inserted into this bucket, if no encryption method is specified.
                    * 
            * * string default_kms_key = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearDefaultKmsKey() { @@ -2819,29 +2562,24 @@ public Builder clearDefaultKmsKey() { return this; } /** - * - * *
                    * The name of the Cloud KMS key that will be used to encrypt objects
                    * inserted into this bucket, if no encryption method is specified.
                    * 
            * * string default_kms_key = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for defaultKmsKey to set. * @return This builder for chaining. */ - public Builder setDefaultKmsKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDefaultKmsKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); defaultKmsKey_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2854,12 +2592,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(); } @@ -2868,28 +2606,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; @@ -2904,147 +2641,117 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.Encryption getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface IamConfigOrBuilder - extends + public interface IamConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.IamConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
                  * Bucket restriction options currently enforced on the bucket.
                  * 
            * - * - * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; - * - * + * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; * @return Whether the uniformBucketLevelAccess field is set. */ boolean hasUniformBucketLevelAccess(); /** - * - * *
                  * Bucket restriction options currently enforced on the bucket.
                  * 
            * - * - * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; - * - * + * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; * @return The uniformBucketLevelAccess. */ com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess getUniformBucketLevelAccess(); /** - * - * *
                  * Bucket restriction options currently enforced on the bucket.
                  * 
            * - * - * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; - * + * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; */ - com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccessOrBuilder - getUniformBucketLevelAccessOrBuilder(); + com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccessOrBuilder getUniformBucketLevelAccessOrBuilder(); /** - * - * *
                  * Whether IAM will enforce public access prevention. Valid values are
                  * "enforced" or "inherited".
                  * 
            * * string public_access_prevention = 3; - * * @return The publicAccessPrevention. */ java.lang.String getPublicAccessPrevention(); /** - * - * *
                  * Whether IAM will enforce public access prevention. Valid values are
                  * "enforced" or "inherited".
                  * 
            * * string public_access_prevention = 3; - * * @return The bytes for publicAccessPrevention. */ - com.google.protobuf.ByteString getPublicAccessPreventionBytes(); + com.google.protobuf.ByteString + getPublicAccessPreventionBytes(); } /** - * - * *
                * Bucket restriction options.
                * 
            * * Protobuf type {@code google.storage.v2.Bucket.IamConfig} */ - public static final class IamConfig extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class IamConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.IamConfig) IamConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IamConfig.newBuilder() to construct. private IamConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private IamConfig() { publicAccessPrevention_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new IamConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_IamConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_IamConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_IamConfig_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_IamConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.IamConfig.class, - com.google.storage.v2.Bucket.IamConfig.Builder.class); + com.google.storage.v2.Bucket.IamConfig.class, com.google.storage.v2.Bucket.IamConfig.Builder.class); } - public interface UniformBucketLevelAccessOrBuilder - extends + public interface UniformBucketLevelAccessOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess) com.google.protobuf.MessageOrBuilder { /** - * - * *
                    * If set, access checks only use bucket-level IAM policies or above.
                    * 
            * * bool enabled = 1; - * * @return The enabled. */ boolean getEnabled(); /** - * - * *
                    * The deadline time for changing
                    * `iam_config.uniform_bucket_level_access.enabled` from `true` to
            @@ -3053,13 +2760,10 @@ public interface UniformBucketLevelAccessOrBuilder
                    * 
            * * .google.protobuf.Timestamp lock_time = 2; - * * @return Whether the lockTime field is set. */ boolean hasLockTime(); /** - * - * *
                    * The deadline time for changing
                    * `iam_config.uniform_bucket_level_access.enabled` from `true` to
            @@ -3068,13 +2772,10 @@ public interface UniformBucketLevelAccessOrBuilder
                    * 
            * * .google.protobuf.Timestamp lock_time = 2; - * * @return The lockTime. */ com.google.protobuf.Timestamp getLockTime(); /** - * - * *
                    * The deadline time for changing
                    * `iam_config.uniform_bucket_level_access.enabled` from `true` to
            @@ -3087,8 +2788,6 @@ public interface UniformBucketLevelAccessOrBuilder
                   com.google.protobuf.TimestampOrBuilder getLockTimeOrBuilder();
                 }
                 /**
            -     *
            -     *
                  * 
                  * Settings for Uniform Bucket level access.
                  * See https://cloud.google.com/storage/docs/uniform-bucket-level-access.
            @@ -3096,52 +2795,47 @@ public interface UniformBucketLevelAccessOrBuilder
                  *
                  * Protobuf type {@code google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess}
                  */
            -    public static final class UniformBucketLevelAccess
            -        extends com.google.protobuf.GeneratedMessageV3
            -        implements
            +    public static final class UniformBucketLevelAccess extends
            +        com.google.protobuf.GeneratedMessageV3 implements
                     // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess)
                     UniformBucketLevelAccessOrBuilder {
            -      private static final long serialVersionUID = 0L;
            +    private static final long serialVersionUID = 0L;
                   // Use UniformBucketLevelAccess.newBuilder() to construct.
                   private UniformBucketLevelAccess(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                     super(builder);
                   }
            -
            -      private UniformBucketLevelAccess() {}
            +      private UniformBucketLevelAccess() {
            +      }
             
                   @java.lang.Override
                   @SuppressWarnings({"unused"})
            -      protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
            +      protected java.lang.Object newInstance(
            +          UnusedPrivateParameter unused) {
                     return new UniformBucketLevelAccess();
                   }
             
            -      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            -        return com.google.storage.v2.StorageProto
            -            .internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_descriptor;
            +      public static final com.google.protobuf.Descriptors.Descriptor
            +          getDescriptor() {
            +        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_descriptor;
                   }
             
                   @java.lang.Override
                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                       internalGetFieldAccessorTable() {
            -        return com.google.storage.v2.StorageProto
            -            .internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_fieldAccessorTable
            +        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_fieldAccessorTable
                         .ensureFieldAccessorsInitialized(
            -                com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.class,
            -                com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.Builder.class);
            +                com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.class, com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.Builder.class);
                   }
             
                   private int bitField0_;
                   public static final int ENABLED_FIELD_NUMBER = 1;
                   private boolean enabled_ = false;
                   /**
            -       *
            -       *
                    * 
                    * If set, access checks only use bucket-level IAM policies or above.
                    * 
            * * bool enabled = 1; - * * @return The enabled. */ @java.lang.Override @@ -3152,8 +2846,6 @@ public boolean getEnabled() { public static final int LOCK_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp lockTime_; /** - * - * *
                    * The deadline time for changing
                    * `iam_config.uniform_bucket_level_access.enabled` from `true` to
            @@ -3162,7 +2854,6 @@ public boolean getEnabled() {
                    * 
            * * .google.protobuf.Timestamp lock_time = 2; - * * @return Whether the lockTime field is set. */ @java.lang.Override @@ -3170,8 +2861,6 @@ public boolean hasLockTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                    * The deadline time for changing
                    * `iam_config.uniform_bucket_level_access.enabled` from `true` to
            @@ -3180,7 +2869,6 @@ public boolean hasLockTime() {
                    * 
            * * .google.protobuf.Timestamp lock_time = 2; - * * @return The lockTime. */ @java.lang.Override @@ -3188,8 +2876,6 @@ public com.google.protobuf.Timestamp getLockTime() { return lockTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lockTime_; } /** - * - * *
                    * The deadline time for changing
                    * `iam_config.uniform_bucket_level_access.enabled` from `true` to
            @@ -3205,7 +2891,6 @@ public com.google.protobuf.TimestampOrBuilder getLockTimeOrBuilder() {
                   }
             
                   private byte memoizedIsInitialized = -1;
            -
                   @java.lang.Override
                   public final boolean isInitialized() {
                     byte isInitialized = memoizedIsInitialized;
            @@ -3217,7 +2902,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_);
                     }
            @@ -3234,10 +2920,12 @@ public int getSerializedSize() {
             
                     size = 0;
                     if (enabled_ != false) {
            -          size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_);
            +          size += com.google.protobuf.CodedOutputStream
            +            .computeBoolSize(1, enabled_);
                     }
                     if (((bitField0_ & 0x00000001) != 0)) {
            -          size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLockTime());
            +          size += com.google.protobuf.CodedOutputStream
            +            .computeMessageSize(2, getLockTime());
                     }
                     size += getUnknownFields().getSerializedSize();
                     memoizedSize = size;
            @@ -3247,18 +2935,19 @@ public int getSerializedSize() {
                   @java.lang.Override
                   public boolean equals(final java.lang.Object obj) {
                     if (obj == this) {
            -          return true;
            +         return true;
                     }
                     if (!(obj instanceof com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess)) {
                       return super.equals(obj);
                     }
            -        com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess other =
            -            (com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess) obj;
            +        com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess other = (com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess) obj;
             
            -        if (getEnabled() != other.getEnabled()) return false;
            +        if (getEnabled()
            +            != other.getEnabled()) return false;
                     if (hasLockTime() != other.hasLockTime()) return false;
                     if (hasLockTime()) {
            -          if (!getLockTime().equals(other.getLockTime())) return false;
            +          if (!getLockTime()
            +              .equals(other.getLockTime())) return false;
                     }
                     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
                     return true;
            @@ -3272,7 +2961,8 @@ public int hashCode() {
                     int hash = 41;
                     hash = (19 * hash) + getDescriptor().hashCode();
                     hash = (37 * hash) + ENABLED_FIELD_NUMBER;
            -        hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled());
            +        hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
            +            getEnabled());
                     if (hasLockTime()) {
                       hash = (37 * hash) + LOCK_TIME_FIELD_NUMBER;
                       hash = (53 * hash) + getLockTime().hashCode();
            @@ -3283,96 +2973,89 @@ public int hashCode() {
                   }
             
                   public static com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess parseFrom(
            -          java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
            +          java.nio.ByteBuffer data)
            +          throws com.google.protobuf.InvalidProtocolBufferException {
                     return PARSER.parseFrom(data);
                   }
            -
                   public static com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess parseFrom(
            -          java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +          java.nio.ByteBuffer data,
            +          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                       throws com.google.protobuf.InvalidProtocolBufferException {
                     return PARSER.parseFrom(data, extensionRegistry);
                   }
            -
                   public static com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess parseFrom(
                       com.google.protobuf.ByteString data)
                       throws com.google.protobuf.InvalidProtocolBufferException {
                     return PARSER.parseFrom(data);
                   }
            -
                   public static com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess parseFrom(
                       com.google.protobuf.ByteString data,
                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                       throws com.google.protobuf.InvalidProtocolBufferException {
                     return PARSER.parseFrom(data, extensionRegistry);
                   }
            -
            -      public static com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess parseFrom(
            -          byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
            +      public static com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess parseFrom(byte[] data)
            +          throws com.google.protobuf.InvalidProtocolBufferException {
                     return PARSER.parseFrom(data);
                   }
            -
                   public static com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess parseFrom(
            -          byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +          byte[] data,
            +          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                       throws com.google.protobuf.InvalidProtocolBufferException {
                     return PARSER.parseFrom(data, extensionRegistry);
                   }
            -
            -      public static com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess parseFrom(
            -          java.io.InputStream input) throws java.io.IOException {
            -        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
            +      public static com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess parseFrom(java.io.InputStream input)
            +          throws java.io.IOException {
            +        return com.google.protobuf.GeneratedMessageV3
            +            .parseWithIOException(PARSER, input);
                   }
            -
                   public static com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess parseFrom(
            -          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +          java.io.InputStream input,
            +          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                       throws java.io.IOException {
            -        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            -            PARSER, input, extensionRegistry);
            +        return com.google.protobuf.GeneratedMessageV3
            +            .parseWithIOException(PARSER, input, extensionRegistry);
                   }
             
            -      public static com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess
            -          parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
            -        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
            +      public static com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess parseDelimitedFrom(java.io.InputStream input)
            +          throws java.io.IOException {
            +        return com.google.protobuf.GeneratedMessageV3
            +            .parseDelimitedWithIOException(PARSER, input);
                   }
             
            -      public static com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess
            -          parseDelimitedFrom(
            -              java.io.InputStream input,
            -              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            -              throws java.io.IOException {
            -        return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            -            PARSER, input, extensionRegistry);
            +      public static com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess parseDelimitedFrom(
            +          java.io.InputStream input,
            +          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +          throws java.io.IOException {
            +        return com.google.protobuf.GeneratedMessageV3
            +            .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
                   }
            -
                   public static com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess parseFrom(
            -          com.google.protobuf.CodedInputStream input) throws java.io.IOException {
            -        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
            +          com.google.protobuf.CodedInputStream input)
            +          throws java.io.IOException {
            +        return com.google.protobuf.GeneratedMessageV3
            +            .parseWithIOException(PARSER, input);
                   }
            -
                   public static com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess parseFrom(
                       com.google.protobuf.CodedInputStream input,
                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                       throws java.io.IOException {
            -        return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            -            PARSER, input, extensionRegistry);
            +        return com.google.protobuf.GeneratedMessageV3
            +            .parseWithIOException(PARSER, input, extensionRegistry);
                   }
             
                   @java.lang.Override
            -      public Builder newBuilderForType() {
            -        return newBuilder();
            -      }
            -
            +      public Builder newBuilderForType() { return newBuilder(); }
                   public static Builder newBuilder() {
                     return DEFAULT_INSTANCE.toBuilder();
                   }
            -
            -      public static Builder newBuilder(
            -          com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess prototype) {
            +      public static Builder newBuilder(com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess prototype) {
                     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
                   }
            -
                   @java.lang.Override
                   public Builder toBuilder() {
            -        return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
            +        return this == DEFAULT_INSTANCE
            +            ? new Builder() : new Builder().mergeFrom(this);
                   }
             
                   @java.lang.Override
            @@ -3382,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.
            @@ -3391,43 +3072,39 @@ protected Builder newBuilderForType(
                    *
                    * Protobuf type {@code google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess}
                    */
            -      public static final class Builder
            -          extends com.google.protobuf.GeneratedMessageV3.Builder
            -          implements
            +      public static final class Builder extends
            +          com.google.protobuf.GeneratedMessageV3.Builder implements
                       // @@protoc_insertion_point(builder_implements:google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess)
                       com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccessOrBuilder {
            -        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            -          return com.google.storage.v2.StorageProto
            -              .internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_descriptor;
            +        public static final com.google.protobuf.Descriptors.Descriptor
            +            getDescriptor() {
            +          return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_descriptor;
                     }
             
                     @java.lang.Override
                     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                         internalGetFieldAccessorTable() {
            -          return com.google.storage.v2.StorageProto
            -              .internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_fieldAccessorTable
            +          return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_fieldAccessorTable
                           .ensureFieldAccessorsInitialized(
            -                  com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.class,
            -                  com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.Builder.class);
            +                  com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.class, com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.Builder.class);
                     }
             
            -        // Construct using
            -        // com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.newBuilder()
            +        // Construct using com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.newBuilder()
                     private Builder() {
                       maybeForceBuilderInitialization();
                     }
             
            -        private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            +        private Builder(
            +            com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                       super(parent);
                       maybeForceBuilderInitialization();
                     }
            -
                     private void maybeForceBuilderInitialization() {
            -          if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
            +          if (com.google.protobuf.GeneratedMessageV3
            +                  .alwaysUseFieldBuilders) {
                         getLockTimeFieldBuilder();
                       }
                     }
            -
                     @java.lang.Override
                     public Builder clear() {
                       super.clear();
            @@ -3442,16 +3119,14 @@ public Builder clear() {
                     }
             
                     @java.lang.Override
            -        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            -          return com.google.storage.v2.StorageProto
            -              .internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_descriptor;
            +        public com.google.protobuf.Descriptors.Descriptor
            +            getDescriptorForType() {
            +          return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_descriptor;
                     }
             
                     @java.lang.Override
            -        public com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess
            -            getDefaultInstanceForType() {
            -          return com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess
            -              .getDefaultInstance();
            +        public com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess getDefaultInstanceForType() {
            +          return com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.getDefaultInstance();
                     }
             
                     @java.lang.Override
            @@ -3465,24 +3140,22 @@ public com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess build() {
             
                     @java.lang.Override
                     public com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess buildPartial() {
            -          com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess result =
            -              new com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess(this);
            -          if (bitField0_ != 0) {
            -            buildPartial0(result);
            -          }
            +          com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess result = new com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess(this);
            +          if (bitField0_ != 0) { buildPartial0(result); }
                       onBuilt();
                       return result;
                     }
             
            -        private void buildPartial0(
            -            com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess result) {
            +        private void buildPartial0(com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess result) {
                       int from_bitField0_ = bitField0_;
                       if (((from_bitField0_ & 0x00000001) != 0)) {
                         result.enabled_ = enabled_;
                       }
                       int to_bitField0_ = 0;
                       if (((from_bitField0_ & 0x00000002) != 0)) {
            -            result.lockTime_ = lockTimeBuilder_ == null ? lockTime_ : lockTimeBuilder_.build();
            +            result.lockTime_ = lockTimeBuilder_ == null
            +                ? lockTime_
            +                : lockTimeBuilder_.build();
                         to_bitField0_ |= 0x00000001;
                       }
                       result.bitField0_ |= to_bitField0_;
            @@ -3492,53 +3165,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());
                       }
            @@ -3571,25 +3237,24 @@ public Builder mergeFrom(
                             case 0:
                               done = true;
                               break;
            -                case 8:
            -                  {
            -                    enabled_ = input.readBool();
            -                    bitField0_ |= 0x00000001;
            -                    break;
            -                  } // case 8
            -                case 18:
            -                  {
            -                    input.readMessage(getLockTimeFieldBuilder().getBuilder(), extensionRegistry);
            -                    bitField0_ |= 0x00000002;
            -                    break;
            -                  } // case 18
            -                default:
            -                  {
            -                    if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            -                      done = true; // was an endgroup tag
            -                    }
            -                    break;
            -                  } // default:
            +                case 8: {
            +                  enabled_ = input.readBool();
            +                  bitField0_ |= 0x00000001;
            +                  break;
            +                } // case 8
            +                case 18: {
            +                  input.readMessage(
            +                      getLockTimeFieldBuilder().getBuilder(),
            +                      extensionRegistry);
            +                  bitField0_ |= 0x00000002;
            +                  break;
            +                } // case 18
            +                default: {
            +                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            +                    done = true; // was an endgroup tag
            +                  }
            +                  break;
            +                } // default:
                           } // switch (tag)
                         } // while (!done)
                       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            @@ -3599,19 +3264,15 @@ public Builder mergeFrom(
                       } // finally
                       return this;
                     }
            -
                     private int bitField0_;
             
            -        private boolean enabled_;
            +        private boolean enabled_ ;
                     /**
            -         *
            -         *
                      * 
                      * If set, access checks only use bucket-level IAM policies or above.
                      * 
            * * bool enabled = 1; - * * @return The enabled. */ @java.lang.Override @@ -3619,14 +3280,11 @@ public boolean getEnabled() { return enabled_; } /** - * - * *
                      * If set, access checks only use bucket-level IAM policies or above.
                      * 
            * * bool enabled = 1; - * * @param value The enabled to set. * @return This builder for chaining. */ @@ -3638,14 +3296,11 @@ public Builder setEnabled(boolean value) { return this; } /** - * - * *
                      * If set, access checks only use bucket-level IAM policies or above.
                      * 
            * * bool enabled = 1; - * * @return This builder for chaining. */ public Builder clearEnabled() { @@ -3657,13 +3312,8 @@ public Builder clearEnabled() { private com.google.protobuf.Timestamp lockTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - lockTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lockTimeBuilder_; /** - * - * *
                      * The deadline time for changing
                      * `iam_config.uniform_bucket_level_access.enabled` from `true` to
            @@ -3672,15 +3322,12 @@ public Builder clearEnabled() {
                      * 
            * * .google.protobuf.Timestamp lock_time = 2; - * * @return Whether the lockTime field is set. */ public boolean hasLockTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                      * The deadline time for changing
                      * `iam_config.uniform_bucket_level_access.enabled` from `true` to
            @@ -3689,21 +3336,16 @@ public boolean hasLockTime() {
                      * 
            * * .google.protobuf.Timestamp lock_time = 2; - * * @return The lockTime. */ public com.google.protobuf.Timestamp getLockTime() { if (lockTimeBuilder_ == null) { - return lockTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lockTime_; + return lockTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lockTime_; } else { return lockTimeBuilder_.getMessage(); } } /** - * - * *
                      * The deadline time for changing
                      * `iam_config.uniform_bucket_level_access.enabled` from `true` to
            @@ -3727,8 +3369,6 @@ public Builder setLockTime(com.google.protobuf.Timestamp value) {
                       return this;
                     }
                     /**
            -         *
            -         *
                      * 
                      * The deadline time for changing
                      * `iam_config.uniform_bucket_level_access.enabled` from `true` to
            @@ -3738,7 +3378,8 @@ public Builder setLockTime(com.google.protobuf.Timestamp value) {
                      *
                      * .google.protobuf.Timestamp lock_time = 2;
                      */
            -        public Builder setLockTime(com.google.protobuf.Timestamp.Builder builderForValue) {
            +        public Builder setLockTime(
            +            com.google.protobuf.Timestamp.Builder builderForValue) {
                       if (lockTimeBuilder_ == null) {
                         lockTime_ = builderForValue.build();
                       } else {
            @@ -3749,8 +3390,6 @@ public Builder setLockTime(com.google.protobuf.Timestamp.Builder builderForValue
                       return this;
                     }
                     /**
            -         *
            -         *
                      * 
                      * The deadline time for changing
                      * `iam_config.uniform_bucket_level_access.enabled` from `true` to
            @@ -3762,9 +3401,9 @@ public Builder setLockTime(com.google.protobuf.Timestamp.Builder builderForValue
                      */
                     public Builder mergeLockTime(com.google.protobuf.Timestamp value) {
                       if (lockTimeBuilder_ == null) {
            -            if (((bitField0_ & 0x00000002) != 0)
            -                && lockTime_ != null
            -                && lockTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
            +            if (((bitField0_ & 0x00000002) != 0) &&
            +              lockTime_ != null &&
            +              lockTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
                           getLockTimeBuilder().mergeFrom(value);
                         } else {
                           lockTime_ = value;
            @@ -3779,8 +3418,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
            @@ -3801,8 +3438,6 @@ public Builder clearLockTime() {
                       return this;
                     }
                     /**
            -         *
            -         *
                      * 
                      * The deadline time for changing
                      * `iam_config.uniform_bucket_level_access.enabled` from `true` to
            @@ -3818,8 +3453,6 @@ public com.google.protobuf.Timestamp.Builder getLockTimeBuilder() {
                       return getLockTimeFieldBuilder().getBuilder();
                     }
                     /**
            -         *
            -         *
                      * 
                      * The deadline time for changing
                      * `iam_config.uniform_bucket_level_access.enabled` from `true` to
            @@ -3833,14 +3466,11 @@ public com.google.protobuf.TimestampOrBuilder getLockTimeOrBuilder() {
                       if (lockTimeBuilder_ != null) {
                         return lockTimeBuilder_.getMessageOrBuilder();
                       } else {
            -            return lockTime_ == null
            -                ? com.google.protobuf.Timestamp.getDefaultInstance()
            -                : lockTime_;
            +            return lockTime_ == null ?
            +                com.google.protobuf.Timestamp.getDefaultInstance() : lockTime_;
                       }
                     }
                     /**
            -         *
            -         *
                      * 
                      * The deadline time for changing
                      * `iam_config.uniform_bucket_level_access.enabled` from `true` to
            @@ -3851,22 +3481,18 @@ public com.google.protobuf.TimestampOrBuilder getLockTimeOrBuilder() {
                      * .google.protobuf.Timestamp lock_time = 2;
                      */
                     private com.google.protobuf.SingleFieldBuilderV3<
            -                com.google.protobuf.Timestamp,
            -                com.google.protobuf.Timestamp.Builder,
            -                com.google.protobuf.TimestampOrBuilder>
            +            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
                         getLockTimeFieldBuilder() {
                       if (lockTimeBuilder_ == null) {
            -            lockTimeBuilder_ =
            -                new com.google.protobuf.SingleFieldBuilderV3<
            -                    com.google.protobuf.Timestamp,
            -                    com.google.protobuf.Timestamp.Builder,
            -                    com.google.protobuf.TimestampOrBuilder>(
            -                    getLockTime(), getParentForChildren(), isClean());
            +            lockTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            +                com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
            +                    getLockTime(),
            +                    getParentForChildren(),
            +                    isClean());
                         lockTime_ = null;
                       }
                       return lockTimeBuilder_;
                     }
            -
                     @java.lang.Override
                     public final Builder setUnknownFields(
                         final com.google.protobuf.UnknownFieldSet unknownFields) {
            @@ -3879,44 +3505,41 @@ public final Builder mergeUnknownFields(
                       return super.mergeUnknownFields(unknownFields);
                     }
             
            +
                     // @@protoc_insertion_point(builder_scope:google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess)
                   }
             
                   // @@protoc_insertion_point(class_scope:google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess)
            -      private static final com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess
            -          DEFAULT_INSTANCE;
            -
            +      private static final com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess DEFAULT_INSTANCE;
                   static {
                     DEFAULT_INSTANCE = new com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess();
                   }
             
            -      public static com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess
            -          getDefaultInstance() {
            +      public static com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess getDefaultInstance() {
                     return DEFAULT_INSTANCE;
                   }
             
            -      private static final com.google.protobuf.Parser PARSER =
            -          new com.google.protobuf.AbstractParser() {
            -            @java.lang.Override
            -            public UniformBucketLevelAccess parsePartialFrom(
            -                com.google.protobuf.CodedInputStream input,
            -                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            -                throws com.google.protobuf.InvalidProtocolBufferException {
            -              Builder builder = newBuilder();
            -              try {
            -                builder.mergeFrom(input, extensionRegistry);
            -              } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            -                throw e.setUnfinishedMessage(builder.buildPartial());
            -              } catch (com.google.protobuf.UninitializedMessageException e) {
            -                throw e.asInvalidProtocolBufferException()
            -                    .setUnfinishedMessage(builder.buildPartial());
            -              } catch (java.io.IOException e) {
            -                throw new com.google.protobuf.InvalidProtocolBufferException(e)
            -                    .setUnfinishedMessage(builder.buildPartial());
            -              }
            -              return builder.buildPartial();
            -            }
            -          };
            +      private static final com.google.protobuf.Parser
            +          PARSER = new com.google.protobuf.AbstractParser() {
            +        @java.lang.Override
            +        public UniformBucketLevelAccess parsePartialFrom(
            +            com.google.protobuf.CodedInputStream input,
            +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +            throws com.google.protobuf.InvalidProtocolBufferException {
            +          Builder builder = newBuilder();
            +          try {
            +            builder.mergeFrom(input, extensionRegistry);
            +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            +            throw e.setUnfinishedMessage(builder.buildPartial());
            +          } catch (com.google.protobuf.UninitializedMessageException e) {
            +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
            +          } catch (java.io.IOException e) {
            +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
            +                .setUnfinishedMessage(builder.buildPartial());
            +          }
            +          return builder.buildPartial();
            +        }
            +      };
             
                   public static com.google.protobuf.Parser parser() {
                     return PARSER;
            @@ -3928,27 +3551,21 @@ public com.google.protobuf.Parser getParserForType() {
                   }
             
                   @java.lang.Override
            -      public com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess
            -          getDefaultInstanceForType() {
            +      public com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess getDefaultInstanceForType() {
                     return DEFAULT_INSTANCE;
                   }
            +
                 }
             
                 private int bitField0_;
                 public static final int UNIFORM_BUCKET_LEVEL_ACCESS_FIELD_NUMBER = 1;
            -    private com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess
            -        uniformBucketLevelAccess_;
            +    private com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniformBucketLevelAccess_;
                 /**
            -     *
            -     *
                  * 
                  * Bucket restriction options currently enforced on the bucket.
                  * 
            * - * - * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; - * - * + * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; * @return Whether the uniformBucketLevelAccess field is set. */ @java.lang.Override @@ -3956,58 +3573,39 @@ 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. */ @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 @@ -4016,30 +3614,30 @@ public java.lang.String getPublicAccessPrevention() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); publicAccessPrevention_ = s; return s; } } /** - * - * *
                  * Whether IAM will enforce public access prevention. Valid values are
                  * "enforced" or "inherited".
                  * 
            * * string public_access_prevention = 3; - * * @return The bytes for publicAccessPrevention. */ @java.lang.Override - public com.google.protobuf.ByteString getPublicAccessPreventionBytes() { + public com.google.protobuf.ByteString + getPublicAccessPreventionBytes() { java.lang.Object ref = publicAccessPrevention_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); publicAccessPrevention_ = b; return b; } else { @@ -4048,7 +3646,6 @@ public com.google.protobuf.ByteString getPublicAccessPreventionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4060,7 +3657,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getUniformBucketLevelAccess()); } @@ -4077,13 +3675,11 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - 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; @@ -4093,7 +3689,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.Bucket.IamConfig)) { return super.equals(obj); @@ -4102,10 +3698,11 @@ public boolean equals(final java.lang.Object obj) { if (hasUniformBucketLevelAccess() != other.hasUniformBucketLevelAccess()) return false; if (hasUniformBucketLevelAccess()) { - if (!getUniformBucketLevelAccess().equals(other.getUniformBucketLevelAccess())) - return false; + if (!getUniformBucketLevelAccess() + .equals(other.getUniformBucketLevelAccess())) return false; } - if (!getPublicAccessPrevention().equals(other.getPublicAccessPrevention())) return false; + if (!getPublicAccessPrevention() + .equals(other.getPublicAccessPrevention())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4128,94 +3725,90 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.Bucket.IamConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.Bucket.IamConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.IamConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.IamConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.IamConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.IamConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.IamConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.IamConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.Bucket.IamConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.Bucket.IamConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.Bucket.IamConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.Bucket.IamConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.Bucket.IamConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.Bucket.IamConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.Bucket.IamConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -4225,32 +3818,27 @@ 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() @@ -4258,17 +3846,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) { getUniformBucketLevelAccessFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -4283,9 +3871,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_IamConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_IamConfig_descriptor; } @java.lang.Override @@ -4304,11 +3892,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; } @@ -4317,10 +3902,9 @@ private void buildPartial0(com.google.storage.v2.Bucket.IamConfig result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.uniformBucketLevelAccess_ = - uniformBucketLevelAccessBuilder_ == null - ? uniformBucketLevelAccess_ - : uniformBucketLevelAccessBuilder_.build(); + result.uniformBucketLevelAccess_ = uniformBucketLevelAccessBuilder_ == null + ? uniformBucketLevelAccess_ + : uniformBucketLevelAccessBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { @@ -4333,41 +3917,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; @@ -4410,26 +3991,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage( - getUniformBucketLevelAccessFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: - { - publicAccessPrevention_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getUniformBucketLevelAccessFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: { + publicAccessPrevention_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4439,68 +4018,45 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess - uniformBucketLevelAccess_; + private com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniformBucketLevelAccess_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess, - com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.Builder, - com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccessOrBuilder> - uniformBucketLevelAccessBuilder_; + com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess, com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.Builder, com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccessOrBuilder> uniformBucketLevelAccessBuilder_; /** - * - * *
                    * Bucket restriction options currently enforced on the bucket.
                    * 
            * - * - * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; - * - * + * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; * @return Whether the uniformBucketLevelAccess field is set. */ public boolean hasUniformBucketLevelAccess() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                    * Bucket restriction options currently enforced on the bucket.
                    * 
            * - * - * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; - * - * + * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; * @return The uniformBucketLevelAccess. */ - public com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess - getUniformBucketLevelAccess() { + public com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess getUniformBucketLevelAccess() { if (uniformBucketLevelAccessBuilder_ == null) { - return uniformBucketLevelAccess_ == null - ? com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.getDefaultInstance() - : uniformBucketLevelAccess_; + return uniformBucketLevelAccess_ == null ? com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.getDefaultInstance() : uniformBucketLevelAccess_; } else { return uniformBucketLevelAccessBuilder_.getMessage(); } } /** - * - * *
                    * Bucket restriction options currently enforced on the bucket.
                    * 
            * - * - * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; - * + * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; */ - public Builder setUniformBucketLevelAccess( - com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess value) { + public Builder setUniformBucketLevelAccess(com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess value) { if (uniformBucketLevelAccessBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4514,15 +4070,11 @@ public Builder setUniformBucketLevelAccess( return this; } /** - * - * *
                    * Bucket restriction options currently enforced on the bucket.
                    * 
            * - * - * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; - * + * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; */ public Builder setUniformBucketLevelAccess( com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.Builder builderForValue) { @@ -4536,24 +4088,17 @@ public Builder setUniformBucketLevelAccess( return this; } /** - * - * *
                    * Bucket restriction options currently enforced on the bucket.
                    * 
            * - * - * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; - * + * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; */ - public Builder mergeUniformBucketLevelAccess( - com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess value) { + public Builder mergeUniformBucketLevelAccess(com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess value) { if (uniformBucketLevelAccessBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && uniformBucketLevelAccess_ != null - && uniformBucketLevelAccess_ - != com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess - .getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + uniformBucketLevelAccess_ != null && + uniformBucketLevelAccess_ != com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.getDefaultInstance()) { getUniformBucketLevelAccessBuilder().mergeFrom(value); } else { uniformBucketLevelAccess_ = value; @@ -4568,15 +4113,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); @@ -4589,66 +4130,48 @@ public Builder clearUniformBucketLevelAccess() { return this; } /** - * - * *
                    * Bucket restriction options currently enforced on the bucket.
                    * 
            * - * - * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; - * + * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; */ - public com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.Builder - getUniformBucketLevelAccessBuilder() { + public com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.Builder getUniformBucketLevelAccessBuilder() { bitField0_ |= 0x00000001; onChanged(); return getUniformBucketLevelAccessFieldBuilder().getBuilder(); } /** - * - * *
                    * Bucket restriction options currently enforced on the bucket.
                    * 
            * - * - * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; - * + * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; */ - public com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccessOrBuilder - getUniformBucketLevelAccessOrBuilder() { + public com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccessOrBuilder getUniformBucketLevelAccessOrBuilder() { if (uniformBucketLevelAccessBuilder_ != null) { return uniformBucketLevelAccessBuilder_.getMessageOrBuilder(); } else { - return uniformBucketLevelAccess_ == null - ? com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.getDefaultInstance() - : uniformBucketLevelAccess_; + return uniformBucketLevelAccess_ == null ? + com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.getDefaultInstance() : uniformBucketLevelAccess_; } } /** - * - * *
                    * Bucket restriction options currently enforced on the bucket.
                    * 
            * - * - * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; - * + * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess, - com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.Builder, - com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccessOrBuilder> + com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess, com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.Builder, com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccessOrBuilder> getUniformBucketLevelAccessFieldBuilder() { if (uniformBucketLevelAccessBuilder_ == null) { - uniformBucketLevelAccessBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess, - com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.Builder, - com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccessOrBuilder>( - getUniformBucketLevelAccess(), getParentForChildren(), isClean()); + uniformBucketLevelAccessBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess, com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.Builder, com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccessOrBuilder>( + getUniformBucketLevelAccess(), + getParentForChildren(), + isClean()); uniformBucketLevelAccess_ = null; } return uniformBucketLevelAccessBuilder_; @@ -4656,21 +4179,19 @@ public Builder clearUniformBucketLevelAccess() { private java.lang.Object publicAccessPrevention_ = ""; /** - * - * *
                    * Whether IAM will enforce public access prevention. Valid values are
                    * "enforced" or "inherited".
                    * 
            * * string public_access_prevention = 3; - * * @return The publicAccessPrevention. */ public java.lang.String getPublicAccessPrevention() { java.lang.Object ref = publicAccessPrevention_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); publicAccessPrevention_ = s; return s; @@ -4679,22 +4200,21 @@ public java.lang.String getPublicAccessPrevention() { } } /** - * - * *
                    * Whether IAM will enforce public access prevention. Valid values are
                    * "enforced" or "inherited".
                    * 
            * * string public_access_prevention = 3; - * * @return The bytes for publicAccessPrevention. */ - public com.google.protobuf.ByteString getPublicAccessPreventionBytes() { + public com.google.protobuf.ByteString + getPublicAccessPreventionBytes() { java.lang.Object ref = publicAccessPrevention_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); publicAccessPrevention_ = b; return b; } else { @@ -4702,37 +4222,30 @@ public com.google.protobuf.ByteString getPublicAccessPreventionBytes() { } } /** - * - * *
                    * Whether IAM will enforce public access prevention. Valid values are
                    * "enforced" or "inherited".
                    * 
            * * string public_access_prevention = 3; - * * @param value The publicAccessPrevention to set. * @return This builder for chaining. */ - public Builder setPublicAccessPrevention(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPublicAccessPrevention( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } publicAccessPrevention_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                    * Whether IAM will enforce public access prevention. Valid values are
                    * "enforced" or "inherited".
                    * 
            * * string public_access_prevention = 3; - * * @return This builder for chaining. */ public Builder clearPublicAccessPrevention() { @@ -4742,29 +4255,24 @@ public Builder clearPublicAccessPrevention() { return this; } /** - * - * *
                    * Whether IAM will enforce public access prevention. Valid values are
                    * "enforced" or "inherited".
                    * 
            * * string public_access_prevention = 3; - * * @param value The bytes for publicAccessPrevention to set. * @return This builder for chaining. */ - public Builder setPublicAccessPreventionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPublicAccessPreventionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); publicAccessPrevention_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4777,12 +4285,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.Bucket.IamConfig) } // @@protoc_insertion_point(class_scope:google.storage.v2.Bucket.IamConfig) private static final com.google.storage.v2.Bucket.IamConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.Bucket.IamConfig(); } @@ -4791,28 +4299,27 @@ public static com.google.storage.v2.Bucket.IamConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IamConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IamConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4827,16 +4334,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.IamConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface LifecycleOrBuilder - extends + public interface LifecycleOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.Lifecycle) com.google.protobuf.MessageOrBuilder { /** - * - * *
                  * A lifecycle management rule, which is made of an action to take and the
                  * condition(s) under which the action will be taken.
            @@ -4844,10 +4349,9 @@ public interface LifecycleOrBuilder
                  *
                  * repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;
                  */
            -    java.util.List getRuleList();
            +    java.util.List 
            +        getRuleList();
                 /**
            -     *
            -     *
                  * 
                  * A lifecycle management rule, which is made of an action to take and the
                  * condition(s) under which the action will be taken.
            @@ -4857,8 +4361,6 @@ public interface LifecycleOrBuilder
                  */
                 com.google.storage.v2.Bucket.Lifecycle.Rule getRule(int index);
                 /**
            -     *
            -     *
                  * 
                  * A lifecycle management rule, which is made of an action to take and the
                  * condition(s) under which the action will be taken.
            @@ -4868,8 +4370,6 @@ public interface LifecycleOrBuilder
                  */
                 int getRuleCount();
                 /**
            -     *
            -     *
                  * 
                  * A lifecycle management rule, which is made of an action to take and the
                  * condition(s) under which the action will be taken.
            @@ -4877,11 +4377,9 @@ public interface LifecycleOrBuilder
                  *
                  * repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;
                  */
            -    java.util.List
            +    java.util.List 
                     getRuleOrBuilderList();
                 /**
            -     *
            -     *
                  * 
                  * A lifecycle management rule, which is made of an action to take and the
                  * condition(s) under which the action will be taken.
            @@ -4889,11 +4387,10 @@ public interface LifecycleOrBuilder
                  *
                  * repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;
                  */
            -    com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder getRuleOrBuilder(int index);
            +    com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder getRuleOrBuilder(
            +        int index);
               }
               /**
            -   *
            -   *
                * 
                * Lifecycle properties of a bucket.
                * For more information, see https://cloud.google.com/storage/docs/lifecycle.
            @@ -4901,73 +4398,62 @@ public interface LifecycleOrBuilder
                *
                * Protobuf type {@code google.storage.v2.Bucket.Lifecycle}
                */
            -  public static final class Lifecycle extends com.google.protobuf.GeneratedMessageV3
            -      implements
            +  public static final class Lifecycle extends
            +      com.google.protobuf.GeneratedMessageV3 implements
                   // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.Lifecycle)
                   LifecycleOrBuilder {
            -    private static final long serialVersionUID = 0L;
            +  private static final long serialVersionUID = 0L;
                 // Use Lifecycle.newBuilder() to construct.
                 private Lifecycle(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                   super(builder);
                 }
            -
                 private Lifecycle() {
                   rule_ = java.util.Collections.emptyList();
                 }
             
                 @java.lang.Override
                 @SuppressWarnings({"unused"})
            -    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
            +    protected java.lang.Object newInstance(
            +        UnusedPrivateParameter unused) {
                   return new Lifecycle();
                 }
             
            -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            -      return com.google.storage.v2.StorageProto
            -          .internal_static_google_storage_v2_Bucket_Lifecycle_descriptor;
            +    public static final com.google.protobuf.Descriptors.Descriptor
            +        getDescriptor() {
            +      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_descriptor;
                 }
             
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
            -      return com.google.storage.v2.StorageProto
            -          .internal_static_google_storage_v2_Bucket_Lifecycle_fieldAccessorTable
            +      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
            -              com.google.storage.v2.Bucket.Lifecycle.class,
            -              com.google.storage.v2.Bucket.Lifecycle.Builder.class);
            +              com.google.storage.v2.Bucket.Lifecycle.class, com.google.storage.v2.Bucket.Lifecycle.Builder.class);
                 }
             
            -    public interface RuleOrBuilder
            -        extends
            +    public interface RuleOrBuilder extends
                     // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.Lifecycle.Rule)
                     com.google.protobuf.MessageOrBuilder {
             
                   /**
            -       *
            -       *
                    * 
                    * The action to take.
                    * 
            * * .google.storage.v2.Bucket.Lifecycle.Rule.Action action = 1; - * * @return Whether the action field is set. */ boolean hasAction(); /** - * - * *
                    * The action to take.
                    * 
            * * .google.storage.v2.Bucket.Lifecycle.Rule.Action action = 1; - * * @return The action. */ com.google.storage.v2.Bucket.Lifecycle.Rule.Action getAction(); /** - * - * *
                    * The action to take.
                    * 
            @@ -4977,32 +4463,24 @@ public interface RuleOrBuilder com.google.storage.v2.Bucket.Lifecycle.Rule.ActionOrBuilder getActionOrBuilder(); /** - * - * *
                    * The condition(s) under which the action will be taken.
                    * 
            * * .google.storage.v2.Bucket.Lifecycle.Rule.Condition condition = 2; - * * @return Whether the condition field is set. */ boolean hasCondition(); /** - * - * *
                    * The condition(s) under which the action will be taken.
                    * 
            * * .google.storage.v2.Bucket.Lifecycle.Rule.Condition condition = 2; - * * @return The condition. */ com.google.storage.v2.Bucket.Lifecycle.Rule.Condition getCondition(); /** - * - * *
                    * The condition(s) under which the action will be taken.
                    * 
            @@ -5012,8 +4490,6 @@ public interface RuleOrBuilder com.google.storage.v2.Bucket.Lifecycle.Rule.ConditionOrBuilder getConditionOrBuilder(); } /** - * - * *
                  * A lifecycle Rule, combining an action to take on an object and a
                  * condition which will trigger that action.
            @@ -5021,117 +4497,102 @@ public interface RuleOrBuilder
                  *
                  * Protobuf type {@code google.storage.v2.Bucket.Lifecycle.Rule}
                  */
            -    public static final class Rule extends com.google.protobuf.GeneratedMessageV3
            -        implements
            +    public static final class Rule extends
            +        com.google.protobuf.GeneratedMessageV3 implements
                     // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.Lifecycle.Rule)
                     RuleOrBuilder {
            -      private static final long serialVersionUID = 0L;
            +    private static final long serialVersionUID = 0L;
                   // Use Rule.newBuilder() to construct.
                   private Rule(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                     super(builder);
                   }
            -
            -      private Rule() {}
            +      private Rule() {
            +      }
             
                   @java.lang.Override
                   @SuppressWarnings({"unused"})
            -      protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
            +      protected java.lang.Object newInstance(
            +          UnusedPrivateParameter unused) {
                     return new Rule();
                   }
             
            -      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            -        return com.google.storage.v2.StorageProto
            -            .internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor;
            +      public static final com.google.protobuf.Descriptors.Descriptor
            +          getDescriptor() {
            +        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor;
                   }
             
                   @java.lang.Override
                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                       internalGetFieldAccessorTable() {
            -        return com.google.storage.v2.StorageProto
            -            .internal_static_google_storage_v2_Bucket_Lifecycle_Rule_fieldAccessorTable
            +        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_Rule_fieldAccessorTable
                         .ensureFieldAccessorsInitialized(
            -                com.google.storage.v2.Bucket.Lifecycle.Rule.class,
            -                com.google.storage.v2.Bucket.Lifecycle.Rule.Builder.class);
            +                com.google.storage.v2.Bucket.Lifecycle.Rule.class, com.google.storage.v2.Bucket.Lifecycle.Rule.Builder.class);
                   }
             
            -      public interface ActionOrBuilder
            -          extends
            +      public interface ActionOrBuilder extends
                       // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.Lifecycle.Rule.Action)
                       com.google.protobuf.MessageOrBuilder {
             
                     /**
            -         *
            -         *
                      * 
                      * Type of the action. Currently, only `Delete`, `SetStorageClass`, and
                      * `AbortIncompleteMultipartUpload` are supported.
                      * 
            * * string type = 1; - * * @return The type. */ java.lang.String getType(); /** - * - * *
                      * Type of the action. Currently, only `Delete`, `SetStorageClass`, and
                      * `AbortIncompleteMultipartUpload` are supported.
                      * 
            * * string type = 1; - * * @return The bytes for type. */ - com.google.protobuf.ByteString getTypeBytes(); + com.google.protobuf.ByteString + getTypeBytes(); /** - * - * *
                      * Target storage class. Required iff the type of the action is
                      * SetStorageClass.
                      * 
            * * string storage_class = 2; - * * @return The storageClass. */ java.lang.String getStorageClass(); /** - * - * *
                      * Target storage class. Required iff the type of the action is
                      * SetStorageClass.
                      * 
            * * string storage_class = 2; - * * @return The bytes for storageClass. */ - com.google.protobuf.ByteString getStorageClassBytes(); + com.google.protobuf.ByteString + getStorageClassBytes(); } /** - * - * *
                    * An action to take on an object.
                    * 
            * * Protobuf type {@code google.storage.v2.Bucket.Lifecycle.Rule.Action} */ - public static final class Action extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Action extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.Lifecycle.Rule.Action) ActionOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Action.newBuilder() to construct. private Action(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Action() { type_ = ""; storageClass_ = ""; @@ -5139,39 +4600,34 @@ private Action() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Action(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.Lifecycle.Rule.Action.class, - com.google.storage.v2.Bucket.Lifecycle.Rule.Action.Builder.class); + com.google.storage.v2.Bucket.Lifecycle.Rule.Action.class, com.google.storage.v2.Bucket.Lifecycle.Rule.Action.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object type_ = ""; /** - * - * *
                      * Type of the action. Currently, only `Delete`, `SetStorageClass`, and
                      * `AbortIncompleteMultipartUpload` are supported.
                      * 
            * * string type = 1; - * * @return The type. */ @java.lang.Override @@ -5180,30 +4636,30 @@ public java.lang.String getType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** - * - * *
                      * Type of the action. Currently, only `Delete`, `SetStorageClass`, and
                      * `AbortIncompleteMultipartUpload` are supported.
                      * 
            * * string type = 1; - * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString getTypeBytes() { + public com.google.protobuf.ByteString + getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); type_ = b; return b; } else { @@ -5212,19 +4668,15 @@ public com.google.protobuf.ByteString getTypeBytes() { } public static final int STORAGE_CLASS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object storageClass_ = ""; /** - * - * *
                      * Target storage class. Required iff the type of the action is
                      * SetStorageClass.
                      * 
            * * string storage_class = 2; - * * @return The storageClass. */ @java.lang.Override @@ -5233,30 +4685,30 @@ public java.lang.String getStorageClass() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); storageClass_ = s; return s; } } /** - * - * *
                      * Target storage class. Required iff the type of the action is
                      * SetStorageClass.
                      * 
            * * string storage_class = 2; - * * @return The bytes for storageClass. */ @java.lang.Override - public com.google.protobuf.ByteString getStorageClassBytes() { + public com.google.protobuf.ByteString + getStorageClassBytes() { java.lang.Object ref = storageClass_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); storageClass_ = b; return b; } else { @@ -5265,7 +4717,6 @@ public com.google.protobuf.ByteString getStorageClassBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5278,7 +4729,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } @@ -5308,16 +4759,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.Bucket.Lifecycle.Rule.Action)) { return super.equals(obj); } - com.google.storage.v2.Bucket.Lifecycle.Rule.Action other = - (com.google.storage.v2.Bucket.Lifecycle.Rule.Action) obj; + com.google.storage.v2.Bucket.Lifecycle.Rule.Action other = (com.google.storage.v2.Bucket.Lifecycle.Rule.Action) obj; - if (!getType().equals(other.getType())) return false; - if (!getStorageClass().equals(other.getStorageClass())) return false; + if (!getType() + .equals(other.getType())) return false; + if (!getStorageClass() + .equals(other.getStorageClass())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5339,95 +4791,89 @@ public int hashCode() { } public static com.google.storage.v2.Bucket.Lifecycle.Rule.Action parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule.Action parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule.Action parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule.Action parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule.Action parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule.Action parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.v2.Bucket.Lifecycle.Rule.Action parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.v2.Bucket.Lifecycle.Rule.Action parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule.Action parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule.Action parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); + public static com.google.storage.v2.Bucket.Lifecycle.Rule.Action parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.Bucket.Lifecycle.Rule.Action parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule.Action parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule.Action parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.storage.v2.Bucket.Lifecycle.Rule.Action prototype) { + public static Builder newBuilder(com.google.storage.v2.Bucket.Lifecycle.Rule.Action prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -5437,41 +4883,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
                      * An action to take on an object.
                      * 
            * * Protobuf type {@code google.storage.v2.Bucket.Lifecycle.Rule.Action} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.Bucket.Lifecycle.Rule.Action) com.google.storage.v2.Bucket.Lifecycle.Rule.ActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.Lifecycle.Rule.Action.class, - com.google.storage.v2.Bucket.Lifecycle.Rule.Action.Builder.class); + com.google.storage.v2.Bucket.Lifecycle.Rule.Action.class, com.google.storage.v2.Bucket.Lifecycle.Rule.Action.Builder.class); } // Construct using com.google.storage.v2.Bucket.Lifecycle.Rule.Action.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -5482,9 +4926,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_descriptor; } @java.lang.Override @@ -5503,11 +4947,8 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule.Action build() { @java.lang.Override public com.google.storage.v2.Bucket.Lifecycle.Rule.Action buildPartial() { - com.google.storage.v2.Bucket.Lifecycle.Rule.Action result = - new com.google.storage.v2.Bucket.Lifecycle.Rule.Action(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.Bucket.Lifecycle.Rule.Action result = new com.google.storage.v2.Bucket.Lifecycle.Rule.Action(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -5526,41 +4967,38 @@ private void buildPartial0(com.google.storage.v2.Bucket.Lifecycle.Rule.Action re public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.Bucket.Lifecycle.Rule.Action) { - return mergeFrom((com.google.storage.v2.Bucket.Lifecycle.Rule.Action) other); + return mergeFrom((com.google.storage.v2.Bucket.Lifecycle.Rule.Action)other); } else { super.mergeFrom(other); return this; @@ -5568,8 +5006,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.v2.Bucket.Lifecycle.Rule.Action other) { - if (other == com.google.storage.v2.Bucket.Lifecycle.Rule.Action.getDefaultInstance()) - return this; + if (other == com.google.storage.v2.Bucket.Lifecycle.Rule.Action.getDefaultInstance()) return this; if (!other.getType().isEmpty()) { type_ = other.type_; bitField0_ |= 0x00000001; @@ -5606,25 +5043,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - type_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - storageClass_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + type_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + storageClass_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -5634,26 +5068,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object type_ = ""; /** - * - * *
                        * Type of the action. Currently, only `Delete`, `SetStorageClass`, and
                        * `AbortIncompleteMultipartUpload` are supported.
                        * 
            * * string type = 1; - * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -5662,22 +5093,21 @@ public java.lang.String getType() { } } /** - * - * *
                        * Type of the action. Currently, only `Delete`, `SetStorageClass`, and
                        * `AbortIncompleteMultipartUpload` are supported.
                        * 
            * * string type = 1; - * * @return The bytes for type. */ - public com.google.protobuf.ByteString getTypeBytes() { + public com.google.protobuf.ByteString + getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); type_ = b; return b; } else { @@ -5685,37 +5115,30 @@ public com.google.protobuf.ByteString getTypeBytes() { } } /** - * - * *
                        * Type of the action. Currently, only `Delete`, `SetStorageClass`, and
                        * `AbortIncompleteMultipartUpload` are supported.
                        * 
            * * string type = 1; - * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + 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() { @@ -5725,22 +5148,18 @@ public Builder clearType() { return this; } /** - * - * *
                        * Type of the action. Currently, only `Delete`, `SetStorageClass`, and
                        * `AbortIncompleteMultipartUpload` are supported.
                        * 
            * * string type = 1; - * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); type_ = value; bitField0_ |= 0x00000001; @@ -5750,21 +5169,19 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object storageClass_ = ""; /** - * - * *
                        * Target storage class. Required iff the type of the action is
                        * SetStorageClass.
                        * 
            * * string storage_class = 2; - * * @return The storageClass. */ public java.lang.String getStorageClass() { java.lang.Object ref = storageClass_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); storageClass_ = s; return s; @@ -5773,22 +5190,21 @@ public java.lang.String getStorageClass() { } } /** - * - * *
                        * Target storage class. Required iff the type of the action is
                        * SetStorageClass.
                        * 
            * * string storage_class = 2; - * * @return The bytes for storageClass. */ - public com.google.protobuf.ByteString getStorageClassBytes() { + public com.google.protobuf.ByteString + getStorageClassBytes() { java.lang.Object ref = storageClass_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); storageClass_ = b; return b; } else { @@ -5796,37 +5212,30 @@ public com.google.protobuf.ByteString getStorageClassBytes() { } } /** - * - * *
                        * Target storage class. Required iff the type of the action is
                        * SetStorageClass.
                        * 
            * * string storage_class = 2; - * * @param value The storageClass to set. * @return This builder for chaining. */ - public Builder setStorageClass(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStorageClass( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } storageClass_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                        * Target storage class. Required iff the type of the action is
                        * SetStorageClass.
                        * 
            * * string storage_class = 2; - * * @return This builder for chaining. */ public Builder clearStorageClass() { @@ -5836,29 +5245,24 @@ public Builder clearStorageClass() { return this; } /** - * - * *
                        * Target storage class. Required iff the type of the action is
                        * SetStorageClass.
                        * 
            * * string storage_class = 2; - * * @param value The bytes for storageClass to set. * @return This builder for chaining. */ - public Builder setStorageClassBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStorageClassBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); storageClass_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5871,12 +5275,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.Bucket.Lifecycle.Rule.Action) } // @@protoc_insertion_point(class_scope:google.storage.v2.Bucket.Lifecycle.Rule.Action) private static final com.google.storage.v2.Bucket.Lifecycle.Rule.Action DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.Bucket.Lifecycle.Rule.Action(); } @@ -5885,28 +5289,27 @@ public static com.google.storage.v2.Bucket.Lifecycle.Rule.Action getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Action parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Action parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5921,16 +5324,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.Lifecycle.Rule.Action getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ConditionOrBuilder - extends + public interface ConditionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.Lifecycle.Rule.Condition) com.google.protobuf.MessageOrBuilder { /** - * - * *
                      * Age of an object (in days). This condition is satisfied when an
                      * object reaches the specified age.
            @@ -5939,13 +5340,10 @@ public interface ConditionOrBuilder
                      * 
            * * optional int32 age_days = 1; - * * @return Whether the ageDays field is set. */ boolean hasAgeDays(); /** - * - * *
                      * Age of an object (in days). This condition is satisfied when an
                      * object reaches the specified age.
            @@ -5954,40 +5352,31 @@ public interface ConditionOrBuilder
                      * 
            * * optional int32 age_days = 1; - * * @return The ageDays. */ int getAgeDays(); /** - * - * *
                      * This condition is satisfied when an object is created before midnight
                      * of the specified date in UTC.
                      * 
            * * .google.type.Date created_before = 2; - * * @return Whether the createdBefore field is set. */ boolean hasCreatedBefore(); /** - * - * *
                      * This condition is satisfied when an object is created before midnight
                      * of the specified date in UTC.
                      * 
            * * .google.type.Date created_before = 2; - * * @return The createdBefore. */ com.google.type.Date getCreatedBefore(); /** - * - * *
                      * This condition is satisfied when an object is created before midnight
                      * of the specified date in UTC.
            @@ -5998,8 +5387,6 @@ public interface ConditionOrBuilder
                     com.google.type.DateOrBuilder getCreatedBeforeOrBuilder();
             
                     /**
            -         *
            -         *
                      * 
                      * Relevant only for versioned objects. If the value is
                      * `true`, this condition matches live objects; if the value
            @@ -6007,13 +5394,10 @@ public interface ConditionOrBuilder
                      * 
            * * optional bool is_live = 3; - * * @return Whether the isLive field is set. */ boolean hasIsLive(); /** - * - * *
                      * Relevant only for versioned objects. If the value is
                      * `true`, this condition matches live objects; if the value
            @@ -6021,14 +5405,11 @@ public interface ConditionOrBuilder
                      * 
            * * optional bool is_live = 3; - * * @return The isLive. */ boolean getIsLive(); /** - * - * *
                      * Relevant only for versioned objects. If the value is N, this
                      * condition is satisfied when there are at least N versions (including
            @@ -6036,13 +5417,10 @@ public interface ConditionOrBuilder
                      * 
            * * optional int32 num_newer_versions = 4; - * * @return Whether the numNewerVersions field is set. */ boolean hasNumNewerVersions(); /** - * - * *
                      * Relevant only for versioned objects. If the value is N, this
                      * condition is satisfied when there are at least N versions (including
            @@ -6050,14 +5428,11 @@ public interface ConditionOrBuilder
                      * 
            * * optional int32 num_newer_versions = 4; - * * @return The numNewerVersions. */ int getNumNewerVersions(); /** - * - * *
                      * Objects having any of the storage classes specified by this condition
                      * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
            @@ -6066,13 +5441,11 @@ public interface ConditionOrBuilder
                      * 
            * * repeated string matches_storage_class = 5; - * * @return A list containing the matchesStorageClass. */ - java.util.List getMatchesStorageClassList(); + java.util.List + getMatchesStorageClassList(); /** - * - * *
                      * Objects having any of the storage classes specified by this condition
                      * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
            @@ -6081,13 +5454,10 @@ public interface ConditionOrBuilder
                      * 
            * * repeated string matches_storage_class = 5; - * * @return The count of matchesStorageClass. */ int getMatchesStorageClassCount(); /** - * - * *
                      * Objects having any of the storage classes specified by this condition
                      * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
            @@ -6096,14 +5466,11 @@ public interface ConditionOrBuilder
                      * 
            * * repeated string matches_storage_class = 5; - * * @param index The index of the element to return. * @return The matchesStorageClass at the given index. */ java.lang.String getMatchesStorageClass(int index); /** - * - * *
                      * Objects having any of the storage classes specified by this condition
                      * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
            @@ -6112,15 +5479,13 @@ public interface ConditionOrBuilder
                      * 
            * * repeated string matches_storage_class = 5; - * * @param index The index of the value to return. * @return The bytes of the matchesStorageClass at the given index. */ - com.google.protobuf.ByteString getMatchesStorageClassBytes(int index); + com.google.protobuf.ByteString + getMatchesStorageClassBytes(int index); /** - * - * *
                      * Number of days that have elapsed since the custom timestamp set on an
                      * object.
            @@ -6128,13 +5493,10 @@ public interface ConditionOrBuilder
                      * 
            * * optional int32 days_since_custom_time = 7; - * * @return Whether the daysSinceCustomTime field is set. */ boolean hasDaysSinceCustomTime(); /** - * - * *
                      * Number of days that have elapsed since the custom timestamp set on an
                      * object.
            @@ -6142,40 +5504,31 @@ public interface ConditionOrBuilder
                      * 
            * * optional int32 days_since_custom_time = 7; - * * @return The daysSinceCustomTime. */ int getDaysSinceCustomTime(); /** - * - * *
                      * An object matches this condition if the custom timestamp set on the
                      * object is before the specified date in UTC.
                      * 
            * * .google.type.Date custom_time_before = 8; - * * @return Whether the customTimeBefore field is set. */ boolean hasCustomTimeBefore(); /** - * - * *
                      * An object matches this condition if the custom timestamp set on the
                      * object is before the specified date in UTC.
                      * 
            * * .google.type.Date custom_time_before = 8; - * * @return The customTimeBefore. */ com.google.type.Date getCustomTimeBefore(); /** - * - * *
                      * An object matches this condition if the custom timestamp set on the
                      * object is before the specified date in UTC.
            @@ -6186,8 +5539,6 @@ public interface ConditionOrBuilder
                     com.google.type.DateOrBuilder getCustomTimeBeforeOrBuilder();
             
                     /**
            -         *
            -         *
                      * 
                      * This condition is relevant only for versioned objects. An object
                      * version satisfies this condition only if these many days have been
            @@ -6197,13 +5548,10 @@ public interface ConditionOrBuilder
                      * 
            * * optional int32 days_since_noncurrent_time = 9; - * * @return Whether the daysSinceNoncurrentTime field is set. */ boolean hasDaysSinceNoncurrentTime(); /** - * - * *
                      * This condition is relevant only for versioned objects. An object
                      * version satisfies this condition only if these many days have been
            @@ -6213,14 +5561,11 @@ public interface ConditionOrBuilder
                      * 
            * * optional int32 days_since_noncurrent_time = 9; - * * @return The daysSinceNoncurrentTime. */ int getDaysSinceNoncurrentTime(); /** - * - * *
                      * This condition is relevant only for versioned objects. An object
                      * version satisfies this condition only if it became noncurrent before
            @@ -6228,13 +5573,10 @@ public interface ConditionOrBuilder
                      * 
            * * .google.type.Date noncurrent_time_before = 10; - * * @return Whether the noncurrentTimeBefore field is set. */ boolean hasNoncurrentTimeBefore(); /** - * - * *
                      * This condition is relevant only for versioned objects. An object
                      * version satisfies this condition only if it became noncurrent before
            @@ -6242,13 +5584,10 @@ public interface ConditionOrBuilder
                      * 
            * * .google.type.Date noncurrent_time_before = 10; - * * @return The noncurrentTimeBefore. */ com.google.type.Date getNoncurrentTimeBefore(); /** - * - * *
                      * This condition is relevant only for versioned objects. An object
                      * version satisfies this condition only if it became noncurrent before
            @@ -6260,167 +5599,144 @@ public interface ConditionOrBuilder
                     com.google.type.DateOrBuilder getNoncurrentTimeBeforeOrBuilder();
             
                     /**
            -         *
            -         *
                      * 
                      * List of object name prefixes. If any prefix exactly matches the
                      * beginning of the object name, the condition evaluates to true.
                      * 
            * * repeated string matches_prefix = 11; - * * @return A list containing the matchesPrefix. */ - java.util.List getMatchesPrefixList(); + java.util.List + getMatchesPrefixList(); /** - * - * *
                      * List of object name prefixes. If any prefix exactly matches the
                      * beginning of the object name, the condition evaluates to true.
                      * 
            * * repeated string matches_prefix = 11; - * * @return The count of matchesPrefix. */ int getMatchesPrefixCount(); /** - * - * *
                      * List of object name prefixes. If any prefix exactly matches the
                      * beginning of the object name, the condition evaluates to true.
                      * 
            * * repeated string matches_prefix = 11; - * * @param index The index of the element to return. * @return The matchesPrefix at the given index. */ java.lang.String getMatchesPrefix(int index); /** - * - * *
                      * List of object name prefixes. If any prefix exactly matches the
                      * beginning of the object name, the condition evaluates to true.
                      * 
            * * repeated string matches_prefix = 11; - * * @param index The index of the value to return. * @return The bytes of the matchesPrefix at the given index. */ - com.google.protobuf.ByteString getMatchesPrefixBytes(int index); + com.google.protobuf.ByteString + getMatchesPrefixBytes(int index); /** - * - * *
                      * List of object name suffixes. If any suffix exactly matches the
                      * end of the object name, the condition evaluates to true.
                      * 
            * * repeated string matches_suffix = 12; - * * @return A list containing the matchesSuffix. */ - java.util.List getMatchesSuffixList(); + java.util.List + getMatchesSuffixList(); /** - * - * *
                      * List of object name suffixes. If any suffix exactly matches the
                      * end of the object name, the condition evaluates to true.
                      * 
            * * repeated string matches_suffix = 12; - * * @return The count of matchesSuffix. */ int getMatchesSuffixCount(); /** - * - * *
                      * List of object name suffixes. If any suffix exactly matches the
                      * end of the object name, the condition evaluates to true.
                      * 
            * * repeated string matches_suffix = 12; - * * @param index The index of the element to return. * @return The matchesSuffix at the given index. */ java.lang.String getMatchesSuffix(int index); /** - * - * *
                      * List of object name suffixes. If any suffix exactly matches the
                      * end of the object name, the condition evaluates to true.
                      * 
            * * repeated string matches_suffix = 12; - * * @param index The index of the value to return. * @return The bytes of the matchesSuffix at the given index. */ - com.google.protobuf.ByteString getMatchesSuffixBytes(int index); + com.google.protobuf.ByteString + getMatchesSuffixBytes(int index); } /** - * - * *
                    * A condition of an object which triggers some action.
                    * 
            * * Protobuf type {@code google.storage.v2.Bucket.Lifecycle.Rule.Condition} */ - public static final class Condition extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Condition extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.Lifecycle.Rule.Condition) ConditionOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Condition.newBuilder() to construct. private Condition(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Condition() { - matchesStorageClass_ = com.google.protobuf.LazyStringArrayList.emptyList(); - matchesPrefix_ = com.google.protobuf.LazyStringArrayList.emptyList(); - matchesSuffix_ = com.google.protobuf.LazyStringArrayList.emptyList(); + matchesStorageClass_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + matchesPrefix_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + matchesSuffix_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Condition(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.class, - com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.Builder.class); + com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.class, com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.Builder.class); } private int bitField0_; public static final int AGE_DAYS_FIELD_NUMBER = 1; private int ageDays_ = 0; /** - * - * *
                      * Age of an object (in days). This condition is satisfied when an
                      * object reaches the specified age.
            @@ -6429,7 +5745,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                      * 
            * * optional int32 age_days = 1; - * * @return Whether the ageDays field is set. */ @java.lang.Override @@ -6437,8 +5752,6 @@ public boolean hasAgeDays() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                      * Age of an object (in days). This condition is satisfied when an
                      * object reaches the specified age.
            @@ -6447,7 +5760,6 @@ public boolean hasAgeDays() {
                      * 
            * * optional int32 age_days = 1; - * * @return The ageDays. */ @java.lang.Override @@ -6458,15 +5770,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 @@ -6474,26 +5783,19 @@ 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. */ @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.
            @@ -6503,16 +5805,12 @@ public com.google.type.Date getCreatedBefore() {
                      */
                     @java.lang.Override
                     public com.google.type.DateOrBuilder getCreatedBeforeOrBuilder() {
            -          return createdBefore_ == null
            -              ? com.google.type.Date.getDefaultInstance()
            -              : createdBefore_;
            +          return createdBefore_ == null ? com.google.type.Date.getDefaultInstance() : createdBefore_;
                     }
             
                     public static final int IS_LIVE_FIELD_NUMBER = 3;
                     private boolean isLive_ = false;
                     /**
            -         *
            -         *
                      * 
                      * Relevant only for versioned objects. If the value is
                      * `true`, this condition matches live objects; if the value
            @@ -6520,7 +5818,6 @@ public com.google.type.DateOrBuilder getCreatedBeforeOrBuilder() {
                      * 
            * * optional bool is_live = 3; - * * @return Whether the isLive field is set. */ @java.lang.Override @@ -6528,8 +5825,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
            @@ -6537,7 +5832,6 @@ public boolean hasIsLive() {
                      * 
            * * optional bool is_live = 3; - * * @return The isLive. */ @java.lang.Override @@ -6548,8 +5842,6 @@ public boolean getIsLive() { public static final int NUM_NEWER_VERSIONS_FIELD_NUMBER = 4; private int numNewerVersions_ = 0; /** - * - * *
                      * Relevant only for versioned objects. If the value is N, this
                      * condition is satisfied when there are at least N versions (including
            @@ -6557,7 +5849,6 @@ public boolean getIsLive() {
                      * 
            * * optional int32 num_newer_versions = 4; - * * @return Whether the numNewerVersions field is set. */ @java.lang.Override @@ -6565,8 +5856,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
            @@ -6574,7 +5863,6 @@ public boolean hasNumNewerVersions() {
                      * 
            * * optional int32 num_newer_versions = 4; - * * @return The numNewerVersions. */ @java.lang.Override @@ -6583,13 +5871,10 @@ public int getNumNewerVersions() { } public static final int MATCHES_STORAGE_CLASS_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList matchesStorageClass_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
                      * Objects having any of the storage classes specified by this condition
                      * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
            @@ -6598,15 +5883,13 @@ public int getNumNewerVersions() {
                      * 
            * * repeated string matches_storage_class = 5; - * * @return A list containing the matchesStorageClass. */ - public com.google.protobuf.ProtocolStringList getMatchesStorageClassList() { + public com.google.protobuf.ProtocolStringList + getMatchesStorageClassList() { return matchesStorageClass_; } /** - * - * *
                      * Objects having any of the storage classes specified by this condition
                      * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
            @@ -6615,15 +5898,12 @@ public com.google.protobuf.ProtocolStringList getMatchesStorageClassList() {
                      * 
            * * repeated string matches_storage_class = 5; - * * @return The count of matchesStorageClass. */ public int getMatchesStorageClassCount() { return matchesStorageClass_.size(); } /** - * - * *
                      * Objects having any of the storage classes specified by this condition
                      * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
            @@ -6632,7 +5912,6 @@ public int getMatchesStorageClassCount() {
                      * 
            * * repeated string matches_storage_class = 5; - * * @param index The index of the element to return. * @return The matchesStorageClass at the given index. */ @@ -6640,8 +5919,6 @@ public java.lang.String getMatchesStorageClass(int index) { return matchesStorageClass_.get(index); } /** - * - * *
                      * Objects having any of the storage classes specified by this condition
                      * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
            @@ -6650,19 +5927,17 @@ public java.lang.String getMatchesStorageClass(int index) {
                      * 
            * * repeated string matches_storage_class = 5; - * * @param index The index of the value to return. * @return The bytes of the matchesStorageClass at the given index. */ - public com.google.protobuf.ByteString getMatchesStorageClassBytes(int index) { + public com.google.protobuf.ByteString + getMatchesStorageClassBytes(int index) { return matchesStorageClass_.getByteString(index); } public static final int DAYS_SINCE_CUSTOM_TIME_FIELD_NUMBER = 7; private int daysSinceCustomTime_ = 0; /** - * - * *
                      * Number of days that have elapsed since the custom timestamp set on an
                      * object.
            @@ -6670,7 +5945,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 @@ -6678,8 +5952,6 @@ public boolean hasDaysSinceCustomTime() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
                      * Number of days that have elapsed since the custom timestamp set on an
                      * object.
            @@ -6687,7 +5959,6 @@ public boolean hasDaysSinceCustomTime() {
                      * 
            * * optional int32 days_since_custom_time = 7; - * * @return The daysSinceCustomTime. */ @java.lang.Override @@ -6698,15 +5969,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 @@ -6714,26 +5982,19 @@ public boolean hasCustomTimeBefore() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
                      * An object matches this condition if the custom timestamp set on the
                      * object is before the specified date in UTC.
                      * 
            * * .google.type.Date custom_time_before = 8; - * * @return The customTimeBefore. */ @java.lang.Override public com.google.type.Date getCustomTimeBefore() { - return customTimeBefore_ == null - ? com.google.type.Date.getDefaultInstance() - : customTimeBefore_; + return customTimeBefore_ == null ? com.google.type.Date.getDefaultInstance() : customTimeBefore_; } /** - * - * *
                      * An object matches this condition if the custom timestamp set on the
                      * object is before the specified date in UTC.
            @@ -6743,16 +6004,12 @@ public com.google.type.Date getCustomTimeBefore() {
                      */
                     @java.lang.Override
                     public com.google.type.DateOrBuilder getCustomTimeBeforeOrBuilder() {
            -          return customTimeBefore_ == null
            -              ? com.google.type.Date.getDefaultInstance()
            -              : customTimeBefore_;
            +          return customTimeBefore_ == null ? com.google.type.Date.getDefaultInstance() : customTimeBefore_;
                     }
             
                     public static final int DAYS_SINCE_NONCURRENT_TIME_FIELD_NUMBER = 9;
                     private int daysSinceNoncurrentTime_ = 0;
                     /**
            -         *
            -         *
                      * 
                      * This condition is relevant only for versioned objects. An object
                      * version satisfies this condition only if these many days have been
            @@ -6762,7 +6019,6 @@ public com.google.type.DateOrBuilder getCustomTimeBeforeOrBuilder() {
                      * 
            * * optional int32 days_since_noncurrent_time = 9; - * * @return Whether the daysSinceNoncurrentTime field is set. */ @java.lang.Override @@ -6770,8 +6026,6 @@ public boolean hasDaysSinceNoncurrentTime() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
                      * This condition is relevant only for versioned objects. An object
                      * version satisfies this condition only if these many days have been
            @@ -6781,7 +6035,6 @@ public boolean hasDaysSinceNoncurrentTime() {
                      * 
            * * optional int32 days_since_noncurrent_time = 9; - * * @return The daysSinceNoncurrentTime. */ @java.lang.Override @@ -6792,8 +6045,6 @@ public int getDaysSinceNoncurrentTime() { public static final int NONCURRENT_TIME_BEFORE_FIELD_NUMBER = 10; private com.google.type.Date noncurrentTimeBefore_; /** - * - * *
                      * This condition is relevant only for versioned objects. An object
                      * version satisfies this condition only if it became noncurrent before
            @@ -6801,7 +6052,6 @@ public int getDaysSinceNoncurrentTime() {
                      * 
            * * .google.type.Date noncurrent_time_before = 10; - * * @return Whether the noncurrentTimeBefore field is set. */ @java.lang.Override @@ -6809,8 +6059,6 @@ public boolean hasNoncurrentTimeBefore() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
                      * This condition is relevant only for versioned objects. An object
                      * version satisfies this condition only if it became noncurrent before
            @@ -6818,18 +6066,13 @@ public boolean hasNoncurrentTimeBefore() {
                      * 
            * * .google.type.Date noncurrent_time_before = 10; - * * @return The noncurrentTimeBefore. */ @java.lang.Override public com.google.type.Date getNoncurrentTimeBefore() { - return noncurrentTimeBefore_ == null - ? com.google.type.Date.getDefaultInstance() - : noncurrentTimeBefore_; + return noncurrentTimeBefore_ == null ? com.google.type.Date.getDefaultInstance() : noncurrentTimeBefore_; } /** - * - * *
                      * This condition is relevant only for versioned objects. An object
                      * version satisfies this condition only if it became noncurrent before
            @@ -6840,56 +6083,45 @@ public com.google.type.Date getNoncurrentTimeBefore() {
                      */
                     @java.lang.Override
                     public com.google.type.DateOrBuilder getNoncurrentTimeBeforeOrBuilder() {
            -          return noncurrentTimeBefore_ == null
            -              ? com.google.type.Date.getDefaultInstance()
            -              : noncurrentTimeBefore_;
            +          return noncurrentTimeBefore_ == null ? com.google.type.Date.getDefaultInstance() : noncurrentTimeBefore_;
                     }
             
                     public static final int MATCHES_PREFIX_FIELD_NUMBER = 11;
            -
                     @SuppressWarnings("serial")
                     private com.google.protobuf.LazyStringArrayList matchesPrefix_ =
                         com.google.protobuf.LazyStringArrayList.emptyList();
                     /**
            -         *
            -         *
                      * 
                      * List of object name prefixes. If any prefix exactly matches the
                      * beginning of the object name, the condition evaluates to true.
                      * 
            * * repeated string matches_prefix = 11; - * * @return A list containing the matchesPrefix. */ - public com.google.protobuf.ProtocolStringList getMatchesPrefixList() { + public com.google.protobuf.ProtocolStringList + getMatchesPrefixList() { return matchesPrefix_; } /** - * - * *
                      * List of object name prefixes. If any prefix exactly matches the
                      * beginning of the object name, the condition evaluates to true.
                      * 
            * * repeated string matches_prefix = 11; - * * @return The count of matchesPrefix. */ public int getMatchesPrefixCount() { return matchesPrefix_.size(); } /** - * - * *
                      * List of object name prefixes. If any prefix exactly matches the
                      * beginning of the object name, the condition evaluates to true.
                      * 
            * * repeated string matches_prefix = 11; - * * @param index The index of the element to return. * @return The matchesPrefix at the given index. */ @@ -6897,92 +6129,78 @@ public java.lang.String getMatchesPrefix(int index) { return matchesPrefix_.get(index); } /** - * - * *
                      * List of object name prefixes. If any prefix exactly matches the
                      * beginning of the object name, the condition evaluates to true.
                      * 
            * * repeated string matches_prefix = 11; - * * @param index The index of the value to return. * @return The bytes of the matchesPrefix at the given index. */ - public com.google.protobuf.ByteString getMatchesPrefixBytes(int index) { + public com.google.protobuf.ByteString + getMatchesPrefixBytes(int index) { return matchesPrefix_.getByteString(index); } public static final int MATCHES_SUFFIX_FIELD_NUMBER = 12; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList matchesSuffix_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
                      * List of object name suffixes. If any suffix exactly matches the
                      * end of the object name, the condition evaluates to true.
                      * 
            * * repeated string matches_suffix = 12; - * * @return A list containing the matchesSuffix. */ - public com.google.protobuf.ProtocolStringList getMatchesSuffixList() { + public com.google.protobuf.ProtocolStringList + getMatchesSuffixList() { return matchesSuffix_; } /** - * - * *
                      * List of object name suffixes. If any suffix exactly matches the
                      * end of the object name, the condition evaluates to true.
                      * 
            * * repeated string matches_suffix = 12; - * * @return The count of matchesSuffix. */ public int getMatchesSuffixCount() { return matchesSuffix_.size(); } /** - * - * *
                      * List of object name suffixes. If any suffix exactly matches the
                      * end of the object name, the condition evaluates to true.
                      * 
            * * repeated string matches_suffix = 12; - * * @param index The index of the element to return. * @return The matchesSuffix at the given index. */ 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; @@ -6995,7 +6213,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_); } @@ -7009,8 +6227,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_ & 0x00000010) != 0)) { output.writeInt32(7, daysSinceCustomTime_); @@ -7025,12 +6242,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); } @@ -7042,16 +6257,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 (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreatedBefore()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreatedBefore()); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, isLive_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, isLive_); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, numNewerVersions_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, numNewerVersions_); } { int dataSize = 0; @@ -7062,20 +6281,20 @@ public int getSerializedSize() { size += 1 * getMatchesStorageClassList().size(); } if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, daysSinceCustomTime_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, daysSinceCustomTime_); } if (((bitField0_ & 0x00000020) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCustomTimeBefore()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getCustomTimeBefore()); } if (((bitField0_ & 0x00000040) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size(9, daysSinceNoncurrentTime_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(9, daysSinceNoncurrentTime_); } if (((bitField0_ & 0x00000080) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 10, getNoncurrentTimeBefore()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getNoncurrentTimeBefore()); } { int dataSize = 0; @@ -7101,50 +6320,59 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.Bucket.Lifecycle.Rule.Condition)) { return super.equals(obj); } - com.google.storage.v2.Bucket.Lifecycle.Rule.Condition other = - (com.google.storage.v2.Bucket.Lifecycle.Rule.Condition) obj; + com.google.storage.v2.Bucket.Lifecycle.Rule.Condition other = (com.google.storage.v2.Bucket.Lifecycle.Rule.Condition) obj; if (hasAgeDays() != other.hasAgeDays()) return false; if (hasAgeDays()) { - if (getAgeDays() != other.getAgeDays()) return false; + if (getAgeDays() + != other.getAgeDays()) return false; } if (hasCreatedBefore() != other.hasCreatedBefore()) return false; if (hasCreatedBefore()) { - if (!getCreatedBefore().equals(other.getCreatedBefore())) return false; + if (!getCreatedBefore() + .equals(other.getCreatedBefore())) return false; } if (hasIsLive() != other.hasIsLive()) return false; if (hasIsLive()) { - if (getIsLive() != other.getIsLive()) return false; + if (getIsLive() + != other.getIsLive()) return false; } if (hasNumNewerVersions() != other.hasNumNewerVersions()) return false; if (hasNumNewerVersions()) { - if (getNumNewerVersions() != other.getNumNewerVersions()) return false; + if (getNumNewerVersions() + != other.getNumNewerVersions()) return false; } - if (!getMatchesStorageClassList().equals(other.getMatchesStorageClassList())) - return false; + if (!getMatchesStorageClassList() + .equals(other.getMatchesStorageClassList())) return false; if (hasDaysSinceCustomTime() != other.hasDaysSinceCustomTime()) return false; if (hasDaysSinceCustomTime()) { - if (getDaysSinceCustomTime() != other.getDaysSinceCustomTime()) return false; + if (getDaysSinceCustomTime() + != other.getDaysSinceCustomTime()) return false; } if (hasCustomTimeBefore() != other.hasCustomTimeBefore()) return false; if (hasCustomTimeBefore()) { - if (!getCustomTimeBefore().equals(other.getCustomTimeBefore())) return false; + if (!getCustomTimeBefore() + .equals(other.getCustomTimeBefore())) return false; } if (hasDaysSinceNoncurrentTime() != other.hasDaysSinceNoncurrentTime()) return false; if (hasDaysSinceNoncurrentTime()) { - if (getDaysSinceNoncurrentTime() != other.getDaysSinceNoncurrentTime()) return false; + if (getDaysSinceNoncurrentTime() + != other.getDaysSinceNoncurrentTime()) return false; } if (hasNoncurrentTimeBefore() != other.hasNoncurrentTimeBefore()) return false; if (hasNoncurrentTimeBefore()) { - if (!getNoncurrentTimeBefore().equals(other.getNoncurrentTimeBefore())) return false; + if (!getNoncurrentTimeBefore() + .equals(other.getNoncurrentTimeBefore())) return false; } - if (!getMatchesPrefixList().equals(other.getMatchesPrefixList())) return false; - if (!getMatchesSuffixList().equals(other.getMatchesSuffixList())) return false; + if (!getMatchesPrefixList() + .equals(other.getMatchesPrefixList())) return false; + if (!getMatchesSuffixList() + .equals(other.getMatchesSuffixList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -7166,7 +6394,8 @@ public int hashCode() { } if (hasIsLive()) { hash = (37 * hash) + IS_LIVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsLive()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsLive()); } if (hasNumNewerVersions()) { hash = (37 * hash) + NUM_NEWER_VERSIONS_FIELD_NUMBER; @@ -7206,95 +6435,89 @@ public int hashCode() { } public static com.google.storage.v2.Bucket.Lifecycle.Rule.Condition parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule.Condition parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule.Condition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule.Condition parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule.Condition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule.Condition parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.v2.Bucket.Lifecycle.Rule.Condition parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.v2.Bucket.Lifecycle.Rule.Condition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule.Condition parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule.Condition parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); + public static com.google.storage.v2.Bucket.Lifecycle.Rule.Condition parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.Bucket.Lifecycle.Rule.Condition parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule.Condition parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule.Condition parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.storage.v2.Bucket.Lifecycle.Rule.Condition prototype) { + public static Builder newBuilder(com.google.storage.v2.Bucket.Lifecycle.Rule.Condition prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -7304,32 +6527,27 @@ 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() @@ -7337,19 +6555,19 @@ 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) { getCreatedBeforeFieldBuilder(); getCustomTimeBeforeFieldBuilder(); getNoncurrentTimeBeforeFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -7362,7 +6580,8 @@ public Builder clear() { } isLive_ = false; numNewerVersions_ = 0; - matchesStorageClass_ = com.google.protobuf.LazyStringArrayList.emptyList(); + matchesStorageClass_ = + com.google.protobuf.LazyStringArrayList.emptyList(); daysSinceCustomTime_ = 0; customTimeBefore_ = null; if (customTimeBeforeBuilder_ != null) { @@ -7375,15 +6594,17 @@ public Builder clear() { noncurrentTimeBeforeBuilder_.dispose(); noncurrentTimeBeforeBuilder_ = null; } - matchesPrefix_ = com.google.protobuf.LazyStringArrayList.emptyList(); - matchesSuffix_ = com.google.protobuf.LazyStringArrayList.emptyList(); + matchesPrefix_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + matchesSuffix_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_descriptor; } @java.lang.Override @@ -7402,11 +6623,8 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule.Condition build() { @java.lang.Override public com.google.storage.v2.Bucket.Lifecycle.Rule.Condition buildPartial() { - com.google.storage.v2.Bucket.Lifecycle.Rule.Condition result = - new com.google.storage.v2.Bucket.Lifecycle.Rule.Condition(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.Bucket.Lifecycle.Rule.Condition result = new com.google.storage.v2.Bucket.Lifecycle.Rule.Condition(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -7419,8 +6637,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(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -7440,10 +6659,9 @@ private void buildPartial0(com.google.storage.v2.Bucket.Lifecycle.Rule.Condition to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.customTimeBefore_ = - customTimeBeforeBuilder_ == null - ? customTimeBefore_ - : customTimeBeforeBuilder_.build(); + result.customTimeBefore_ = customTimeBeforeBuilder_ == null + ? customTimeBefore_ + : customTimeBeforeBuilder_.build(); to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000080) != 0)) { @@ -7451,10 +6669,9 @@ private void buildPartial0(com.google.storage.v2.Bucket.Lifecycle.Rule.Condition to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.noncurrentTimeBefore_ = - noncurrentTimeBeforeBuilder_ == null - ? noncurrentTimeBefore_ - : noncurrentTimeBeforeBuilder_.build(); + result.noncurrentTimeBefore_ = noncurrentTimeBeforeBuilder_ == null + ? noncurrentTimeBefore_ + : noncurrentTimeBeforeBuilder_.build(); to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000200) != 0)) { @@ -7472,41 +6689,38 @@ private void buildPartial0(com.google.storage.v2.Bucket.Lifecycle.Rule.Condition public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.Bucket.Lifecycle.Rule.Condition) { - return mergeFrom((com.google.storage.v2.Bucket.Lifecycle.Rule.Condition) other); + return mergeFrom((com.google.storage.v2.Bucket.Lifecycle.Rule.Condition)other); } else { super.mergeFrom(other); return this; @@ -7514,8 +6728,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.v2.Bucket.Lifecycle.Rule.Condition other) { - if (other == com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.getDefaultInstance()) - return this; + if (other == com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.getDefaultInstance()) return this; if (other.hasAgeDays()) { setAgeDays(other.getAgeDays()); } @@ -7596,85 +6809,76 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - ageDays_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - input.readMessage( - getCreatedBeforeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - isLive_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - numNewerVersions_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureMatchesStorageClassIsMutable(); - matchesStorageClass_.add(s); - break; - } // case 42 - case 56: - { - daysSinceCustomTime_ = input.readInt32(); - bitField0_ |= 0x00000020; - break; - } // case 56 - case 66: - { - input.readMessage( - getCustomTimeBeforeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 66 - case 72: - { - daysSinceNoncurrentTime_ = input.readInt32(); - bitField0_ |= 0x00000080; - break; - } // case 72 - case 82: - { - input.readMessage( - getNoncurrentTimeBeforeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 82 - case 90: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureMatchesPrefixIsMutable(); - matchesPrefix_.add(s); - break; - } // case 90 - case 98: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureMatchesSuffixIsMutable(); - matchesSuffix_.add(s); - break; - } // case 98 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + ageDays_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getCreatedBeforeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + isLive_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + numNewerVersions_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + ensureMatchesStorageClassIsMutable(); + matchesStorageClass_.add(s); + break; + } // case 42 + case 56: { + daysSinceCustomTime_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 56 + case 66: { + input.readMessage( + getCustomTimeBeforeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 72: { + daysSinceNoncurrentTime_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 72 + case 82: { + input.readMessage( + getNoncurrentTimeBeforeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 82 + case 90: { + java.lang.String s = input.readStringRequireUtf8(); + ensureMatchesPrefixIsMutable(); + matchesPrefix_.add(s); + break; + } // case 90 + case 98: { + java.lang.String s = input.readStringRequireUtf8(); + ensureMatchesSuffixIsMutable(); + matchesSuffix_.add(s); + break; + } // case 98 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -7684,13 +6888,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private int ageDays_; + private int ageDays_ ; /** - * - * *
                        * Age of an object (in days). This condition is satisfied when an
                        * object reaches the specified age.
            @@ -7699,7 +6900,6 @@ public Builder mergeFrom(
                        * 
            * * optional int32 age_days = 1; - * * @return Whether the ageDays field is set. */ @java.lang.Override @@ -7707,8 +6907,6 @@ public boolean hasAgeDays() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                        * Age of an object (in days). This condition is satisfied when an
                        * object reaches the specified age.
            @@ -7717,7 +6915,6 @@ public boolean hasAgeDays() {
                        * 
            * * optional int32 age_days = 1; - * * @return The ageDays. */ @java.lang.Override @@ -7725,8 +6922,6 @@ public int getAgeDays() { return ageDays_; } /** - * - * *
                        * Age of an object (in days). This condition is satisfied when an
                        * object reaches the specified age.
            @@ -7735,7 +6930,6 @@ public int getAgeDays() {
                        * 
            * * optional int32 age_days = 1; - * * @param value The ageDays to set. * @return This builder for chaining. */ @@ -7747,8 +6941,6 @@ public Builder setAgeDays(int value) { return this; } /** - * - * *
                        * Age of an object (in days). This condition is satisfied when an
                        * object reaches the specified age.
            @@ -7757,7 +6949,6 @@ public Builder setAgeDays(int value) {
                        * 
            * * optional int32 age_days = 1; - * * @return This builder for chaining. */ public Builder clearAgeDays() { @@ -7769,47 +6960,36 @@ public Builder clearAgeDays() { private com.google.type.Date createdBefore_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - createdBeforeBuilder_; + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> createdBeforeBuilder_; /** - * - * *
                        * This condition is satisfied when an object is created before midnight
                        * of the specified date in UTC.
                        * 
            * * .google.type.Date created_before = 2; - * * @return Whether the createdBefore field is set. */ public boolean hasCreatedBefore() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                        * This condition is satisfied when an object is created before midnight
                        * of the specified date in UTC.
                        * 
            * * .google.type.Date created_before = 2; - * * @return The createdBefore. */ public com.google.type.Date getCreatedBefore() { if (createdBeforeBuilder_ == null) { - return createdBefore_ == null - ? com.google.type.Date.getDefaultInstance() - : createdBefore_; + return createdBefore_ == null ? com.google.type.Date.getDefaultInstance() : createdBefore_; } else { return createdBeforeBuilder_.getMessage(); } } /** - * - * *
                        * This condition is satisfied when an object is created before midnight
                        * of the specified date in UTC.
            @@ -7831,8 +7011,6 @@ public Builder setCreatedBefore(com.google.type.Date value) {
                         return this;
                       }
                       /**
            -           *
            -           *
                        * 
                        * This condition is satisfied when an object is created before midnight
                        * of the specified date in UTC.
            @@ -7840,7 +7018,8 @@ public Builder setCreatedBefore(com.google.type.Date value) {
                        *
                        * .google.type.Date created_before = 2;
                        */
            -          public Builder setCreatedBefore(com.google.type.Date.Builder builderForValue) {
            +          public Builder setCreatedBefore(
            +              com.google.type.Date.Builder builderForValue) {
                         if (createdBeforeBuilder_ == null) {
                           createdBefore_ = builderForValue.build();
                         } else {
            @@ -7851,8 +7030,6 @@ public Builder setCreatedBefore(com.google.type.Date.Builder builderForValue) {
                         return this;
                       }
                       /**
            -           *
            -           *
                        * 
                        * This condition is satisfied when an object is created before midnight
                        * of the specified date in UTC.
            @@ -7862,9 +7039,9 @@ public Builder setCreatedBefore(com.google.type.Date.Builder builderForValue) {
                        */
                       public Builder mergeCreatedBefore(com.google.type.Date value) {
                         if (createdBeforeBuilder_ == null) {
            -              if (((bitField0_ & 0x00000002) != 0)
            -                  && createdBefore_ != null
            -                  && createdBefore_ != com.google.type.Date.getDefaultInstance()) {
            +              if (((bitField0_ & 0x00000002) != 0) &&
            +                createdBefore_ != null &&
            +                createdBefore_ != com.google.type.Date.getDefaultInstance()) {
                             getCreatedBeforeBuilder().mergeFrom(value);
                           } else {
                             createdBefore_ = value;
            @@ -7879,8 +7056,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.
            @@ -7899,8 +7074,6 @@ public Builder clearCreatedBefore() {
                         return this;
                       }
                       /**
            -           *
            -           *
                        * 
                        * This condition is satisfied when an object is created before midnight
                        * of the specified date in UTC.
            @@ -7914,8 +7087,6 @@ public com.google.type.Date.Builder getCreatedBeforeBuilder() {
                         return getCreatedBeforeFieldBuilder().getBuilder();
                       }
                       /**
            -           *
            -           *
                        * 
                        * This condition is satisfied when an object is created before midnight
                        * of the specified date in UTC.
            @@ -7927,14 +7098,11 @@ public com.google.type.DateOrBuilder getCreatedBeforeOrBuilder() {
                         if (createdBeforeBuilder_ != null) {
                           return createdBeforeBuilder_.getMessageOrBuilder();
                         } else {
            -              return createdBefore_ == null
            -                  ? com.google.type.Date.getDefaultInstance()
            -                  : createdBefore_;
            +              return createdBefore_ == null ?
            +                  com.google.type.Date.getDefaultInstance() : createdBefore_;
                         }
                       }
                       /**
            -           *
            -           *
                        * 
                        * This condition is satisfied when an object is created before midnight
                        * of the specified date in UTC.
            @@ -7943,24 +7111,21 @@ public com.google.type.DateOrBuilder getCreatedBeforeOrBuilder() {
                        * .google.type.Date created_before = 2;
                        */
                       private com.google.protobuf.SingleFieldBuilderV3<
            -                  com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>
            +              com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> 
                           getCreatedBeforeFieldBuilder() {
                         if (createdBeforeBuilder_ == null) {
            -              createdBeforeBuilder_ =
            -                  new com.google.protobuf.SingleFieldBuilderV3<
            -                      com.google.type.Date,
            -                      com.google.type.Date.Builder,
            -                      com.google.type.DateOrBuilder>(
            -                      getCreatedBefore(), getParentForChildren(), isClean());
            +              createdBeforeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            +                  com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>(
            +                      getCreatedBefore(),
            +                      getParentForChildren(),
            +                      isClean());
                           createdBefore_ = null;
                         }
                         return createdBeforeBuilder_;
                       }
             
            -          private boolean isLive_;
            +          private boolean isLive_ ;
                       /**
            -           *
            -           *
                        * 
                        * Relevant only for versioned objects. If the value is
                        * `true`, this condition matches live objects; if the value
            @@ -7968,7 +7133,6 @@ public com.google.type.DateOrBuilder getCreatedBeforeOrBuilder() {
                        * 
            * * optional bool is_live = 3; - * * @return Whether the isLive field is set. */ @java.lang.Override @@ -7976,8 +7140,6 @@ public boolean hasIsLive() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
                        * Relevant only for versioned objects. If the value is
                        * `true`, this condition matches live objects; if the value
            @@ -7985,7 +7147,6 @@ public boolean hasIsLive() {
                        * 
            * * optional bool is_live = 3; - * * @return The isLive. */ @java.lang.Override @@ -7993,8 +7154,6 @@ public boolean getIsLive() { return isLive_; } /** - * - * *
                        * Relevant only for versioned objects. If the value is
                        * `true`, this condition matches live objects; if the value
            @@ -8002,7 +7161,6 @@ public boolean getIsLive() {
                        * 
            * * optional bool is_live = 3; - * * @param value The isLive to set. * @return This builder for chaining. */ @@ -8014,8 +7172,6 @@ public Builder setIsLive(boolean value) { return this; } /** - * - * *
                        * Relevant only for versioned objects. If the value is
                        * `true`, this condition matches live objects; if the value
            @@ -8023,7 +7179,6 @@ public Builder setIsLive(boolean value) {
                        * 
            * * optional bool is_live = 3; - * * @return This builder for chaining. */ public Builder clearIsLive() { @@ -8033,10 +7188,8 @@ public Builder clearIsLive() { return this; } - private int numNewerVersions_; + private int numNewerVersions_ ; /** - * - * *
                        * Relevant only for versioned objects. If the value is N, this
                        * condition is satisfied when there are at least N versions (including
            @@ -8044,7 +7197,6 @@ public Builder clearIsLive() {
                        * 
            * * optional int32 num_newer_versions = 4; - * * @return Whether the numNewerVersions field is set. */ @java.lang.Override @@ -8052,8 +7204,6 @@ public boolean hasNumNewerVersions() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
                        * Relevant only for versioned objects. If the value is N, this
                        * condition is satisfied when there are at least N versions (including
            @@ -8061,7 +7211,6 @@ public boolean hasNumNewerVersions() {
                        * 
            * * optional int32 num_newer_versions = 4; - * * @return The numNewerVersions. */ @java.lang.Override @@ -8069,8 +7218,6 @@ public int getNumNewerVersions() { return numNewerVersions_; } /** - * - * *
                        * Relevant only for versioned objects. If the value is N, this
                        * condition is satisfied when there are at least N versions (including
            @@ -8078,7 +7225,6 @@ public int getNumNewerVersions() {
                        * 
            * * optional int32 num_newer_versions = 4; - * * @param value The numNewerVersions to set. * @return This builder for chaining. */ @@ -8090,8 +7236,6 @@ public Builder setNumNewerVersions(int value) { return this; } /** - * - * *
                        * Relevant only for versioned objects. If the value is N, this
                        * condition is satisfied when there are at least N versions (including
            @@ -8099,7 +7243,6 @@ public Builder setNumNewerVersions(int value) {
                        * 
            * * optional int32 num_newer_versions = 4; - * * @return This builder for chaining. */ public Builder clearNumNewerVersions() { @@ -8111,17 +7254,13 @@ public Builder clearNumNewerVersions() { private com.google.protobuf.LazyStringArrayList matchesStorageClass_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureMatchesStorageClassIsMutable() { if (!matchesStorageClass_.isModifiable()) { - matchesStorageClass_ = - new com.google.protobuf.LazyStringArrayList(matchesStorageClass_); + matchesStorageClass_ = new com.google.protobuf.LazyStringArrayList(matchesStorageClass_); } bitField0_ |= 0x00000010; } /** - * - * *
                        * Objects having any of the storage classes specified by this condition
                        * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
            @@ -8130,16 +7269,14 @@ private void ensureMatchesStorageClassIsMutable() {
                        * 
            * * repeated string matches_storage_class = 5; - * * @return A list containing the matchesStorageClass. */ - public com.google.protobuf.ProtocolStringList getMatchesStorageClassList() { + public com.google.protobuf.ProtocolStringList + getMatchesStorageClassList() { matchesStorageClass_.makeImmutable(); return matchesStorageClass_; } /** - * - * *
                        * Objects having any of the storage classes specified by this condition
                        * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
            @@ -8148,15 +7285,12 @@ public com.google.protobuf.ProtocolStringList getMatchesStorageClassList() {
                        * 
            * * repeated string matches_storage_class = 5; - * * @return The count of matchesStorageClass. */ public int getMatchesStorageClassCount() { return matchesStorageClass_.size(); } /** - * - * *
                        * Objects having any of the storage classes specified by this condition
                        * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
            @@ -8165,7 +7299,6 @@ public int getMatchesStorageClassCount() {
                        * 
            * * repeated string matches_storage_class = 5; - * * @param index The index of the element to return. * @return The matchesStorageClass at the given index. */ @@ -8173,8 +7306,6 @@ public java.lang.String getMatchesStorageClass(int index) { return matchesStorageClass_.get(index); } /** - * - * *
                        * Objects having any of the storage classes specified by this condition
                        * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
            @@ -8183,16 +7314,14 @@ public java.lang.String getMatchesStorageClass(int index) {
                        * 
            * * repeated string matches_storage_class = 5; - * * @param index The index of the value to return. * @return The bytes of the matchesStorageClass at the given index. */ - public com.google.protobuf.ByteString getMatchesStorageClassBytes(int index) { + public com.google.protobuf.ByteString + getMatchesStorageClassBytes(int index) { return matchesStorageClass_.getByteString(index); } /** - * - * *
                        * Objects having any of the storage classes specified by this condition
                        * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
            @@ -8201,15 +7330,13 @@ public com.google.protobuf.ByteString getMatchesStorageClassBytes(int index) {
                        * 
            * * repeated string matches_storage_class = 5; - * * @param index The index to set the value at. * @param value The matchesStorageClass to set. * @return This builder for chaining. */ - public Builder setMatchesStorageClass(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMatchesStorageClass( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureMatchesStorageClassIsMutable(); matchesStorageClass_.set(index, value); bitField0_ |= 0x00000010; @@ -8217,8 +7344,6 @@ public Builder setMatchesStorageClass(int index, java.lang.String value) { return this; } /** - * - * *
                        * Objects having any of the storage classes specified by this condition
                        * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
            @@ -8227,14 +7352,12 @@ public Builder setMatchesStorageClass(int index, java.lang.String value) {
                        * 
            * * repeated string matches_storage_class = 5; - * * @param value The matchesStorageClass to add. * @return This builder for chaining. */ - public Builder addMatchesStorageClass(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addMatchesStorageClass( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureMatchesStorageClassIsMutable(); matchesStorageClass_.add(value); bitField0_ |= 0x00000010; @@ -8242,8 +7365,6 @@ public Builder addMatchesStorageClass(java.lang.String value) { return this; } /** - * - * *
                        * Objects having any of the storage classes specified by this condition
                        * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
            @@ -8252,20 +7373,19 @@ public Builder addMatchesStorageClass(java.lang.String value) {
                        * 
            * * repeated string matches_storage_class = 5; - * * @param values The matchesStorageClass to add. * @return This builder for chaining. */ - public Builder addAllMatchesStorageClass(java.lang.Iterable values) { + public Builder addAllMatchesStorageClass( + java.lang.Iterable values) { ensureMatchesStorageClassIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, matchesStorageClass_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, matchesStorageClass_); bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
                        * Objects having any of the storage classes specified by this condition
                        * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
            @@ -8274,19 +7394,16 @@ public Builder addAllMatchesStorageClass(java.lang.Iterable va
                        * 
            * * repeated string matches_storage_class = 5; - * * @return This builder for chaining. */ public Builder clearMatchesStorageClass() { - matchesStorageClass_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - ; + matchesStorageClass_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010);; onChanged(); return this; } /** - * - * *
                        * Objects having any of the storage classes specified by this condition
                        * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
            @@ -8295,14 +7412,12 @@ public Builder clearMatchesStorageClass() {
                        * 
            * * repeated string matches_storage_class = 5; - * * @param value The bytes of the matchesStorageClass to add. * @return This builder for chaining. */ - public Builder addMatchesStorageClassBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addMatchesStorageClassBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureMatchesStorageClassIsMutable(); matchesStorageClass_.add(value); @@ -8311,10 +7426,8 @@ public Builder addMatchesStorageClassBytes(com.google.protobuf.ByteString value) return this; } - private int daysSinceCustomTime_; + private int daysSinceCustomTime_ ; /** - * - * *
                        * Number of days that have elapsed since the custom timestamp set on an
                        * object.
            @@ -8322,7 +7435,6 @@ public Builder addMatchesStorageClassBytes(com.google.protobuf.ByteString value)
                        * 
            * * optional int32 days_since_custom_time = 7; - * * @return Whether the daysSinceCustomTime field is set. */ @java.lang.Override @@ -8330,8 +7442,6 @@ public boolean hasDaysSinceCustomTime() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
                        * Number of days that have elapsed since the custom timestamp set on an
                        * object.
            @@ -8339,7 +7449,6 @@ public boolean hasDaysSinceCustomTime() {
                        * 
            * * optional int32 days_since_custom_time = 7; - * * @return The daysSinceCustomTime. */ @java.lang.Override @@ -8347,8 +7456,6 @@ public int getDaysSinceCustomTime() { return daysSinceCustomTime_; } /** - * - * *
                        * Number of days that have elapsed since the custom timestamp set on an
                        * object.
            @@ -8356,7 +7463,6 @@ public int getDaysSinceCustomTime() {
                        * 
            * * optional int32 days_since_custom_time = 7; - * * @param value The daysSinceCustomTime to set. * @return This builder for chaining. */ @@ -8368,8 +7474,6 @@ public Builder setDaysSinceCustomTime(int value) { return this; } /** - * - * *
                        * Number of days that have elapsed since the custom timestamp set on an
                        * object.
            @@ -8377,7 +7481,6 @@ public Builder setDaysSinceCustomTime(int value) {
                        * 
            * * optional int32 days_since_custom_time = 7; - * * @return This builder for chaining. */ public Builder clearDaysSinceCustomTime() { @@ -8389,47 +7492,36 @@ public Builder clearDaysSinceCustomTime() { private com.google.type.Date customTimeBefore_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - customTimeBeforeBuilder_; + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> customTimeBeforeBuilder_; /** - * - * *
                        * An object matches this condition if the custom timestamp set on the
                        * object is before the specified date in UTC.
                        * 
            * * .google.type.Date custom_time_before = 8; - * * @return Whether the customTimeBefore field is set. */ public boolean hasCustomTimeBefore() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
                        * An object matches this condition if the custom timestamp set on the
                        * object is before the specified date in UTC.
                        * 
            * * .google.type.Date custom_time_before = 8; - * * @return The customTimeBefore. */ public com.google.type.Date getCustomTimeBefore() { if (customTimeBeforeBuilder_ == null) { - return customTimeBefore_ == null - ? com.google.type.Date.getDefaultInstance() - : customTimeBefore_; + return customTimeBefore_ == null ? com.google.type.Date.getDefaultInstance() : customTimeBefore_; } else { return customTimeBeforeBuilder_.getMessage(); } } /** - * - * *
                        * An object matches this condition if the custom timestamp set on the
                        * object is before the specified date in UTC.
            @@ -8451,8 +7543,6 @@ public Builder setCustomTimeBefore(com.google.type.Date value) {
                         return this;
                       }
                       /**
            -           *
            -           *
                        * 
                        * An object matches this condition if the custom timestamp set on the
                        * object is before the specified date in UTC.
            @@ -8460,7 +7550,8 @@ public Builder setCustomTimeBefore(com.google.type.Date value) {
                        *
                        * .google.type.Date custom_time_before = 8;
                        */
            -          public Builder setCustomTimeBefore(com.google.type.Date.Builder builderForValue) {
            +          public Builder setCustomTimeBefore(
            +              com.google.type.Date.Builder builderForValue) {
                         if (customTimeBeforeBuilder_ == null) {
                           customTimeBefore_ = builderForValue.build();
                         } else {
            @@ -8471,8 +7562,6 @@ public Builder setCustomTimeBefore(com.google.type.Date.Builder builderForValue)
                         return this;
                       }
                       /**
            -           *
            -           *
                        * 
                        * An object matches this condition if the custom timestamp set on the
                        * object is before the specified date in UTC.
            @@ -8482,9 +7571,9 @@ public Builder setCustomTimeBefore(com.google.type.Date.Builder builderForValue)
                        */
                       public Builder mergeCustomTimeBefore(com.google.type.Date value) {
                         if (customTimeBeforeBuilder_ == null) {
            -              if (((bitField0_ & 0x00000040) != 0)
            -                  && customTimeBefore_ != null
            -                  && customTimeBefore_ != com.google.type.Date.getDefaultInstance()) {
            +              if (((bitField0_ & 0x00000040) != 0) &&
            +                customTimeBefore_ != null &&
            +                customTimeBefore_ != com.google.type.Date.getDefaultInstance()) {
                             getCustomTimeBeforeBuilder().mergeFrom(value);
                           } else {
                             customTimeBefore_ = value;
            @@ -8499,8 +7588,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.
            @@ -8519,8 +7606,6 @@ public Builder clearCustomTimeBefore() {
                         return this;
                       }
                       /**
            -           *
            -           *
                        * 
                        * An object matches this condition if the custom timestamp set on the
                        * object is before the specified date in UTC.
            @@ -8534,8 +7619,6 @@ public com.google.type.Date.Builder getCustomTimeBeforeBuilder() {
                         return getCustomTimeBeforeFieldBuilder().getBuilder();
                       }
                       /**
            -           *
            -           *
                        * 
                        * An object matches this condition if the custom timestamp set on the
                        * object is before the specified date in UTC.
            @@ -8547,14 +7630,11 @@ public com.google.type.DateOrBuilder getCustomTimeBeforeOrBuilder() {
                         if (customTimeBeforeBuilder_ != null) {
                           return customTimeBeforeBuilder_.getMessageOrBuilder();
                         } else {
            -              return customTimeBefore_ == null
            -                  ? com.google.type.Date.getDefaultInstance()
            -                  : customTimeBefore_;
            +              return customTimeBefore_ == null ?
            +                  com.google.type.Date.getDefaultInstance() : customTimeBefore_;
                         }
                       }
                       /**
            -           *
            -           *
                        * 
                        * An object matches this condition if the custom timestamp set on the
                        * object is before the specified date in UTC.
            @@ -8563,24 +7643,21 @@ public com.google.type.DateOrBuilder getCustomTimeBeforeOrBuilder() {
                        * .google.type.Date custom_time_before = 8;
                        */
                       private com.google.protobuf.SingleFieldBuilderV3<
            -                  com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>
            +              com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> 
                           getCustomTimeBeforeFieldBuilder() {
                         if (customTimeBeforeBuilder_ == null) {
            -              customTimeBeforeBuilder_ =
            -                  new com.google.protobuf.SingleFieldBuilderV3<
            -                      com.google.type.Date,
            -                      com.google.type.Date.Builder,
            -                      com.google.type.DateOrBuilder>(
            -                      getCustomTimeBefore(), getParentForChildren(), isClean());
            +              customTimeBeforeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            +                  com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>(
            +                      getCustomTimeBefore(),
            +                      getParentForChildren(),
            +                      isClean());
                           customTimeBefore_ = null;
                         }
                         return customTimeBeforeBuilder_;
                       }
             
            -          private int daysSinceNoncurrentTime_;
            +          private int daysSinceNoncurrentTime_ ;
                       /**
            -           *
            -           *
                        * 
                        * This condition is relevant only for versioned objects. An object
                        * version satisfies this condition only if these many days have been
            @@ -8590,7 +7667,6 @@ public com.google.type.DateOrBuilder getCustomTimeBeforeOrBuilder() {
                        * 
            * * optional int32 days_since_noncurrent_time = 9; - * * @return Whether the daysSinceNoncurrentTime field is set. */ @java.lang.Override @@ -8598,8 +7674,6 @@ public boolean hasDaysSinceNoncurrentTime() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
                        * This condition is relevant only for versioned objects. An object
                        * version satisfies this condition only if these many days have been
            @@ -8609,7 +7683,6 @@ public boolean hasDaysSinceNoncurrentTime() {
                        * 
            * * optional int32 days_since_noncurrent_time = 9; - * * @return The daysSinceNoncurrentTime. */ @java.lang.Override @@ -8617,8 +7690,6 @@ public int getDaysSinceNoncurrentTime() { return daysSinceNoncurrentTime_; } /** - * - * *
                        * This condition is relevant only for versioned objects. An object
                        * version satisfies this condition only if these many days have been
            @@ -8628,7 +7699,6 @@ public int getDaysSinceNoncurrentTime() {
                        * 
            * * optional int32 days_since_noncurrent_time = 9; - * * @param value The daysSinceNoncurrentTime to set. * @return This builder for chaining. */ @@ -8640,8 +7710,6 @@ public Builder setDaysSinceNoncurrentTime(int value) { return this; } /** - * - * *
                        * This condition is relevant only for versioned objects. An object
                        * version satisfies this condition only if these many days have been
            @@ -8651,7 +7719,6 @@ public Builder setDaysSinceNoncurrentTime(int value) {
                        * 
            * * optional int32 days_since_noncurrent_time = 9; - * * @return This builder for chaining. */ public Builder clearDaysSinceNoncurrentTime() { @@ -8663,11 +7730,8 @@ public Builder clearDaysSinceNoncurrentTime() { private com.google.type.Date noncurrentTimeBefore_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - noncurrentTimeBeforeBuilder_; + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> noncurrentTimeBeforeBuilder_; /** - * - * *
                        * This condition is relevant only for versioned objects. An object
                        * version satisfies this condition only if it became noncurrent before
            @@ -8675,15 +7739,12 @@ public Builder clearDaysSinceNoncurrentTime() {
                        * 
            * * .google.type.Date noncurrent_time_before = 10; - * * @return Whether the noncurrentTimeBefore field is set. */ public boolean hasNoncurrentTimeBefore() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
                        * This condition is relevant only for versioned objects. An object
                        * version satisfies this condition only if it became noncurrent before
            @@ -8691,21 +7752,16 @@ public boolean hasNoncurrentTimeBefore() {
                        * 
            * * .google.type.Date noncurrent_time_before = 10; - * * @return The noncurrentTimeBefore. */ public com.google.type.Date getNoncurrentTimeBefore() { if (noncurrentTimeBeforeBuilder_ == null) { - return noncurrentTimeBefore_ == null - ? com.google.type.Date.getDefaultInstance() - : noncurrentTimeBefore_; + return noncurrentTimeBefore_ == null ? com.google.type.Date.getDefaultInstance() : noncurrentTimeBefore_; } else { return noncurrentTimeBeforeBuilder_.getMessage(); } } /** - * - * *
                        * This condition is relevant only for versioned objects. An object
                        * version satisfies this condition only if it became noncurrent before
            @@ -8728,8 +7784,6 @@ public Builder setNoncurrentTimeBefore(com.google.type.Date value) {
                         return this;
                       }
                       /**
            -           *
            -           *
                        * 
                        * This condition is relevant only for versioned objects. An object
                        * version satisfies this condition only if it became noncurrent before
            @@ -8738,7 +7792,8 @@ public Builder setNoncurrentTimeBefore(com.google.type.Date value) {
                        *
                        * .google.type.Date noncurrent_time_before = 10;
                        */
            -          public Builder setNoncurrentTimeBefore(com.google.type.Date.Builder builderForValue) {
            +          public Builder setNoncurrentTimeBefore(
            +              com.google.type.Date.Builder builderForValue) {
                         if (noncurrentTimeBeforeBuilder_ == null) {
                           noncurrentTimeBefore_ = builderForValue.build();
                         } else {
            @@ -8749,8 +7804,6 @@ public Builder setNoncurrentTimeBefore(com.google.type.Date.Builder builderForVa
                         return this;
                       }
                       /**
            -           *
            -           *
                        * 
                        * This condition is relevant only for versioned objects. An object
                        * version satisfies this condition only if it became noncurrent before
            @@ -8761,9 +7814,9 @@ public Builder setNoncurrentTimeBefore(com.google.type.Date.Builder builderForVa
                        */
                       public Builder mergeNoncurrentTimeBefore(com.google.type.Date value) {
                         if (noncurrentTimeBeforeBuilder_ == null) {
            -              if (((bitField0_ & 0x00000100) != 0)
            -                  && noncurrentTimeBefore_ != null
            -                  && noncurrentTimeBefore_ != com.google.type.Date.getDefaultInstance()) {
            +              if (((bitField0_ & 0x00000100) != 0) &&
            +                noncurrentTimeBefore_ != null &&
            +                noncurrentTimeBefore_ != com.google.type.Date.getDefaultInstance()) {
                             getNoncurrentTimeBeforeBuilder().mergeFrom(value);
                           } else {
                             noncurrentTimeBefore_ = value;
            @@ -8778,8 +7831,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
            @@ -8799,8 +7850,6 @@ public Builder clearNoncurrentTimeBefore() {
                         return this;
                       }
                       /**
            -           *
            -           *
                        * 
                        * This condition is relevant only for versioned objects. An object
                        * version satisfies this condition only if it became noncurrent before
            @@ -8815,8 +7864,6 @@ public com.google.type.Date.Builder getNoncurrentTimeBeforeBuilder() {
                         return getNoncurrentTimeBeforeFieldBuilder().getBuilder();
                       }
                       /**
            -           *
            -           *
                        * 
                        * This condition is relevant only for versioned objects. An object
                        * version satisfies this condition only if it became noncurrent before
            @@ -8829,14 +7876,11 @@ public com.google.type.DateOrBuilder getNoncurrentTimeBeforeOrBuilder() {
                         if (noncurrentTimeBeforeBuilder_ != null) {
                           return noncurrentTimeBeforeBuilder_.getMessageOrBuilder();
                         } else {
            -              return noncurrentTimeBefore_ == null
            -                  ? com.google.type.Date.getDefaultInstance()
            -                  : noncurrentTimeBefore_;
            +              return noncurrentTimeBefore_ == null ?
            +                  com.google.type.Date.getDefaultInstance() : noncurrentTimeBefore_;
                         }
                       }
                       /**
            -           *
            -           *
                        * 
                        * This condition is relevant only for versioned objects. An object
                        * version satisfies this condition only if it became noncurrent before
            @@ -8846,15 +7890,14 @@ public com.google.type.DateOrBuilder getNoncurrentTimeBeforeOrBuilder() {
                        * .google.type.Date noncurrent_time_before = 10;
                        */
                       private com.google.protobuf.SingleFieldBuilderV3<
            -                  com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>
            +              com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> 
                           getNoncurrentTimeBeforeFieldBuilder() {
                         if (noncurrentTimeBeforeBuilder_ == null) {
            -              noncurrentTimeBeforeBuilder_ =
            -                  new com.google.protobuf.SingleFieldBuilderV3<
            -                      com.google.type.Date,
            -                      com.google.type.Date.Builder,
            -                      com.google.type.DateOrBuilder>(
            -                      getNoncurrentTimeBefore(), getParentForChildren(), isClean());
            +              noncurrentTimeBeforeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            +                  com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>(
            +                      getNoncurrentTimeBefore(),
            +                      getParentForChildren(),
            +                      isClean());
                           noncurrentTimeBefore_ = null;
                         }
                         return noncurrentTimeBeforeBuilder_;
            @@ -8862,7 +7905,6 @@ public com.google.type.DateOrBuilder getNoncurrentTimeBeforeOrBuilder() {
             
                       private com.google.protobuf.LazyStringArrayList matchesPrefix_ =
                           com.google.protobuf.LazyStringArrayList.emptyList();
            -
                       private void ensureMatchesPrefixIsMutable() {
                         if (!matchesPrefix_.isModifiable()) {
                           matchesPrefix_ = new com.google.protobuf.LazyStringArrayList(matchesPrefix_);
            @@ -8870,46 +7912,38 @@ private void ensureMatchesPrefixIsMutable() {
                         bitField0_ |= 0x00000200;
                       }
                       /**
            -           *
            -           *
                        * 
                        * List of object name prefixes. If any prefix exactly matches the
                        * beginning of the object name, the condition evaluates to true.
                        * 
            * * repeated string matches_prefix = 11; - * * @return A list containing the matchesPrefix. */ - public com.google.protobuf.ProtocolStringList getMatchesPrefixList() { + public com.google.protobuf.ProtocolStringList + getMatchesPrefixList() { matchesPrefix_.makeImmutable(); return matchesPrefix_; } /** - * - * *
                        * List of object name prefixes. If any prefix exactly matches the
                        * beginning of the object name, the condition evaluates to true.
                        * 
            * * repeated string matches_prefix = 11; - * * @return The count of matchesPrefix. */ public int getMatchesPrefixCount() { return matchesPrefix_.size(); } /** - * - * *
                        * List of object name prefixes. If any prefix exactly matches the
                        * beginning of the object name, the condition evaluates to true.
                        * 
            * * repeated string matches_prefix = 11; - * * @param index The index of the element to return. * @return The matchesPrefix at the given index. */ @@ -8917,39 +7951,33 @@ public java.lang.String getMatchesPrefix(int index) { return matchesPrefix_.get(index); } /** - * - * *
                        * List of object name prefixes. If any prefix exactly matches the
                        * beginning of the object name, the condition evaluates to true.
                        * 
            * * repeated string matches_prefix = 11; - * * @param index The index of the value to return. * @return The bytes of the matchesPrefix at the given index. */ - public com.google.protobuf.ByteString getMatchesPrefixBytes(int index) { + public com.google.protobuf.ByteString + getMatchesPrefixBytes(int index) { return matchesPrefix_.getByteString(index); } /** - * - * *
                        * List of object name prefixes. If any prefix exactly matches the
                        * beginning of the object name, the condition evaluates to true.
                        * 
            * * repeated string matches_prefix = 11; - * * @param index The index to set the value at. * @param value The matchesPrefix to set. * @return This builder for chaining. */ - public Builder setMatchesPrefix(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMatchesPrefix( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureMatchesPrefixIsMutable(); matchesPrefix_.set(index, value); bitField0_ |= 0x00000200; @@ -8957,22 +7985,18 @@ public Builder setMatchesPrefix(int index, java.lang.String value) { return this; } /** - * - * *
                        * List of object name prefixes. If any prefix exactly matches the
                        * beginning of the object name, the condition evaluates to true.
                        * 
            * * repeated string matches_prefix = 11; - * * @param value The matchesPrefix to add. * @return This builder for chaining. - */ - public Builder addMatchesPrefix(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + */ + public Builder addMatchesPrefix( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureMatchesPrefixIsMutable(); matchesPrefix_.add(value); bitField0_ |= 0x00000200; @@ -8980,61 +8004,53 @@ public Builder addMatchesPrefix(java.lang.String value) { return this; } /** - * - * *
                        * List of object name prefixes. If any prefix exactly matches the
                        * beginning of the object name, the condition evaluates to true.
                        * 
            * * repeated string matches_prefix = 11; - * * @param values The matchesPrefix to add. * @return This builder for chaining. */ - public Builder addAllMatchesPrefix(java.lang.Iterable values) { + public Builder addAllMatchesPrefix( + java.lang.Iterable values) { ensureMatchesPrefixIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, matchesPrefix_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, matchesPrefix_); bitField0_ |= 0x00000200; onChanged(); return this; } /** - * - * *
                        * List of object name prefixes. If any prefix exactly matches the
                        * beginning of the object name, the condition evaluates to true.
                        * 
            * * repeated string matches_prefix = 11; - * * @return This builder for chaining. */ public Builder clearMatchesPrefix() { - matchesPrefix_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); - ; + matchesPrefix_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200);; onChanged(); return this; } /** - * - * *
                        * List of object name prefixes. If any prefix exactly matches the
                        * beginning of the object name, the condition evaluates to true.
                        * 
            * * repeated string matches_prefix = 11; - * * @param value The bytes of the matchesPrefix to add. * @return This builder for chaining. */ - public Builder addMatchesPrefixBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addMatchesPrefixBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureMatchesPrefixIsMutable(); matchesPrefix_.add(value); @@ -9045,7 +8061,6 @@ public Builder addMatchesPrefixBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList matchesSuffix_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureMatchesSuffixIsMutable() { if (!matchesSuffix_.isModifiable()) { matchesSuffix_ = new com.google.protobuf.LazyStringArrayList(matchesSuffix_); @@ -9053,46 +8068,38 @@ private void ensureMatchesSuffixIsMutable() { bitField0_ |= 0x00000400; } /** - * - * *
                        * List of object name suffixes. If any suffix exactly matches the
                        * end of the object name, the condition evaluates to true.
                        * 
            * * repeated string matches_suffix = 12; - * * @return A list containing the matchesSuffix. */ - public com.google.protobuf.ProtocolStringList getMatchesSuffixList() { + public com.google.protobuf.ProtocolStringList + getMatchesSuffixList() { matchesSuffix_.makeImmutable(); return matchesSuffix_; } /** - * - * *
                        * List of object name suffixes. If any suffix exactly matches the
                        * end of the object name, the condition evaluates to true.
                        * 
            * * repeated string matches_suffix = 12; - * * @return The count of matchesSuffix. */ public int getMatchesSuffixCount() { return matchesSuffix_.size(); } /** - * - * *
                        * List of object name suffixes. If any suffix exactly matches the
                        * end of the object name, the condition evaluates to true.
                        * 
            * * repeated string matches_suffix = 12; - * * @param index The index of the element to return. * @return The matchesSuffix at the given index. */ @@ -9100,39 +8107,33 @@ public java.lang.String getMatchesSuffix(int index) { return matchesSuffix_.get(index); } /** - * - * *
                        * List of object name suffixes. If any suffix exactly matches the
                        * end of the object name, the condition evaluates to true.
                        * 
            * * repeated string matches_suffix = 12; - * * @param index The index of the value to return. * @return The bytes of the matchesSuffix at the given index. */ - public com.google.protobuf.ByteString getMatchesSuffixBytes(int index) { + public com.google.protobuf.ByteString + getMatchesSuffixBytes(int index) { return matchesSuffix_.getByteString(index); } /** - * - * *
                        * List of object name suffixes. If any suffix exactly matches the
                        * end of the object name, the condition evaluates to true.
                        * 
            * * repeated string matches_suffix = 12; - * * @param index The index to set the value at. * @param value The matchesSuffix to set. * @return This builder for chaining. */ - public Builder setMatchesSuffix(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMatchesSuffix( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureMatchesSuffixIsMutable(); matchesSuffix_.set(index, value); bitField0_ |= 0x00000400; @@ -9140,22 +8141,18 @@ public Builder setMatchesSuffix(int index, java.lang.String value) { return this; } /** - * - * *
                        * List of object name suffixes. If any suffix exactly matches the
                        * end of the object name, the condition evaluates to true.
                        * 
            * * repeated string matches_suffix = 12; - * * @param value The matchesSuffix to add. * @return This builder for chaining. */ - public Builder addMatchesSuffix(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addMatchesSuffix( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureMatchesSuffixIsMutable(); matchesSuffix_.add(value); bitField0_ |= 0x00000400; @@ -9163,61 +8160,53 @@ public Builder addMatchesSuffix(java.lang.String value) { return this; } /** - * - * *
                        * List of object name suffixes. If any suffix exactly matches the
                        * end of the object name, the condition evaluates to true.
                        * 
            * * repeated string matches_suffix = 12; - * * @param values The matchesSuffix to add. * @return This builder for chaining. */ - public Builder addAllMatchesSuffix(java.lang.Iterable values) { + public Builder addAllMatchesSuffix( + java.lang.Iterable values) { ensureMatchesSuffixIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, matchesSuffix_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, matchesSuffix_); bitField0_ |= 0x00000400; onChanged(); return this; } /** - * - * *
                        * List of object name suffixes. If any suffix exactly matches the
                        * end of the object name, the condition evaluates to true.
                        * 
            * * repeated string matches_suffix = 12; - * * @return This builder for chaining. */ public Builder clearMatchesSuffix() { - matchesSuffix_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); - ; + matchesSuffix_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400);; onChanged(); return this; } /** - * - * *
                        * List of object name suffixes. If any suffix exactly matches the
                        * end of the object name, the condition evaluates to true.
                        * 
            * * repeated string matches_suffix = 12; - * * @param value The bytes of the matchesSuffix to add. * @return This builder for chaining. */ - public Builder addMatchesSuffixBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addMatchesSuffixBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureMatchesSuffixIsMutable(); matchesSuffix_.add(value); @@ -9225,7 +8214,6 @@ public Builder addMatchesSuffixBytes(com.google.protobuf.ByteString value) { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -9238,12 +8226,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.Bucket.Lifecycle.Rule.Condition) } // @@protoc_insertion_point(class_scope:google.storage.v2.Bucket.Lifecycle.Rule.Condition) private static final com.google.storage.v2.Bucket.Lifecycle.Rule.Condition DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.Bucket.Lifecycle.Rule.Condition(); } @@ -9252,28 +8240,27 @@ public static com.google.storage.v2.Bucket.Lifecycle.Rule.Condition getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Condition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Condition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9288,20 +8275,18 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.Lifecycle.Rule.Condition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int bitField0_; public static final int ACTION_FIELD_NUMBER = 1; private com.google.storage.v2.Bucket.Lifecycle.Rule.Action action_; /** - * - * *
                    * The action to take.
                    * 
            * * .google.storage.v2.Bucket.Lifecycle.Rule.Action action = 1; - * * @return Whether the action field is set. */ @java.lang.Override @@ -9309,25 +8294,18 @@ public boolean hasAction() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                    * The action to take.
                    * 
            * * .google.storage.v2.Bucket.Lifecycle.Rule.Action action = 1; - * * @return The action. */ @java.lang.Override public com.google.storage.v2.Bucket.Lifecycle.Rule.Action getAction() { - return action_ == null - ? com.google.storage.v2.Bucket.Lifecycle.Rule.Action.getDefaultInstance() - : action_; + return action_ == null ? com.google.storage.v2.Bucket.Lifecycle.Rule.Action.getDefaultInstance() : action_; } /** - * - * *
                    * The action to take.
                    * 
            @@ -9336,22 +8314,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 @@ -9359,25 +8332,18 @@ 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. */ @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.
                    * 
            @@ -9385,15 +8351,11 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule.Condition getCondition() { * .google.storage.v2.Bucket.Lifecycle.Rule.Condition condition = 2; */ @java.lang.Override - public com.google.storage.v2.Bucket.Lifecycle.Rule.ConditionOrBuilder - getConditionOrBuilder() { - return condition_ == null - ? com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.getDefaultInstance() - : condition_; + public com.google.storage.v2.Bucket.Lifecycle.Rule.ConditionOrBuilder getConditionOrBuilder() { + return condition_ == null ? com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.getDefaultInstance() : condition_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -9405,7 +8367,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getAction()); } @@ -9422,10 +8385,12 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAction()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAction()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCondition()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCondition()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -9435,21 +8400,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.Bucket.Lifecycle.Rule)) { return super.equals(obj); } - com.google.storage.v2.Bucket.Lifecycle.Rule other = - (com.google.storage.v2.Bucket.Lifecycle.Rule) obj; + com.google.storage.v2.Bucket.Lifecycle.Rule other = (com.google.storage.v2.Bucket.Lifecycle.Rule) obj; if (hasAction() != other.hasAction()) return false; if (hasAction()) { - if (!getAction().equals(other.getAction())) return false; + if (!getAction() + .equals(other.getAction())) return false; } if (hasCondition() != other.hasCondition()) return false; if (hasCondition()) { - if (!getCondition().equals(other.getCondition())) return false; + if (!getCondition() + .equals(other.getCondition())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -9475,94 +8441,90 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.Bucket.Lifecycle.Rule parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.Bucket.Lifecycle.Rule parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.Bucket.Lifecycle.Rule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.Bucket.Lifecycle.Rule parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.Bucket.Lifecycle.Rule parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.Bucket.Lifecycle.Rule prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -9572,8 +8534,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
                    * A lifecycle Rule, combining an action to take on an object and a
                    * condition which will trigger that action.
            @@ -9581,24 +8541,21 @@ 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()
            @@ -9606,18 +8563,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) {
                         getActionFieldBuilder();
                         getConditionFieldBuilder();
                       }
                     }
            -
                     @java.lang.Override
                     public Builder clear() {
                       super.clear();
            @@ -9636,9 +8593,9 @@ public Builder clear() {
                     }
             
                     @java.lang.Override
            -        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            -          return com.google.storage.v2.StorageProto
            -              .internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor;
            +        public com.google.protobuf.Descriptors.Descriptor
            +            getDescriptorForType() {
            +          return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor;
                     }
             
                     @java.lang.Override
            @@ -9657,11 +8614,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;
                     }
            @@ -9670,11 +8624,15 @@ private void buildPartial0(com.google.storage.v2.Bucket.Lifecycle.Rule result) {
                       int from_bitField0_ = bitField0_;
                       int to_bitField0_ = 0;
                       if (((from_bitField0_ & 0x00000001) != 0)) {
            -            result.action_ = actionBuilder_ == null ? action_ : actionBuilder_.build();
            +            result.action_ = actionBuilder_ == null
            +                ? action_
            +                : actionBuilder_.build();
                         to_bitField0_ |= 0x00000001;
                       }
                       if (((from_bitField0_ & 0x00000002) != 0)) {
            -            result.condition_ = conditionBuilder_ == null ? condition_ : conditionBuilder_.build();
            +            result.condition_ = conditionBuilder_ == null
            +                ? condition_
            +                : conditionBuilder_.build();
                         to_bitField0_ |= 0x00000002;
                       }
                       result.bitField0_ |= to_bitField0_;
            @@ -9684,41 +8642,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;
            @@ -9726,8 +8681,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
                     }
             
                     public Builder mergeFrom(com.google.storage.v2.Bucket.Lifecycle.Rule other) {
            -          if (other == com.google.storage.v2.Bucket.Lifecycle.Rule.getDefaultInstance())
            -            return this;
            +          if (other == com.google.storage.v2.Bucket.Lifecycle.Rule.getDefaultInstance()) return this;
                       if (other.hasAction()) {
                         mergeAction(other.getAction());
                       }
            @@ -9760,25 +8714,26 @@ public Builder mergeFrom(
                             case 0:
                               done = true;
                               break;
            -                case 10:
            -                  {
            -                    input.readMessage(getActionFieldBuilder().getBuilder(), extensionRegistry);
            -                    bitField0_ |= 0x00000001;
            -                    break;
            -                  } // case 10
            -                case 18:
            -                  {
            -                    input.readMessage(getConditionFieldBuilder().getBuilder(), extensionRegistry);
            -                    bitField0_ |= 0x00000002;
            -                    break;
            -                  } // case 18
            -                default:
            -                  {
            -                    if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            -                      done = true; // was an endgroup tag
            -                    }
            -                    break;
            -                  } // default:
            +                case 10: {
            +                  input.readMessage(
            +                      getActionFieldBuilder().getBuilder(),
            +                      extensionRegistry);
            +                  bitField0_ |= 0x00000001;
            +                  break;
            +                } // case 10
            +                case 18: {
            +                  input.readMessage(
            +                      getConditionFieldBuilder().getBuilder(),
            +                      extensionRegistry);
            +                  bitField0_ |= 0x00000002;
            +                  break;
            +                } // case 18
            +                default: {
            +                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            +                    done = true; // was an endgroup tag
            +                  }
            +                  break;
            +                } // default:
                           } // switch (tag)
                         } // while (!done)
                       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            @@ -9788,52 +8743,38 @@ public Builder mergeFrom(
                       } // finally
                       return this;
                     }
            -
                     private int bitField0_;
             
                     private com.google.storage.v2.Bucket.Lifecycle.Rule.Action action_;
                     private com.google.protobuf.SingleFieldBuilderV3<
            -                com.google.storage.v2.Bucket.Lifecycle.Rule.Action,
            -                com.google.storage.v2.Bucket.Lifecycle.Rule.Action.Builder,
            -                com.google.storage.v2.Bucket.Lifecycle.Rule.ActionOrBuilder>
            -            actionBuilder_;
            +            com.google.storage.v2.Bucket.Lifecycle.Rule.Action, com.google.storage.v2.Bucket.Lifecycle.Rule.Action.Builder, com.google.storage.v2.Bucket.Lifecycle.Rule.ActionOrBuilder> actionBuilder_;
                     /**
            -         *
            -         *
                      * 
                      * The action to take.
                      * 
            * * .google.storage.v2.Bucket.Lifecycle.Rule.Action action = 1; - * * @return Whether the action field is set. */ public boolean hasAction() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                      * The action to take.
                      * 
            * * .google.storage.v2.Bucket.Lifecycle.Rule.Action action = 1; - * * @return The action. */ public com.google.storage.v2.Bucket.Lifecycle.Rule.Action getAction() { if (actionBuilder_ == null) { - return action_ == null - ? com.google.storage.v2.Bucket.Lifecycle.Rule.Action.getDefaultInstance() - : action_; + return action_ == null ? com.google.storage.v2.Bucket.Lifecycle.Rule.Action.getDefaultInstance() : action_; } else { return actionBuilder_.getMessage(); } } /** - * - * *
                      * The action to take.
                      * 
            @@ -9854,8 +8795,6 @@ public Builder setAction(com.google.storage.v2.Bucket.Lifecycle.Rule.Action valu return this; } /** - * - * *
                      * The action to take.
                      * 
            @@ -9874,8 +8813,6 @@ public Builder setAction( return this; } /** - * - * *
                      * The action to take.
                      * 
            @@ -9884,10 +8821,9 @@ public Builder setAction( */ public Builder mergeAction(com.google.storage.v2.Bucket.Lifecycle.Rule.Action value) { if (actionBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && action_ != null - && action_ - != com.google.storage.v2.Bucket.Lifecycle.Rule.Action.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + action_ != null && + action_ != com.google.storage.v2.Bucket.Lifecycle.Rule.Action.getDefaultInstance()) { getActionBuilder().mergeFrom(value); } else { action_ = value; @@ -9902,8 +8838,6 @@ public Builder mergeAction(com.google.storage.v2.Bucket.Lifecycle.Rule.Action va return this; } /** - * - * *
                      * The action to take.
                      * 
            @@ -9921,8 +8855,6 @@ public Builder clearAction() { return this; } /** - * - * *
                      * The action to take.
                      * 
            @@ -9935,8 +8867,6 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule.Action.Builder getActionBuild return getActionFieldBuilder().getBuilder(); } /** - * - * *
                      * The action to take.
                      * 
            @@ -9947,14 +8877,11 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule.ActionOrBuilder getActionOrBu if (actionBuilder_ != null) { return actionBuilder_.getMessageOrBuilder(); } else { - return action_ == null - ? com.google.storage.v2.Bucket.Lifecycle.Rule.Action.getDefaultInstance() - : action_; + return action_ == null ? + com.google.storage.v2.Bucket.Lifecycle.Rule.Action.getDefaultInstance() : action_; } } /** - * - * *
                      * The action to take.
                      * 
            @@ -9962,17 +8889,14 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule.ActionOrBuilder getActionOrBu * .google.storage.v2.Bucket.Lifecycle.Rule.Action action = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.Lifecycle.Rule.Action, - com.google.storage.v2.Bucket.Lifecycle.Rule.Action.Builder, - com.google.storage.v2.Bucket.Lifecycle.Rule.ActionOrBuilder> + com.google.storage.v2.Bucket.Lifecycle.Rule.Action, com.google.storage.v2.Bucket.Lifecycle.Rule.Action.Builder, com.google.storage.v2.Bucket.Lifecycle.Rule.ActionOrBuilder> getActionFieldBuilder() { if (actionBuilder_ == null) { - actionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.Lifecycle.Rule.Action, - com.google.storage.v2.Bucket.Lifecycle.Rule.Action.Builder, - com.google.storage.v2.Bucket.Lifecycle.Rule.ActionOrBuilder>( - getAction(), getParentForChildren(), isClean()); + actionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.Bucket.Lifecycle.Rule.Action, com.google.storage.v2.Bucket.Lifecycle.Rule.Action.Builder, com.google.storage.v2.Bucket.Lifecycle.Rule.ActionOrBuilder>( + getAction(), + getParentForChildren(), + isClean()); action_ = null; } return actionBuilder_; @@ -9980,47 +8904,34 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule.ActionOrBuilder getActionOrBu private com.google.storage.v2.Bucket.Lifecycle.Rule.Condition condition_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.Lifecycle.Rule.Condition, - com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.Builder, - com.google.storage.v2.Bucket.Lifecycle.Rule.ConditionOrBuilder> - conditionBuilder_; + com.google.storage.v2.Bucket.Lifecycle.Rule.Condition, com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.Builder, com.google.storage.v2.Bucket.Lifecycle.Rule.ConditionOrBuilder> conditionBuilder_; /** - * - * *
                      * The condition(s) under which the action will be taken.
                      * 
            * * .google.storage.v2.Bucket.Lifecycle.Rule.Condition condition = 2; - * * @return Whether the condition field is set. */ public boolean hasCondition() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                      * The condition(s) under which the action will be taken.
                      * 
            * * .google.storage.v2.Bucket.Lifecycle.Rule.Condition condition = 2; - * * @return The condition. */ public com.google.storage.v2.Bucket.Lifecycle.Rule.Condition getCondition() { if (conditionBuilder_ == null) { - return condition_ == null - ? com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.getDefaultInstance() - : condition_; + return condition_ == null ? com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.getDefaultInstance() : condition_; } else { return conditionBuilder_.getMessage(); } } /** - * - * *
                      * The condition(s) under which the action will be taken.
                      * 
            @@ -10041,8 +8952,6 @@ public Builder setCondition(com.google.storage.v2.Bucket.Lifecycle.Rule.Conditio return this; } /** - * - * *
                      * The condition(s) under which the action will be taken.
                      * 
            @@ -10061,8 +8970,6 @@ public Builder setCondition( return this; } /** - * - * *
                      * The condition(s) under which the action will be taken.
                      * 
            @@ -10071,10 +8978,9 @@ public Builder setCondition( */ public Builder mergeCondition(com.google.storage.v2.Bucket.Lifecycle.Rule.Condition value) { if (conditionBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && condition_ != null - && condition_ - != com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + condition_ != null && + condition_ != com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.getDefaultInstance()) { getConditionBuilder().mergeFrom(value); } else { condition_ = value; @@ -10089,8 +8995,6 @@ public Builder mergeCondition(com.google.storage.v2.Bucket.Lifecycle.Rule.Condit return this; } /** - * - * *
                      * The condition(s) under which the action will be taken.
                      * 
            @@ -10108,8 +9012,6 @@ public Builder clearCondition() { return this; } /** - * - * *
                      * The condition(s) under which the action will be taken.
                      * 
            @@ -10122,27 +9024,21 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.Builder getConditio return getConditionFieldBuilder().getBuilder(); } /** - * - * *
                      * The condition(s) under which the action will be taken.
                      * 
            * * .google.storage.v2.Bucket.Lifecycle.Rule.Condition condition = 2; */ - public com.google.storage.v2.Bucket.Lifecycle.Rule.ConditionOrBuilder - getConditionOrBuilder() { + public com.google.storage.v2.Bucket.Lifecycle.Rule.ConditionOrBuilder getConditionOrBuilder() { if (conditionBuilder_ != null) { return conditionBuilder_.getMessageOrBuilder(); } else { - return condition_ == null - ? com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.getDefaultInstance() - : condition_; + return condition_ == null ? + com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.getDefaultInstance() : condition_; } } /** - * - * *
                      * The condition(s) under which the action will be taken.
                      * 
            @@ -10150,22 +9046,18 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.Builder getConditio * .google.storage.v2.Bucket.Lifecycle.Rule.Condition condition = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.Lifecycle.Rule.Condition, - com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.Builder, - com.google.storage.v2.Bucket.Lifecycle.Rule.ConditionOrBuilder> + com.google.storage.v2.Bucket.Lifecycle.Rule.Condition, com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.Builder, com.google.storage.v2.Bucket.Lifecycle.Rule.ConditionOrBuilder> getConditionFieldBuilder() { if (conditionBuilder_ == null) { - conditionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.Lifecycle.Rule.Condition, - com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.Builder, - com.google.storage.v2.Bucket.Lifecycle.Rule.ConditionOrBuilder>( - getCondition(), getParentForChildren(), isClean()); + conditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.Bucket.Lifecycle.Rule.Condition, com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.Builder, com.google.storage.v2.Bucket.Lifecycle.Rule.ConditionOrBuilder>( + getCondition(), + getParentForChildren(), + isClean()); condition_ = null; } return conditionBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -10178,12 +9070,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.Bucket.Lifecycle.Rule) } // @@protoc_insertion_point(class_scope:google.storage.v2.Bucket.Lifecycle.Rule) private static final com.google.storage.v2.Bucket.Lifecycle.Rule DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.Bucket.Lifecycle.Rule(); } @@ -10192,28 +9084,27 @@ public static com.google.storage.v2.Bucket.Lifecycle.Rule getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Rule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Rule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -10228,15 +9119,13 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.Lifecycle.Rule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int RULE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List rule_; /** - * - * *
                  * A lifecycle management rule, which is made of an action to take and the
                  * condition(s) under which the action will be taken.
            @@ -10249,8 +9138,6 @@ public java.util.List getRuleList()
                   return rule_;
                 }
                 /**
            -     *
            -     *
                  * 
                  * A lifecycle management rule, which is made of an action to take and the
                  * condition(s) under which the action will be taken.
            @@ -10259,13 +9146,11 @@ public java.util.List getRuleList()
                  * repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;
                  */
                 @java.lang.Override
            -    public java.util.List
            +    public java.util.List 
                     getRuleOrBuilderList() {
                   return rule_;
                 }
                 /**
            -     *
            -     *
                  * 
                  * A lifecycle management rule, which is made of an action to take and the
                  * condition(s) under which the action will be taken.
            @@ -10278,8 +9163,6 @@ public int getRuleCount() {
                   return rule_.size();
                 }
                 /**
            -     *
            -     *
                  * 
                  * A lifecycle management rule, which is made of an action to take and the
                  * condition(s) under which the action will be taken.
            @@ -10292,8 +9175,6 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule getRule(int index) {
                   return rule_.get(index);
                 }
                 /**
            -     *
            -     *
                  * 
                  * A lifecycle management rule, which is made of an action to take and the
                  * condition(s) under which the action will be taken.
            @@ -10302,12 +9183,12 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule getRule(int index) {
                  * repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;
                  */
                 @java.lang.Override
            -    public com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder getRuleOrBuilder(int index) {
            +    public com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder getRuleOrBuilder(
            +        int index) {
                   return rule_.get(index);
                 }
             
                 private byte memoizedIsInitialized = -1;
            -
                 @java.lang.Override
                 public final boolean isInitialized() {
                   byte isInitialized = memoizedIsInitialized;
            @@ -10319,7 +9200,8 @@ public final boolean isInitialized() {
                 }
             
                 @java.lang.Override
            -    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
            +    public void writeTo(com.google.protobuf.CodedOutputStream output)
            +                        throws java.io.IOException {
                   for (int i = 0; i < rule_.size(); i++) {
                     output.writeMessage(1, rule_.get(i));
                   }
            @@ -10333,7 +9215,8 @@ public int getSerializedSize() {
             
                   size = 0;
                   for (int i = 0; i < rule_.size(); i++) {
            -        size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, rule_.get(i));
            +        size += com.google.protobuf.CodedOutputStream
            +          .computeMessageSize(1, rule_.get(i));
                   }
                   size += getUnknownFields().getSerializedSize();
                   memoizedSize = size;
            @@ -10343,14 +9226,15 @@ public int getSerializedSize() {
                 @java.lang.Override
                 public boolean equals(final java.lang.Object obj) {
                   if (obj == this) {
            -        return true;
            +       return true;
                   }
                   if (!(obj instanceof com.google.storage.v2.Bucket.Lifecycle)) {
                     return super.equals(obj);
                   }
                   com.google.storage.v2.Bucket.Lifecycle other = (com.google.storage.v2.Bucket.Lifecycle) obj;
             
            -      if (!getRuleList().equals(other.getRuleList())) return false;
            +      if (!getRuleList()
            +          .equals(other.getRuleList())) return false;
                   if (!getUnknownFields().equals(other.getUnknownFields())) return false;
                   return true;
                 }
            @@ -10371,94 +9255,90 @@ public int hashCode() {
                   return hash;
                 }
             
            -    public static com.google.storage.v2.Bucket.Lifecycle parseFrom(java.nio.ByteBuffer data)
            +    public static com.google.storage.v2.Bucket.Lifecycle parseFrom(
            +        java.nio.ByteBuffer data)
                     throws com.google.protobuf.InvalidProtocolBufferException {
                   return PARSER.parseFrom(data);
                 }
            -
                 public static com.google.storage.v2.Bucket.Lifecycle parseFrom(
            -        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +        java.nio.ByteBuffer data,
            +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                     throws com.google.protobuf.InvalidProtocolBufferException {
                   return PARSER.parseFrom(data, extensionRegistry);
                 }
            -
                 public static com.google.storage.v2.Bucket.Lifecycle parseFrom(
                     com.google.protobuf.ByteString data)
                     throws com.google.protobuf.InvalidProtocolBufferException {
                   return PARSER.parseFrom(data);
                 }
            -
                 public static com.google.storage.v2.Bucket.Lifecycle parseFrom(
                     com.google.protobuf.ByteString data,
                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                     throws com.google.protobuf.InvalidProtocolBufferException {
                   return PARSER.parseFrom(data, extensionRegistry);
                 }
            -
                 public static com.google.storage.v2.Bucket.Lifecycle parseFrom(byte[] data)
                     throws com.google.protobuf.InvalidProtocolBufferException {
                   return PARSER.parseFrom(data);
                 }
            -
                 public static com.google.storage.v2.Bucket.Lifecycle parseFrom(
            -        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +        byte[] data,
            +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                     throws com.google.protobuf.InvalidProtocolBufferException {
                   return PARSER.parseFrom(data, extensionRegistry);
                 }
            -
                 public static com.google.storage.v2.Bucket.Lifecycle parseFrom(java.io.InputStream input)
                     throws java.io.IOException {
            -      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
            +      return com.google.protobuf.GeneratedMessageV3
            +          .parseWithIOException(PARSER, input);
                 }
            -
                 public static com.google.storage.v2.Bucket.Lifecycle parseFrom(
            -        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +        java.io.InputStream input,
            +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                     throws java.io.IOException {
            -      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            -          PARSER, input, extensionRegistry);
            +      return com.google.protobuf.GeneratedMessageV3
            +          .parseWithIOException(PARSER, input, extensionRegistry);
                 }
             
            -    public static com.google.storage.v2.Bucket.Lifecycle parseDelimitedFrom(
            -        java.io.InputStream input) throws java.io.IOException {
            -      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
            +    public static com.google.storage.v2.Bucket.Lifecycle parseDelimitedFrom(java.io.InputStream input)
            +        throws java.io.IOException {
            +      return com.google.protobuf.GeneratedMessageV3
            +          .parseDelimitedWithIOException(PARSER, input);
                 }
             
                 public static com.google.storage.v2.Bucket.Lifecycle parseDelimitedFrom(
            -        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +        java.io.InputStream input,
            +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                     throws java.io.IOException {
            -      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            -          PARSER, input, extensionRegistry);
            +      return com.google.protobuf.GeneratedMessageV3
            +          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
                 }
            -
                 public static com.google.storage.v2.Bucket.Lifecycle parseFrom(
            -        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
            -      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
            +        com.google.protobuf.CodedInputStream input)
            +        throws java.io.IOException {
            +      return com.google.protobuf.GeneratedMessageV3
            +          .parseWithIOException(PARSER, input);
                 }
            -
                 public static com.google.storage.v2.Bucket.Lifecycle parseFrom(
                     com.google.protobuf.CodedInputStream input,
                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                     throws java.io.IOException {
            -      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            -          PARSER, input, extensionRegistry);
            +      return com.google.protobuf.GeneratedMessageV3
            +          .parseWithIOException(PARSER, input, extensionRegistry);
                 }
             
                 @java.lang.Override
            -    public Builder newBuilderForType() {
            -      return newBuilder();
            -    }
            -
            +    public Builder newBuilderForType() { return newBuilder(); }
                 public static Builder newBuilder() {
                   return DEFAULT_INSTANCE.toBuilder();
                 }
            -
                 public static Builder newBuilder(com.google.storage.v2.Bucket.Lifecycle prototype) {
                   return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
                 }
            -
                 @java.lang.Override
                 public Builder toBuilder() {
            -      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
            +      return this == DEFAULT_INSTANCE
            +          ? new Builder() : new Builder().mergeFrom(this);
                 }
             
                 @java.lang.Override
            @@ -10468,8 +9348,6 @@ protected Builder newBuilderForType(
                   return builder;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Lifecycle properties of a bucket.
                  * For more information, see https://cloud.google.com/storage/docs/lifecycle.
            @@ -10477,33 +9355,33 @@ protected Builder newBuilderForType(
                  *
                  * Protobuf type {@code google.storage.v2.Bucket.Lifecycle}
                  */
            -    public static final class Builder
            -        extends com.google.protobuf.GeneratedMessageV3.Builder
            -        implements
            +    public static final class Builder extends
            +        com.google.protobuf.GeneratedMessageV3.Builder implements
                     // @@protoc_insertion_point(builder_implements:google.storage.v2.Bucket.Lifecycle)
                     com.google.storage.v2.Bucket.LifecycleOrBuilder {
            -      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            -        return com.google.storage.v2.StorageProto
            -            .internal_static_google_storage_v2_Bucket_Lifecycle_descriptor;
            +      public static final com.google.protobuf.Descriptors.Descriptor
            +          getDescriptor() {
            +        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_descriptor;
                   }
             
                   @java.lang.Override
                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                       internalGetFieldAccessorTable() {
            -        return com.google.storage.v2.StorageProto
            -            .internal_static_google_storage_v2_Bucket_Lifecycle_fieldAccessorTable
            +        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_fieldAccessorTable
                         .ensureFieldAccessorsInitialized(
            -                com.google.storage.v2.Bucket.Lifecycle.class,
            -                com.google.storage.v2.Bucket.Lifecycle.Builder.class);
            +                com.google.storage.v2.Bucket.Lifecycle.class, com.google.storage.v2.Bucket.Lifecycle.Builder.class);
                   }
             
                   // Construct using com.google.storage.v2.Bucket.Lifecycle.newBuilder()
            -      private Builder() {}
            +      private Builder() {
             
            -      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            -        super(parent);
                   }
             
            +      private Builder(
            +          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            +        super(parent);
            +
            +      }
                   @java.lang.Override
                   public Builder clear() {
                     super.clear();
            @@ -10519,9 +9397,9 @@ public Builder clear() {
                   }
             
                   @java.lang.Override
            -      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            -        return com.google.storage.v2.StorageProto
            -            .internal_static_google_storage_v2_Bucket_Lifecycle_descriptor;
            +      public com.google.protobuf.Descriptors.Descriptor
            +          getDescriptorForType() {
            +        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_descriptor;
                   }
             
                   @java.lang.Override
            @@ -10540,12 +9418,9 @@ public com.google.storage.v2.Bucket.Lifecycle build() {
             
                   @java.lang.Override
                   public com.google.storage.v2.Bucket.Lifecycle buildPartial() {
            -        com.google.storage.v2.Bucket.Lifecycle result =
            -            new com.google.storage.v2.Bucket.Lifecycle(this);
            +        com.google.storage.v2.Bucket.Lifecycle result = new com.google.storage.v2.Bucket.Lifecycle(this);
                     buildPartialRepeatedFields(result);
            -        if (bitField0_ != 0) {
            -          buildPartial0(result);
            -        }
            +        if (bitField0_ != 0) { buildPartial0(result); }
                     onBuilt();
                     return result;
                   }
            @@ -10570,41 +9445,38 @@ private void buildPartial0(com.google.storage.v2.Bucket.Lifecycle result) {
                   public Builder clone() {
                     return super.clone();
                   }
            -
                   @java.lang.Override
                   public Builder setField(
            -          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
            +          com.google.protobuf.Descriptors.FieldDescriptor field,
            +          java.lang.Object value) {
                     return super.setField(field, value);
                   }
            -
                   @java.lang.Override
            -      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
            +      public Builder clearField(
            +          com.google.protobuf.Descriptors.FieldDescriptor field) {
                     return super.clearField(field);
                   }
            -
                   @java.lang.Override
            -      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
            +      public Builder clearOneof(
            +          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                     return super.clearOneof(oneof);
                   }
            -
                   @java.lang.Override
                   public Builder setRepeatedField(
                       com.google.protobuf.Descriptors.FieldDescriptor field,
            -          int index,
            -          java.lang.Object value) {
            +          int index, java.lang.Object value) {
                     return super.setRepeatedField(field, index, value);
                   }
            -
                   @java.lang.Override
                   public Builder addRepeatedField(
            -          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
            +          com.google.protobuf.Descriptors.FieldDescriptor field,
            +          java.lang.Object value) {
                     return super.addRepeatedField(field, value);
                   }
            -
                   @java.lang.Override
                   public Builder mergeFrom(com.google.protobuf.Message other) {
                     if (other instanceof com.google.storage.v2.Bucket.Lifecycle) {
            -          return mergeFrom((com.google.storage.v2.Bucket.Lifecycle) other);
            +          return mergeFrom((com.google.storage.v2.Bucket.Lifecycle)other);
                     } else {
                       super.mergeFrom(other);
                       return this;
            @@ -10631,10 +9503,9 @@ public Builder mergeFrom(com.google.storage.v2.Bucket.Lifecycle other) {
                           ruleBuilder_ = null;
                           rule_ = other.rule_;
                           bitField0_ = (bitField0_ & ~0x00000001);
            -              ruleBuilder_ =
            -                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
            -                      ? getRuleFieldBuilder()
            -                      : null;
            +              ruleBuilder_ = 
            +                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
            +                   getRuleFieldBuilder() : null;
                         } else {
                           ruleBuilder_.addAllMessages(other.rule_);
                         }
            @@ -10666,26 +9537,25 @@ public Builder mergeFrom(
                           case 0:
                             done = true;
                             break;
            -              case 10:
            -                {
            -                  com.google.storage.v2.Bucket.Lifecycle.Rule m =
            -                      input.readMessage(
            -                          com.google.storage.v2.Bucket.Lifecycle.Rule.parser(), extensionRegistry);
            -                  if (ruleBuilder_ == null) {
            -                    ensureRuleIsMutable();
            -                    rule_.add(m);
            -                  } else {
            -                    ruleBuilder_.addMessage(m);
            -                  }
            -                  break;
            -                } // case 10
            -              default:
            -                {
            -                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            -                    done = true; // was an endgroup tag
            -                  }
            -                  break;
            -                } // default:
            +              case 10: {
            +                com.google.storage.v2.Bucket.Lifecycle.Rule m =
            +                    input.readMessage(
            +                        com.google.storage.v2.Bucket.Lifecycle.Rule.parser(),
            +                        extensionRegistry);
            +                if (ruleBuilder_ == null) {
            +                  ensureRuleIsMutable();
            +                  rule_.add(m);
            +                } else {
            +                  ruleBuilder_.addMessage(m);
            +                }
            +                break;
            +              } // case 10
            +              default: {
            +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            +                  done = true; // was an endgroup tag
            +                }
            +                break;
            +              } // default:
                         } // switch (tag)
                       } // while (!done)
                     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            @@ -10695,28 +9565,21 @@ public Builder mergeFrom(
                     } // finally
                     return this;
                   }
            -
                   private int bitField0_;
             
                   private java.util.List rule_ =
            -          java.util.Collections.emptyList();
            -
            +        java.util.Collections.emptyList();
                   private void ensureRuleIsMutable() {
                     if (!((bitField0_ & 0x00000001) != 0)) {
                       rule_ = new java.util.ArrayList(rule_);
                       bitField0_ |= 0x00000001;
            -        }
            +         }
                   }
             
                   private com.google.protobuf.RepeatedFieldBuilderV3<
            -              com.google.storage.v2.Bucket.Lifecycle.Rule,
            -              com.google.storage.v2.Bucket.Lifecycle.Rule.Builder,
            -              com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder>
            -          ruleBuilder_;
            +          com.google.storage.v2.Bucket.Lifecycle.Rule, com.google.storage.v2.Bucket.Lifecycle.Rule.Builder, com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder> ruleBuilder_;
             
                   /**
            -       *
            -       *
                    * 
                    * A lifecycle management rule, which is made of an action to take and the
                    * condition(s) under which the action will be taken.
            @@ -10732,8 +9595,6 @@ public java.util.List getRuleList()
                     }
                   }
                   /**
            -       *
            -       *
                    * 
                    * A lifecycle management rule, which is made of an action to take and the
                    * condition(s) under which the action will be taken.
            @@ -10749,8 +9610,6 @@ public int getRuleCount() {
                     }
                   }
                   /**
            -       *
            -       *
                    * 
                    * A lifecycle management rule, which is made of an action to take and the
                    * condition(s) under which the action will be taken.
            @@ -10766,8 +9625,6 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule getRule(int index) {
                     }
                   }
                   /**
            -       *
            -       *
                    * 
                    * A lifecycle management rule, which is made of an action to take and the
                    * condition(s) under which the action will be taken.
            @@ -10775,7 +9632,8 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule getRule(int index) {
                    *
                    * repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;
                    */
            -      public Builder setRule(int index, com.google.storage.v2.Bucket.Lifecycle.Rule value) {
            +      public Builder setRule(
            +          int index, com.google.storage.v2.Bucket.Lifecycle.Rule value) {
                     if (ruleBuilder_ == null) {
                       if (value == null) {
                         throw new NullPointerException();
            @@ -10789,8 +9647,6 @@ public Builder setRule(int index, com.google.storage.v2.Bucket.Lifecycle.Rule va
                     return this;
                   }
                   /**
            -       *
            -       *
                    * 
                    * A lifecycle management rule, which is made of an action to take and the
                    * condition(s) under which the action will be taken.
            @@ -10810,8 +9666,6 @@ public Builder setRule(
                     return this;
                   }
                   /**
            -       *
            -       *
                    * 
                    * A lifecycle management rule, which is made of an action to take and the
                    * condition(s) under which the action will be taken.
            @@ -10833,8 +9687,6 @@ public Builder addRule(com.google.storage.v2.Bucket.Lifecycle.Rule value) {
                     return this;
                   }
                   /**
            -       *
            -       *
                    * 
                    * A lifecycle management rule, which is made of an action to take and the
                    * condition(s) under which the action will be taken.
            @@ -10842,7 +9694,8 @@ public Builder addRule(com.google.storage.v2.Bucket.Lifecycle.Rule value) {
                    *
                    * repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;
                    */
            -      public Builder addRule(int index, com.google.storage.v2.Bucket.Lifecycle.Rule value) {
            +      public Builder addRule(
            +          int index, com.google.storage.v2.Bucket.Lifecycle.Rule value) {
                     if (ruleBuilder_ == null) {
                       if (value == null) {
                         throw new NullPointerException();
            @@ -10856,8 +9709,6 @@ public Builder addRule(int index, com.google.storage.v2.Bucket.Lifecycle.Rule va
                     return this;
                   }
                   /**
            -       *
            -       *
                    * 
                    * A lifecycle management rule, which is made of an action to take and the
                    * condition(s) under which the action will be taken.
            @@ -10865,7 +9716,8 @@ public Builder addRule(int index, com.google.storage.v2.Bucket.Lifecycle.Rule va
                    *
                    * repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;
                    */
            -      public Builder addRule(com.google.storage.v2.Bucket.Lifecycle.Rule.Builder builderForValue) {
            +      public Builder addRule(
            +          com.google.storage.v2.Bucket.Lifecycle.Rule.Builder builderForValue) {
                     if (ruleBuilder_ == null) {
                       ensureRuleIsMutable();
                       rule_.add(builderForValue.build());
            @@ -10876,8 +9728,6 @@ public Builder addRule(com.google.storage.v2.Bucket.Lifecycle.Rule.Builder build
                     return this;
                   }
                   /**
            -       *
            -       *
                    * 
                    * A lifecycle management rule, which is made of an action to take and the
                    * condition(s) under which the action will be taken.
            @@ -10897,8 +9747,6 @@ public Builder addRule(
                     return this;
                   }
                   /**
            -       *
            -       *
                    * 
                    * A lifecycle management rule, which is made of an action to take and the
                    * condition(s) under which the action will be taken.
            @@ -10910,7 +9758,8 @@ public Builder addAllRule(
                       java.lang.Iterable values) {
                     if (ruleBuilder_ == null) {
                       ensureRuleIsMutable();
            -          com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rule_);
            +          com.google.protobuf.AbstractMessageLite.Builder.addAll(
            +              values, rule_);
                       onChanged();
                     } else {
                       ruleBuilder_.addAllMessages(values);
            @@ -10918,8 +9767,6 @@ public Builder addAllRule(
                     return this;
                   }
                   /**
            -       *
            -       *
                    * 
                    * A lifecycle management rule, which is made of an action to take and the
                    * condition(s) under which the action will be taken.
            @@ -10938,8 +9785,6 @@ public Builder clearRule() {
                     return this;
                   }
                   /**
            -       *
            -       *
                    * 
                    * A lifecycle management rule, which is made of an action to take and the
                    * condition(s) under which the action will be taken.
            @@ -10958,8 +9803,6 @@ public Builder removeRule(int index) {
                     return this;
                   }
                   /**
            -       *
            -       *
                    * 
                    * A lifecycle management rule, which is made of an action to take and the
                    * condition(s) under which the action will be taken.
            @@ -10967,12 +9810,11 @@ public Builder removeRule(int index) {
                    *
                    * repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;
                    */
            -      public com.google.storage.v2.Bucket.Lifecycle.Rule.Builder getRuleBuilder(int index) {
            +      public com.google.storage.v2.Bucket.Lifecycle.Rule.Builder getRuleBuilder(
            +          int index) {
                     return getRuleFieldBuilder().getBuilder(index);
                   }
                   /**
            -       *
            -       *
                    * 
                    * A lifecycle management rule, which is made of an action to take and the
                    * condition(s) under which the action will be taken.
            @@ -10980,16 +9822,14 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule.Builder getRuleBuilder(int in
                    *
                    * repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;
                    */
            -      public com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder getRuleOrBuilder(int index) {
            +      public com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder getRuleOrBuilder(
            +          int index) {
                     if (ruleBuilder_ == null) {
            -          return rule_.get(index);
            -        } else {
            +          return rule_.get(index);  } else {
                       return ruleBuilder_.getMessageOrBuilder(index);
                     }
                   }
                   /**
            -       *
            -       *
                    * 
                    * A lifecycle management rule, which is made of an action to take and the
                    * condition(s) under which the action will be taken.
            @@ -10997,8 +9837,8 @@ public com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder getRuleOrBuilder(int
                    *
                    * repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;
                    */
            -      public java.util.List
            -          getRuleOrBuilderList() {
            +      public java.util.List 
            +           getRuleOrBuilderList() {
                     if (ruleBuilder_ != null) {
                       return ruleBuilder_.getMessageOrBuilderList();
                     } else {
            @@ -11006,8 +9846,6 @@ public com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder getRuleOrBuilder(int
                     }
                   }
                   /**
            -       *
            -       *
                    * 
                    * A lifecycle management rule, which is made of an action to take and the
                    * condition(s) under which the action will be taken.
            @@ -11016,12 +9854,10 @@ public com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder getRuleOrBuilder(int
                    * repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;
                    */
                   public com.google.storage.v2.Bucket.Lifecycle.Rule.Builder addRuleBuilder() {
            -        return getRuleFieldBuilder()
            -            .addBuilder(com.google.storage.v2.Bucket.Lifecycle.Rule.getDefaultInstance());
            +        return getRuleFieldBuilder().addBuilder(
            +            com.google.storage.v2.Bucket.Lifecycle.Rule.getDefaultInstance());
                   }
                   /**
            -       *
            -       *
                    * 
                    * A lifecycle management rule, which is made of an action to take and the
                    * condition(s) under which the action will be taken.
            @@ -11029,13 +9865,12 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule.Builder addRuleBuilder() {
                    *
                    * repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;
                    */
            -      public com.google.storage.v2.Bucket.Lifecycle.Rule.Builder addRuleBuilder(int index) {
            -        return getRuleFieldBuilder()
            -            .addBuilder(index, com.google.storage.v2.Bucket.Lifecycle.Rule.getDefaultInstance());
            +      public com.google.storage.v2.Bucket.Lifecycle.Rule.Builder addRuleBuilder(
            +          int index) {
            +        return getRuleFieldBuilder().addBuilder(
            +            index, com.google.storage.v2.Bucket.Lifecycle.Rule.getDefaultInstance());
                   }
                   /**
            -       *
            -       *
                    * 
                    * A lifecycle management rule, which is made of an action to take and the
                    * condition(s) under which the action will be taken.
            @@ -11043,28 +9878,24 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule.Builder addRuleBuilder(int in
                    *
                    * repeated .google.storage.v2.Bucket.Lifecycle.Rule rule = 1;
                    */
            -      public java.util.List
            -          getRuleBuilderList() {
            +      public java.util.List 
            +           getRuleBuilderList() {
                     return getRuleFieldBuilder().getBuilderList();
                   }
            -
                   private com.google.protobuf.RepeatedFieldBuilderV3<
            -              com.google.storage.v2.Bucket.Lifecycle.Rule,
            -              com.google.storage.v2.Bucket.Lifecycle.Rule.Builder,
            -              com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder>
            +          com.google.storage.v2.Bucket.Lifecycle.Rule, com.google.storage.v2.Bucket.Lifecycle.Rule.Builder, com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder> 
                       getRuleFieldBuilder() {
                     if (ruleBuilder_ == null) {
            -          ruleBuilder_ =
            -              new com.google.protobuf.RepeatedFieldBuilderV3<
            -                  com.google.storage.v2.Bucket.Lifecycle.Rule,
            -                  com.google.storage.v2.Bucket.Lifecycle.Rule.Builder,
            -                  com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder>(
            -                  rule_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
            +          ruleBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            +              com.google.storage.v2.Bucket.Lifecycle.Rule, com.google.storage.v2.Bucket.Lifecycle.Rule.Builder, com.google.storage.v2.Bucket.Lifecycle.RuleOrBuilder>(
            +                  rule_,
            +                  ((bitField0_ & 0x00000001) != 0),
            +                  getParentForChildren(),
            +                  isClean());
                       rule_ = null;
                     }
                     return ruleBuilder_;
                   }
            -
                   @java.lang.Override
                   public final Builder setUnknownFields(
                       final com.google.protobuf.UnknownFieldSet unknownFields) {
            @@ -11077,12 +9908,12 @@ public final Builder mergeUnknownFields(
                     return super.mergeUnknownFields(unknownFields);
                   }
             
            +
                   // @@protoc_insertion_point(builder_scope:google.storage.v2.Bucket.Lifecycle)
                 }
             
                 // @@protoc_insertion_point(class_scope:google.storage.v2.Bucket.Lifecycle)
                 private static final com.google.storage.v2.Bucket.Lifecycle DEFAULT_INSTANCE;
            -
                 static {
                   DEFAULT_INSTANCE = new com.google.storage.v2.Bucket.Lifecycle();
                 }
            @@ -11091,28 +9922,27 @@ public static com.google.storage.v2.Bucket.Lifecycle getDefaultInstance() {
                   return DEFAULT_INSTANCE;
                 }
             
            -    private static final com.google.protobuf.Parser PARSER =
            -        new com.google.protobuf.AbstractParser() {
            -          @java.lang.Override
            -          public Lifecycle parsePartialFrom(
            -              com.google.protobuf.CodedInputStream input,
            -              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            -              throws com.google.protobuf.InvalidProtocolBufferException {
            -            Builder builder = newBuilder();
            -            try {
            -              builder.mergeFrom(input, extensionRegistry);
            -            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            -              throw e.setUnfinishedMessage(builder.buildPartial());
            -            } catch (com.google.protobuf.UninitializedMessageException e) {
            -              throw e.asInvalidProtocolBufferException()
            -                  .setUnfinishedMessage(builder.buildPartial());
            -            } catch (java.io.IOException e) {
            -              throw new com.google.protobuf.InvalidProtocolBufferException(e)
            -                  .setUnfinishedMessage(builder.buildPartial());
            -            }
            -            return builder.buildPartial();
            -          }
            -        };
            +    private static final com.google.protobuf.Parser
            +        PARSER = new com.google.protobuf.AbstractParser() {
            +      @java.lang.Override
            +      public Lifecycle parsePartialFrom(
            +          com.google.protobuf.CodedInputStream input,
            +          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +          throws com.google.protobuf.InvalidProtocolBufferException {
            +        Builder builder = newBuilder();
            +        try {
            +          builder.mergeFrom(input, extensionRegistry);
            +        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            +          throw e.setUnfinishedMessage(builder.buildPartial());
            +        } catch (com.google.protobuf.UninitializedMessageException e) {
            +          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
            +        } catch (java.io.IOException e) {
            +          throw new com.google.protobuf.InvalidProtocolBufferException(e)
            +              .setUnfinishedMessage(builder.buildPartial());
            +        }
            +        return builder.buildPartial();
            +      }
            +    };
             
                 public static com.google.protobuf.Parser parser() {
                   return PARSER;
            @@ -11127,84 +9957,71 @@ public com.google.protobuf.Parser getParserForType() {
                 public com.google.storage.v2.Bucket.Lifecycle getDefaultInstanceForType() {
                   return DEFAULT_INSTANCE;
                 }
            +
               }
             
            -  public interface LoggingOrBuilder
            -      extends
            +  public interface LoggingOrBuilder extends
                   // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.Logging)
                   com.google.protobuf.MessageOrBuilder {
             
                 /**
            -     *
            -     *
                  * 
                  * The destination bucket where the current bucket's logs should be placed,
                  * using path format (like `projects/123456/buckets/foo`).
                  * 
            * * string log_bucket = 1; - * * @return The logBucket. */ java.lang.String getLogBucket(); /** - * - * *
                  * The destination bucket where the current bucket's logs should be placed,
                  * using path format (like `projects/123456/buckets/foo`).
                  * 
            * * string log_bucket = 1; - * * @return The bytes for logBucket. */ - com.google.protobuf.ByteString getLogBucketBytes(); + com.google.protobuf.ByteString + getLogBucketBytes(); /** - * - * *
                  * A prefix for log object names.
                  * 
            * * string log_object_prefix = 2; - * * @return The logObjectPrefix. */ java.lang.String getLogObjectPrefix(); /** - * - * *
                  * A prefix for log object names.
                  * 
            * * string log_object_prefix = 2; - * * @return The bytes for logObjectPrefix. */ - com.google.protobuf.ByteString getLogObjectPrefixBytes(); + com.google.protobuf.ByteString + getLogObjectPrefixBytes(); } /** - * - * *
                * Logging-related properties of a bucket.
                * 
            * * Protobuf type {@code google.storage.v2.Bucket.Logging} */ - public static final class Logging extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Logging extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.Logging) LoggingOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Logging.newBuilder() to construct. private Logging(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Logging() { logBucket_ = ""; logObjectPrefix_ = ""; @@ -11212,39 +10029,34 @@ private Logging() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Logging(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Logging_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Logging_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Logging_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Logging_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.Logging.class, - com.google.storage.v2.Bucket.Logging.Builder.class); + com.google.storage.v2.Bucket.Logging.class, com.google.storage.v2.Bucket.Logging.Builder.class); } public static final int LOG_BUCKET_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object logBucket_ = ""; /** - * - * *
                  * The destination bucket where the current bucket's logs should be placed,
                  * using path format (like `projects/123456/buckets/foo`).
                  * 
            * * string log_bucket = 1; - * * @return The logBucket. */ @java.lang.Override @@ -11253,30 +10065,30 @@ public java.lang.String getLogBucket() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logBucket_ = s; return s; } } /** - * - * *
                  * The destination bucket where the current bucket's logs should be placed,
                  * using path format (like `projects/123456/buckets/foo`).
                  * 
            * * string log_bucket = 1; - * * @return The bytes for logBucket. */ @java.lang.Override - public com.google.protobuf.ByteString getLogBucketBytes() { + public com.google.protobuf.ByteString + getLogBucketBytes() { java.lang.Object ref = logBucket_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); logBucket_ = b; return b; } else { @@ -11285,18 +10097,14 @@ public com.google.protobuf.ByteString getLogBucketBytes() { } public static final int LOG_OBJECT_PREFIX_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object logObjectPrefix_ = ""; /** - * - * *
                  * A prefix for log object names.
                  * 
            * * string log_object_prefix = 2; - * * @return The logObjectPrefix. */ @java.lang.Override @@ -11305,29 +10113,29 @@ public java.lang.String getLogObjectPrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logObjectPrefix_ = s; return s; } } /** - * - * *
                  * A prefix for log object names.
                  * 
            * * string log_object_prefix = 2; - * * @return The bytes for logObjectPrefix. */ @java.lang.Override - public com.google.protobuf.ByteString getLogObjectPrefixBytes() { + public com.google.protobuf.ByteString + getLogObjectPrefixBytes() { java.lang.Object ref = logObjectPrefix_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); logObjectPrefix_ = b; return b; } else { @@ -11336,7 +10144,6 @@ public com.google.protobuf.ByteString getLogObjectPrefixBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -11348,7 +10155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logBucket_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, logBucket_); } @@ -11378,15 +10186,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.Bucket.Logging)) { return super.equals(obj); } com.google.storage.v2.Bucket.Logging other = (com.google.storage.v2.Bucket.Logging) obj; - if (!getLogBucket().equals(other.getLogBucket())) return false; - if (!getLogObjectPrefix().equals(other.getLogObjectPrefix())) return false; + if (!getLogBucket() + .equals(other.getLogBucket())) return false; + if (!getLogObjectPrefix() + .equals(other.getLogObjectPrefix())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -11407,94 +10217,90 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.Bucket.Logging parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.Bucket.Logging parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Logging parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.Logging parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Logging parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.Logging parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Logging parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.Logging parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.Bucket.Logging parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.storage.v2.Bucket.Logging parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.Bucket.Logging parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.Bucket.Logging parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.Bucket.Logging parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.Bucket.Logging prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -11504,41 +10310,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
                  * Logging-related properties of a bucket.
                  * 
            * * Protobuf type {@code google.storage.v2.Bucket.Logging} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.Bucket.Logging) com.google.storage.v2.Bucket.LoggingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Logging_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Logging_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Logging_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Logging_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.Logging.class, - com.google.storage.v2.Bucket.Logging.Builder.class); + com.google.storage.v2.Bucket.Logging.class, com.google.storage.v2.Bucket.Logging.Builder.class); } // Construct using com.google.storage.v2.Bucket.Logging.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -11549,9 +10353,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Logging_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Logging_descriptor; } @java.lang.Override @@ -11570,11 +10374,8 @@ public com.google.storage.v2.Bucket.Logging build() { @java.lang.Override public com.google.storage.v2.Bucket.Logging buildPartial() { - com.google.storage.v2.Bucket.Logging result = - new com.google.storage.v2.Bucket.Logging(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.Bucket.Logging result = new com.google.storage.v2.Bucket.Logging(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -11593,41 +10394,38 @@ private void buildPartial0(com.google.storage.v2.Bucket.Logging result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.Bucket.Logging) { - return mergeFrom((com.google.storage.v2.Bucket.Logging) other); + return mergeFrom((com.google.storage.v2.Bucket.Logging)other); } else { super.mergeFrom(other); return this; @@ -11672,25 +10470,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - logBucket_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - logObjectPrefix_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + logBucket_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + logObjectPrefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -11700,26 +10495,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object logBucket_ = ""; /** - * - * *
                    * The destination bucket where the current bucket's logs should be placed,
                    * using path format (like `projects/123456/buckets/foo`).
                    * 
            * * string log_bucket = 1; - * * @return The logBucket. */ public java.lang.String getLogBucket() { java.lang.Object ref = logBucket_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logBucket_ = s; return s; @@ -11728,22 +10520,21 @@ public java.lang.String getLogBucket() { } } /** - * - * *
                    * The destination bucket where the current bucket's logs should be placed,
                    * using path format (like `projects/123456/buckets/foo`).
                    * 
            * * string log_bucket = 1; - * * @return The bytes for logBucket. */ - public com.google.protobuf.ByteString getLogBucketBytes() { + public com.google.protobuf.ByteString + getLogBucketBytes() { java.lang.Object ref = logBucket_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); logBucket_ = b; return b; } else { @@ -11751,37 +10542,30 @@ public com.google.protobuf.ByteString getLogBucketBytes() { } } /** - * - * *
                    * The destination bucket where the current bucket's logs should be placed,
                    * using path format (like `projects/123456/buckets/foo`).
                    * 
            * * string log_bucket = 1; - * * @param value The logBucket to set. * @return This builder for chaining. */ - public Builder setLogBucket(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLogBucket( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } logBucket_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                    * The destination bucket where the current bucket's logs should be placed,
                    * using path format (like `projects/123456/buckets/foo`).
                    * 
            * * string log_bucket = 1; - * * @return This builder for chaining. */ public Builder clearLogBucket() { @@ -11791,22 +10575,18 @@ public Builder clearLogBucket() { return this; } /** - * - * *
                    * The destination bucket where the current bucket's logs should be placed,
                    * using path format (like `projects/123456/buckets/foo`).
                    * 
            * * string log_bucket = 1; - * * @param value The bytes for logBucket to set. * @return This builder for chaining. */ - public Builder setLogBucketBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLogBucketBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); logBucket_ = value; bitField0_ |= 0x00000001; @@ -11816,20 +10596,18 @@ public Builder setLogBucketBytes(com.google.protobuf.ByteString value) { private java.lang.Object logObjectPrefix_ = ""; /** - * - * *
                    * A prefix for log object names.
                    * 
            * * string log_object_prefix = 2; - * * @return The logObjectPrefix. */ public java.lang.String getLogObjectPrefix() { java.lang.Object ref = logObjectPrefix_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logObjectPrefix_ = s; return s; @@ -11838,21 +10616,20 @@ public java.lang.String getLogObjectPrefix() { } } /** - * - * *
                    * A prefix for log object names.
                    * 
            * * string log_object_prefix = 2; - * * @return The bytes for logObjectPrefix. */ - public com.google.protobuf.ByteString getLogObjectPrefixBytes() { + public com.google.protobuf.ByteString + getLogObjectPrefixBytes() { java.lang.Object ref = logObjectPrefix_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); logObjectPrefix_ = b; return b; } else { @@ -11860,35 +10637,28 @@ public com.google.protobuf.ByteString getLogObjectPrefixBytes() { } } /** - * - * *
                    * A prefix for log object names.
                    * 
            * * string log_object_prefix = 2; - * * @param value The logObjectPrefix to set. * @return This builder for chaining. */ - public Builder setLogObjectPrefix(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLogObjectPrefix( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } logObjectPrefix_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                    * A prefix for log object names.
                    * 
            * * string log_object_prefix = 2; - * * @return This builder for chaining. */ public Builder clearLogObjectPrefix() { @@ -11898,28 +10668,23 @@ public Builder clearLogObjectPrefix() { return this; } /** - * - * *
                    * A prefix for log object names.
                    * 
            * * string log_object_prefix = 2; - * * @param value The bytes for logObjectPrefix to set. * @return This builder for chaining. */ - public Builder setLogObjectPrefixBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLogObjectPrefixBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); logObjectPrefix_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -11932,12 +10697,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.Bucket.Logging) } // @@protoc_insertion_point(class_scope:google.storage.v2.Bucket.Logging) private static final com.google.storage.v2.Bucket.Logging DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.Bucket.Logging(); } @@ -11946,28 +10711,27 @@ public static com.google.storage.v2.Bucket.Logging getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Logging parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Logging parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -11982,42 +10746,34 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.Logging getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface RetentionPolicyOrBuilder - extends + public interface RetentionPolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.RetentionPolicy) com.google.protobuf.MessageOrBuilder { /** - * - * *
                  * Server-determined value that indicates the time from which policy was
                  * enforced and effective.
                  * 
            * * .google.protobuf.Timestamp effective_time = 1; - * * @return Whether the effectiveTime field is set. */ boolean hasEffectiveTime(); /** - * - * *
                  * Server-determined value that indicates the time from which policy was
                  * enforced and effective.
                  * 
            * * .google.protobuf.Timestamp effective_time = 1; - * * @return The effectiveTime. */ com.google.protobuf.Timestamp getEffectiveTime(); /** - * - * *
                  * Server-determined value that indicates the time from which policy was
                  * enforced and effective.
            @@ -12028,21 +10784,16 @@ public interface RetentionPolicyOrBuilder
                 com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder();
             
                 /**
            -     *
            -     *
                  * 
                  * Once locked, an object retention policy cannot be modified.
                  * 
            * * bool is_locked = 2; - * * @return The isLocked. */ boolean getIsLocked(); /** - * - * *
                  * The duration that objects need to be retained. Retention duration must be
                  * greater than zero and less than 100 years. Note that enforcement of
            @@ -12052,13 +10803,10 @@ public interface RetentionPolicyOrBuilder
                  * 
            * * .google.protobuf.Duration retention_duration = 4; - * * @return Whether the retentionDuration field is set. */ boolean hasRetentionDuration(); /** - * - * *
                  * The duration that objects need to be retained. Retention duration must be
                  * greater than zero and less than 100 years. Note that enforcement of
            @@ -12068,13 +10816,10 @@ public interface RetentionPolicyOrBuilder
                  * 
            * * .google.protobuf.Duration retention_duration = 4; - * * @return The retentionDuration. */ com.google.protobuf.Duration getRetentionDuration(); /** - * - * *
                  * The duration that objects need to be retained. Retention duration must be
                  * greater than zero and less than 100 years. Note that enforcement of
            @@ -12088,60 +10833,54 @@ public interface RetentionPolicyOrBuilder
                 com.google.protobuf.DurationOrBuilder getRetentionDurationOrBuilder();
               }
               /**
            -   *
            -   *
                * 
                * Retention policy properties of a bucket.
                * 
            * * Protobuf type {@code google.storage.v2.Bucket.RetentionPolicy} */ - public static final class RetentionPolicy extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class RetentionPolicy extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.RetentionPolicy) RetentionPolicyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RetentionPolicy.newBuilder() to construct. private RetentionPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private RetentionPolicy() {} + private RetentionPolicy() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RetentionPolicy(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_RetentionPolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_RetentionPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_RetentionPolicy_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_RetentionPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.RetentionPolicy.class, - com.google.storage.v2.Bucket.RetentionPolicy.Builder.class); + com.google.storage.v2.Bucket.RetentionPolicy.class, com.google.storage.v2.Bucket.RetentionPolicy.Builder.class); } private int bitField0_; public static final int EFFECTIVE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp effectiveTime_; /** - * - * *
                  * Server-determined value that indicates the time from which policy was
                  * enforced and effective.
                  * 
            * * .google.protobuf.Timestamp effective_time = 1; - * * @return Whether the effectiveTime field is set. */ @java.lang.Override @@ -12149,26 +10888,19 @@ 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. */ @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.
            @@ -12178,22 +10910,17 @@ public com.google.protobuf.Timestamp getEffectiveTime() {
                  */
                 @java.lang.Override
                 public com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder() {
            -      return effectiveTime_ == null
            -          ? com.google.protobuf.Timestamp.getDefaultInstance()
            -          : effectiveTime_;
            +      return effectiveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTime_;
                 }
             
                 public static final int IS_LOCKED_FIELD_NUMBER = 2;
                 private boolean isLocked_ = false;
                 /**
            -     *
            -     *
                  * 
                  * Once locked, an object retention policy cannot be modified.
                  * 
            * * bool is_locked = 2; - * * @return The isLocked. */ @java.lang.Override @@ -12204,8 +10931,6 @@ public boolean getIsLocked() { public static final int RETENTION_DURATION_FIELD_NUMBER = 4; private com.google.protobuf.Duration retentionDuration_; /** - * - * *
                  * The duration that objects need to be retained. Retention duration must be
                  * greater than zero and less than 100 years. Note that enforcement of
            @@ -12215,7 +10940,6 @@ public boolean getIsLocked() {
                  * 
            * * .google.protobuf.Duration retention_duration = 4; - * * @return Whether the retentionDuration field is set. */ @java.lang.Override @@ -12223,8 +10947,6 @@ public boolean hasRetentionDuration() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                  * The duration that objects need to be retained. Retention duration must be
                  * greater than zero and less than 100 years. Note that enforcement of
            @@ -12234,18 +10956,13 @@ public boolean hasRetentionDuration() {
                  * 
            * * .google.protobuf.Duration retention_duration = 4; - * * @return The retentionDuration. */ @java.lang.Override public com.google.protobuf.Duration getRetentionDuration() { - return retentionDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : retentionDuration_; + return retentionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retentionDuration_; } /** - * - * *
                  * The duration that objects need to be retained. Retention duration must be
                  * greater than zero and less than 100 years. Note that enforcement of
            @@ -12258,13 +10975,10 @@ public com.google.protobuf.Duration getRetentionDuration() {
                  */
                 @java.lang.Override
                 public com.google.protobuf.DurationOrBuilder getRetentionDurationOrBuilder() {
            -      return retentionDuration_ == null
            -          ? com.google.protobuf.Duration.getDefaultInstance()
            -          : retentionDuration_;
            +      return retentionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retentionDuration_;
                 }
             
                 private byte memoizedIsInitialized = -1;
            -
                 @java.lang.Override
                 public final boolean isInitialized() {
                   byte isInitialized = memoizedIsInitialized;
            @@ -12276,7 +10990,8 @@ public final boolean isInitialized() {
                 }
             
                 @java.lang.Override
            -    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
            +    public void writeTo(com.google.protobuf.CodedOutputStream output)
            +                        throws java.io.IOException {
                   if (((bitField0_ & 0x00000001) != 0)) {
                     output.writeMessage(1, getEffectiveTime());
                   }
            @@ -12296,13 +11011,16 @@ public int getSerializedSize() {
             
                   size = 0;
                   if (((bitField0_ & 0x00000001) != 0)) {
            -        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 (((bitField0_ & 0x00000002) != 0)) {
            -        size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getRetentionDuration());
            +        size += com.google.protobuf.CodedOutputStream
            +          .computeMessageSize(4, getRetentionDuration());
                   }
                   size += getUnknownFields().getSerializedSize();
                   memoizedSize = size;
            @@ -12312,22 +11030,24 @@ public int getSerializedSize() {
                 @java.lang.Override
                 public boolean equals(final java.lang.Object obj) {
                   if (obj == this) {
            -        return true;
            +       return true;
                   }
                   if (!(obj instanceof com.google.storage.v2.Bucket.RetentionPolicy)) {
                     return super.equals(obj);
                   }
            -      com.google.storage.v2.Bucket.RetentionPolicy other =
            -          (com.google.storage.v2.Bucket.RetentionPolicy) obj;
            +      com.google.storage.v2.Bucket.RetentionPolicy other = (com.google.storage.v2.Bucket.RetentionPolicy) obj;
             
                   if (hasEffectiveTime() != other.hasEffectiveTime()) return false;
                   if (hasEffectiveTime()) {
            -        if (!getEffectiveTime().equals(other.getEffectiveTime())) return false;
            +        if (!getEffectiveTime()
            +            .equals(other.getEffectiveTime())) return false;
                   }
            -      if (getIsLocked() != other.getIsLocked()) return false;
            +      if (getIsLocked()
            +          != other.getIsLocked()) return false;
                   if (hasRetentionDuration() != other.hasRetentionDuration()) return false;
                   if (hasRetentionDuration()) {
            -        if (!getRetentionDuration().equals(other.getRetentionDuration())) return false;
            +        if (!getRetentionDuration()
            +            .equals(other.getRetentionDuration())) return false;
                   }
                   if (!getUnknownFields().equals(other.getUnknownFields())) return false;
                   return true;
            @@ -12345,7 +11065,8 @@ public int hashCode() {
                     hash = (53 * hash) + getEffectiveTime().hashCode();
                   }
                   hash = (37 * hash) + IS_LOCKED_FIELD_NUMBER;
            -      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsLocked());
            +      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
            +          getIsLocked());
                   if (hasRetentionDuration()) {
                     hash = (37 * hash) + RETENTION_DURATION_FIELD_NUMBER;
                     hash = (53 * hash) + getRetentionDuration().hashCode();
            @@ -12355,94 +11076,90 @@ public int hashCode() {
                   return hash;
                 }
             
            -    public static com.google.storage.v2.Bucket.RetentionPolicy parseFrom(java.nio.ByteBuffer data)
            +    public static com.google.storage.v2.Bucket.RetentionPolicy parseFrom(
            +        java.nio.ByteBuffer data)
                     throws com.google.protobuf.InvalidProtocolBufferException {
                   return PARSER.parseFrom(data);
                 }
            -
                 public static com.google.storage.v2.Bucket.RetentionPolicy parseFrom(
            -        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +        java.nio.ByteBuffer data,
            +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                     throws com.google.protobuf.InvalidProtocolBufferException {
                   return PARSER.parseFrom(data, extensionRegistry);
                 }
            -
                 public static com.google.storage.v2.Bucket.RetentionPolicy parseFrom(
                     com.google.protobuf.ByteString data)
                     throws com.google.protobuf.InvalidProtocolBufferException {
                   return PARSER.parseFrom(data);
                 }
            -
                 public static com.google.storage.v2.Bucket.RetentionPolicy parseFrom(
                     com.google.protobuf.ByteString data,
                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                     throws com.google.protobuf.InvalidProtocolBufferException {
                   return PARSER.parseFrom(data, extensionRegistry);
                 }
            -
                 public static com.google.storage.v2.Bucket.RetentionPolicy parseFrom(byte[] data)
                     throws com.google.protobuf.InvalidProtocolBufferException {
                   return PARSER.parseFrom(data);
                 }
            -
                 public static com.google.storage.v2.Bucket.RetentionPolicy parseFrom(
            -        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +        byte[] data,
            +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                     throws com.google.protobuf.InvalidProtocolBufferException {
                   return PARSER.parseFrom(data, extensionRegistry);
                 }
            -
                 public static com.google.storage.v2.Bucket.RetentionPolicy parseFrom(java.io.InputStream input)
                     throws java.io.IOException {
            -      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
            +      return com.google.protobuf.GeneratedMessageV3
            +          .parseWithIOException(PARSER, input);
                 }
            -
                 public static com.google.storage.v2.Bucket.RetentionPolicy parseFrom(
            -        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +        java.io.InputStream input,
            +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                     throws java.io.IOException {
            -      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            -          PARSER, input, extensionRegistry);
            +      return com.google.protobuf.GeneratedMessageV3
            +          .parseWithIOException(PARSER, input, extensionRegistry);
                 }
             
            -    public static com.google.storage.v2.Bucket.RetentionPolicy parseDelimitedFrom(
            -        java.io.InputStream input) throws java.io.IOException {
            -      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
            +    public static com.google.storage.v2.Bucket.RetentionPolicy parseDelimitedFrom(java.io.InputStream input)
            +        throws java.io.IOException {
            +      return com.google.protobuf.GeneratedMessageV3
            +          .parseDelimitedWithIOException(PARSER, input);
                 }
             
                 public static com.google.storage.v2.Bucket.RetentionPolicy parseDelimitedFrom(
            -        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +        java.io.InputStream input,
            +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                     throws java.io.IOException {
            -      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            -          PARSER, input, extensionRegistry);
            +      return com.google.protobuf.GeneratedMessageV3
            +          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
                 }
            -
                 public static com.google.storage.v2.Bucket.RetentionPolicy parseFrom(
            -        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
            -      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
            +        com.google.protobuf.CodedInputStream input)
            +        throws java.io.IOException {
            +      return com.google.protobuf.GeneratedMessageV3
            +          .parseWithIOException(PARSER, input);
                 }
            -
                 public static com.google.storage.v2.Bucket.RetentionPolicy parseFrom(
                     com.google.protobuf.CodedInputStream input,
                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                     throws java.io.IOException {
            -      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            -          PARSER, input, extensionRegistry);
            +      return com.google.protobuf.GeneratedMessageV3
            +          .parseWithIOException(PARSER, input, extensionRegistry);
                 }
             
                 @java.lang.Override
            -    public Builder newBuilderForType() {
            -      return newBuilder();
            -    }
            -
            +    public Builder newBuilderForType() { return newBuilder(); }
                 public static Builder newBuilder() {
                   return DEFAULT_INSTANCE.toBuilder();
                 }
            -
                 public static Builder newBuilder(com.google.storage.v2.Bucket.RetentionPolicy prototype) {
                   return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
                 }
            -
                 @java.lang.Override
                 public Builder toBuilder() {
            -      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
            +      return this == DEFAULT_INSTANCE
            +          ? new Builder() : new Builder().mergeFrom(this);
                 }
             
                 @java.lang.Override
            @@ -12452,32 +11169,27 @@ 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() @@ -12485,18 +11197,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) { getEffectiveTimeFieldBuilder(); getRetentionDurationFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -12516,9 +11228,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_RetentionPolicy_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_RetentionPolicy_descriptor; } @java.lang.Override @@ -12537,11 +11249,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; } @@ -12550,18 +11259,18 @@ private void buildPartial0(com.google.storage.v2.Bucket.RetentionPolicy result) int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.effectiveTime_ = - effectiveTimeBuilder_ == null ? effectiveTime_ : effectiveTimeBuilder_.build(); + result.effectiveTime_ = effectiveTimeBuilder_ == null + ? effectiveTime_ + : effectiveTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.isLocked_ = isLocked_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.retentionDuration_ = - retentionDurationBuilder_ == null - ? retentionDuration_ - : retentionDurationBuilder_.build(); + result.retentionDuration_ = retentionDurationBuilder_ == null + ? retentionDuration_ + : retentionDurationBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -12571,41 +11280,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; @@ -12649,32 +11355,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getEffectiveTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - isLocked_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 34: - { - input.readMessage( - getRetentionDurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getEffectiveTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + isLocked_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 34: { + input.readMessage( + getRetentionDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -12684,54 +11389,40 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp effectiveTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - effectiveTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> effectiveTimeBuilder_; /** - * - * *
                    * Server-determined value that indicates the time from which policy was
                    * enforced and effective.
                    * 
            * * .google.protobuf.Timestamp effective_time = 1; - * * @return Whether the effectiveTime field is set. */ public boolean hasEffectiveTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                    * Server-determined value that indicates the time from which policy was
                    * enforced and effective.
                    * 
            * * .google.protobuf.Timestamp effective_time = 1; - * * @return The effectiveTime. */ public com.google.protobuf.Timestamp getEffectiveTime() { if (effectiveTimeBuilder_ == null) { - return effectiveTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : effectiveTime_; + return effectiveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTime_; } else { return effectiveTimeBuilder_.getMessage(); } } /** - * - * *
                    * Server-determined value that indicates the time from which policy was
                    * enforced and effective.
            @@ -12753,8 +11444,6 @@ public Builder setEffectiveTime(com.google.protobuf.Timestamp value) {
                     return this;
                   }
                   /**
            -       *
            -       *
                    * 
                    * Server-determined value that indicates the time from which policy was
                    * enforced and effective.
            @@ -12762,7 +11451,8 @@ public Builder setEffectiveTime(com.google.protobuf.Timestamp value) {
                    *
                    * .google.protobuf.Timestamp effective_time = 1;
                    */
            -      public Builder setEffectiveTime(com.google.protobuf.Timestamp.Builder builderForValue) {
            +      public Builder setEffectiveTime(
            +          com.google.protobuf.Timestamp.Builder builderForValue) {
                     if (effectiveTimeBuilder_ == null) {
                       effectiveTime_ = builderForValue.build();
                     } else {
            @@ -12773,8 +11463,6 @@ public Builder setEffectiveTime(com.google.protobuf.Timestamp.Builder builderFor
                     return this;
                   }
                   /**
            -       *
            -       *
                    * 
                    * Server-determined value that indicates the time from which policy was
                    * enforced and effective.
            @@ -12784,9 +11472,9 @@ public Builder setEffectiveTime(com.google.protobuf.Timestamp.Builder builderFor
                    */
                   public Builder mergeEffectiveTime(com.google.protobuf.Timestamp value) {
                     if (effectiveTimeBuilder_ == null) {
            -          if (((bitField0_ & 0x00000001) != 0)
            -              && effectiveTime_ != null
            -              && effectiveTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
            +          if (((bitField0_ & 0x00000001) != 0) &&
            +            effectiveTime_ != null &&
            +            effectiveTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
                         getEffectiveTimeBuilder().mergeFrom(value);
                       } else {
                         effectiveTime_ = value;
            @@ -12801,8 +11489,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.
            @@ -12821,8 +11507,6 @@ public Builder clearEffectiveTime() {
                     return this;
                   }
                   /**
            -       *
            -       *
                    * 
                    * Server-determined value that indicates the time from which policy was
                    * enforced and effective.
            @@ -12836,8 +11520,6 @@ public com.google.protobuf.Timestamp.Builder getEffectiveTimeBuilder() {
                     return getEffectiveTimeFieldBuilder().getBuilder();
                   }
                   /**
            -       *
            -       *
                    * 
                    * Server-determined value that indicates the time from which policy was
                    * enforced and effective.
            @@ -12849,14 +11531,11 @@ public com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder() {
                     if (effectiveTimeBuilder_ != null) {
                       return effectiveTimeBuilder_.getMessageOrBuilder();
                     } else {
            -          return effectiveTime_ == null
            -              ? com.google.protobuf.Timestamp.getDefaultInstance()
            -              : effectiveTime_;
            +          return effectiveTime_ == null ?
            +              com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTime_;
                     }
                   }
                   /**
            -       *
            -       *
                    * 
                    * Server-determined value that indicates the time from which policy was
                    * enforced and effective.
            @@ -12865,32 +11544,26 @@ public com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder() {
                    * .google.protobuf.Timestamp effective_time = 1;
                    */
                   private com.google.protobuf.SingleFieldBuilderV3<
            -              com.google.protobuf.Timestamp,
            -              com.google.protobuf.Timestamp.Builder,
            -              com.google.protobuf.TimestampOrBuilder>
            +          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
                       getEffectiveTimeFieldBuilder() {
                     if (effectiveTimeBuilder_ == null) {
            -          effectiveTimeBuilder_ =
            -              new com.google.protobuf.SingleFieldBuilderV3<
            -                  com.google.protobuf.Timestamp,
            -                  com.google.protobuf.Timestamp.Builder,
            -                  com.google.protobuf.TimestampOrBuilder>(
            -                  getEffectiveTime(), getParentForChildren(), isClean());
            +          effectiveTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            +              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
            +                  getEffectiveTime(),
            +                  getParentForChildren(),
            +                  isClean());
                       effectiveTime_ = null;
                     }
                     return effectiveTimeBuilder_;
                   }
             
            -      private boolean isLocked_;
            +      private boolean isLocked_ ;
                   /**
            -       *
            -       *
                    * 
                    * Once locked, an object retention policy cannot be modified.
                    * 
            * * bool is_locked = 2; - * * @return The isLocked. */ @java.lang.Override @@ -12898,14 +11571,11 @@ public boolean getIsLocked() { return isLocked_; } /** - * - * *
                    * Once locked, an object retention policy cannot be modified.
                    * 
            * * bool is_locked = 2; - * * @param value The isLocked to set. * @return This builder for chaining. */ @@ -12917,14 +11587,11 @@ public Builder setIsLocked(boolean value) { return this; } /** - * - * *
                    * Once locked, an object retention policy cannot be modified.
                    * 
            * * bool is_locked = 2; - * * @return This builder for chaining. */ public Builder clearIsLocked() { @@ -12936,13 +11603,8 @@ public Builder clearIsLocked() { private com.google.protobuf.Duration retentionDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - retentionDurationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> retentionDurationBuilder_; /** - * - * *
                    * The duration that objects need to be retained. Retention duration must be
                    * greater than zero and less than 100 years. Note that enforcement of
            @@ -12952,15 +11614,12 @@ public Builder clearIsLocked() {
                    * 
            * * .google.protobuf.Duration retention_duration = 4; - * * @return Whether the retentionDuration field is set. */ public boolean hasRetentionDuration() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
                    * The duration that objects need to be retained. Retention duration must be
                    * greater than zero and less than 100 years. Note that enforcement of
            @@ -12970,21 +11629,16 @@ public boolean hasRetentionDuration() {
                    * 
            * * .google.protobuf.Duration retention_duration = 4; - * * @return The retentionDuration. */ public com.google.protobuf.Duration getRetentionDuration() { if (retentionDurationBuilder_ == null) { - return retentionDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : retentionDuration_; + return retentionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retentionDuration_; } else { return retentionDurationBuilder_.getMessage(); } } /** - * - * *
                    * The duration that objects need to be retained. Retention duration must be
                    * greater than zero and less than 100 years. Note that enforcement of
            @@ -13009,8 +11663,6 @@ public Builder setRetentionDuration(com.google.protobuf.Duration value) {
                     return this;
                   }
                   /**
            -       *
            -       *
                    * 
                    * The duration that objects need to be retained. Retention duration must be
                    * greater than zero and less than 100 years. Note that enforcement of
            @@ -13021,7 +11673,8 @@ public Builder setRetentionDuration(com.google.protobuf.Duration value) {
                    *
                    * .google.protobuf.Duration retention_duration = 4;
                    */
            -      public Builder setRetentionDuration(com.google.protobuf.Duration.Builder builderForValue) {
            +      public Builder setRetentionDuration(
            +          com.google.protobuf.Duration.Builder builderForValue) {
                     if (retentionDurationBuilder_ == null) {
                       retentionDuration_ = builderForValue.build();
                     } else {
            @@ -13032,8 +11685,6 @@ public Builder setRetentionDuration(com.google.protobuf.Duration.Builder builder
                     return this;
                   }
                   /**
            -       *
            -       *
                    * 
                    * The duration that objects need to be retained. Retention duration must be
                    * greater than zero and less than 100 years. Note that enforcement of
            @@ -13046,9 +11697,9 @@ public Builder setRetentionDuration(com.google.protobuf.Duration.Builder builder
                    */
                   public Builder mergeRetentionDuration(com.google.protobuf.Duration value) {
                     if (retentionDurationBuilder_ == null) {
            -          if (((bitField0_ & 0x00000004) != 0)
            -              && retentionDuration_ != null
            -              && retentionDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
            +          if (((bitField0_ & 0x00000004) != 0) &&
            +            retentionDuration_ != null &&
            +            retentionDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
                         getRetentionDurationBuilder().mergeFrom(value);
                       } else {
                         retentionDuration_ = value;
            @@ -13063,8 +11714,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
            @@ -13086,8 +11735,6 @@ public Builder clearRetentionDuration() {
                     return this;
                   }
                   /**
            -       *
            -       *
                    * 
                    * The duration that objects need to be retained. Retention duration must be
                    * greater than zero and less than 100 years. Note that enforcement of
            @@ -13104,8 +11751,6 @@ public com.google.protobuf.Duration.Builder getRetentionDurationBuilder() {
                     return getRetentionDurationFieldBuilder().getBuilder();
                   }
                   /**
            -       *
            -       *
                    * 
                    * The duration that objects need to be retained. Retention duration must be
                    * greater than zero and less than 100 years. Note that enforcement of
            @@ -13120,14 +11765,11 @@ public com.google.protobuf.DurationOrBuilder getRetentionDurationOrBuilder() {
                     if (retentionDurationBuilder_ != null) {
                       return retentionDurationBuilder_.getMessageOrBuilder();
                     } else {
            -          return retentionDuration_ == null
            -              ? com.google.protobuf.Duration.getDefaultInstance()
            -              : retentionDuration_;
            +          return retentionDuration_ == null ?
            +              com.google.protobuf.Duration.getDefaultInstance() : retentionDuration_;
                     }
                   }
                   /**
            -       *
            -       *
                    * 
                    * The duration that objects need to be retained. Retention duration must be
                    * greater than zero and less than 100 years. Note that enforcement of
            @@ -13139,22 +11781,18 @@ public com.google.protobuf.DurationOrBuilder getRetentionDurationOrBuilder() {
                    * .google.protobuf.Duration retention_duration = 4;
                    */
                   private com.google.protobuf.SingleFieldBuilderV3<
            -              com.google.protobuf.Duration,
            -              com.google.protobuf.Duration.Builder,
            -              com.google.protobuf.DurationOrBuilder>
            +          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
                       getRetentionDurationFieldBuilder() {
                     if (retentionDurationBuilder_ == null) {
            -          retentionDurationBuilder_ =
            -              new com.google.protobuf.SingleFieldBuilderV3<
            -                  com.google.protobuf.Duration,
            -                  com.google.protobuf.Duration.Builder,
            -                  com.google.protobuf.DurationOrBuilder>(
            -                  getRetentionDuration(), getParentForChildren(), isClean());
            +          retentionDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            +              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
            +                  getRetentionDuration(),
            +                  getParentForChildren(),
            +                  isClean());
                       retentionDuration_ = null;
                     }
                     return retentionDurationBuilder_;
                   }
            -
                   @java.lang.Override
                   public final Builder setUnknownFields(
                       final com.google.protobuf.UnknownFieldSet unknownFields) {
            @@ -13167,12 +11805,12 @@ public final Builder mergeUnknownFields(
                     return super.mergeUnknownFields(unknownFields);
                   }
             
            +
                   // @@protoc_insertion_point(builder_scope:google.storage.v2.Bucket.RetentionPolicy)
                 }
             
                 // @@protoc_insertion_point(class_scope:google.storage.v2.Bucket.RetentionPolicy)
                 private static final com.google.storage.v2.Bucket.RetentionPolicy DEFAULT_INSTANCE;
            -
                 static {
                   DEFAULT_INSTANCE = new com.google.storage.v2.Bucket.RetentionPolicy();
                 }
            @@ -13181,28 +11819,27 @@ public static com.google.storage.v2.Bucket.RetentionPolicy getDefaultInstance()
                   return DEFAULT_INSTANCE;
                 }
             
            -    private static final com.google.protobuf.Parser PARSER =
            -        new com.google.protobuf.AbstractParser() {
            -          @java.lang.Override
            -          public RetentionPolicy parsePartialFrom(
            -              com.google.protobuf.CodedInputStream input,
            -              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            -              throws com.google.protobuf.InvalidProtocolBufferException {
            -            Builder builder = newBuilder();
            -            try {
            -              builder.mergeFrom(input, extensionRegistry);
            -            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            -              throw e.setUnfinishedMessage(builder.buildPartial());
            -            } catch (com.google.protobuf.UninitializedMessageException e) {
            -              throw e.asInvalidProtocolBufferException()
            -                  .setUnfinishedMessage(builder.buildPartial());
            -            } catch (java.io.IOException e) {
            -              throw new com.google.protobuf.InvalidProtocolBufferException(e)
            -                  .setUnfinishedMessage(builder.buildPartial());
            -            }
            -            return builder.buildPartial();
            -          }
            -        };
            +    private static final com.google.protobuf.Parser
            +        PARSER = new com.google.protobuf.AbstractParser() {
            +      @java.lang.Override
            +      public RetentionPolicy parsePartialFrom(
            +          com.google.protobuf.CodedInputStream input,
            +          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +          throws com.google.protobuf.InvalidProtocolBufferException {
            +        Builder builder = newBuilder();
            +        try {
            +          builder.mergeFrom(input, extensionRegistry);
            +        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            +          throw e.setUnfinishedMessage(builder.buildPartial());
            +        } catch (com.google.protobuf.UninitializedMessageException e) {
            +          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
            +        } catch (java.io.IOException e) {
            +          throw new com.google.protobuf.InvalidProtocolBufferException(e)
            +              .setUnfinishedMessage(builder.buildPartial());
            +        }
            +        return builder.buildPartial();
            +      }
            +    };
             
                 public static com.google.protobuf.Parser parser() {
                   return PARSER;
            @@ -13217,16 +11854,14 @@ public com.google.protobuf.Parser getParserForType() {
                 public com.google.storage.v2.Bucket.RetentionPolicy getDefaultInstanceForType() {
                   return DEFAULT_INSTANCE;
                 }
            +
               }
             
            -  public interface SoftDeletePolicyOrBuilder
            -      extends
            +  public interface SoftDeletePolicyOrBuilder extends
                   // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.SoftDeletePolicy)
                   com.google.protobuf.MessageOrBuilder {
             
                 /**
            -     *
            -     *
                  * 
                  * The period of time that soft-deleted objects in the bucket must be
                  * retained and cannot be permanently deleted. The duration must be greater
            @@ -13234,13 +11869,10 @@ public interface SoftDeletePolicyOrBuilder
                  * 
            * * optional .google.protobuf.Duration retention_duration = 1; - * * @return Whether the retentionDuration field is set. */ boolean hasRetentionDuration(); /** - * - * *
                  * The period of time that soft-deleted objects in the bucket must be
                  * retained and cannot be permanently deleted. The duration must be greater
            @@ -13248,13 +11880,10 @@ public interface SoftDeletePolicyOrBuilder
                  * 
            * * optional .google.protobuf.Duration retention_duration = 1; - * * @return The retentionDuration. */ com.google.protobuf.Duration getRetentionDuration(); /** - * - * *
                  * The period of time that soft-deleted objects in the bucket must be
                  * retained and cannot be permanently deleted. The duration must be greater
            @@ -13266,32 +11895,24 @@ public interface SoftDeletePolicyOrBuilder
                 com.google.protobuf.DurationOrBuilder getRetentionDurationOrBuilder();
             
                 /**
            -     *
            -     *
                  * 
                  * Time from which the policy was effective. This is service-provided.
                  * 
            * * optional .google.protobuf.Timestamp effective_time = 2; - * * @return Whether the effectiveTime field is set. */ boolean hasEffectiveTime(); /** - * - * *
                  * Time from which the policy was effective. This is service-provided.
                  * 
            * * optional .google.protobuf.Timestamp effective_time = 2; - * * @return The effectiveTime. */ com.google.protobuf.Timestamp getEffectiveTime(); /** - * - * *
                  * Time from which the policy was effective. This is service-provided.
                  * 
            @@ -13301,53 +11922,48 @@ public interface SoftDeletePolicyOrBuilder com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder(); } /** - * - * *
                * Soft delete policy properties of a bucket.
                * 
            * * Protobuf type {@code google.storage.v2.Bucket.SoftDeletePolicy} */ - public static final class SoftDeletePolicy extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SoftDeletePolicy extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.SoftDeletePolicy) SoftDeletePolicyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SoftDeletePolicy.newBuilder() to construct. private SoftDeletePolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SoftDeletePolicy() {} + private SoftDeletePolicy() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SoftDeletePolicy(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_SoftDeletePolicy_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_SoftDeletePolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.SoftDeletePolicy.class, - com.google.storage.v2.Bucket.SoftDeletePolicy.Builder.class); + com.google.storage.v2.Bucket.SoftDeletePolicy.class, com.google.storage.v2.Bucket.SoftDeletePolicy.Builder.class); } private int bitField0_; public static final int RETENTION_DURATION_FIELD_NUMBER = 1; private com.google.protobuf.Duration retentionDuration_; /** - * - * *
                  * The period of time that soft-deleted objects in the bucket must be
                  * retained and cannot be permanently deleted. The duration must be greater
            @@ -13355,7 +11971,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                  * 
            * * optional .google.protobuf.Duration retention_duration = 1; - * * @return Whether the retentionDuration field is set. */ @java.lang.Override @@ -13363,8 +11978,6 @@ public boolean hasRetentionDuration() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                  * The period of time that soft-deleted objects in the bucket must be
                  * retained and cannot be permanently deleted. The duration must be greater
            @@ -13372,18 +11985,13 @@ public boolean hasRetentionDuration() {
                  * 
            * * optional .google.protobuf.Duration retention_duration = 1; - * * @return The retentionDuration. */ @java.lang.Override public com.google.protobuf.Duration getRetentionDuration() { - return retentionDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : retentionDuration_; + return retentionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retentionDuration_; } /** - * - * *
                  * The period of time that soft-deleted objects in the bucket must be
                  * retained and cannot be permanently deleted. The duration must be greater
            @@ -13394,22 +12002,17 @@ public com.google.protobuf.Duration getRetentionDuration() {
                  */
                 @java.lang.Override
                 public com.google.protobuf.DurationOrBuilder getRetentionDurationOrBuilder() {
            -      return retentionDuration_ == null
            -          ? com.google.protobuf.Duration.getDefaultInstance()
            -          : retentionDuration_;
            +      return retentionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retentionDuration_;
                 }
             
                 public static final int EFFECTIVE_TIME_FIELD_NUMBER = 2;
                 private com.google.protobuf.Timestamp effectiveTime_;
                 /**
            -     *
            -     *
                  * 
                  * Time from which the policy was effective. This is service-provided.
                  * 
            * * optional .google.protobuf.Timestamp effective_time = 2; - * * @return Whether the effectiveTime field is set. */ @java.lang.Override @@ -13417,25 +12020,18 @@ public boolean hasEffectiveTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                  * Time from which the policy was effective. This is service-provided.
                  * 
            * * optional .google.protobuf.Timestamp effective_time = 2; - * * @return The effectiveTime. */ @java.lang.Override public com.google.protobuf.Timestamp getEffectiveTime() { - return effectiveTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : effectiveTime_; + return effectiveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTime_; } /** - * - * *
                  * Time from which the policy was effective. This is service-provided.
                  * 
            @@ -13444,13 +12040,10 @@ public com.google.protobuf.Timestamp getEffectiveTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder() { - return effectiveTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : effectiveTime_; + return effectiveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTime_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -13462,7 +12055,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getRetentionDuration()); } @@ -13479,10 +12073,12 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRetentionDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getRetentionDuration()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEffectiveTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEffectiveTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -13492,21 +12088,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.Bucket.SoftDeletePolicy)) { return super.equals(obj); } - com.google.storage.v2.Bucket.SoftDeletePolicy other = - (com.google.storage.v2.Bucket.SoftDeletePolicy) obj; + com.google.storage.v2.Bucket.SoftDeletePolicy other = (com.google.storage.v2.Bucket.SoftDeletePolicy) obj; if (hasRetentionDuration() != other.hasRetentionDuration()) return false; if (hasRetentionDuration()) { - if (!getRetentionDuration().equals(other.getRetentionDuration())) return false; + if (!getRetentionDuration() + .equals(other.getRetentionDuration())) return false; } if (hasEffectiveTime() != other.hasEffectiveTime()) return false; if (hasEffectiveTime()) { - if (!getEffectiveTime().equals(other.getEffectiveTime())) return false; + if (!getEffectiveTime() + .equals(other.getEffectiveTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -13532,94 +12129,90 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.Bucket.SoftDeletePolicy parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.Bucket.SoftDeletePolicy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.SoftDeletePolicy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.SoftDeletePolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.SoftDeletePolicy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.SoftDeletePolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.SoftDeletePolicy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.SoftDeletePolicy parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.Bucket.SoftDeletePolicy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.Bucket.SoftDeletePolicy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.Bucket.SoftDeletePolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.Bucket.SoftDeletePolicy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.Bucket.SoftDeletePolicy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.Bucket.SoftDeletePolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.Bucket.SoftDeletePolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -13629,32 +12222,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
                  * Soft delete policy properties of a bucket.
                  * 
            * * Protobuf type {@code google.storage.v2.Bucket.SoftDeletePolicy} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.Bucket.SoftDeletePolicy) com.google.storage.v2.Bucket.SoftDeletePolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_SoftDeletePolicy_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_SoftDeletePolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.SoftDeletePolicy.class, - com.google.storage.v2.Bucket.SoftDeletePolicy.Builder.class); + com.google.storage.v2.Bucket.SoftDeletePolicy.class, com.google.storage.v2.Bucket.SoftDeletePolicy.Builder.class); } // Construct using com.google.storage.v2.Bucket.SoftDeletePolicy.newBuilder() @@ -13662,18 +12250,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getRetentionDurationFieldBuilder(); getEffectiveTimeFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -13692,9 +12280,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor; } @java.lang.Override @@ -13713,11 +12301,8 @@ public com.google.storage.v2.Bucket.SoftDeletePolicy build() { @java.lang.Override public com.google.storage.v2.Bucket.SoftDeletePolicy buildPartial() { - com.google.storage.v2.Bucket.SoftDeletePolicy result = - new com.google.storage.v2.Bucket.SoftDeletePolicy(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.Bucket.SoftDeletePolicy result = new com.google.storage.v2.Bucket.SoftDeletePolicy(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -13726,15 +12311,15 @@ private void buildPartial0(com.google.storage.v2.Bucket.SoftDeletePolicy result) int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.retentionDuration_ = - retentionDurationBuilder_ == null - ? retentionDuration_ - : retentionDurationBuilder_.build(); + result.retentionDuration_ = retentionDurationBuilder_ == null + ? retentionDuration_ + : retentionDurationBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.effectiveTime_ = - effectiveTimeBuilder_ == null ? effectiveTime_ : effectiveTimeBuilder_.build(); + result.effectiveTime_ = effectiveTimeBuilder_ == null + ? effectiveTime_ + : effectiveTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -13744,41 +12329,38 @@ private void buildPartial0(com.google.storage.v2.Bucket.SoftDeletePolicy result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.Bucket.SoftDeletePolicy) { - return mergeFrom((com.google.storage.v2.Bucket.SoftDeletePolicy) other); + return mergeFrom((com.google.storage.v2.Bucket.SoftDeletePolicy)other); } else { super.mergeFrom(other); return this; @@ -13786,8 +12368,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.v2.Bucket.SoftDeletePolicy other) { - if (other == com.google.storage.v2.Bucket.SoftDeletePolicy.getDefaultInstance()) - return this; + if (other == com.google.storage.v2.Bucket.SoftDeletePolicy.getDefaultInstance()) return this; if (other.hasRetentionDuration()) { mergeRetentionDuration(other.getRetentionDuration()); } @@ -13820,26 +12401,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage( - getRetentionDurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getEffectiveTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getRetentionDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEffectiveTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -13849,18 +12430,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Duration retentionDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - retentionDurationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> retentionDurationBuilder_; /** - * - * *
                    * The period of time that soft-deleted objects in the bucket must be
                    * retained and cannot be permanently deleted. The duration must be greater
            @@ -13868,15 +12443,12 @@ public Builder mergeFrom(
                    * 
            * * optional .google.protobuf.Duration retention_duration = 1; - * * @return Whether the retentionDuration field is set. */ public boolean hasRetentionDuration() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                    * The period of time that soft-deleted objects in the bucket must be
                    * retained and cannot be permanently deleted. The duration must be greater
            @@ -13884,21 +12456,16 @@ public boolean hasRetentionDuration() {
                    * 
            * * optional .google.protobuf.Duration retention_duration = 1; - * * @return The retentionDuration. */ public com.google.protobuf.Duration getRetentionDuration() { if (retentionDurationBuilder_ == null) { - return retentionDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : retentionDuration_; + return retentionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retentionDuration_; } else { return retentionDurationBuilder_.getMessage(); } } /** - * - * *
                    * The period of time that soft-deleted objects in the bucket must be
                    * retained and cannot be permanently deleted. The duration must be greater
            @@ -13921,8 +12488,6 @@ public Builder setRetentionDuration(com.google.protobuf.Duration value) {
                     return this;
                   }
                   /**
            -       *
            -       *
                    * 
                    * The period of time that soft-deleted objects in the bucket must be
                    * retained and cannot be permanently deleted. The duration must be greater
            @@ -13931,7 +12496,8 @@ public Builder setRetentionDuration(com.google.protobuf.Duration value) {
                    *
                    * optional .google.protobuf.Duration retention_duration = 1;
                    */
            -      public Builder setRetentionDuration(com.google.protobuf.Duration.Builder builderForValue) {
            +      public Builder setRetentionDuration(
            +          com.google.protobuf.Duration.Builder builderForValue) {
                     if (retentionDurationBuilder_ == null) {
                       retentionDuration_ = builderForValue.build();
                     } else {
            @@ -13942,8 +12508,6 @@ public Builder setRetentionDuration(com.google.protobuf.Duration.Builder builder
                     return this;
                   }
                   /**
            -       *
            -       *
                    * 
                    * The period of time that soft-deleted objects in the bucket must be
                    * retained and cannot be permanently deleted. The duration must be greater
            @@ -13954,9 +12518,9 @@ public Builder setRetentionDuration(com.google.protobuf.Duration.Builder builder
                    */
                   public Builder mergeRetentionDuration(com.google.protobuf.Duration value) {
                     if (retentionDurationBuilder_ == null) {
            -          if (((bitField0_ & 0x00000001) != 0)
            -              && retentionDuration_ != null
            -              && retentionDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
            +          if (((bitField0_ & 0x00000001) != 0) &&
            +            retentionDuration_ != null &&
            +            retentionDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
                         getRetentionDurationBuilder().mergeFrom(value);
                       } else {
                         retentionDuration_ = value;
            @@ -13971,8 +12535,6 @@ public Builder mergeRetentionDuration(com.google.protobuf.Duration value) {
                     return this;
                   }
                   /**
            -       *
            -       *
                    * 
                    * The period of time that soft-deleted objects in the bucket must be
                    * retained and cannot be permanently deleted. The duration must be greater
            @@ -13992,8 +12554,6 @@ public Builder clearRetentionDuration() {
                     return this;
                   }
                   /**
            -       *
            -       *
                    * 
                    * The period of time that soft-deleted objects in the bucket must be
                    * retained and cannot be permanently deleted. The duration must be greater
            @@ -14008,8 +12568,6 @@ public com.google.protobuf.Duration.Builder getRetentionDurationBuilder() {
                     return getRetentionDurationFieldBuilder().getBuilder();
                   }
                   /**
            -       *
            -       *
                    * 
                    * The period of time that soft-deleted objects in the bucket must be
                    * retained and cannot be permanently deleted. The duration must be greater
            @@ -14022,14 +12580,11 @@ public com.google.protobuf.DurationOrBuilder getRetentionDurationOrBuilder() {
                     if (retentionDurationBuilder_ != null) {
                       return retentionDurationBuilder_.getMessageOrBuilder();
                     } else {
            -          return retentionDuration_ == null
            -              ? com.google.protobuf.Duration.getDefaultInstance()
            -              : retentionDuration_;
            +          return retentionDuration_ == null ?
            +              com.google.protobuf.Duration.getDefaultInstance() : retentionDuration_;
                     }
                   }
                   /**
            -       *
            -       *
                    * 
                    * The period of time that soft-deleted objects in the bucket must be
                    * retained and cannot be permanently deleted. The duration must be greater
            @@ -14039,17 +12594,14 @@ public com.google.protobuf.DurationOrBuilder getRetentionDurationOrBuilder() {
                    * optional .google.protobuf.Duration retention_duration = 1;
                    */
                   private com.google.protobuf.SingleFieldBuilderV3<
            -              com.google.protobuf.Duration,
            -              com.google.protobuf.Duration.Builder,
            -              com.google.protobuf.DurationOrBuilder>
            +          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
                       getRetentionDurationFieldBuilder() {
                     if (retentionDurationBuilder_ == null) {
            -          retentionDurationBuilder_ =
            -              new com.google.protobuf.SingleFieldBuilderV3<
            -                  com.google.protobuf.Duration,
            -                  com.google.protobuf.Duration.Builder,
            -                  com.google.protobuf.DurationOrBuilder>(
            -                  getRetentionDuration(), getParentForChildren(), isClean());
            +          retentionDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            +              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
            +                  getRetentionDuration(),
            +                  getParentForChildren(),
            +                  isClean());
                       retentionDuration_ = null;
                     }
                     return retentionDurationBuilder_;
            @@ -14057,47 +12609,34 @@ public com.google.protobuf.DurationOrBuilder getRetentionDurationOrBuilder() {
             
                   private com.google.protobuf.Timestamp effectiveTime_;
                   private com.google.protobuf.SingleFieldBuilderV3<
            -              com.google.protobuf.Timestamp,
            -              com.google.protobuf.Timestamp.Builder,
            -              com.google.protobuf.TimestampOrBuilder>
            -          effectiveTimeBuilder_;
            +          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> effectiveTimeBuilder_;
                   /**
            -       *
            -       *
                    * 
                    * Time from which the policy was effective. This is service-provided.
                    * 
            * * optional .google.protobuf.Timestamp effective_time = 2; - * * @return Whether the effectiveTime field is set. */ public boolean hasEffectiveTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                    * Time from which the policy was effective. This is service-provided.
                    * 
            * * optional .google.protobuf.Timestamp effective_time = 2; - * * @return The effectiveTime. */ public com.google.protobuf.Timestamp getEffectiveTime() { if (effectiveTimeBuilder_ == null) { - return effectiveTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : effectiveTime_; + return effectiveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTime_; } else { return effectiveTimeBuilder_.getMessage(); } } /** - * - * *
                    * Time from which the policy was effective. This is service-provided.
                    * 
            @@ -14118,15 +12657,14 @@ public Builder setEffectiveTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                    * Time from which the policy was effective. This is service-provided.
                    * 
            * * optional .google.protobuf.Timestamp effective_time = 2; */ - public Builder setEffectiveTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEffectiveTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (effectiveTimeBuilder_ == null) { effectiveTime_ = builderForValue.build(); } else { @@ -14137,8 +12675,6 @@ public Builder setEffectiveTime(com.google.protobuf.Timestamp.Builder builderFor return this; } /** - * - * *
                    * Time from which the policy was effective. This is service-provided.
                    * 
            @@ -14147,9 +12683,9 @@ public Builder setEffectiveTime(com.google.protobuf.Timestamp.Builder builderFor */ public Builder mergeEffectiveTime(com.google.protobuf.Timestamp value) { if (effectiveTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && effectiveTime_ != null - && effectiveTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + effectiveTime_ != null && + effectiveTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEffectiveTimeBuilder().mergeFrom(value); } else { effectiveTime_ = value; @@ -14164,8 +12700,6 @@ public Builder mergeEffectiveTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                    * Time from which the policy was effective. This is service-provided.
                    * 
            @@ -14183,8 +12717,6 @@ public Builder clearEffectiveTime() { return this; } /** - * - * *
                    * Time from which the policy was effective. This is service-provided.
                    * 
            @@ -14197,8 +12729,6 @@ public com.google.protobuf.Timestamp.Builder getEffectiveTimeBuilder() { return getEffectiveTimeFieldBuilder().getBuilder(); } /** - * - * *
                    * Time from which the policy was effective. This is service-provided.
                    * 
            @@ -14209,14 +12739,11 @@ public com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder() { if (effectiveTimeBuilder_ != null) { return effectiveTimeBuilder_.getMessageOrBuilder(); } else { - return effectiveTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : effectiveTime_; + return effectiveTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTime_; } } /** - * - * *
                    * Time from which the policy was effective. This is service-provided.
                    * 
            @@ -14224,22 +12751,18 @@ public com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder() { * optional .google.protobuf.Timestamp effective_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEffectiveTimeFieldBuilder() { if (effectiveTimeBuilder_ == null) { - effectiveTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEffectiveTime(), getParentForChildren(), isClean()); + effectiveTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEffectiveTime(), + getParentForChildren(), + isClean()); effectiveTime_ = null; } return effectiveTimeBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -14252,12 +12775,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.Bucket.SoftDeletePolicy) } // @@protoc_insertion_point(class_scope:google.storage.v2.Bucket.SoftDeletePolicy) private static final com.google.storage.v2.Bucket.SoftDeletePolicy DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.Bucket.SoftDeletePolicy(); } @@ -14266,28 +12789,27 @@ public static com.google.storage.v2.Bucket.SoftDeletePolicy getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SoftDeletePolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SoftDeletePolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -14302,29 +12824,24 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.SoftDeletePolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface VersioningOrBuilder - extends + public interface VersioningOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.Versioning) com.google.protobuf.MessageOrBuilder { /** - * - * *
                  * While set to true, versioning is fully enabled for this bucket.
                  * 
            * * bool enabled = 1; - * * @return The enabled. */ boolean getEnabled(); } /** - * - * *
                * Properties of a bucket related to versioning.
                * For more on Cloud Storage versioning, see
            @@ -14333,50 +12850,46 @@ public interface VersioningOrBuilder
                *
                * Protobuf type {@code google.storage.v2.Bucket.Versioning}
                */
            -  public static final class Versioning extends com.google.protobuf.GeneratedMessageV3
            -      implements
            +  public static final class Versioning extends
            +      com.google.protobuf.GeneratedMessageV3 implements
                   // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.Versioning)
                   VersioningOrBuilder {
            -    private static final long serialVersionUID = 0L;
            +  private static final long serialVersionUID = 0L;
                 // Use Versioning.newBuilder() to construct.
                 private Versioning(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                   super(builder);
                 }
            -
            -    private Versioning() {}
            +    private Versioning() {
            +    }
             
                 @java.lang.Override
                 @SuppressWarnings({"unused"})
            -    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
            +    protected java.lang.Object newInstance(
            +        UnusedPrivateParameter unused) {
                   return new Versioning();
                 }
             
            -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            -      return com.google.storage.v2.StorageProto
            -          .internal_static_google_storage_v2_Bucket_Versioning_descriptor;
            +    public static final com.google.protobuf.Descriptors.Descriptor
            +        getDescriptor() {
            +      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Versioning_descriptor;
                 }
             
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
            -      return com.google.storage.v2.StorageProto
            -          .internal_static_google_storage_v2_Bucket_Versioning_fieldAccessorTable
            +      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Versioning_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
            -              com.google.storage.v2.Bucket.Versioning.class,
            -              com.google.storage.v2.Bucket.Versioning.Builder.class);
            +              com.google.storage.v2.Bucket.Versioning.class, com.google.storage.v2.Bucket.Versioning.Builder.class);
                 }
             
                 public static final int ENABLED_FIELD_NUMBER = 1;
                 private boolean enabled_ = false;
                 /**
            -     *
            -     *
                  * 
                  * While set to true, versioning is fully enabled for this bucket.
                  * 
            * * bool enabled = 1; - * * @return The enabled. */ @java.lang.Override @@ -14385,7 +12898,6 @@ public boolean getEnabled() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -14397,7 +12909,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (enabled_ != false) { output.writeBool(1, enabled_); } @@ -14411,7 +12924,8 @@ public int getSerializedSize() { size = 0; if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enabled_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -14421,14 +12935,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.Bucket.Versioning)) { return super.equals(obj); } com.google.storage.v2.Bucket.Versioning other = (com.google.storage.v2.Bucket.Versioning) obj; - if (getEnabled() != other.getEnabled()) return false; + if (getEnabled() + != other.getEnabled()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -14441,100 +12956,97 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.storage.v2.Bucket.Versioning parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.Bucket.Versioning parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Versioning parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.Versioning parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Versioning parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.Versioning parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Versioning parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.Versioning parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.Bucket.Versioning parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.Bucket.Versioning parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.Bucket.Versioning parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.Bucket.Versioning parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.Bucket.Versioning parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.Bucket.Versioning parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.Bucket.Versioning prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -14544,8 +13056,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
                  * Properties of a bucket related to versioning.
                  * For more on Cloud Storage versioning, see
            @@ -14554,33 +13064,33 @@ protected Builder newBuilderForType(
                  *
                  * Protobuf type {@code google.storage.v2.Bucket.Versioning}
                  */
            -    public static final class Builder
            -        extends com.google.protobuf.GeneratedMessageV3.Builder
            -        implements
            +    public static final class Builder extends
            +        com.google.protobuf.GeneratedMessageV3.Builder implements
                     // @@protoc_insertion_point(builder_implements:google.storage.v2.Bucket.Versioning)
                     com.google.storage.v2.Bucket.VersioningOrBuilder {
            -      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            -        return com.google.storage.v2.StorageProto
            -            .internal_static_google_storage_v2_Bucket_Versioning_descriptor;
            +      public static final com.google.protobuf.Descriptors.Descriptor
            +          getDescriptor() {
            +        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Versioning_descriptor;
                   }
             
                   @java.lang.Override
                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                       internalGetFieldAccessorTable() {
            -        return com.google.storage.v2.StorageProto
            -            .internal_static_google_storage_v2_Bucket_Versioning_fieldAccessorTable
            +        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Versioning_fieldAccessorTable
                         .ensureFieldAccessorsInitialized(
            -                com.google.storage.v2.Bucket.Versioning.class,
            -                com.google.storage.v2.Bucket.Versioning.Builder.class);
            +                com.google.storage.v2.Bucket.Versioning.class, com.google.storage.v2.Bucket.Versioning.Builder.class);
                   }
             
                   // Construct using com.google.storage.v2.Bucket.Versioning.newBuilder()
            -      private Builder() {}
            +      private Builder() {
             
            -      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            -        super(parent);
                   }
             
            +      private Builder(
            +          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            +        super(parent);
            +
            +      }
                   @java.lang.Override
                   public Builder clear() {
                     super.clear();
            @@ -14590,9 +13100,9 @@ public Builder clear() {
                   }
             
                   @java.lang.Override
            -      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            -        return com.google.storage.v2.StorageProto
            -            .internal_static_google_storage_v2_Bucket_Versioning_descriptor;
            +      public com.google.protobuf.Descriptors.Descriptor
            +          getDescriptorForType() {
            +        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Versioning_descriptor;
                   }
             
                   @java.lang.Override
            @@ -14611,11 +13121,8 @@ public com.google.storage.v2.Bucket.Versioning build() {
             
                   @java.lang.Override
                   public com.google.storage.v2.Bucket.Versioning buildPartial() {
            -        com.google.storage.v2.Bucket.Versioning result =
            -            new com.google.storage.v2.Bucket.Versioning(this);
            -        if (bitField0_ != 0) {
            -          buildPartial0(result);
            -        }
            +        com.google.storage.v2.Bucket.Versioning result = new com.google.storage.v2.Bucket.Versioning(this);
            +        if (bitField0_ != 0) { buildPartial0(result); }
                     onBuilt();
                     return result;
                   }
            @@ -14631,41 +13138,38 @@ private void buildPartial0(com.google.storage.v2.Bucket.Versioning result) {
                   public Builder clone() {
                     return super.clone();
                   }
            -
                   @java.lang.Override
                   public Builder setField(
            -          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
            +          com.google.protobuf.Descriptors.FieldDescriptor field,
            +          java.lang.Object value) {
                     return super.setField(field, value);
                   }
            -
                   @java.lang.Override
            -      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
            +      public Builder clearField(
            +          com.google.protobuf.Descriptors.FieldDescriptor field) {
                     return super.clearField(field);
                   }
            -
                   @java.lang.Override
            -      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
            +      public Builder clearOneof(
            +          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                     return super.clearOneof(oneof);
                   }
            -
                   @java.lang.Override
                   public Builder setRepeatedField(
                       com.google.protobuf.Descriptors.FieldDescriptor field,
            -          int index,
            -          java.lang.Object value) {
            +          int index, java.lang.Object value) {
                     return super.setRepeatedField(field, index, value);
                   }
            -
                   @java.lang.Override
                   public Builder addRepeatedField(
            -          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
            +          com.google.protobuf.Descriptors.FieldDescriptor field,
            +          java.lang.Object value) {
                     return super.addRepeatedField(field, value);
                   }
            -
                   @java.lang.Override
                   public Builder mergeFrom(com.google.protobuf.Message other) {
                     if (other instanceof com.google.storage.v2.Bucket.Versioning) {
            -          return mergeFrom((com.google.storage.v2.Bucket.Versioning) other);
            +          return mergeFrom((com.google.storage.v2.Bucket.Versioning)other);
                     } else {
                       super.mergeFrom(other);
                       return this;
            @@ -14703,19 +13207,17 @@ public Builder mergeFrom(
                           case 0:
                             done = true;
                             break;
            -              case 8:
            -                {
            -                  enabled_ = input.readBool();
            -                  bitField0_ |= 0x00000001;
            -                  break;
            -                } // case 8
            -              default:
            -                {
            -                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            -                    done = true; // was an endgroup tag
            -                  }
            -                  break;
            -                } // default:
            +              case 8: {
            +                enabled_ = input.readBool();
            +                bitField0_ |= 0x00000001;
            +                break;
            +              } // case 8
            +              default: {
            +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            +                  done = true; // was an endgroup tag
            +                }
            +                break;
            +              } // default:
                         } // switch (tag)
                       } // while (!done)
                     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            @@ -14725,19 +13227,15 @@ public Builder mergeFrom(
                     } // finally
                     return this;
                   }
            -
                   private int bitField0_;
             
            -      private boolean enabled_;
            +      private boolean enabled_ ;
                   /**
            -       *
            -       *
                    * 
                    * While set to true, versioning is fully enabled for this bucket.
                    * 
            * * bool enabled = 1; - * * @return The enabled. */ @java.lang.Override @@ -14745,14 +13243,11 @@ public boolean getEnabled() { return enabled_; } /** - * - * *
                    * While set to true, versioning is fully enabled for this bucket.
                    * 
            * * bool enabled = 1; - * * @param value The enabled to set. * @return This builder for chaining. */ @@ -14764,14 +13259,11 @@ public Builder setEnabled(boolean value) { return this; } /** - * - * *
                    * While set to true, versioning is fully enabled for this bucket.
                    * 
            * * bool enabled = 1; - * * @return This builder for chaining. */ public Builder clearEnabled() { @@ -14780,7 +13272,6 @@ public Builder clearEnabled() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -14793,43 +13284,42 @@ 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(); - } - - 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(); - } - }; - + + // @@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(); + } + + 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(); + } + }; + public static com.google.protobuf.Parser parser() { return PARSER; } @@ -14843,16 +13333,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.Versioning getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface WebsiteOrBuilder - extends + public interface WebsiteOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.Website) com.google.protobuf.MessageOrBuilder { /** - * - * *
                  * If the requested object path is missing, the service will ensure the path
                  * has a trailing '/', append this suffix, and attempt to retrieve the
            @@ -14861,13 +13349,10 @@ public interface WebsiteOrBuilder
                  * 
            * * string main_page_suffix = 1; - * * @return The mainPageSuffix. */ java.lang.String getMainPageSuffix(); /** - * - * *
                  * If the requested object path is missing, the service will ensure the path
                  * has a trailing '/', append this suffix, and attempt to retrieve the
            @@ -14876,14 +13361,12 @@ public interface WebsiteOrBuilder
                  * 
            * * string main_page_suffix = 1; - * * @return The bytes for mainPageSuffix. */ - com.google.protobuf.ByteString getMainPageSuffixBytes(); + com.google.protobuf.ByteString + getMainPageSuffixBytes(); /** - * - * *
                  * If the requested object path is missing, and any
                  * `mainPageSuffix` object is missing, if applicable, the service
            @@ -14893,13 +13376,10 @@ public interface WebsiteOrBuilder
                  * 
            * * string not_found_page = 2; - * * @return The notFoundPage. */ java.lang.String getNotFoundPage(); /** - * - * *
                  * If the requested object path is missing, and any
                  * `mainPageSuffix` object is missing, if applicable, the service
            @@ -14909,14 +13389,12 @@ public interface WebsiteOrBuilder
                  * 
            * * string not_found_page = 2; - * * @return The bytes for notFoundPage. */ - com.google.protobuf.ByteString getNotFoundPageBytes(); + com.google.protobuf.ByteString + getNotFoundPageBytes(); } /** - * - * *
                * Properties of a bucket related to accessing the contents as a static
                * website. For more on hosting a static website via Cloud Storage, see
            @@ -14925,16 +13403,15 @@ public interface WebsiteOrBuilder
                *
                * Protobuf type {@code google.storage.v2.Bucket.Website}
                */
            -  public static final class Website extends com.google.protobuf.GeneratedMessageV3
            -      implements
            +  public static final class Website extends
            +      com.google.protobuf.GeneratedMessageV3 implements
                   // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.Website)
                   WebsiteOrBuilder {
            -    private static final long serialVersionUID = 0L;
            +  private static final long serialVersionUID = 0L;
                 // Use Website.newBuilder() to construct.
                 private Website(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                   super(builder);
                 }
            -
                 private Website() {
                   mainPageSuffix_ = "";
                   notFoundPage_ = "";
            @@ -14942,32 +13419,28 @@ private Website() {
             
                 @java.lang.Override
                 @SuppressWarnings({"unused"})
            -    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
            +    protected java.lang.Object newInstance(
            +        UnusedPrivateParameter unused) {
                   return new Website();
                 }
             
            -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            -      return com.google.storage.v2.StorageProto
            -          .internal_static_google_storage_v2_Bucket_Website_descriptor;
            +    public static final com.google.protobuf.Descriptors.Descriptor
            +        getDescriptor() {
            +      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Website_descriptor;
                 }
             
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
            -      return com.google.storage.v2.StorageProto
            -          .internal_static_google_storage_v2_Bucket_Website_fieldAccessorTable
            +      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Website_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
            -              com.google.storage.v2.Bucket.Website.class,
            -              com.google.storage.v2.Bucket.Website.Builder.class);
            +              com.google.storage.v2.Bucket.Website.class, com.google.storage.v2.Bucket.Website.Builder.class);
                 }
             
                 public static final int MAIN_PAGE_SUFFIX_FIELD_NUMBER = 1;
            -
                 @SuppressWarnings("serial")
                 private volatile java.lang.Object mainPageSuffix_ = "";
                 /**
            -     *
            -     *
                  * 
                  * If the requested object path is missing, the service will ensure the path
                  * has a trailing '/', append this suffix, and attempt to retrieve the
            @@ -14976,7 +13449,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                  * 
            * * string main_page_suffix = 1; - * * @return The mainPageSuffix. */ @java.lang.Override @@ -14985,15 +13457,14 @@ public java.lang.String getMainPageSuffix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mainPageSuffix_ = s; return s; } } /** - * - * *
                  * If the requested object path is missing, the service will ensure the path
                  * has a trailing '/', append this suffix, and attempt to retrieve the
            @@ -15002,15 +13473,16 @@ public java.lang.String getMainPageSuffix() {
                  * 
            * * string main_page_suffix = 1; - * * @return The bytes for mainPageSuffix. */ @java.lang.Override - public com.google.protobuf.ByteString getMainPageSuffixBytes() { + public com.google.protobuf.ByteString + getMainPageSuffixBytes() { java.lang.Object ref = mainPageSuffix_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mainPageSuffix_ = b; return b; } else { @@ -15019,12 +13491,9 @@ public com.google.protobuf.ByteString getMainPageSuffixBytes() { } public static final int NOT_FOUND_PAGE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object notFoundPage_ = ""; /** - * - * *
                  * If the requested object path is missing, and any
                  * `mainPageSuffix` object is missing, if applicable, the service
            @@ -15034,7 +13503,6 @@ public com.google.protobuf.ByteString getMainPageSuffixBytes() {
                  * 
            * * string not_found_page = 2; - * * @return The notFoundPage. */ @java.lang.Override @@ -15043,15 +13511,14 @@ public java.lang.String getNotFoundPage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); notFoundPage_ = s; return s; } } /** - * - * *
                  * If the requested object path is missing, and any
                  * `mainPageSuffix` object is missing, if applicable, the service
            @@ -15061,15 +13528,16 @@ public java.lang.String getNotFoundPage() {
                  * 
            * * string not_found_page = 2; - * * @return The bytes for notFoundPage. */ @java.lang.Override - public com.google.protobuf.ByteString getNotFoundPageBytes() { + public com.google.protobuf.ByteString + getNotFoundPageBytes() { java.lang.Object ref = notFoundPage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); notFoundPage_ = b; return b; } else { @@ -15078,7 +13546,6 @@ public com.google.protobuf.ByteString getNotFoundPageBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -15090,7 +13557,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mainPageSuffix_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mainPageSuffix_); } @@ -15120,15 +13588,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.Bucket.Website)) { return super.equals(obj); } com.google.storage.v2.Bucket.Website other = (com.google.storage.v2.Bucket.Website) obj; - if (!getMainPageSuffix().equals(other.getMainPageSuffix())) return false; - if (!getNotFoundPage().equals(other.getNotFoundPage())) return false; + if (!getMainPageSuffix() + .equals(other.getMainPageSuffix())) return false; + if (!getNotFoundPage() + .equals(other.getNotFoundPage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -15149,94 +13619,90 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.Bucket.Website parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.Bucket.Website parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Website parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.Website parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Website parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.Website parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Website parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.Website parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.Bucket.Website parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.storage.v2.Bucket.Website parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.Bucket.Website parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.Bucket.Website parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.Bucket.Website parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.Bucket.Website prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -15246,8 +13712,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
                  * Properties of a bucket related to accessing the contents as a static
                  * website. For more on hosting a static website via Cloud Storage, see
            @@ -15256,33 +13720,33 @@ protected Builder newBuilderForType(
                  *
                  * Protobuf type {@code google.storage.v2.Bucket.Website}
                  */
            -    public static final class Builder
            -        extends com.google.protobuf.GeneratedMessageV3.Builder
            -        implements
            +    public static final class Builder extends
            +        com.google.protobuf.GeneratedMessageV3.Builder implements
                     // @@protoc_insertion_point(builder_implements:google.storage.v2.Bucket.Website)
                     com.google.storage.v2.Bucket.WebsiteOrBuilder {
            -      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            -        return com.google.storage.v2.StorageProto
            -            .internal_static_google_storage_v2_Bucket_Website_descriptor;
            +      public static final com.google.protobuf.Descriptors.Descriptor
            +          getDescriptor() {
            +        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Website_descriptor;
                   }
             
                   @java.lang.Override
                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                       internalGetFieldAccessorTable() {
            -        return com.google.storage.v2.StorageProto
            -            .internal_static_google_storage_v2_Bucket_Website_fieldAccessorTable
            +        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Website_fieldAccessorTable
                         .ensureFieldAccessorsInitialized(
            -                com.google.storage.v2.Bucket.Website.class,
            -                com.google.storage.v2.Bucket.Website.Builder.class);
            +                com.google.storage.v2.Bucket.Website.class, com.google.storage.v2.Bucket.Website.Builder.class);
                   }
             
                   // Construct using com.google.storage.v2.Bucket.Website.newBuilder()
            -      private Builder() {}
            +      private Builder() {
             
            -      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            -        super(parent);
                   }
             
            +      private Builder(
            +          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            +        super(parent);
            +
            +      }
                   @java.lang.Override
                   public Builder clear() {
                     super.clear();
            @@ -15293,9 +13757,9 @@ public Builder clear() {
                   }
             
                   @java.lang.Override
            -      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            -        return com.google.storage.v2.StorageProto
            -            .internal_static_google_storage_v2_Bucket_Website_descriptor;
            +      public com.google.protobuf.Descriptors.Descriptor
            +          getDescriptorForType() {
            +        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Website_descriptor;
                   }
             
                   @java.lang.Override
            @@ -15314,11 +13778,8 @@ public com.google.storage.v2.Bucket.Website build() {
             
                   @java.lang.Override
                   public com.google.storage.v2.Bucket.Website buildPartial() {
            -        com.google.storage.v2.Bucket.Website result =
            -            new com.google.storage.v2.Bucket.Website(this);
            -        if (bitField0_ != 0) {
            -          buildPartial0(result);
            -        }
            +        com.google.storage.v2.Bucket.Website result = new com.google.storage.v2.Bucket.Website(this);
            +        if (bitField0_ != 0) { buildPartial0(result); }
                     onBuilt();
                     return result;
                   }
            @@ -15337,41 +13798,38 @@ private void buildPartial0(com.google.storage.v2.Bucket.Website result) {
                   public Builder clone() {
                     return super.clone();
                   }
            -
                   @java.lang.Override
                   public Builder setField(
            -          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
            +          com.google.protobuf.Descriptors.FieldDescriptor field,
            +          java.lang.Object value) {
                     return super.setField(field, value);
                   }
            -
                   @java.lang.Override
            -      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
            +      public Builder clearField(
            +          com.google.protobuf.Descriptors.FieldDescriptor field) {
                     return super.clearField(field);
                   }
            -
                   @java.lang.Override
            -      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
            +      public Builder clearOneof(
            +          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                     return super.clearOneof(oneof);
                   }
            -
                   @java.lang.Override
                   public Builder setRepeatedField(
                       com.google.protobuf.Descriptors.FieldDescriptor field,
            -          int index,
            -          java.lang.Object value) {
            +          int index, java.lang.Object value) {
                     return super.setRepeatedField(field, index, value);
                   }
            -
                   @java.lang.Override
                   public Builder addRepeatedField(
            -          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
            +          com.google.protobuf.Descriptors.FieldDescriptor field,
            +          java.lang.Object value) {
                     return super.addRepeatedField(field, value);
                   }
            -
                   @java.lang.Override
                   public Builder mergeFrom(com.google.protobuf.Message other) {
                     if (other instanceof com.google.storage.v2.Bucket.Website) {
            -          return mergeFrom((com.google.storage.v2.Bucket.Website) other);
            +          return mergeFrom((com.google.storage.v2.Bucket.Website)other);
                     } else {
                       super.mergeFrom(other);
                       return this;
            @@ -15416,25 +13874,22 @@ public Builder mergeFrom(
                           case 0:
                             done = true;
                             break;
            -              case 10:
            -                {
            -                  mainPageSuffix_ = input.readStringRequireUtf8();
            -                  bitField0_ |= 0x00000001;
            -                  break;
            -                } // case 10
            -              case 18:
            -                {
            -                  notFoundPage_ = input.readStringRequireUtf8();
            -                  bitField0_ |= 0x00000002;
            -                  break;
            -                } // case 18
            -              default:
            -                {
            -                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            -                    done = true; // was an endgroup tag
            -                  }
            -                  break;
            -                } // default:
            +              case 10: {
            +                mainPageSuffix_ = input.readStringRequireUtf8();
            +                bitField0_ |= 0x00000001;
            +                break;
            +              } // case 10
            +              case 18: {
            +                notFoundPage_ = input.readStringRequireUtf8();
            +                bitField0_ |= 0x00000002;
            +                break;
            +              } // case 18
            +              default: {
            +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            +                  done = true; // was an endgroup tag
            +                }
            +                break;
            +              } // default:
                         } // switch (tag)
                       } // while (!done)
                     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            @@ -15444,13 +13899,10 @@ public Builder mergeFrom(
                     } // finally
                     return this;
                   }
            -
                   private int bitField0_;
             
                   private java.lang.Object mainPageSuffix_ = "";
                   /**
            -       *
            -       *
                    * 
                    * If the requested object path is missing, the service will ensure the path
                    * has a trailing '/', append this suffix, and attempt to retrieve the
            @@ -15459,13 +13911,13 @@ public Builder mergeFrom(
                    * 
            * * string main_page_suffix = 1; - * * @return The mainPageSuffix. */ public java.lang.String getMainPageSuffix() { java.lang.Object ref = mainPageSuffix_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mainPageSuffix_ = s; return s; @@ -15474,8 +13926,6 @@ public java.lang.String getMainPageSuffix() { } } /** - * - * *
                    * If the requested object path is missing, the service will ensure the path
                    * has a trailing '/', append this suffix, and attempt to retrieve the
            @@ -15484,14 +13934,15 @@ public java.lang.String getMainPageSuffix() {
                    * 
            * * string main_page_suffix = 1; - * * @return The bytes for mainPageSuffix. */ - public com.google.protobuf.ByteString getMainPageSuffixBytes() { + public com.google.protobuf.ByteString + getMainPageSuffixBytes() { java.lang.Object ref = mainPageSuffix_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mainPageSuffix_ = b; return b; } else { @@ -15499,8 +13950,6 @@ public com.google.protobuf.ByteString getMainPageSuffixBytes() { } } /** - * - * *
                    * If the requested object path is missing, the service will ensure the path
                    * has a trailing '/', append this suffix, and attempt to retrieve the
            @@ -15509,22 +13958,18 @@ public com.google.protobuf.ByteString getMainPageSuffixBytes() {
                    * 
            * * string main_page_suffix = 1; - * * @param value The mainPageSuffix to set. * @return This builder for chaining. */ - public Builder setMainPageSuffix(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMainPageSuffix( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } mainPageSuffix_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                    * If the requested object path is missing, the service will ensure the path
                    * has a trailing '/', append this suffix, and attempt to retrieve the
            @@ -15533,7 +13978,6 @@ public Builder setMainPageSuffix(java.lang.String value) {
                    * 
            * * string main_page_suffix = 1; - * * @return This builder for chaining. */ public Builder clearMainPageSuffix() { @@ -15543,8 +13987,6 @@ public Builder clearMainPageSuffix() { return this; } /** - * - * *
                    * If the requested object path is missing, the service will ensure the path
                    * has a trailing '/', append this suffix, and attempt to retrieve the
            @@ -15553,14 +13995,12 @@ public Builder clearMainPageSuffix() {
                    * 
            * * string main_page_suffix = 1; - * * @param value The bytes for mainPageSuffix to set. * @return This builder for chaining. */ - public Builder setMainPageSuffixBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMainPageSuffixBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mainPageSuffix_ = value; bitField0_ |= 0x00000001; @@ -15570,8 +14010,6 @@ public Builder setMainPageSuffixBytes(com.google.protobuf.ByteString value) { private java.lang.Object notFoundPage_ = ""; /** - * - * *
                    * If the requested object path is missing, and any
                    * `mainPageSuffix` object is missing, if applicable, the service
            @@ -15581,13 +14019,13 @@ public Builder setMainPageSuffixBytes(com.google.protobuf.ByteString value) {
                    * 
            * * string not_found_page = 2; - * * @return The notFoundPage. */ public java.lang.String getNotFoundPage() { java.lang.Object ref = notFoundPage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); notFoundPage_ = s; return s; @@ -15596,8 +14034,6 @@ public java.lang.String getNotFoundPage() { } } /** - * - * *
                    * If the requested object path is missing, and any
                    * `mainPageSuffix` object is missing, if applicable, the service
            @@ -15607,14 +14043,15 @@ public java.lang.String getNotFoundPage() {
                    * 
            * * string not_found_page = 2; - * * @return The bytes for notFoundPage. */ - public com.google.protobuf.ByteString getNotFoundPageBytes() { + public com.google.protobuf.ByteString + getNotFoundPageBytes() { java.lang.Object ref = notFoundPage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); notFoundPage_ = b; return b; } else { @@ -15622,8 +14059,6 @@ public com.google.protobuf.ByteString getNotFoundPageBytes() { } } /** - * - * *
                    * If the requested object path is missing, and any
                    * `mainPageSuffix` object is missing, if applicable, the service
            @@ -15633,22 +14068,18 @@ public com.google.protobuf.ByteString getNotFoundPageBytes() {
                    * 
            * * string not_found_page = 2; - * * @param value The notFoundPage to set. * @return This builder for chaining. */ - public Builder setNotFoundPage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNotFoundPage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } notFoundPage_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                    * If the requested object path is missing, and any
                    * `mainPageSuffix` object is missing, if applicable, the service
            @@ -15658,7 +14089,6 @@ public Builder setNotFoundPage(java.lang.String value) {
                    * 
            * * string not_found_page = 2; - * * @return This builder for chaining. */ public Builder clearNotFoundPage() { @@ -15668,8 +14098,6 @@ public Builder clearNotFoundPage() { return this; } /** - * - * *
                    * If the requested object path is missing, and any
                    * `mainPageSuffix` object is missing, if applicable, the service
            @@ -15679,21 +14107,18 @@ public Builder clearNotFoundPage() {
                    * 
            * * string not_found_page = 2; - * * @param value The bytes for notFoundPage to set. * @return This builder for chaining. */ - public Builder setNotFoundPageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNotFoundPageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); notFoundPage_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -15706,12 +14131,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.Bucket.Website) } // @@protoc_insertion_point(class_scope:google.storage.v2.Bucket.Website) private static final com.google.storage.v2.Bucket.Website DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.Bucket.Website(); } @@ -15720,28 +14145,27 @@ public static com.google.storage.v2.Bucket.Website getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Website parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Website parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -15756,67 +14180,55 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.Website getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface CustomPlacementConfigOrBuilder - extends + public interface CustomPlacementConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.CustomPlacementConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
                  * List of locations to use for data placement.
                  * 
            * * repeated string data_locations = 1; - * * @return A list containing the dataLocations. */ - java.util.List getDataLocationsList(); + java.util.List + getDataLocationsList(); /** - * - * *
                  * List of locations to use for data placement.
                  * 
            * * repeated string data_locations = 1; - * * @return The count of dataLocations. */ int getDataLocationsCount(); /** - * - * *
                  * List of locations to use for data placement.
                  * 
            * * repeated string data_locations = 1; - * * @param index The index of the element to return. * @return The dataLocations at the given index. */ java.lang.String getDataLocations(int index); /** - * - * *
                  * List of locations to use for data placement.
                  * 
            * * repeated string data_locations = 1; - * * @param index The index of the value to return. * @return The bytes of the dataLocations at the given index. */ - com.google.protobuf.ByteString getDataLocationsBytes(int index); + com.google.protobuf.ByteString + getDataLocationsBytes(int index); } /** - * - * *
                * Configuration for Custom Dual Regions.  It should specify precisely two
                * eligible regions within the same Multiregion. More information on regions
            @@ -15825,83 +14237,73 @@ public interface CustomPlacementConfigOrBuilder
                *
                * Protobuf type {@code google.storage.v2.Bucket.CustomPlacementConfig}
                */
            -  public static final class CustomPlacementConfig extends com.google.protobuf.GeneratedMessageV3
            -      implements
            +  public static final class CustomPlacementConfig extends
            +      com.google.protobuf.GeneratedMessageV3 implements
                   // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.CustomPlacementConfig)
                   CustomPlacementConfigOrBuilder {
            -    private static final long serialVersionUID = 0L;
            +  private static final long serialVersionUID = 0L;
                 // Use CustomPlacementConfig.newBuilder() to construct.
                 private CustomPlacementConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                   super(builder);
                 }
            -
                 private CustomPlacementConfig() {
            -      dataLocations_ = com.google.protobuf.LazyStringArrayList.emptyList();
            +      dataLocations_ =
            +          com.google.protobuf.LazyStringArrayList.emptyList();
                 }
             
                 @java.lang.Override
                 @SuppressWarnings({"unused"})
            -    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
            +    protected java.lang.Object newInstance(
            +        UnusedPrivateParameter unused) {
                   return new CustomPlacementConfig();
                 }
             
            -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            -      return com.google.storage.v2.StorageProto
            -          .internal_static_google_storage_v2_Bucket_CustomPlacementConfig_descriptor;
            +    public static final com.google.protobuf.Descriptors.Descriptor
            +        getDescriptor() {
            +      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_CustomPlacementConfig_descriptor;
                 }
             
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
            -      return com.google.storage.v2.StorageProto
            -          .internal_static_google_storage_v2_Bucket_CustomPlacementConfig_fieldAccessorTable
            +      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_CustomPlacementConfig_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
            -              com.google.storage.v2.Bucket.CustomPlacementConfig.class,
            -              com.google.storage.v2.Bucket.CustomPlacementConfig.Builder.class);
            +              com.google.storage.v2.Bucket.CustomPlacementConfig.class, com.google.storage.v2.Bucket.CustomPlacementConfig.Builder.class);
                 }
             
                 public static final int DATA_LOCATIONS_FIELD_NUMBER = 1;
            -
                 @SuppressWarnings("serial")
                 private com.google.protobuf.LazyStringArrayList dataLocations_ =
                     com.google.protobuf.LazyStringArrayList.emptyList();
                 /**
            -     *
            -     *
                  * 
                  * List of locations to use for data placement.
                  * 
            * * repeated string data_locations = 1; - * * @return A list containing the dataLocations. */ - public com.google.protobuf.ProtocolStringList getDataLocationsList() { + public com.google.protobuf.ProtocolStringList + getDataLocationsList() { return dataLocations_; } /** - * - * *
                  * List of locations to use for data placement.
                  * 
            * * repeated string data_locations = 1; - * * @return The count of dataLocations. */ public int getDataLocationsCount() { return dataLocations_.size(); } /** - * - * *
                  * List of locations to use for data placement.
                  * 
            * * repeated string data_locations = 1; - * * @param index The index of the element to return. * @return The dataLocations at the given index. */ @@ -15909,23 +14311,20 @@ public java.lang.String getDataLocations(int index) { return dataLocations_.get(index); } /** - * - * *
                  * List of locations to use for data placement.
                  * 
            * * repeated string data_locations = 1; - * * @param index The index of the value to return. * @return The bytes of the dataLocations at the given index. */ - public com.google.protobuf.ByteString getDataLocationsBytes(int index) { + public com.google.protobuf.ByteString + getDataLocationsBytes(int index) { return dataLocations_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -15937,7 +14336,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < dataLocations_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataLocations_.getRaw(i)); } @@ -15966,15 +14366,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.Bucket.CustomPlacementConfig)) { return super.equals(obj); } - com.google.storage.v2.Bucket.CustomPlacementConfig other = - (com.google.storage.v2.Bucket.CustomPlacementConfig) obj; + com.google.storage.v2.Bucket.CustomPlacementConfig other = (com.google.storage.v2.Bucket.CustomPlacementConfig) obj; - if (!getDataLocationsList().equals(other.getDataLocationsList())) return false; + if (!getDataLocationsList() + .equals(other.getDataLocationsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -15996,93 +14396,89 @@ public int hashCode() { } public static com.google.storage.v2.Bucket.CustomPlacementConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.CustomPlacementConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.CustomPlacementConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.CustomPlacementConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.CustomPlacementConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.CustomPlacementConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.v2.Bucket.CustomPlacementConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.v2.Bucket.CustomPlacementConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.Bucket.CustomPlacementConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.Bucket.CustomPlacementConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.Bucket.CustomPlacementConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.Bucket.CustomPlacementConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.Bucket.CustomPlacementConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.Bucket.CustomPlacementConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.Bucket.CustomPlacementConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -16092,8 +14488,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
                  * Configuration for Custom Dual Regions.  It should specify precisely two
                  * eligible regions within the same Multiregion. More information on regions
            @@ -16102,45 +14496,46 @@ protected Builder newBuilderForType(
                  *
                  * Protobuf type {@code google.storage.v2.Bucket.CustomPlacementConfig}
                  */
            -    public static final class Builder
            -        extends com.google.protobuf.GeneratedMessageV3.Builder
            -        implements
            +    public static final class Builder extends
            +        com.google.protobuf.GeneratedMessageV3.Builder implements
                     // @@protoc_insertion_point(builder_implements:google.storage.v2.Bucket.CustomPlacementConfig)
                     com.google.storage.v2.Bucket.CustomPlacementConfigOrBuilder {
            -      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            -        return com.google.storage.v2.StorageProto
            -            .internal_static_google_storage_v2_Bucket_CustomPlacementConfig_descriptor;
            +      public static final com.google.protobuf.Descriptors.Descriptor
            +          getDescriptor() {
            +        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_CustomPlacementConfig_descriptor;
                   }
             
                   @java.lang.Override
                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                       internalGetFieldAccessorTable() {
            -        return com.google.storage.v2.StorageProto
            -            .internal_static_google_storage_v2_Bucket_CustomPlacementConfig_fieldAccessorTable
            +        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_CustomPlacementConfig_fieldAccessorTable
                         .ensureFieldAccessorsInitialized(
            -                com.google.storage.v2.Bucket.CustomPlacementConfig.class,
            -                com.google.storage.v2.Bucket.CustomPlacementConfig.Builder.class);
            +                com.google.storage.v2.Bucket.CustomPlacementConfig.class, com.google.storage.v2.Bucket.CustomPlacementConfig.Builder.class);
                   }
             
                   // Construct using com.google.storage.v2.Bucket.CustomPlacementConfig.newBuilder()
            -      private Builder() {}
            +      private Builder() {
             
            -      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            -        super(parent);
                   }
             
            +      private Builder(
            +          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            +        super(parent);
            +
            +      }
                   @java.lang.Override
                   public Builder clear() {
                     super.clear();
                     bitField0_ = 0;
            -        dataLocations_ = com.google.protobuf.LazyStringArrayList.emptyList();
            +        dataLocations_ =
            +            com.google.protobuf.LazyStringArrayList.emptyList();
                     return this;
                   }
             
                   @java.lang.Override
            -      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            -        return com.google.storage.v2.StorageProto
            -            .internal_static_google_storage_v2_Bucket_CustomPlacementConfig_descriptor;
            +      public com.google.protobuf.Descriptors.Descriptor
            +          getDescriptorForType() {
            +        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_CustomPlacementConfig_descriptor;
                   }
             
                   @java.lang.Override
            @@ -16159,11 +14554,8 @@ public com.google.storage.v2.Bucket.CustomPlacementConfig build() {
             
                   @java.lang.Override
                   public com.google.storage.v2.Bucket.CustomPlacementConfig buildPartial() {
            -        com.google.storage.v2.Bucket.CustomPlacementConfig result =
            -            new com.google.storage.v2.Bucket.CustomPlacementConfig(this);
            -        if (bitField0_ != 0) {
            -          buildPartial0(result);
            -        }
            +        com.google.storage.v2.Bucket.CustomPlacementConfig result = new com.google.storage.v2.Bucket.CustomPlacementConfig(this);
            +        if (bitField0_ != 0) { buildPartial0(result); }
                     onBuilt();
                     return result;
                   }
            @@ -16180,41 +14572,38 @@ private void buildPartial0(com.google.storage.v2.Bucket.CustomPlacementConfig re
                   public Builder clone() {
                     return super.clone();
                   }
            -
                   @java.lang.Override
                   public Builder setField(
            -          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
            +          com.google.protobuf.Descriptors.FieldDescriptor field,
            +          java.lang.Object value) {
                     return super.setField(field, value);
                   }
            -
                   @java.lang.Override
            -      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
            +      public Builder clearField(
            +          com.google.protobuf.Descriptors.FieldDescriptor field) {
                     return super.clearField(field);
                   }
            -
                   @java.lang.Override
            -      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
            +      public Builder clearOneof(
            +          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                     return super.clearOneof(oneof);
                   }
            -
                   @java.lang.Override
                   public Builder setRepeatedField(
                       com.google.protobuf.Descriptors.FieldDescriptor field,
            -          int index,
            -          java.lang.Object value) {
            +          int index, java.lang.Object value) {
                     return super.setRepeatedField(field, index, value);
                   }
            -
                   @java.lang.Override
                   public Builder addRepeatedField(
            -          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
            +          com.google.protobuf.Descriptors.FieldDescriptor field,
            +          java.lang.Object value) {
                     return super.addRepeatedField(field, value);
                   }
            -
                   @java.lang.Override
                   public Builder mergeFrom(com.google.protobuf.Message other) {
                     if (other instanceof com.google.storage.v2.Bucket.CustomPlacementConfig) {
            -          return mergeFrom((com.google.storage.v2.Bucket.CustomPlacementConfig) other);
            +          return mergeFrom((com.google.storage.v2.Bucket.CustomPlacementConfig)other);
                     } else {
                       super.mergeFrom(other);
                       return this;
            @@ -16222,8 +14611,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
                   }
             
                   public Builder mergeFrom(com.google.storage.v2.Bucket.CustomPlacementConfig other) {
            -        if (other == com.google.storage.v2.Bucket.CustomPlacementConfig.getDefaultInstance())
            -          return this;
            +        if (other == com.google.storage.v2.Bucket.CustomPlacementConfig.getDefaultInstance()) return this;
                     if (!other.dataLocations_.isEmpty()) {
                       if (dataLocations_.isEmpty()) {
                         dataLocations_ = other.dataLocations_;
            @@ -16260,20 +14648,18 @@ public Builder mergeFrom(
                           case 0:
                             done = true;
                             break;
            -              case 10:
            -                {
            -                  java.lang.String s = input.readStringRequireUtf8();
            -                  ensureDataLocationsIsMutable();
            -                  dataLocations_.add(s);
            -                  break;
            -                } // case 10
            -              default:
            -                {
            -                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            -                    done = true; // was an endgroup tag
            -                  }
            -                  break;
            -                } // default:
            +              case 10: {
            +                java.lang.String s = input.readStringRequireUtf8();
            +                ensureDataLocationsIsMutable();
            +                dataLocations_.add(s);
            +                break;
            +              } // case 10
            +              default: {
            +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            +                  done = true; // was an endgroup tag
            +                }
            +                break;
            +              } // default:
                         } // switch (tag)
                       } // while (!done)
                     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            @@ -16283,12 +14669,10 @@ public Builder mergeFrom(
                     } // finally
                     return this;
                   }
            -
                   private int bitField0_;
             
                   private com.google.protobuf.LazyStringArrayList dataLocations_ =
                       com.google.protobuf.LazyStringArrayList.emptyList();
            -
                   private void ensureDataLocationsIsMutable() {
                     if (!dataLocations_.isModifiable()) {
                       dataLocations_ = new com.google.protobuf.LazyStringArrayList(dataLocations_);
            @@ -16296,43 +14680,35 @@ private void ensureDataLocationsIsMutable() {
                     bitField0_ |= 0x00000001;
                   }
                   /**
            -       *
            -       *
                    * 
                    * List of locations to use for data placement.
                    * 
            * * repeated string data_locations = 1; - * * @return A list containing the dataLocations. */ - public com.google.protobuf.ProtocolStringList getDataLocationsList() { + public com.google.protobuf.ProtocolStringList + getDataLocationsList() { dataLocations_.makeImmutable(); return dataLocations_; } /** - * - * *
                    * List of locations to use for data placement.
                    * 
            * * repeated string data_locations = 1; - * * @return The count of dataLocations. */ public int getDataLocationsCount() { return dataLocations_.size(); } /** - * - * *
                    * List of locations to use for data placement.
                    * 
            * * repeated string data_locations = 1; - * * @param index The index of the element to return. * @return The dataLocations at the given index. */ @@ -16340,37 +14716,31 @@ public java.lang.String getDataLocations(int index) { return dataLocations_.get(index); } /** - * - * *
                    * List of locations to use for data placement.
                    * 
            * * repeated string data_locations = 1; - * * @param index The index of the value to return. * @return The bytes of the dataLocations at the given index. */ - public com.google.protobuf.ByteString getDataLocationsBytes(int index) { + public com.google.protobuf.ByteString + getDataLocationsBytes(int index) { return dataLocations_.getByteString(index); } /** - * - * *
                    * List of locations to use for data placement.
                    * 
            * * repeated string data_locations = 1; - * * @param index The index to set the value at. * @param value The dataLocations to set. * @return This builder for chaining. */ - public Builder setDataLocations(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDataLocations( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDataLocationsIsMutable(); dataLocations_.set(index, value); bitField0_ |= 0x00000001; @@ -16378,21 +14748,17 @@ public Builder setDataLocations(int index, java.lang.String value) { return this; } /** - * - * *
                    * List of locations to use for data placement.
                    * 
            * * repeated string data_locations = 1; - * * @param value The dataLocations to add. * @return This builder for chaining. */ - public Builder addDataLocations(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDataLocations( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureDataLocationsIsMutable(); dataLocations_.add(value); bitField0_ |= 0x00000001; @@ -16400,58 +14766,50 @@ public Builder addDataLocations(java.lang.String value) { return this; } /** - * - * *
                    * List of locations to use for data placement.
                    * 
            * * repeated string data_locations = 1; - * * @param values The dataLocations to add. * @return This builder for chaining. */ - public Builder addAllDataLocations(java.lang.Iterable values) { + public Builder addAllDataLocations( + java.lang.Iterable values) { ensureDataLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataLocations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dataLocations_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                    * List of locations to use for data placement.
                    * 
            * * repeated string data_locations = 1; - * * @return This builder for chaining. */ public Builder clearDataLocations() { - dataLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + dataLocations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** - * - * *
                    * List of locations to use for data placement.
                    * 
            * * repeated string data_locations = 1; - * * @param value The bytes of the dataLocations to add. * @return This builder for chaining. */ - public Builder addDataLocationsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addDataLocationsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureDataLocationsIsMutable(); dataLocations_.add(value); @@ -16459,7 +14817,6 @@ public Builder addDataLocationsBytes(com.google.protobuf.ByteString value) { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -16472,12 +14829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.Bucket.CustomPlacementConfig) } // @@protoc_insertion_point(class_scope:google.storage.v2.Bucket.CustomPlacementConfig) private static final com.google.storage.v2.Bucket.CustomPlacementConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.Bucket.CustomPlacementConfig(); } @@ -16486,28 +14843,27 @@ public static com.google.storage.v2.Bucket.CustomPlacementConfig getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomPlacementConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomPlacementConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -16522,29 +14878,24 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.CustomPlacementConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface AutoclassOrBuilder - extends + public interface AutoclassOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.Autoclass) com.google.protobuf.MessageOrBuilder { /** - * - * *
                  * Enables Autoclass.
                  * 
            * * bool enabled = 1; - * * @return The enabled. */ boolean getEnabled(); /** - * - * *
                  * Output only. Latest instant at which the `enabled` field was set to true
                  * after being disabled/unconfigured or set to false after being enabled. If
            @@ -16552,16 +14903,11 @@ public interface AutoclassOrBuilder
                  * to the bucket creation time.
                  * 
            * - * - * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the toggleTime field is set. */ boolean hasToggleTime(); /** - * - * *
                  * Output only. Latest instant at which the `enabled` field was set to true
                  * after being disabled/unconfigured or set to false after being enabled. If
            @@ -16569,16 +14915,11 @@ public interface AutoclassOrBuilder
                  * to the bucket creation time.
                  * 
            * - * - * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The toggleTime. */ com.google.protobuf.Timestamp getToggleTime(); /** - * - * *
                  * Output only. Latest instant at which the `enabled` field was set to true
                  * after being disabled/unconfigured or set to false after being enabled. If
            @@ -16586,15 +14927,11 @@ public interface AutoclassOrBuilder
                  * to the bucket creation time.
                  * 
            * - * - * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getToggleTimeOrBuilder(); /** - * - * *
                  * An object in an Autoclass bucket will eventually cool down to the
                  * terminal storage class if there is no access to the object.
            @@ -16602,13 +14939,10 @@ public interface AutoclassOrBuilder
                  * 
            * * optional string terminal_storage_class = 3; - * * @return Whether the terminalStorageClass field is set. */ boolean hasTerminalStorageClass(); /** - * - * *
                  * An object in an Autoclass bucket will eventually cool down to the
                  * terminal storage class if there is no access to the object.
            @@ -16616,13 +14950,10 @@ public interface AutoclassOrBuilder
                  * 
            * * optional string terminal_storage_class = 3; - * * @return The terminalStorageClass. */ java.lang.String getTerminalStorageClass(); /** - * - * *
                  * An object in an Autoclass bucket will eventually cool down to the
                  * terminal storage class if there is no access to the object.
            @@ -16630,111 +14961,90 @@ public interface AutoclassOrBuilder
                  * 
            * * optional string terminal_storage_class = 3; - * * @return The bytes for terminalStorageClass. */ - com.google.protobuf.ByteString getTerminalStorageClassBytes(); + com.google.protobuf.ByteString + getTerminalStorageClassBytes(); /** - * - * *
                  * Output only. Latest instant at which the autoclass terminal storage class
                  * was updated.
                  * 
            * - * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the terminalStorageClassUpdateTime field is set. */ boolean hasTerminalStorageClassUpdateTime(); /** - * - * *
                  * Output only. Latest instant at which the autoclass terminal storage class
                  * was updated.
                  * 
            * - * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The terminalStorageClassUpdateTime. */ com.google.protobuf.Timestamp getTerminalStorageClassUpdateTime(); /** - * - * *
                  * Output only. Latest instant at which the autoclass terminal storage class
                  * was updated.
                  * 
            * - * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getTerminalStorageClassUpdateTimeOrBuilder(); } /** - * - * *
                * Configuration for a bucket's Autoclass feature.
                * 
            * * Protobuf type {@code google.storage.v2.Bucket.Autoclass} */ - public static final class Autoclass extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Autoclass extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.Autoclass) AutoclassOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Autoclass.newBuilder() to construct. private Autoclass(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Autoclass() { terminalStorageClass_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Autoclass(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Autoclass_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Autoclass_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Autoclass_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Autoclass_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.Autoclass.class, - com.google.storage.v2.Bucket.Autoclass.Builder.class); + com.google.storage.v2.Bucket.Autoclass.class, com.google.storage.v2.Bucket.Autoclass.Builder.class); } private int bitField0_; public static final int ENABLED_FIELD_NUMBER = 1; private boolean enabled_ = false; /** - * - * *
                  * Enables Autoclass.
                  * 
            * * bool enabled = 1; - * * @return The enabled. */ @java.lang.Override @@ -16745,8 +15055,6 @@ public boolean getEnabled() { public static final int TOGGLE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp toggleTime_; /** - * - * *
                  * Output only. Latest instant at which the `enabled` field was set to true
                  * after being disabled/unconfigured or set to false after being enabled. If
            @@ -16754,10 +15062,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 @@ -16765,8 +15070,6 @@ public boolean hasToggleTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                  * Output only. Latest instant at which the `enabled` field was set to true
                  * after being disabled/unconfigured or set to false after being enabled. If
            @@ -16774,10 +15077,7 @@ public boolean hasToggleTime() {
                  * to the bucket creation time.
                  * 
            * - * - * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The toggleTime. */ @java.lang.Override @@ -16785,8 +15085,6 @@ public com.google.protobuf.Timestamp getToggleTime() { return toggleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : toggleTime_; } /** - * - * *
                  * Output only. Latest instant at which the `enabled` field was set to true
                  * after being disabled/unconfigured or set to false after being enabled. If
            @@ -16794,9 +15092,7 @@ public com.google.protobuf.Timestamp getToggleTime() {
                  * to the bucket creation time.
                  * 
            * - * - * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getToggleTimeOrBuilder() { @@ -16804,12 +15100,9 @@ public com.google.protobuf.TimestampOrBuilder getToggleTimeOrBuilder() { } public static final int TERMINAL_STORAGE_CLASS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object terminalStorageClass_ = ""; /** - * - * *
                  * An object in an Autoclass bucket will eventually cool down to the
                  * terminal storage class if there is no access to the object.
            @@ -16817,7 +15110,6 @@ public com.google.protobuf.TimestampOrBuilder getToggleTimeOrBuilder() {
                  * 
            * * optional string terminal_storage_class = 3; - * * @return Whether the terminalStorageClass field is set. */ @java.lang.Override @@ -16825,8 +15117,6 @@ public boolean hasTerminalStorageClass() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                  * An object in an Autoclass bucket will eventually cool down to the
                  * terminal storage class if there is no access to the object.
            @@ -16834,7 +15124,6 @@ public boolean hasTerminalStorageClass() {
                  * 
            * * optional string terminal_storage_class = 3; - * * @return The terminalStorageClass. */ @java.lang.Override @@ -16843,15 +15132,14 @@ public java.lang.String getTerminalStorageClass() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); terminalStorageClass_ = s; return s; } } /** - * - * *
                  * An object in an Autoclass bucket will eventually cool down to the
                  * terminal storage class if there is no access to the object.
            @@ -16859,15 +15147,16 @@ public java.lang.String getTerminalStorageClass() {
                  * 
            * * optional string terminal_storage_class = 3; - * * @return The bytes for terminalStorageClass. */ @java.lang.Override - public com.google.protobuf.ByteString getTerminalStorageClassBytes() { + public com.google.protobuf.ByteString + getTerminalStorageClassBytes() { java.lang.Object ref = terminalStorageClass_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); terminalStorageClass_ = b; return b; } else { @@ -16878,17 +15167,12 @@ public com.google.protobuf.ByteString getTerminalStorageClassBytes() { public static final int TERMINAL_STORAGE_CLASS_UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp terminalStorageClassUpdateTime_; /** - * - * *
                  * Output only. Latest instant at which the autoclass terminal storage class
                  * was updated.
                  * 
            * - * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the terminalStorageClassUpdateTime field is set. */ @java.lang.Override @@ -16896,46 +15180,32 @@ public boolean hasTerminalStorageClassUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
                  * Output only. Latest instant at which the autoclass terminal storage class
                  * was updated.
                  * 
            * - * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The terminalStorageClassUpdateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getTerminalStorageClassUpdateTime() { - return terminalStorageClassUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : terminalStorageClassUpdateTime_; + return terminalStorageClassUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : terminalStorageClassUpdateTime_; } /** - * - * *
                  * Output only. Latest instant at which the autoclass terminal storage class
                  * was updated.
                  * 
            * - * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getTerminalStorageClassUpdateTimeOrBuilder() { - return terminalStorageClassUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : terminalStorageClassUpdateTime_; + return terminalStorageClassUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : terminalStorageClassUpdateTime_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -16947,7 +15217,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_); } @@ -16970,18 +15241,19 @@ 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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getToggleTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getToggleTime()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, terminalStorageClass_); } if (((bitField0_ & 0x00000004) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, getTerminalStorageClassUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getTerminalStorageClassUpdateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -16991,27 +15263,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.Bucket.Autoclass)) { return super.equals(obj); } com.google.storage.v2.Bucket.Autoclass other = (com.google.storage.v2.Bucket.Autoclass) obj; - if (getEnabled() != other.getEnabled()) return false; + if (getEnabled() + != other.getEnabled()) return false; if (hasToggleTime() != other.hasToggleTime()) return false; if (hasToggleTime()) { - if (!getToggleTime().equals(other.getToggleTime())) return false; + if (!getToggleTime() + .equals(other.getToggleTime())) return false; } if (hasTerminalStorageClass() != other.hasTerminalStorageClass()) return false; if (hasTerminalStorageClass()) { - if (!getTerminalStorageClass().equals(other.getTerminalStorageClass())) return false; + if (!getTerminalStorageClass() + .equals(other.getTerminalStorageClass())) return false; } - if (hasTerminalStorageClassUpdateTime() != other.hasTerminalStorageClassUpdateTime()) - return false; + if (hasTerminalStorageClassUpdateTime() != other.hasTerminalStorageClassUpdateTime()) return false; if (hasTerminalStorageClassUpdateTime()) { - if (!getTerminalStorageClassUpdateTime().equals(other.getTerminalStorageClassUpdateTime())) - return false; + if (!getTerminalStorageClassUpdateTime() + .equals(other.getTerminalStorageClassUpdateTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -17025,7 +15299,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); if (hasToggleTime()) { hash = (37 * hash) + TOGGLE_TIME_FIELD_NUMBER; hash = (53 * hash) + getToggleTime().hashCode(); @@ -17043,94 +15318,90 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.Bucket.Autoclass parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.Bucket.Autoclass parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Autoclass parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.Autoclass parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Autoclass parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.Autoclass parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.Autoclass parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.Autoclass parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.Bucket.Autoclass parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.Bucket.Autoclass parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.Bucket.Autoclass parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.Bucket.Autoclass parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.Bucket.Autoclass parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.Bucket.Autoclass parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.Bucket.Autoclass prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -17140,32 +15411,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
                  * Configuration for a bucket's Autoclass feature.
                  * 
            * * Protobuf type {@code google.storage.v2.Bucket.Autoclass} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.Bucket.Autoclass) com.google.storage.v2.Bucket.AutoclassOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Autoclass_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Autoclass_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Autoclass_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Autoclass_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.Autoclass.class, - com.google.storage.v2.Bucket.Autoclass.Builder.class); + com.google.storage.v2.Bucket.Autoclass.class, com.google.storage.v2.Bucket.Autoclass.Builder.class); } // Construct using com.google.storage.v2.Bucket.Autoclass.newBuilder() @@ -17173,18 +15439,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getToggleTimeFieldBuilder(); getTerminalStorageClassUpdateTimeFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -17205,9 +15471,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_Autoclass_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Autoclass_descriptor; } @java.lang.Override @@ -17226,11 +15492,8 @@ public com.google.storage.v2.Bucket.Autoclass build() { @java.lang.Override public com.google.storage.v2.Bucket.Autoclass buildPartial() { - com.google.storage.v2.Bucket.Autoclass result = - new com.google.storage.v2.Bucket.Autoclass(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.Bucket.Autoclass result = new com.google.storage.v2.Bucket.Autoclass(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -17242,8 +15505,9 @@ private void buildPartial0(com.google.storage.v2.Bucket.Autoclass result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.toggleTime_ = - toggleTimeBuilder_ == null ? toggleTime_ : toggleTimeBuilder_.build(); + result.toggleTime_ = toggleTimeBuilder_ == null + ? toggleTime_ + : toggleTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -17251,10 +15515,9 @@ private void buildPartial0(com.google.storage.v2.Bucket.Autoclass result) { to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.terminalStorageClassUpdateTime_ = - terminalStorageClassUpdateTimeBuilder_ == null - ? terminalStorageClassUpdateTime_ - : terminalStorageClassUpdateTimeBuilder_.build(); + result.terminalStorageClassUpdateTime_ = terminalStorageClassUpdateTimeBuilder_ == null + ? terminalStorageClassUpdateTime_ + : terminalStorageClassUpdateTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; @@ -17264,41 +15527,38 @@ private void buildPartial0(com.google.storage.v2.Bucket.Autoclass result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.Bucket.Autoclass) { - return mergeFrom((com.google.storage.v2.Bucket.Autoclass) other); + return mergeFrom((com.google.storage.v2.Bucket.Autoclass)other); } else { super.mergeFrom(other); return this; @@ -17347,39 +15607,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - input.readMessage(getToggleTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - terminalStorageClass_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage( - getTerminalStorageClassUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getToggleTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + terminalStorageClass_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getTerminalStorageClassUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -17389,19 +15646,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private boolean enabled_; + private boolean enabled_ ; /** - * - * *
                    * Enables Autoclass.
                    * 
            * * bool enabled = 1; - * * @return The enabled. */ @java.lang.Override @@ -17409,14 +15662,11 @@ public boolean getEnabled() { return enabled_; } /** - * - * *
                    * Enables Autoclass.
                    * 
            * * bool enabled = 1; - * * @param value The enabled to set. * @return This builder for chaining. */ @@ -17428,14 +15678,11 @@ public Builder setEnabled(boolean value) { return this; } /** - * - * *
                    * Enables Autoclass.
                    * 
            * * bool enabled = 1; - * * @return This builder for chaining. */ public Builder clearEnabled() { @@ -17447,13 +15694,8 @@ public Builder clearEnabled() { private com.google.protobuf.Timestamp toggleTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - toggleTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> toggleTimeBuilder_; /** - * - * *
                    * Output only. Latest instant at which the `enabled` field was set to true
                    * after being disabled/unconfigured or set to false after being enabled. If
            @@ -17461,18 +15703,13 @@ public Builder clearEnabled() {
                    * to the bucket creation time.
                    * 
            * - * - * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the toggleTime field is set. */ public boolean hasToggleTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                    * Output only. Latest instant at which the `enabled` field was set to true
                    * after being disabled/unconfigured or set to false after being enabled. If
            @@ -17480,24 +15717,17 @@ public boolean hasToggleTime() {
                    * to the bucket creation time.
                    * 
            * - * - * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The toggleTime. */ public com.google.protobuf.Timestamp getToggleTime() { if (toggleTimeBuilder_ == null) { - return toggleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : toggleTime_; + return toggleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : toggleTime_; } else { return toggleTimeBuilder_.getMessage(); } } /** - * - * *
                    * Output only. Latest instant at which the `enabled` field was set to true
                    * after being disabled/unconfigured or set to false after being enabled. If
            @@ -17505,9 +15735,7 @@ public com.google.protobuf.Timestamp getToggleTime() {
                    * to the bucket creation time.
                    * 
            * - * - * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setToggleTime(com.google.protobuf.Timestamp value) { if (toggleTimeBuilder_ == null) { @@ -17523,8 +15751,6 @@ public Builder setToggleTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                    * Output only. Latest instant at which the `enabled` field was set to true
                    * after being disabled/unconfigured or set to false after being enabled. If
            @@ -17532,11 +15758,10 @@ public Builder setToggleTime(com.google.protobuf.Timestamp value) {
                    * to the bucket creation time.
                    * 
            * - * - * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setToggleTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setToggleTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (toggleTimeBuilder_ == null) { toggleTime_ = builderForValue.build(); } else { @@ -17546,9 +15771,7 @@ public Builder setToggleTime(com.google.protobuf.Timestamp.Builder builderForVal onChanged(); return this; } - /** - * - * + /** *
                    * Output only. Latest instant at which the `enabled` field was set to true
                    * after being disabled/unconfigured or set to false after being enabled. If
            @@ -17556,15 +15779,13 @@ public Builder setToggleTime(com.google.protobuf.Timestamp.Builder builderForVal
                    * to the bucket creation time.
                    * 
            * - * - * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeToggleTime(com.google.protobuf.Timestamp value) { if (toggleTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && toggleTime_ != null - && toggleTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + toggleTime_ != null && + toggleTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getToggleTimeBuilder().mergeFrom(value); } else { toggleTime_ = value; @@ -17579,8 +15800,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
            @@ -17588,9 +15807,7 @@ public Builder mergeToggleTime(com.google.protobuf.Timestamp value) {
                    * to the bucket creation time.
                    * 
            * - * - * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearToggleTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -17603,8 +15820,6 @@ public Builder clearToggleTime() { return this; } /** - * - * *
                    * Output only. Latest instant at which the `enabled` field was set to true
                    * after being disabled/unconfigured or set to false after being enabled. If
            @@ -17612,9 +15827,7 @@ public Builder clearToggleTime() {
                    * to the bucket creation time.
                    * 
            * - * - * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getToggleTimeBuilder() { bitField0_ |= 0x00000002; @@ -17622,8 +15835,6 @@ public com.google.protobuf.Timestamp.Builder getToggleTimeBuilder() { return getToggleTimeFieldBuilder().getBuilder(); } /** - * - * *
                    * Output only. Latest instant at which the `enabled` field was set to true
                    * after being disabled/unconfigured or set to false after being enabled. If
            @@ -17631,22 +15842,17 @@ public com.google.protobuf.Timestamp.Builder getToggleTimeBuilder() {
                    * to the bucket creation time.
                    * 
            * - * - * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getToggleTimeOrBuilder() { if (toggleTimeBuilder_ != null) { return toggleTimeBuilder_.getMessageOrBuilder(); } else { - return toggleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : toggleTime_; + return toggleTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : toggleTime_; } } /** - * - * *
                    * Output only. Latest instant at which the `enabled` field was set to true
                    * after being disabled/unconfigured or set to false after being enabled. If
            @@ -17654,22 +15860,17 @@ public com.google.protobuf.TimestampOrBuilder getToggleTimeOrBuilder() {
                    * to the bucket creation time.
                    * 
            * - * - * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp toggle_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getToggleTimeFieldBuilder() { if (toggleTimeBuilder_ == null) { - toggleTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getToggleTime(), getParentForChildren(), isClean()); + toggleTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getToggleTime(), + getParentForChildren(), + isClean()); toggleTime_ = null; } return toggleTimeBuilder_; @@ -17677,8 +15878,6 @@ public com.google.protobuf.TimestampOrBuilder getToggleTimeOrBuilder() { private java.lang.Object terminalStorageClass_ = ""; /** - * - * *
                    * An object in an Autoclass bucket will eventually cool down to the
                    * terminal storage class if there is no access to the object.
            @@ -17686,15 +15885,12 @@ public com.google.protobuf.TimestampOrBuilder getToggleTimeOrBuilder() {
                    * 
            * * optional string terminal_storage_class = 3; - * * @return Whether the terminalStorageClass field is set. */ public boolean hasTerminalStorageClass() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
                    * An object in an Autoclass bucket will eventually cool down to the
                    * terminal storage class if there is no access to the object.
            @@ -17702,13 +15898,13 @@ public boolean hasTerminalStorageClass() {
                    * 
            * * optional string terminal_storage_class = 3; - * * @return The terminalStorageClass. */ public java.lang.String getTerminalStorageClass() { java.lang.Object ref = terminalStorageClass_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); terminalStorageClass_ = s; return s; @@ -17717,8 +15913,6 @@ public java.lang.String getTerminalStorageClass() { } } /** - * - * *
                    * An object in an Autoclass bucket will eventually cool down to the
                    * terminal storage class if there is no access to the object.
            @@ -17726,14 +15920,15 @@ public java.lang.String getTerminalStorageClass() {
                    * 
            * * optional string terminal_storage_class = 3; - * * @return The bytes for terminalStorageClass. */ - public com.google.protobuf.ByteString getTerminalStorageClassBytes() { + public com.google.protobuf.ByteString + getTerminalStorageClassBytes() { java.lang.Object ref = terminalStorageClass_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); terminalStorageClass_ = b; return b; } else { @@ -17741,8 +15936,6 @@ public com.google.protobuf.ByteString getTerminalStorageClassBytes() { } } /** - * - * *
                    * An object in an Autoclass bucket will eventually cool down to the
                    * terminal storage class if there is no access to the object.
            @@ -17750,22 +15943,18 @@ public com.google.protobuf.ByteString getTerminalStorageClassBytes() {
                    * 
            * * optional string terminal_storage_class = 3; - * * @param value The terminalStorageClass to set. * @return This builder for chaining. */ - public Builder setTerminalStorageClass(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTerminalStorageClass( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } terminalStorageClass_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
                    * An object in an Autoclass bucket will eventually cool down to the
                    * terminal storage class if there is no access to the object.
            @@ -17773,7 +15962,6 @@ public Builder setTerminalStorageClass(java.lang.String value) {
                    * 
            * * optional string terminal_storage_class = 3; - * * @return This builder for chaining. */ public Builder clearTerminalStorageClass() { @@ -17783,8 +15971,6 @@ public Builder clearTerminalStorageClass() { return this; } /** - * - * *
                    * An object in an Autoclass bucket will eventually cool down to the
                    * terminal storage class if there is no access to the object.
            @@ -17792,14 +15978,12 @@ public Builder clearTerminalStorageClass() {
                    * 
            * * optional string terminal_storage_class = 3; - * * @param value The bytes for terminalStorageClass to set. * @return This builder for chaining. */ - public Builder setTerminalStorageClassBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTerminalStorageClassBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); terminalStorageClass_ = value; bitField0_ |= 0x00000004; @@ -17809,61 +15993,42 @@ public Builder setTerminalStorageClassBytes(com.google.protobuf.ByteString value private com.google.protobuf.Timestamp terminalStorageClassUpdateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - terminalStorageClassUpdateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> terminalStorageClassUpdateTimeBuilder_; /** - * - * *
                    * Output only. Latest instant at which the autoclass terminal storage class
                    * was updated.
                    * 
            * - * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the terminalStorageClassUpdateTime field is set. */ public boolean hasTerminalStorageClassUpdateTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
                    * Output only. Latest instant at which the autoclass terminal storage class
                    * was updated.
                    * 
            * - * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The terminalStorageClassUpdateTime. */ public com.google.protobuf.Timestamp getTerminalStorageClassUpdateTime() { if (terminalStorageClassUpdateTimeBuilder_ == null) { - return terminalStorageClassUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : terminalStorageClassUpdateTime_; + return terminalStorageClassUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : terminalStorageClassUpdateTime_; } else { return terminalStorageClassUpdateTimeBuilder_.getMessage(); } } /** - * - * *
                    * Output only. Latest instant at which the autoclass terminal storage class
                    * was updated.
                    * 
            * - * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTerminalStorageClassUpdateTime(com.google.protobuf.Timestamp value) { if (terminalStorageClassUpdateTimeBuilder_ == null) { @@ -17879,16 +16044,12 @@ public Builder setTerminalStorageClassUpdateTime(com.google.protobuf.Timestamp v return this; } /** - * - * *
                    * Output only. Latest instant at which the autoclass terminal storage class
                    * was updated.
                    * 
            * - * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTerminalStorageClassUpdateTime( com.google.protobuf.Timestamp.Builder builderForValue) { @@ -17902,23 +16063,18 @@ public Builder setTerminalStorageClassUpdateTime( return this; } /** - * - * *
                    * Output only. Latest instant at which the autoclass terminal storage class
                    * was updated.
                    * 
            * - * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeTerminalStorageClassUpdateTime(com.google.protobuf.Timestamp value) { if (terminalStorageClassUpdateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && terminalStorageClassUpdateTime_ != null - && terminalStorageClassUpdateTime_ - != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + terminalStorageClassUpdateTime_ != null && + terminalStorageClassUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getTerminalStorageClassUpdateTimeBuilder().mergeFrom(value); } else { terminalStorageClassUpdateTime_ = value; @@ -17933,16 +16089,12 @@ public Builder mergeTerminalStorageClassUpdateTime(com.google.protobuf.Timestamp return this; } /** - * - * *
                    * Output only. Latest instant at which the autoclass terminal storage class
                    * was updated.
                    * 
            * - * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearTerminalStorageClassUpdateTime() { bitField0_ = (bitField0_ & ~0x00000008); @@ -17955,16 +16107,12 @@ public Builder clearTerminalStorageClassUpdateTime() { return this; } /** - * - * *
                    * Output only. Latest instant at which the autoclass terminal storage class
                    * was updated.
                    * 
            * - * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getTerminalStorageClassUpdateTimeBuilder() { bitField0_ |= 0x00000008; @@ -17972,55 +16120,42 @@ public com.google.protobuf.Timestamp.Builder getTerminalStorageClassUpdateTimeBu return getTerminalStorageClassUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
                    * Output only. Latest instant at which the autoclass terminal storage class
                    * was updated.
                    * 
            * - * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getTerminalStorageClassUpdateTimeOrBuilder() { if (terminalStorageClassUpdateTimeBuilder_ != null) { return terminalStorageClassUpdateTimeBuilder_.getMessageOrBuilder(); } else { - return terminalStorageClassUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : terminalStorageClassUpdateTime_; + return terminalStorageClassUpdateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : terminalStorageClassUpdateTime_; } } /** - * - * *
                    * Output only. Latest instant at which the autoclass terminal storage class
                    * was updated.
                    * 
            * - * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getTerminalStorageClassUpdateTimeFieldBuilder() { if (terminalStorageClassUpdateTimeBuilder_ == null) { - terminalStorageClassUpdateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getTerminalStorageClassUpdateTime(), getParentForChildren(), isClean()); + terminalStorageClassUpdateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getTerminalStorageClassUpdateTime(), + getParentForChildren(), + isClean()); terminalStorageClassUpdateTime_ = null; } return terminalStorageClassUpdateTimeBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -18033,12 +16168,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.Bucket.Autoclass) } // @@protoc_insertion_point(class_scope:google.storage.v2.Bucket.Autoclass) private static final com.google.storage.v2.Bucket.Autoclass DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.Bucket.Autoclass(); } @@ -18047,28 +16182,27 @@ public static com.google.storage.v2.Bucket.Autoclass getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Autoclass parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Autoclass parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -18083,79 +16217,70 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.Autoclass getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface HierarchicalNamespaceOrBuilder - extends + public interface HierarchicalNamespaceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.HierarchicalNamespace) com.google.protobuf.MessageOrBuilder { /** - * - * *
                  * Optional. Enables the hierarchical namespace feature.
                  * 
            * * bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enabled. */ boolean getEnabled(); } /** - * - * *
                * Configuration for a bucket's hierarchical namespace feature.
                * 
            * * Protobuf type {@code google.storage.v2.Bucket.HierarchicalNamespace} */ - public static final class HierarchicalNamespace extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class HierarchicalNamespace extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.HierarchicalNamespace) HierarchicalNamespaceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use HierarchicalNamespace.newBuilder() to construct. private HierarchicalNamespace(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private HierarchicalNamespace() {} + private HierarchicalNamespace() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new HierarchicalNamespace(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_HierarchicalNamespace_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_HierarchicalNamespace_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_HierarchicalNamespace_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_HierarchicalNamespace_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.HierarchicalNamespace.class, - com.google.storage.v2.Bucket.HierarchicalNamespace.Builder.class); + com.google.storage.v2.Bucket.HierarchicalNamespace.class, com.google.storage.v2.Bucket.HierarchicalNamespace.Builder.class); } public static final int ENABLED_FIELD_NUMBER = 1; private boolean enabled_ = false; /** - * - * *
                  * Optional. Enables the hierarchical namespace feature.
                  * 
            * * bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enabled. */ @java.lang.Override @@ -18164,7 +16289,6 @@ public boolean getEnabled() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -18176,7 +16300,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_); } @@ -18190,7 +16315,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; @@ -18200,15 +16326,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.HierarchicalNamespace)) { return super.equals(obj); } - com.google.storage.v2.Bucket.HierarchicalNamespace other = - (com.google.storage.v2.Bucket.HierarchicalNamespace) obj; + com.google.storage.v2.Bucket.HierarchicalNamespace other = (com.google.storage.v2.Bucket.HierarchicalNamespace) obj; - if (getEnabled() != other.getEnabled()) return false; + if (getEnabled() + != other.getEnabled()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -18221,100 +16347,97 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.storage.v2.Bucket.HierarchicalNamespace parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.HierarchicalNamespace parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.HierarchicalNamespace parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.HierarchicalNamespace parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.HierarchicalNamespace parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Bucket.HierarchicalNamespace parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.v2.Bucket.HierarchicalNamespace parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.v2.Bucket.HierarchicalNamespace parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.Bucket.HierarchicalNamespace parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.Bucket.HierarchicalNamespace parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.Bucket.HierarchicalNamespace parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.Bucket.HierarchicalNamespace parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.HierarchicalNamespace parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.Bucket.HierarchicalNamespace parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.Bucket.HierarchicalNamespace prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -18324,41 +16447,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
                  * Configuration for a bucket's hierarchical namespace feature.
                  * 
            * * Protobuf type {@code google.storage.v2.Bucket.HierarchicalNamespace} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.Bucket.HierarchicalNamespace) com.google.storage.v2.Bucket.HierarchicalNamespaceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_HierarchicalNamespace_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_HierarchicalNamespace_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Bucket_HierarchicalNamespace_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_HierarchicalNamespace_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.HierarchicalNamespace.class, - com.google.storage.v2.Bucket.HierarchicalNamespace.Builder.class); + com.google.storage.v2.Bucket.HierarchicalNamespace.class, com.google.storage.v2.Bucket.HierarchicalNamespace.Builder.class); } // Construct using com.google.storage.v2.Bucket.HierarchicalNamespace.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(); @@ -18368,9 +16489,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_HierarchicalNamespace_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_HierarchicalNamespace_descriptor; } @java.lang.Override @@ -18389,11 +16510,8 @@ public com.google.storage.v2.Bucket.HierarchicalNamespace build() { @java.lang.Override public com.google.storage.v2.Bucket.HierarchicalNamespace buildPartial() { - com.google.storage.v2.Bucket.HierarchicalNamespace result = - new com.google.storage.v2.Bucket.HierarchicalNamespace(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.Bucket.HierarchicalNamespace result = new com.google.storage.v2.Bucket.HierarchicalNamespace(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -18409,41 +16527,38 @@ private void buildPartial0(com.google.storage.v2.Bucket.HierarchicalNamespace 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.HierarchicalNamespace) { - return mergeFrom((com.google.storage.v2.Bucket.HierarchicalNamespace) other); + return mergeFrom((com.google.storage.v2.Bucket.HierarchicalNamespace)other); } else { super.mergeFrom(other); return this; @@ -18451,8 +16566,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.v2.Bucket.HierarchicalNamespace other) { - if (other == com.google.storage.v2.Bucket.HierarchicalNamespace.getDefaultInstance()) - return this; + if (other == com.google.storage.v2.Bucket.HierarchicalNamespace.getDefaultInstance()) return this; if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } @@ -18482,19 +16596,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) { @@ -18504,19 +16616,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private boolean enabled_; + private boolean enabled_ ; /** - * - * *
                    * Optional. Enables the hierarchical namespace feature.
                    * 
            * * bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enabled. */ @java.lang.Override @@ -18524,14 +16632,11 @@ public boolean getEnabled() { return enabled_; } /** - * - * *
                    * Optional. Enables the hierarchical namespace feature.
                    * 
            * * bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The enabled to set. * @return This builder for chaining. */ @@ -18543,14 +16648,11 @@ public Builder setEnabled(boolean value) { return this; } /** - * - * *
                    * Optional. Enables the hierarchical namespace feature.
                    * 
            * * bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEnabled() { @@ -18559,7 +16661,6 @@ public Builder clearEnabled() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -18572,12 +16673,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.Bucket.HierarchicalNamespace) } // @@protoc_insertion_point(class_scope:google.storage.v2.Bucket.HierarchicalNamespace) private static final com.google.storage.v2.Bucket.HierarchicalNamespace DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.Bucket.HierarchicalNamespace(); } @@ -18586,28 +16687,27 @@ public static com.google.storage.v2.Bucket.HierarchicalNamespace getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HierarchicalNamespace parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HierarchicalNamespace parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -18622,23 +16722,20 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.HierarchicalNamespace getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
                * Immutable. The name of the bucket.
                * Format: `projects/{project}/buckets/{bucket}`
                * 
            * * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ @java.lang.Override @@ -18647,30 +16744,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
                * Immutable. The name of the bucket.
                * Format: `projects/{project}/buckets/{bucket}`
                * 
            * * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -18679,12 +16776,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
            @@ -18692,7 +16786,6 @@ public com.google.protobuf.ByteString getNameBytes() {
                * 
            * * string bucket_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bucketId. */ @java.lang.Override @@ -18701,15 +16794,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
            @@ -18717,15 +16809,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 { @@ -18734,12 +16827,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
            @@ -18747,7 +16837,6 @@ public com.google.protobuf.ByteString getBucketIdBytes() {
                * 
            * * string etag = 29; - * * @return The etag. */ @java.lang.Override @@ -18756,15 +16845,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
            @@ -18772,15 +16860,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 { @@ -18789,22 +16878,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 @@ -18813,33 +16896,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 { @@ -18850,14 +16931,11 @@ public com.google.protobuf.ByteString getProjectBytes() { public static final int METAGENERATION_FIELD_NUMBER = 4; private long metageneration_ = 0L; /** - * - * *
                * Output only. The metadata generation of this bucket.
                * 
            * * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The metageneration. */ @java.lang.Override @@ -18866,12 +16944,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`.
            @@ -18882,7 +16957,6 @@ public long getMetageneration() {
                * 
            * * string location = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The location. */ @java.lang.Override @@ -18891,15 +16965,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`.
            @@ -18910,15 +16983,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 { @@ -18927,19 +17001,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 @@ -18948,30 +17018,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 { @@ -18980,12 +17050,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
            @@ -18996,7 +17063,6 @@ public com.google.protobuf.ByteString getLocationTypeBytes() {
                * 
            * * string storage_class = 7; - * * @return The storageClass. */ @java.lang.Override @@ -19005,15 +17071,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
            @@ -19024,15 +17089,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 { @@ -19041,12 +17107,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
            @@ -19057,7 +17120,6 @@ public com.google.protobuf.ByteString getStorageClassBytes() {
                * 
            * * string rpo = 27; - * * @return The rpo. */ @java.lang.Override @@ -19066,15 +17128,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
            @@ -19085,15 +17146,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 { @@ -19102,12 +17164,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,
            @@ -19121,8 +17180,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,
            @@ -19132,13 +17189,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,
            @@ -19152,8 +17207,6 @@ public int getAclCount() {
                 return acl_.size();
               }
               /**
            -   *
            -   *
                * 
                * Access controls on the bucket.
                * If iam_config.uniform_bucket_level_access is enabled on this bucket,
            @@ -19167,8 +17220,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,
            @@ -19178,17 +17229,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,
            @@ -19202,8 +17251,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,
            @@ -19213,13 +17260,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,
            @@ -19233,8 +17278,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,
            @@ -19248,8 +17291,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,
            @@ -19267,8 +17308,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]
            @@ -19276,7 +17315,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 @@ -19284,8 +17322,6 @@ public boolean hasLifecycle() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * The bucket's lifecycle config. See
                * [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
            @@ -19293,18 +17329,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]
            @@ -19315,23 +17346,17 @@ public com.google.storage.v2.Bucket.Lifecycle getLifecycle() {
                */
               @java.lang.Override
               public com.google.storage.v2.Bucket.LifecycleOrBuilder getLifecycleOrBuilder() {
            -    return lifecycle_ == null
            -        ? com.google.storage.v2.Bucket.Lifecycle.getDefaultInstance()
            -        : lifecycle_;
            +    return lifecycle_ == null ? com.google.storage.v2.Bucket.Lifecycle.getDefaultInstance() : lifecycle_;
               }
             
               public static final int CREATE_TIME_FIELD_NUMBER = 11;
               private com.google.protobuf.Timestamp createTime_;
               /**
            -   *
            -   *
                * 
                * Output only. The creation time of the bucket.
                * 
            * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -19339,15 +17364,11 @@ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                * Output only. The creation time of the bucket.
                * 
            * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -19355,14 +17376,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
                * Output only. The creation time of the bucket.
                * 
            * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -19370,12 +17388,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.
            @@ -19388,8 +17403,6 @@ public java.util.List getCorsList() {
                 return cors_;
               }
               /**
            -   *
            -   *
                * 
                * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
                * (CORS) config.
            @@ -19398,13 +17411,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.
            @@ -19417,8 +17428,6 @@ public int getCorsCount() {
                 return cors_.size();
               }
               /**
            -   *
            -   *
                * 
                * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
                * (CORS) config.
            @@ -19431,8 +17440,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.
            @@ -19441,22 +17448,19 @@ public com.google.storage.v2.Bucket.Cors getCors(int index) {
                * repeated .google.storage.v2.Bucket.Cors cors = 12;
                */
               @java.lang.Override
            -  public com.google.storage.v2.Bucket.CorsOrBuilder getCorsOrBuilder(int index) {
            +  public com.google.storage.v2.Bucket.CorsOrBuilder getCorsOrBuilder(
            +      int index) {
                 return cors_.get(index);
               }
             
               public static final int UPDATE_TIME_FIELD_NUMBER = 13;
               private com.google.protobuf.Timestamp updateTime_;
               /**
            -   *
            -   *
                * 
                * Output only. The modification time of the bucket.
                * 
            * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -19464,15 +17468,11 @@ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
                * Output only. The modification time of the bucket.
                * 
            * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -19480,14 +17480,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
                * Output only. The modification time of the bucket.
                * 
            * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -19497,8 +17494,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
            @@ -19516,7 +17511,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
                * 
            * * bool default_event_based_hold = 14; - * * @return The defaultEventBasedHold. */ @java.lang.Override @@ -19525,34 +17519,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.
                * 
            @@ -19560,21 +17552,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.
                * 
            @@ -19586,8 +17577,6 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
                * User-provided labels, in key/value pairs.
                * 
            @@ -19595,19 +17584,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.
                * 
            @@ -19615,11 +17602,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(); } @@ -19629,8 +17616,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
            @@ -19639,7 +17624,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 @@ -19647,8 +17631,6 @@ public boolean hasWebsite() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
                * The bucket's website config, controlling how the service behaves
                * when accessing bucket contents as a web site. See the
            @@ -19657,7 +17639,6 @@ public boolean hasWebsite() {
                * 
            * * .google.storage.v2.Bucket.Website website = 16; - * * @return The website. */ @java.lang.Override @@ -19665,8 +17646,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
            @@ -19684,14 +17663,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 @@ -19699,25 +17675,18 @@ public boolean hasVersioning() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
                * The bucket's versioning config.
                * 
            * * .google.storage.v2.Bucket.Versioning versioning = 17; - * * @return The versioning. */ @java.lang.Override public com.google.storage.v2.Bucket.Versioning getVersioning() { - return versioning_ == null - ? com.google.storage.v2.Bucket.Versioning.getDefaultInstance() - : versioning_; + return versioning_ == null ? com.google.storage.v2.Bucket.Versioning.getDefaultInstance() : versioning_; } /** - * - * *
                * The bucket's versioning config.
                * 
            @@ -19726,23 +17695,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 @@ -19750,15 +17714,12 @@ public boolean hasLogging() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
                * The bucket's logging config, which defines the destination bucket
                * and name prefix (if any) for the current bucket's logs.
                * 
            * * .google.storage.v2.Bucket.Logging logging = 18; - * * @return The logging. */ @java.lang.Override @@ -19766,8 +17727,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.
            @@ -19783,15 +17742,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 @@ -19799,15 +17755,12 @@ public boolean hasOwner() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
                * Output only. The owner of the bucket. This is always the project team's
                * owner group.
                * 
            * * .google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The owner. */ @java.lang.Override @@ -19815,8 +17768,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.
            @@ -19832,14 +17783,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 @@ -19847,25 +17795,18 @@ public boolean hasEncryption() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
                * Encryption config for a bucket.
                * 
            * * .google.storage.v2.Bucket.Encryption encryption = 20; - * * @return The encryption. */ @java.lang.Override public com.google.storage.v2.Bucket.Encryption getEncryption() { - return encryption_ == null - ? com.google.storage.v2.Bucket.Encryption.getDefaultInstance() - : encryption_; + return encryption_ == null ? com.google.storage.v2.Bucket.Encryption.getDefaultInstance() : encryption_; } /** - * - * *
                * Encryption config for a bucket.
                * 
            @@ -19874,22 +17815,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 @@ -19897,14 +17833,11 @@ public boolean hasBilling() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
                * The bucket's billing config.
                * 
            * * .google.storage.v2.Bucket.Billing billing = 21; - * * @return The billing. */ @java.lang.Override @@ -19912,8 +17845,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.
                * 
            @@ -19928,8 +17859,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
            @@ -19943,7 +17872,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 @@ -19951,8 +17879,6 @@ public boolean hasRetentionPolicy() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
                * The bucket's retention policy. The retention policy enforces a minimum
                * retention time for all objects contained in the bucket, based on their
            @@ -19966,18 +17892,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
            @@ -19994,22 +17915,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 @@ -20017,25 +17933,18 @@ public boolean hasIamConfig() { return ((bitField0_ & 0x00000400) != 0); } /** - * - * *
                * The bucket's IAM config.
                * 
            * * .google.storage.v2.Bucket.IamConfig iam_config = 23; - * * @return The iamConfig. */ @java.lang.Override public com.google.storage.v2.Bucket.IamConfig getIamConfig() { - return iamConfig_ == null - ? com.google.storage.v2.Bucket.IamConfig.getDefaultInstance() - : iamConfig_; + return iamConfig_ == null ? com.google.storage.v2.Bucket.IamConfig.getDefaultInstance() : iamConfig_; } /** - * - * *
                * The bucket's IAM config.
                * 
            @@ -20044,22 +17953,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 @@ -20070,15 +17974,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 @@ -20086,26 +17987,19 @@ public boolean hasCustomPlacementConfig() { return ((bitField0_ & 0x00000800) != 0); } /** - * - * *
                * Configuration that, if present, specifies the data placement for a
                * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
                * 
            * * .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26; - * * @return The customPlacementConfig. */ @java.lang.Override public com.google.storage.v2.Bucket.CustomPlacementConfig getCustomPlacementConfig() { - return customPlacementConfig_ == null - ? com.google.storage.v2.Bucket.CustomPlacementConfig.getDefaultInstance() - : customPlacementConfig_; + return customPlacementConfig_ == null ? com.google.storage.v2.Bucket.CustomPlacementConfig.getDefaultInstance() : customPlacementConfig_; } /** - * - * *
                * Configuration that, if present, specifies the data placement for a
                * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
            @@ -20114,25 +18008,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 @@ -20140,26 +18028,19 @@ public boolean hasAutoclass() { return ((bitField0_ & 0x00001000) != 0); } /** - * - * *
                * The bucket's Autoclass configuration. If there is no configuration, the
                * Autoclass feature will be disabled and have no effect on the bucket.
                * 
            * * .google.storage.v2.Bucket.Autoclass autoclass = 28; - * * @return The autoclass. */ @java.lang.Override public com.google.storage.v2.Bucket.Autoclass getAutoclass() { - return autoclass_ == null - ? com.google.storage.v2.Bucket.Autoclass.getDefaultInstance() - : autoclass_; + return autoclass_ == null ? com.google.storage.v2.Bucket.Autoclass.getDefaultInstance() : autoclass_; } /** - * - * *
                * The bucket's Autoclass configuration. If there is no configuration, the
                * Autoclass feature will be disabled and have no effect on the bucket.
            @@ -20169,26 +18050,19 @@ public com.google.storage.v2.Bucket.Autoclass getAutoclass() {
                */
               @java.lang.Override
               public com.google.storage.v2.Bucket.AutoclassOrBuilder getAutoclassOrBuilder() {
            -    return autoclass_ == null
            -        ? com.google.storage.v2.Bucket.Autoclass.getDefaultInstance()
            -        : autoclass_;
            +    return autoclass_ == null ? com.google.storage.v2.Bucket.Autoclass.getDefaultInstance() : autoclass_;
               }
             
               public static final int HIERARCHICAL_NAMESPACE_FIELD_NUMBER = 32;
               private com.google.storage.v2.Bucket.HierarchicalNamespace hierarchicalNamespace_;
               /**
            -   *
            -   *
                * 
                * Optional. The bucket's hierarchical namespace configuration. If there is no
                * configuration, the hierarchical namespace feature will be disabled and have
                * no effect on the bucket.
                * 
            * - * - * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the hierarchicalNamespace field is set. */ @java.lang.Override @@ -20196,61 +18070,42 @@ public boolean hasHierarchicalNamespace() { return ((bitField0_ & 0x00002000) != 0); } /** - * - * *
                * Optional. The bucket's hierarchical namespace configuration. If there is no
                * configuration, the hierarchical namespace feature will be disabled and have
                * no effect on the bucket.
                * 
            * - * - * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; * @return The hierarchicalNamespace. */ @java.lang.Override public com.google.storage.v2.Bucket.HierarchicalNamespace getHierarchicalNamespace() { - return hierarchicalNamespace_ == null - ? com.google.storage.v2.Bucket.HierarchicalNamespace.getDefaultInstance() - : hierarchicalNamespace_; + return hierarchicalNamespace_ == null ? com.google.storage.v2.Bucket.HierarchicalNamespace.getDefaultInstance() : hierarchicalNamespace_; } /** - * - * *
                * Optional. The bucket's hierarchical namespace configuration. If there is no
                * configuration, the hierarchical namespace feature will be disabled and have
                * no effect on the bucket.
                * 
            * - * - * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.storage.v2.Bucket.HierarchicalNamespaceOrBuilder - getHierarchicalNamespaceOrBuilder() { - return hierarchicalNamespace_ == null - ? com.google.storage.v2.Bucket.HierarchicalNamespace.getDefaultInstance() - : hierarchicalNamespace_; + public com.google.storage.v2.Bucket.HierarchicalNamespaceOrBuilder getHierarchicalNamespaceOrBuilder() { + return hierarchicalNamespace_ == null ? com.google.storage.v2.Bucket.HierarchicalNamespace.getDefaultInstance() : hierarchicalNamespace_; } public static final int SOFT_DELETE_POLICY_FIELD_NUMBER = 31; private com.google.storage.v2.Bucket.SoftDeletePolicy softDeletePolicy_; /** - * - * *
                * Optional. The bucket's soft delete policy. The soft delete policy prevents
                * soft-deleted objects from being permanently deleted.
                * 
            * - * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the softDeletePolicy field is set. */ @java.lang.Override @@ -20258,46 +18113,32 @@ public boolean hasSoftDeletePolicy() { return ((bitField0_ & 0x00004000) != 0); } /** - * - * *
                * Optional. The bucket's soft delete policy. The soft delete policy prevents
                * soft-deleted objects from being permanently deleted.
                * 
            * - * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; * @return The softDeletePolicy. */ @java.lang.Override public com.google.storage.v2.Bucket.SoftDeletePolicy getSoftDeletePolicy() { - return softDeletePolicy_ == null - ? com.google.storage.v2.Bucket.SoftDeletePolicy.getDefaultInstance() - : softDeletePolicy_; + return softDeletePolicy_ == null ? com.google.storage.v2.Bucket.SoftDeletePolicy.getDefaultInstance() : softDeletePolicy_; } /** - * - * *
                * Optional. The bucket's soft delete policy. The soft delete policy prevents
                * soft-deleted objects from being permanently deleted.
                * 
            * - * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.storage.v2.Bucket.SoftDeletePolicyOrBuilder getSoftDeletePolicyOrBuilder() { - return softDeletePolicy_ == null - ? com.google.storage.v2.Bucket.SoftDeletePolicy.getDefaultInstance() - : softDeletePolicy_; + return softDeletePolicy_ == null ? com.google.storage.v2.Bucket.SoftDeletePolicy.getDefaultInstance() : softDeletePolicy_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -20309,7 +18150,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_); } @@ -20352,8 +18194,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 (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(16, getWebsite()); } @@ -20418,7 +18264,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_); @@ -20430,82 +18277,100 @@ 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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getLifecycle()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getLifecycle()); } if (((bitField0_ & 0x00000002) != 0)) { - 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 (((bitField0_ & 0x00000004) != 0)) { - 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 (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getWebsite()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getWebsite()); } if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getVersioning()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getVersioning()); } if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getLogging()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, getLogging()); } if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getOwner()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, getOwner()); } if (((bitField0_ & 0x00000080) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getEncryption()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, getEncryption()); } if (((bitField0_ & 0x00000100) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getBilling()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, getBilling()); } if (((bitField0_ & 0x00000200) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getRetentionPolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, getRetentionPolicy()); } if (((bitField0_ & 0x00000400) != 0)) { - 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 (((bitField0_ & 0x00000800) != 0)) { - 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 (((bitField0_ & 0x00001000) != 0)) { - 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_); } if (((bitField0_ & 0x00004000) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(31, getSoftDeletePolicy()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(31, getSoftDeletePolicy()); } if (((bitField0_ & 0x00002000) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(32, getHierarchicalNamespace()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(32, getHierarchicalNamespace()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -20515,87 +18380,117 @@ public int 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 (hasHierarchicalNamespace() != other.hasHierarchicalNamespace()) return false; if (hasHierarchicalNamespace()) { - if (!getHierarchicalNamespace().equals(other.getHierarchicalNamespace())) return false; + if (!getHierarchicalNamespace() + .equals(other.getHierarchicalNamespace())) return false; } if (hasSoftDeletePolicy() != other.hasSoftDeletePolicy()) return false; if (hasSoftDeletePolicy()) { - if (!getSoftDeletePolicy().equals(other.getSoftDeletePolicy())) return false; + if (!getSoftDeletePolicy() + .equals(other.getSoftDeletePolicy())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -20617,7 +18512,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; @@ -20651,7 +18547,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(); @@ -20689,7 +18586,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(); @@ -20711,114 +18609,111 @@ 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; } @@ -20829,10 +18724,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl 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.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { @@ -20840,15 +18735,14 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi 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); } @@ -20858,13 +18752,14 @@ 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) { getAclFieldBuilder(); getDefaultObjectAclFieldBuilder(); getLifecycleFieldBuilder(); @@ -20885,7 +18780,6 @@ private void maybeForceBuilderInitialization() { getSoftDeletePolicyFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -21002,7 +18896,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; } @@ -21024,9 +18919,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; } @@ -21092,15 +18985,21 @@ private void buildPartial0(com.google.storage.v2.Bucket result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000800) != 0)) { - result.lifecycle_ = lifecycleBuilder_ == null ? lifecycle_ : lifecycleBuilder_.build(); + result.lifecycle_ = lifecycleBuilder_ == null + ? lifecycle_ + : lifecycleBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00001000) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00004000) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00008000) != 0)) { @@ -21111,62 +19010,78 @@ private void buildPartial0(com.google.storage.v2.Bucket result) { result.labels_.makeImmutable(); } if (((from_bitField0_ & 0x00020000) != 0)) { - result.website_ = websiteBuilder_ == null ? website_ : websiteBuilder_.build(); + result.website_ = websiteBuilder_ == null + ? website_ + : websiteBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00040000) != 0)) { - result.versioning_ = versioningBuilder_ == null ? versioning_ : versioningBuilder_.build(); + result.versioning_ = versioningBuilder_ == null + ? versioning_ + : versioningBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00080000) != 0)) { - result.logging_ = loggingBuilder_ == null ? logging_ : loggingBuilder_.build(); + result.logging_ = loggingBuilder_ == null + ? logging_ + : loggingBuilder_.build(); to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00100000) != 0)) { - result.owner_ = ownerBuilder_ == null ? owner_ : ownerBuilder_.build(); + result.owner_ = ownerBuilder_ == null + ? owner_ + : ownerBuilder_.build(); to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00200000) != 0)) { - result.encryption_ = encryptionBuilder_ == null ? encryption_ : encryptionBuilder_.build(); + result.encryption_ = encryptionBuilder_ == null + ? encryption_ + : encryptionBuilder_.build(); to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00400000) != 0)) { - result.billing_ = billingBuilder_ == null ? billing_ : billingBuilder_.build(); + result.billing_ = billingBuilder_ == null + ? billing_ + : billingBuilder_.build(); to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00800000) != 0)) { - result.retentionPolicy_ = - retentionPolicyBuilder_ == null ? retentionPolicy_ : retentionPolicyBuilder_.build(); + result.retentionPolicy_ = retentionPolicyBuilder_ == null + ? retentionPolicy_ + : retentionPolicyBuilder_.build(); to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x01000000) != 0)) { - result.iamConfig_ = iamConfigBuilder_ == null ? iamConfig_ : iamConfigBuilder_.build(); + result.iamConfig_ = iamConfigBuilder_ == null + ? iamConfig_ + : iamConfigBuilder_.build(); to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x02000000) != 0)) { result.satisfiesPzs_ = satisfiesPzs_; } if (((from_bitField0_ & 0x04000000) != 0)) { - result.customPlacementConfig_ = - customPlacementConfigBuilder_ == null - ? customPlacementConfig_ - : customPlacementConfigBuilder_.build(); + result.customPlacementConfig_ = customPlacementConfigBuilder_ == null + ? customPlacementConfig_ + : customPlacementConfigBuilder_.build(); to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x08000000) != 0)) { - result.autoclass_ = autoclassBuilder_ == null ? autoclass_ : autoclassBuilder_.build(); + result.autoclass_ = autoclassBuilder_ == null + ? autoclass_ + : autoclassBuilder_.build(); to_bitField0_ |= 0x00001000; } if (((from_bitField0_ & 0x10000000) != 0)) { - result.hierarchicalNamespace_ = - hierarchicalNamespaceBuilder_ == null - ? hierarchicalNamespace_ - : hierarchicalNamespaceBuilder_.build(); + result.hierarchicalNamespace_ = hierarchicalNamespaceBuilder_ == null + ? hierarchicalNamespace_ + : hierarchicalNamespaceBuilder_.build(); to_bitField0_ |= 0x00002000; } if (((from_bitField0_ & 0x20000000) != 0)) { - result.softDeletePolicy_ = - softDeletePolicyBuilder_ == null ? softDeletePolicy_ : softDeletePolicyBuilder_.build(); + result.softDeletePolicy_ = softDeletePolicyBuilder_ == null + ? softDeletePolicy_ + : softDeletePolicyBuilder_.build(); to_bitField0_ |= 0x00004000; } result.bitField0_ |= to_bitField0_; @@ -21176,39 +19091,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; @@ -21278,10 +19192,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_); } @@ -21305,10 +19218,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_); } @@ -21338,10 +19250,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_); } @@ -21353,7 +19264,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()); @@ -21420,223 +19332,220 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - bucketId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - project_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 32: - { - metageneration_ = input.readInt64(); - bitField0_ |= 0x00000010; - break; - } // case 32 - case 42: - { - location_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 42 - case 50: - { - locationType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 58: - { - storageClass_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 58 - case 66: - { - com.google.storage.v2.BucketAccessControl m = - input.readMessage( - com.google.storage.v2.BucketAccessControl.parser(), extensionRegistry); - if (aclBuilder_ == null) { - ensureAclIsMutable(); - acl_.add(m); - } else { - aclBuilder_.addMessage(m); - } - break; - } // case 66 - case 74: - { - com.google.storage.v2.ObjectAccessControl m = - input.readMessage( - com.google.storage.v2.ObjectAccessControl.parser(), extensionRegistry); - if (defaultObjectAclBuilder_ == null) { - ensureDefaultObjectAclIsMutable(); - defaultObjectAcl_.add(m); - } else { - defaultObjectAclBuilder_.addMessage(m); - } - break; - } // case 74 - case 82: - { - input.readMessage(getLifecycleFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; - break; - } // case 82 - case 90: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; - break; - } // case 90 - case 98: - { - com.google.storage.v2.Bucket.Cors m = - input.readMessage( - com.google.storage.v2.Bucket.Cors.parser(), extensionRegistry); - if (corsBuilder_ == null) { - ensureCorsIsMutable(); - cors_.add(m); - } else { - corsBuilder_.addMessage(m); - } - break; - } // case 98 - case 106: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; - break; - } // case 106 - case 112: - { - defaultEventBasedHold_ = input.readBool(); - bitField0_ |= 0x00008000; - break; - } // case 112 - case 122: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00010000; - break; - } // case 122 - case 130: - { - input.readMessage(getWebsiteFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00020000; - break; - } // case 130 - case 138: - { - input.readMessage(getVersioningFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00040000; - break; - } // case 138 - case 146: - { - input.readMessage(getLoggingFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00080000; - break; - } // case 146 - case 154: - { - input.readMessage(getOwnerFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00100000; - break; - } // case 154 - case 162: - { - input.readMessage(getEncryptionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00200000; - break; - } // case 162 - case 170: - { - input.readMessage(getBillingFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00400000; - break; - } // case 170 - case 178: - { - input.readMessage(getRetentionPolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00800000; - break; - } // case 178 - case 186: - { - input.readMessage(getIamConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x01000000; - break; - } // case 186 - case 200: - { - satisfiesPzs_ = input.readBool(); - bitField0_ |= 0x02000000; - break; - } // case 200 - case 210: - { - input.readMessage( - getCustomPlacementConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x04000000; - break; - } // case 210 - case 218: - { - rpo_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 218 - case 226: - { - input.readMessage(getAutoclassFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x08000000; - break; - } // case 226 - case 234: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 234 - case 250: - { - input.readMessage( - getSoftDeletePolicyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x20000000; - break; - } // case 250 - case 258: - { - input.readMessage( - getHierarchicalNamespaceFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x10000000; - break; - } // case 258 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + bucketId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 32: { + metageneration_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 42: { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 50: { + locationType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: { + storageClass_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: { + com.google.storage.v2.BucketAccessControl m = + input.readMessage( + com.google.storage.v2.BucketAccessControl.parser(), + extensionRegistry); + if (aclBuilder_ == null) { + ensureAclIsMutable(); + acl_.add(m); + } else { + aclBuilder_.addMessage(m); + } + break; + } // case 66 + case 74: { + com.google.storage.v2.ObjectAccessControl m = + input.readMessage( + com.google.storage.v2.ObjectAccessControl.parser(), + extensionRegistry); + if (defaultObjectAclBuilder_ == null) { + ensureDefaultObjectAclIsMutable(); + defaultObjectAcl_.add(m); + } else { + defaultObjectAclBuilder_.addMessage(m); + } + break; + } // case 74 + case 82: { + input.readMessage( + getLifecycleFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 82 + case 90: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 90 + case 98: { + com.google.storage.v2.Bucket.Cors m = + input.readMessage( + com.google.storage.v2.Bucket.Cors.parser(), + extensionRegistry); + if (corsBuilder_ == null) { + ensureCorsIsMutable(); + cors_.add(m); + } else { + corsBuilder_.addMessage(m); + } + break; + } // case 98 + case 106: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 106 + case 112: { + defaultEventBasedHold_ = input.readBool(); + bitField0_ |= 0x00008000; + break; + } // case 112 + case 122: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00010000; + break; + } // case 122 + case 130: { + input.readMessage( + getWebsiteFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 130 + case 138: { + input.readMessage( + getVersioningFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00040000; + break; + } // case 138 + case 146: { + input.readMessage( + getLoggingFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00080000; + break; + } // case 146 + case 154: { + input.readMessage( + getOwnerFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00100000; + break; + } // case 154 + case 162: { + input.readMessage( + getEncryptionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00200000; + break; + } // case 162 + case 170: { + input.readMessage( + getBillingFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00400000; + break; + } // case 170 + case 178: { + input.readMessage( + getRetentionPolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00800000; + break; + } // case 178 + case 186: { + input.readMessage( + getIamConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x01000000; + break; + } // case 186 + case 200: { + satisfiesPzs_ = input.readBool(); + bitField0_ |= 0x02000000; + break; + } // case 200 + case 210: { + input.readMessage( + getCustomPlacementConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x04000000; + break; + } // case 210 + case 218: { + rpo_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 218 + case 226: { + input.readMessage( + getAutoclassFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x08000000; + break; + } // case 226 + case 234: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 234 + case 250: { + input.readMessage( + getSoftDeletePolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x20000000; + break; + } // case 250 + case 258: { + input.readMessage( + getHierarchicalNamespaceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x10000000; + break; + } // case 258 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -21646,26 +19555,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
                  * Immutable. The name of the bucket.
                  * Format: `projects/{project}/buckets/{bucket}`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -21674,22 +19580,21 @@ public java.lang.String getName() { } } /** - * - * *
                  * Immutable. The name of the bucket.
                  * Format: `projects/{project}/buckets/{bucket}`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -21697,37 +19602,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
                  * Immutable. The name of the bucket.
                  * Format: `projects/{project}/buckets/{bucket}`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * Immutable. The name of the bucket.
                  * Format: `projects/{project}/buckets/{bucket}`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -21737,22 +19635,18 @@ public Builder clearName() { return this; } /** - * - * *
                  * Immutable. The name of the bucket.
                  * Format: `projects/{project}/buckets/{bucket}`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -21762,8 +19656,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
            @@ -21771,13 +19663,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; @@ -21786,8 +19678,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
            @@ -21795,14 +19685,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 { @@ -21810,8 +19701,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
            @@ -21819,22 +19708,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
            @@ -21842,7 +19727,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() { @@ -21852,8 +19736,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
            @@ -21861,14 +19743,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; @@ -21878,8 +19758,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
            @@ -21887,13 +19765,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; @@ -21902,8 +19780,6 @@ public java.lang.String getEtag() { } } /** - * - * *
                  * The etag of the bucket.
                  * If included in the metadata of an UpdateBucketRequest, the operation will
            @@ -21911,14 +19787,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 { @@ -21926,8 +19803,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
                  * The etag of the bucket.
                  * If included in the metadata of an UpdateBucketRequest, the operation will
            @@ -21935,22 +19810,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
            @@ -21958,7 +19829,6 @@ public Builder setEtag(java.lang.String value) {
                  * 
            * * string etag = 29; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -21968,8 +19838,6 @@ public Builder clearEtag() { return this; } /** - * - * *
                  * The etag of the bucket.
                  * If included in the metadata of an UpdateBucketRequest, the operation will
            @@ -21977,14 +19845,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; @@ -21994,24 +19860,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; @@ -22020,25 +19882,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 { @@ -22046,43 +19905,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() { @@ -22092,25 +19940,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; @@ -22118,16 +19960,13 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { return this; } - private long metageneration_; + private long metageneration_ ; /** - * - * *
                  * Output only. The metadata generation of this bucket.
                  * 
            * * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The metageneration. */ @java.lang.Override @@ -22135,14 +19974,11 @@ public long getMetageneration() { return metageneration_; } /** - * - * *
                  * Output only. The metadata generation of this bucket.
                  * 
            * * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The metageneration to set. * @return This builder for chaining. */ @@ -22154,14 +19990,11 @@ public Builder setMetageneration(long value) { return this; } /** - * - * *
                  * Output only. The metadata generation of this bucket.
                  * 
            * * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearMetageneration() { @@ -22173,8 +20006,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`.
            @@ -22185,13 +20016,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; @@ -22200,8 +20031,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`.
            @@ -22212,14 +20041,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 { @@ -22227,8 +20057,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`.
            @@ -22239,22 +20067,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`.
            @@ -22265,7 +20089,6 @@ public Builder setLocation(java.lang.String value) {
                  * 
            * * string location = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearLocation() { @@ -22275,8 +20098,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`.
            @@ -22287,14 +20108,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; @@ -22304,21 +20123,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; @@ -22327,22 +20144,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 { @@ -22350,37 +20166,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() { @@ -22390,22 +20199,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; @@ -22415,8 +20220,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
            @@ -22427,13 +20230,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; @@ -22442,8 +20245,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
            @@ -22454,14 +20255,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 { @@ -22469,8 +20271,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
            @@ -22481,22 +20281,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
            @@ -22507,7 +20303,6 @@ public Builder setStorageClass(java.lang.String value) {
                  * 
            * * string storage_class = 7; - * * @return This builder for chaining. */ public Builder clearStorageClass() { @@ -22517,8 +20312,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
            @@ -22529,14 +20322,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; @@ -22546,8 +20337,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
            @@ -22558,13 +20347,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; @@ -22573,8 +20362,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
            @@ -22585,14 +20372,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 { @@ -22600,8 +20388,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
            @@ -22612,22 +20398,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
            @@ -22638,7 +20420,6 @@ public Builder setRpo(java.lang.String value) {
                  * 
            * * string rpo = 27; - * * @return This builder for chaining. */ public Builder clearRpo() { @@ -22648,8 +20429,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
            @@ -22660,14 +20439,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; @@ -22676,24 +20453,18 @@ public Builder setRpoBytes(com.google.protobuf.ByteString value) { } private java.util.List acl_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureAclIsMutable() { if (!((bitField0_ & 0x00000200) != 0)) { acl_ = new java.util.ArrayList(acl_); bitField0_ |= 0x00000200; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.BucketAccessControl, - com.google.storage.v2.BucketAccessControl.Builder, - com.google.storage.v2.BucketAccessControlOrBuilder> - aclBuilder_; + com.google.storage.v2.BucketAccessControl, com.google.storage.v2.BucketAccessControl.Builder, com.google.storage.v2.BucketAccessControlOrBuilder> aclBuilder_; /** - * - * *
                  * Access controls on the bucket.
                  * If iam_config.uniform_bucket_level_access is enabled on this bucket,
            @@ -22710,8 +20481,6 @@ public java.util.List getAclList() {
                   }
                 }
                 /**
            -     *
            -     *
                  * 
                  * Access controls on the bucket.
                  * If iam_config.uniform_bucket_level_access is enabled on this bucket,
            @@ -22728,8 +20497,6 @@ public int getAclCount() {
                   }
                 }
                 /**
            -     *
            -     *
                  * 
                  * Access controls on the bucket.
                  * If iam_config.uniform_bucket_level_access is enabled on this bucket,
            @@ -22746,8 +20513,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,
            @@ -22756,7 +20521,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();
            @@ -22770,8 +20536,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,
            @@ -22792,8 +20556,6 @@ public Builder setAcl(
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Access controls on the bucket.
                  * If iam_config.uniform_bucket_level_access is enabled on this bucket,
            @@ -22816,8 +20578,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,
            @@ -22826,7 +20586,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();
            @@ -22840,8 +20601,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,
            @@ -22850,7 +20609,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());
            @@ -22861,8 +20621,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,
            @@ -22883,8 +20641,6 @@ public Builder addAcl(
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Access controls on the bucket.
                  * If iam_config.uniform_bucket_level_access is enabled on this bucket,
            @@ -22897,7 +20653,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);
            @@ -22905,8 +20662,6 @@ public Builder addAllAcl(
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Access controls on the bucket.
                  * If iam_config.uniform_bucket_level_access is enabled on this bucket,
            @@ -22926,8 +20681,6 @@ public Builder clearAcl() {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Access controls on the bucket.
                  * If iam_config.uniform_bucket_level_access is enabled on this bucket,
            @@ -22947,8 +20700,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,
            @@ -22957,12 +20708,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,
            @@ -22971,16 +20721,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,
            @@ -22989,8 +20737,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 {
            @@ -22998,8 +20746,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,
            @@ -23009,12 +20755,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,
            @@ -23023,13 +20767,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,
            @@ -23038,47 +20781,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,
            @@ -23095,8 +20829,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,
            @@ -23113,8 +20845,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,
            @@ -23131,8 +20861,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,
            @@ -23141,7 +20869,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();
            @@ -23155,8 +20884,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,
            @@ -23177,8 +20904,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,
            @@ -23201,8 +20926,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,
            @@ -23211,7 +20934,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();
            @@ -23225,8 +20949,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,
            @@ -23247,8 +20969,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,
            @@ -23269,8 +20989,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,
            @@ -23283,7 +21001,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);
            @@ -23291,8 +21010,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,
            @@ -23312,8 +21029,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,
            @@ -23333,8 +21048,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,
            @@ -23343,12 +21056,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,
            @@ -23360,14 +21072,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,
            @@ -23376,8 +21085,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 {
            @@ -23385,8 +21094,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,
            @@ -23396,12 +21103,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,
            @@ -23410,13 +21115,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,
            @@ -23425,22 +21129,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(),
            @@ -23452,13 +21150,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]
            @@ -23466,15 +21159,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]
            @@ -23482,21 +21172,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]
            @@ -23519,8 +21204,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]
            @@ -23529,7 +21212,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 {
            @@ -23540,8 +21224,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]
            @@ -23552,9 +21234,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;
            @@ -23569,8 +21251,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]
            @@ -23590,8 +21270,6 @@ public Builder clearLifecycle() {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * The bucket's lifecycle config. See
                  * [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
            @@ -23606,8 +21284,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]
            @@ -23620,14 +21296,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]
            @@ -23637,17 +21310,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_;
            @@ -23655,58 +21325,39 @@ public com.google.storage.v2.Bucket.LifecycleOrBuilder getLifecycleOrBuilder() {
             
                 private com.google.protobuf.Timestamp createTime_;
                 private com.google.protobuf.SingleFieldBuilderV3<
            -            com.google.protobuf.Timestamp,
            -            com.google.protobuf.Timestamp.Builder,
            -            com.google.protobuf.TimestampOrBuilder>
            -        createTimeBuilder_;
            +        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
                 /**
            -     *
            -     *
                  * 
                  * Output only. The creation time of the bucket.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00001000) != 0); } /** - * - * *
                  * Output only. The creation time of the bucket.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
                  * Output only. The creation time of the bucket.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -23722,17 +21373,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                  * Output only. The creation time of the bucket.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -23743,21 +21391,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
                  * Output only. The creation time of the bucket.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -23772,15 +21416,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                  * Output only. The creation time of the bucket.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00001000); @@ -23793,15 +21433,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
                  * Output only. The creation time of the bucket.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00001000; @@ -23809,72 +21445,54 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
                  * Output only. The creation time of the bucket.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
                  * Output only. The creation time of the bucket.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; } private java.util.List cors_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureCorsIsMutable() { if (!((bitField0_ & 0x00002000) != 0)) { cors_ = new java.util.ArrayList(cors_); bitField0_ |= 0x00002000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.Bucket.Cors, - com.google.storage.v2.Bucket.Cors.Builder, - com.google.storage.v2.Bucket.CorsOrBuilder> - corsBuilder_; + com.google.storage.v2.Bucket.Cors, com.google.storage.v2.Bucket.Cors.Builder, com.google.storage.v2.Bucket.CorsOrBuilder> corsBuilder_; /** - * - * *
                  * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
                  * (CORS) config.
            @@ -23890,8 +21508,6 @@ public java.util.List getCorsList() {
                   }
                 }
                 /**
            -     *
            -     *
                  * 
                  * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
                  * (CORS) config.
            @@ -23907,8 +21523,6 @@ public int getCorsCount() {
                   }
                 }
                 /**
            -     *
            -     *
                  * 
                  * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
                  * (CORS) config.
            @@ -23924,8 +21538,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.
            @@ -23933,7 +21545,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();
            @@ -23947,8 +21560,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.
            @@ -23956,7 +21567,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());
            @@ -23967,8 +21579,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.
            @@ -23990,8 +21600,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.
            @@ -23999,7 +21607,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();
            @@ -24013,8 +21622,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.
            @@ -24022,7 +21629,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());
            @@ -24033,8 +21641,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.
            @@ -24042,7 +21648,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());
            @@ -24053,8 +21660,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.
            @@ -24066,7 +21671,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);
            @@ -24074,8 +21680,6 @@ public Builder addAllCors(
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
                  * (CORS) config.
            @@ -24094,8 +21698,6 @@ public Builder clearCors() {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
                  * (CORS) config.
            @@ -24114,8 +21716,6 @@ public Builder removeCors(int index) {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
                  * (CORS) config.
            @@ -24123,12 +21723,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.
            @@ -24136,16 +21735,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.
            @@ -24153,8 +21750,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 {
            @@ -24162,8 +21759,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.
            @@ -24172,12 +21767,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.
            @@ -24185,13 +21778,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.
            @@ -24199,22 +21791,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_;
            @@ -24222,58 +21812,39 @@ public java.util.List getCorsBuilderL
             
                 private com.google.protobuf.Timestamp updateTime_;
                 private com.google.protobuf.SingleFieldBuilderV3<
            -            com.google.protobuf.Timestamp,
            -            com.google.protobuf.Timestamp.Builder,
            -            com.google.protobuf.TimestampOrBuilder>
            -        updateTimeBuilder_;
            +        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_;
                 /**
            -     *
            -     *
                  * 
                  * Output only. The modification time of the bucket.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00004000) != 0); } /** - * - * *
                  * Output only. The modification time of the bucket.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
                  * Output only. The modification time of the bucket.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -24289,17 +21860,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                  * Output only. The modification time of the bucket.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -24310,21 +21878,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
                  * Output only. The modification time of the bucket.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00004000) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -24339,15 +21903,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                  * Output only. The modification time of the bucket.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00004000); @@ -24360,15 +21920,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
                  * Output only. The modification time of the bucket.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00004000; @@ -24376,57 +21932,43 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
                  * Output only. The modification time of the bucket.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
                  * Output only. The modification time of the bucket.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private boolean defaultEventBasedHold_; + private boolean defaultEventBasedHold_ ; /** - * - * *
                  * The default value for event-based hold on newly created objects in this
                  * bucket.  Event-based hold is a way to retain objects indefinitely until an
            @@ -24444,7 +21986,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
                  * 
            * * bool default_event_based_hold = 14; - * * @return The defaultEventBasedHold. */ @java.lang.Override @@ -24452,8 +21993,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
            @@ -24471,7 +22010,6 @@ public boolean getDefaultEventBasedHold() {
                  * 
            * * bool default_event_based_hold = 14; - * * @param value The defaultEventBasedHold to set. * @return This builder for chaining. */ @@ -24483,8 +22021,6 @@ public Builder setDefaultEventBasedHold(boolean value) { return this; } /** - * - * *
                  * The default value for event-based hold on newly created objects in this
                  * bucket.  Event-based hold is a way to retain objects indefinitely until an
            @@ -24502,7 +22038,6 @@ public Builder setDefaultEventBasedHold(boolean value) {
                  * 
            * * bool default_event_based_hold = 14; - * * @return This builder for chaining. */ public Builder clearDefaultEventBasedHold() { @@ -24512,19 +22047,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(); @@ -24533,13 +22070,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
                  * User-provided labels, in key/value pairs.
                  * 
            @@ -24547,21 +22081,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.
                  * 
            @@ -24573,8 +22106,6 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
                  * User-provided labels, in key/value pairs.
                  * 
            @@ -24582,19 +22113,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.
                  * 
            @@ -24602,88 +22131,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
            @@ -24692,15 +22214,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
            @@ -24709,21 +22228,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
            @@ -24747,8 +22261,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
            @@ -24758,7 +22270,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 {
            @@ -24769,8 +22282,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
            @@ -24782,9 +22293,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;
            @@ -24799,8 +22310,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
            @@ -24821,8 +22330,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
            @@ -24838,8 +22345,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
            @@ -24853,14 +22358,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
            @@ -24871,17 +22373,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_;
            @@ -24889,47 +22388,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.
                  * 
            @@ -24950,15 +22436,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 { @@ -24969,8 +22454,6 @@ public Builder setVersioning(com.google.storage.v2.Bucket.Versioning.Builder bui return this; } /** - * - * *
                  * The bucket's versioning config.
                  * 
            @@ -24979,9 +22462,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; @@ -24996,8 +22479,6 @@ public Builder mergeVersioning(com.google.storage.v2.Bucket.Versioning value) { return this; } /** - * - * *
                  * The bucket's versioning config.
                  * 
            @@ -25015,8 +22496,6 @@ public Builder clearVersioning() { return this; } /** - * - * *
                  * The bucket's versioning config.
                  * 
            @@ -25029,8 +22508,6 @@ public com.google.storage.v2.Bucket.Versioning.Builder getVersioningBuilder() { return getVersioningFieldBuilder().getBuilder(); } /** - * - * *
                  * The bucket's versioning config.
                  * 
            @@ -25041,14 +22518,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.
                  * 
            @@ -25056,17 +22530,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_; @@ -25074,49 +22545,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.
            @@ -25138,8 +22596,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.
            @@ -25147,7 +22603,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 {
            @@ -25158,8 +22615,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.
            @@ -25169,9 +22624,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;
            @@ -25186,8 +22641,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.
            @@ -25206,8 +22659,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.
            @@ -25221,8 +22672,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.
            @@ -25234,14 +22683,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.
            @@ -25250,17 +22696,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_;
            @@ -25268,37 +22711,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() { @@ -25309,15 +22741,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) { @@ -25333,17 +22762,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 { @@ -25354,21 +22781,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; @@ -25383,15 +22807,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); @@ -25404,15 +22825,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; @@ -25420,46 +22838,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_; @@ -25467,47 +22877,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.
                  * 
            @@ -25528,15 +22925,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 { @@ -25547,8 +22943,6 @@ public Builder setEncryption(com.google.storage.v2.Bucket.Encryption.Builder bui return this; } /** - * - * *
                  * Encryption config for a bucket.
                  * 
            @@ -25557,9 +22951,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; @@ -25574,8 +22968,6 @@ public Builder mergeEncryption(com.google.storage.v2.Bucket.Encryption value) { return this; } /** - * - * *
                  * Encryption config for a bucket.
                  * 
            @@ -25593,8 +22985,6 @@ public Builder clearEncryption() { return this; } /** - * - * *
                  * Encryption config for a bucket.
                  * 
            @@ -25607,8 +22997,6 @@ public com.google.storage.v2.Bucket.Encryption.Builder getEncryptionBuilder() { return getEncryptionFieldBuilder().getBuilder(); } /** - * - * *
                  * Encryption config for a bucket.
                  * 
            @@ -25619,14 +23007,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.
                  * 
            @@ -25634,17 +23019,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_; @@ -25652,47 +23034,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.
                  * 
            @@ -25713,15 +23082,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 { @@ -25732,8 +23100,6 @@ public Builder setBilling(com.google.storage.v2.Bucket.Billing.Builder builderFo return this; } /** - * - * *
                  * The bucket's billing config.
                  * 
            @@ -25742,9 +23108,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; @@ -25759,8 +23125,6 @@ public Builder mergeBilling(com.google.storage.v2.Bucket.Billing value) { return this; } /** - * - * *
                  * The bucket's billing config.
                  * 
            @@ -25778,8 +23142,6 @@ public Builder clearBilling() { return this; } /** - * - * *
                  * The bucket's billing config.
                  * 
            @@ -25792,8 +23154,6 @@ public com.google.storage.v2.Bucket.Billing.Builder getBillingBuilder() { return getBillingFieldBuilder().getBuilder(); } /** - * - * *
                  * The bucket's billing config.
                  * 
            @@ -25804,14 +23164,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.
                  * 
            @@ -25819,17 +23176,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_; @@ -25837,13 +23191,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
            @@ -25857,15 +23206,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
            @@ -25879,21 +23225,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
            @@ -25922,8 +23263,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
            @@ -25950,8 +23289,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
            @@ -25968,10 +23305,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;
            @@ -25986,8 +23322,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
            @@ -26013,8 +23347,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
            @@ -26035,8 +23367,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
            @@ -26055,14 +23385,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
            @@ -26078,17 +23405,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_;
            @@ -26096,47 +23420,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.
                  * 
            @@ -26157,15 +23468,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 { @@ -26176,8 +23486,6 @@ public Builder setIamConfig(com.google.storage.v2.Bucket.IamConfig.Builder build return this; } /** - * - * *
                  * The bucket's IAM config.
                  * 
            @@ -26186,9 +23494,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; @@ -26203,8 +23511,6 @@ public Builder mergeIamConfig(com.google.storage.v2.Bucket.IamConfig value) { return this; } /** - * - * *
                  * The bucket's IAM config.
                  * 
            @@ -26222,8 +23528,6 @@ public Builder clearIamConfig() { return this; } /** - * - * *
                  * The bucket's IAM config.
                  * 
            @@ -26236,8 +23540,6 @@ public com.google.storage.v2.Bucket.IamConfig.Builder getIamConfigBuilder() { return getIamConfigFieldBuilder().getBuilder(); } /** - * - * *
                  * The bucket's IAM config.
                  * 
            @@ -26248,14 +23550,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.
                  * 
            @@ -26263,32 +23562,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 @@ -26296,14 +23589,11 @@ public boolean getSatisfiesPzs() { return satisfiesPzs_; } /** - * - * *
                  * Reserved for future use.
                  * 
            * * bool satisfies_pzs = 25; - * * @param value The satisfiesPzs to set. * @return This builder for chaining. */ @@ -26315,14 +23605,11 @@ public Builder setSatisfiesPzs(boolean value) { return this; } /** - * - * *
                  * Reserved for future use.
                  * 
            * * bool satisfies_pzs = 25; - * * @return This builder for chaining. */ public Builder clearSatisfiesPzs() { @@ -26334,49 +23621,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].
            @@ -26384,8 +23658,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();
            @@ -26399,8 +23672,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].
            @@ -26420,8 +23691,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].
            @@ -26429,13 +23698,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;
            @@ -26450,8 +23717,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].
            @@ -26470,8 +23735,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].
            @@ -26479,15 +23742,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].
            @@ -26495,19 +23755,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].
            @@ -26516,17 +23772,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_;
            @@ -26534,49 +23787,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.
            @@ -26598,8 +23838,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.
            @@ -26607,7 +23845,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 {
            @@ -26618,8 +23857,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.
            @@ -26629,9 +23866,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;
            @@ -26646,8 +23883,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.
            @@ -26666,8 +23901,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.
            @@ -26681,8 +23914,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.
            @@ -26694,14 +23925,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.
            @@ -26710,17 +23938,14 @@ public com.google.storage.v2.Bucket.AutoclassOrBuilder getAutoclassOrBuilder() {
                  * .google.storage.v2.Bucket.Autoclass autoclass = 28;
                  */
                 private com.google.protobuf.SingleFieldBuilderV3<
            -            com.google.storage.v2.Bucket.Autoclass,
            -            com.google.storage.v2.Bucket.Autoclass.Builder,
            -            com.google.storage.v2.Bucket.AutoclassOrBuilder>
            +        com.google.storage.v2.Bucket.Autoclass, com.google.storage.v2.Bucket.Autoclass.Builder, com.google.storage.v2.Bucket.AutoclassOrBuilder> 
                     getAutoclassFieldBuilder() {
                   if (autoclassBuilder_ == null) {
            -        autoclassBuilder_ =
            -            new com.google.protobuf.SingleFieldBuilderV3<
            -                com.google.storage.v2.Bucket.Autoclass,
            -                com.google.storage.v2.Bucket.Autoclass.Builder,
            -                com.google.storage.v2.Bucket.AutoclassOrBuilder>(
            -                getAutoclass(), getParentForChildren(), isClean());
            +        autoclassBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            +            com.google.storage.v2.Bucket.Autoclass, com.google.storage.v2.Bucket.Autoclass.Builder, com.google.storage.v2.Bucket.AutoclassOrBuilder>(
            +                getAutoclass(),
            +                getParentForChildren(),
            +                isClean());
                     autoclass_ = null;
                   }
                   return autoclassBuilder_;
            @@ -26728,67 +23953,47 @@ public com.google.storage.v2.Bucket.AutoclassOrBuilder getAutoclassOrBuilder() {
             
                 private com.google.storage.v2.Bucket.HierarchicalNamespace hierarchicalNamespace_;
                 private com.google.protobuf.SingleFieldBuilderV3<
            -            com.google.storage.v2.Bucket.HierarchicalNamespace,
            -            com.google.storage.v2.Bucket.HierarchicalNamespace.Builder,
            -            com.google.storage.v2.Bucket.HierarchicalNamespaceOrBuilder>
            -        hierarchicalNamespaceBuilder_;
            +        com.google.storage.v2.Bucket.HierarchicalNamespace, com.google.storage.v2.Bucket.HierarchicalNamespace.Builder, com.google.storage.v2.Bucket.HierarchicalNamespaceOrBuilder> hierarchicalNamespaceBuilder_;
                 /**
            -     *
            -     *
                  * 
                  * Optional. The bucket's hierarchical namespace configuration. If there is no
                  * configuration, the hierarchical namespace feature will be disabled and have
                  * no effect on the bucket.
                  * 
            * - * - * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the hierarchicalNamespace field is set. */ public boolean hasHierarchicalNamespace() { return ((bitField0_ & 0x10000000) != 0); } /** - * - * *
                  * Optional. The bucket's hierarchical namespace configuration. If there is no
                  * configuration, the hierarchical namespace feature will be disabled and have
                  * no effect on the bucket.
                  * 
            * - * - * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; * @return The hierarchicalNamespace. */ public com.google.storage.v2.Bucket.HierarchicalNamespace getHierarchicalNamespace() { if (hierarchicalNamespaceBuilder_ == null) { - return hierarchicalNamespace_ == null - ? com.google.storage.v2.Bucket.HierarchicalNamespace.getDefaultInstance() - : hierarchicalNamespace_; + return hierarchicalNamespace_ == null ? com.google.storage.v2.Bucket.HierarchicalNamespace.getDefaultInstance() : hierarchicalNamespace_; } else { return hierarchicalNamespaceBuilder_.getMessage(); } } /** - * - * *
                  * Optional. The bucket's hierarchical namespace configuration. If there is no
                  * configuration, the hierarchical namespace feature will be disabled and have
                  * no effect on the bucket.
                  * 
            * - * - * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setHierarchicalNamespace( - com.google.storage.v2.Bucket.HierarchicalNamespace value) { + public Builder setHierarchicalNamespace(com.google.storage.v2.Bucket.HierarchicalNamespace value) { if (hierarchicalNamespaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -26802,17 +24007,13 @@ public Builder setHierarchicalNamespace( return this; } /** - * - * *
                  * Optional. The bucket's hierarchical namespace configuration. If there is no
                  * configuration, the hierarchical namespace feature will be disabled and have
                  * no effect on the bucket.
                  * 
            * - * - * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setHierarchicalNamespace( com.google.storage.v2.Bucket.HierarchicalNamespace.Builder builderForValue) { @@ -26826,25 +24027,19 @@ public Builder setHierarchicalNamespace( return this; } /** - * - * *
                  * Optional. The bucket's hierarchical namespace configuration. If there is no
                  * configuration, the hierarchical namespace feature will be disabled and have
                  * no effect on the bucket.
                  * 
            * - * - * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeHierarchicalNamespace( - com.google.storage.v2.Bucket.HierarchicalNamespace value) { + public Builder mergeHierarchicalNamespace(com.google.storage.v2.Bucket.HierarchicalNamespace value) { if (hierarchicalNamespaceBuilder_ == null) { - if (((bitField0_ & 0x10000000) != 0) - && hierarchicalNamespace_ != null - && hierarchicalNamespace_ - != com.google.storage.v2.Bucket.HierarchicalNamespace.getDefaultInstance()) { + if (((bitField0_ & 0x10000000) != 0) && + hierarchicalNamespace_ != null && + hierarchicalNamespace_ != com.google.storage.v2.Bucket.HierarchicalNamespace.getDefaultInstance()) { getHierarchicalNamespaceBuilder().mergeFrom(value); } else { hierarchicalNamespace_ = value; @@ -26859,17 +24054,13 @@ public Builder mergeHierarchicalNamespace( return this; } /** - * - * *
                  * Optional. The bucket's hierarchical namespace configuration. If there is no
                  * configuration, the hierarchical namespace feature will be disabled and have
                  * no effect on the bucket.
                  * 
            * - * - * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearHierarchicalNamespace() { bitField0_ = (bitField0_ & ~0x10000000); @@ -26882,72 +24073,54 @@ public Builder clearHierarchicalNamespace() { return this; } /** - * - * *
                  * Optional. The bucket's hierarchical namespace configuration. If there is no
                  * configuration, the hierarchical namespace feature will be disabled and have
                  * no effect on the bucket.
                  * 
            * - * - * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.storage.v2.Bucket.HierarchicalNamespace.Builder - getHierarchicalNamespaceBuilder() { + public com.google.storage.v2.Bucket.HierarchicalNamespace.Builder getHierarchicalNamespaceBuilder() { bitField0_ |= 0x10000000; onChanged(); return getHierarchicalNamespaceFieldBuilder().getBuilder(); } /** - * - * *
                  * Optional. The bucket's hierarchical namespace configuration. If there is no
                  * configuration, the hierarchical namespace feature will be disabled and have
                  * no effect on the bucket.
                  * 
            * - * - * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.storage.v2.Bucket.HierarchicalNamespaceOrBuilder - getHierarchicalNamespaceOrBuilder() { + public com.google.storage.v2.Bucket.HierarchicalNamespaceOrBuilder getHierarchicalNamespaceOrBuilder() { if (hierarchicalNamespaceBuilder_ != null) { return hierarchicalNamespaceBuilder_.getMessageOrBuilder(); } else { - return hierarchicalNamespace_ == null - ? com.google.storage.v2.Bucket.HierarchicalNamespace.getDefaultInstance() - : hierarchicalNamespace_; + return hierarchicalNamespace_ == null ? + com.google.storage.v2.Bucket.HierarchicalNamespace.getDefaultInstance() : hierarchicalNamespace_; } } /** - * - * *
                  * Optional. The bucket's hierarchical namespace configuration. If there is no
                  * configuration, the hierarchical namespace feature will be disabled and have
                  * no effect on the bucket.
                  * 
            * - * - * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.HierarchicalNamespace, - com.google.storage.v2.Bucket.HierarchicalNamespace.Builder, - com.google.storage.v2.Bucket.HierarchicalNamespaceOrBuilder> + com.google.storage.v2.Bucket.HierarchicalNamespace, com.google.storage.v2.Bucket.HierarchicalNamespace.Builder, com.google.storage.v2.Bucket.HierarchicalNamespaceOrBuilder> getHierarchicalNamespaceFieldBuilder() { if (hierarchicalNamespaceBuilder_ == null) { - hierarchicalNamespaceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.HierarchicalNamespace, - com.google.storage.v2.Bucket.HierarchicalNamespace.Builder, - com.google.storage.v2.Bucket.HierarchicalNamespaceOrBuilder>( - getHierarchicalNamespace(), getParentForChildren(), isClean()); + hierarchicalNamespaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.Bucket.HierarchicalNamespace, com.google.storage.v2.Bucket.HierarchicalNamespace.Builder, com.google.storage.v2.Bucket.HierarchicalNamespaceOrBuilder>( + getHierarchicalNamespace(), + getParentForChildren(), + isClean()); hierarchicalNamespace_ = null; } return hierarchicalNamespaceBuilder_; @@ -26955,61 +24128,42 @@ public Builder clearHierarchicalNamespace() { private com.google.storage.v2.Bucket.SoftDeletePolicy softDeletePolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.SoftDeletePolicy, - com.google.storage.v2.Bucket.SoftDeletePolicy.Builder, - com.google.storage.v2.Bucket.SoftDeletePolicyOrBuilder> - softDeletePolicyBuilder_; + com.google.storage.v2.Bucket.SoftDeletePolicy, com.google.storage.v2.Bucket.SoftDeletePolicy.Builder, com.google.storage.v2.Bucket.SoftDeletePolicyOrBuilder> softDeletePolicyBuilder_; /** - * - * *
                  * Optional. The bucket's soft delete policy. The soft delete policy prevents
                  * soft-deleted objects from being permanently deleted.
                  * 
            * - * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the softDeletePolicy field is set. */ public boolean hasSoftDeletePolicy() { return ((bitField0_ & 0x20000000) != 0); } /** - * - * *
                  * Optional. The bucket's soft delete policy. The soft delete policy prevents
                  * soft-deleted objects from being permanently deleted.
                  * 
            * - * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; * @return The softDeletePolicy. */ public com.google.storage.v2.Bucket.SoftDeletePolicy getSoftDeletePolicy() { if (softDeletePolicyBuilder_ == null) { - return softDeletePolicy_ == null - ? com.google.storage.v2.Bucket.SoftDeletePolicy.getDefaultInstance() - : softDeletePolicy_; + return softDeletePolicy_ == null ? com.google.storage.v2.Bucket.SoftDeletePolicy.getDefaultInstance() : softDeletePolicy_; } else { return softDeletePolicyBuilder_.getMessage(); } } /** - * - * *
                  * Optional. The bucket's soft delete policy. The soft delete policy prevents
                  * soft-deleted objects from being permanently deleted.
                  * 
            * - * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSoftDeletePolicy(com.google.storage.v2.Bucket.SoftDeletePolicy value) { if (softDeletePolicyBuilder_ == null) { @@ -27025,16 +24179,12 @@ public Builder setSoftDeletePolicy(com.google.storage.v2.Bucket.SoftDeletePolicy return this; } /** - * - * *
                  * Optional. The bucket's soft delete policy. The soft delete policy prevents
                  * soft-deleted objects from being permanently deleted.
                  * 
            * - * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSoftDeletePolicy( com.google.storage.v2.Bucket.SoftDeletePolicy.Builder builderForValue) { @@ -27048,23 +24198,18 @@ public Builder setSoftDeletePolicy( return this; } /** - * - * *
                  * Optional. The bucket's soft delete policy. The soft delete policy prevents
                  * soft-deleted objects from being permanently deleted.
                  * 
            * - * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeSoftDeletePolicy(com.google.storage.v2.Bucket.SoftDeletePolicy value) { if (softDeletePolicyBuilder_ == null) { - if (((bitField0_ & 0x20000000) != 0) - && softDeletePolicy_ != null - && softDeletePolicy_ - != com.google.storage.v2.Bucket.SoftDeletePolicy.getDefaultInstance()) { + if (((bitField0_ & 0x20000000) != 0) && + softDeletePolicy_ != null && + softDeletePolicy_ != com.google.storage.v2.Bucket.SoftDeletePolicy.getDefaultInstance()) { getSoftDeletePolicyBuilder().mergeFrom(value); } else { softDeletePolicy_ = value; @@ -27079,16 +24224,12 @@ public Builder mergeSoftDeletePolicy(com.google.storage.v2.Bucket.SoftDeletePoli return this; } /** - * - * *
                  * Optional. The bucket's soft delete policy. The soft delete policy prevents
                  * soft-deleted objects from being permanently deleted.
                  * 
            * - * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearSoftDeletePolicy() { bitField0_ = (bitField0_ & ~0x20000000); @@ -27101,16 +24242,12 @@ public Builder clearSoftDeletePolicy() { return this; } /** - * - * *
                  * Optional. The bucket's soft delete policy. The soft delete policy prevents
                  * soft-deleted objects from being permanently deleted.
                  * 
            * - * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.storage.v2.Bucket.SoftDeletePolicy.Builder getSoftDeletePolicyBuilder() { bitField0_ |= 0x20000000; @@ -27118,57 +24255,45 @@ public com.google.storage.v2.Bucket.SoftDeletePolicy.Builder getSoftDeletePolicy return getSoftDeletePolicyFieldBuilder().getBuilder(); } /** - * - * *
                  * Optional. The bucket's soft delete policy. The soft delete policy prevents
                  * soft-deleted objects from being permanently deleted.
                  * 
            * - * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.storage.v2.Bucket.SoftDeletePolicyOrBuilder getSoftDeletePolicyOrBuilder() { if (softDeletePolicyBuilder_ != null) { return softDeletePolicyBuilder_.getMessageOrBuilder(); } else { - return softDeletePolicy_ == null - ? com.google.storage.v2.Bucket.SoftDeletePolicy.getDefaultInstance() - : softDeletePolicy_; + return softDeletePolicy_ == null ? + com.google.storage.v2.Bucket.SoftDeletePolicy.getDefaultInstance() : softDeletePolicy_; } } /** - * - * *
                  * Optional. The bucket's soft delete policy. The soft delete policy prevents
                  * soft-deleted objects from being permanently deleted.
                  * 
            * - * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.SoftDeletePolicy, - com.google.storage.v2.Bucket.SoftDeletePolicy.Builder, - com.google.storage.v2.Bucket.SoftDeletePolicyOrBuilder> + com.google.storage.v2.Bucket.SoftDeletePolicy, com.google.storage.v2.Bucket.SoftDeletePolicy.Builder, com.google.storage.v2.Bucket.SoftDeletePolicyOrBuilder> getSoftDeletePolicyFieldBuilder() { if (softDeletePolicyBuilder_ == null) { - softDeletePolicyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.SoftDeletePolicy, - com.google.storage.v2.Bucket.SoftDeletePolicy.Builder, - com.google.storage.v2.Bucket.SoftDeletePolicyOrBuilder>( - getSoftDeletePolicy(), getParentForChildren(), isClean()); + softDeletePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.Bucket.SoftDeletePolicy, com.google.storage.v2.Bucket.SoftDeletePolicy.Builder, com.google.storage.v2.Bucket.SoftDeletePolicyOrBuilder>( + getSoftDeletePolicy(), + getParentForChildren(), + isClean()); softDeletePolicy_ = null; } return softDeletePolicyBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -27178,12 +24303,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(); } @@ -27192,27 +24317,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; @@ -27227,4 +24352,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 b2c6ce1a8f..57eddf3cca 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,24 +5,21 @@ 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_ = ""; @@ -51,39 +33,34 @@ private BucketAccessControl() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BucketAccessControl(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_BucketAccessControl_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BucketAccessControl_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_BucketAccessControl_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BucketAccessControl_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.BucketAccessControl.class, - com.google.storage.v2.BucketAccessControl.Builder.class); + com.google.storage.v2.BucketAccessControl.class, com.google.storage.v2.BucketAccessControl.Builder.class); } private int bitField0_; public static final int ROLE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object role_ = ""; /** - * - * *
                * The access permission for the entity.
                * 
            * * string role = 1; - * * @return The role. */ @java.lang.Override @@ -92,29 +69,29 @@ public java.lang.String getRole() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; } } /** - * - * *
                * The access permission for the entity.
                * 
            * * string role = 1; - * * @return The bytes for role. */ @java.lang.Override - public com.google.protobuf.ByteString getRoleBytes() { + public com.google.protobuf.ByteString + getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); role_ = b; return b; } else { @@ -123,18 +100,14 @@ public com.google.protobuf.ByteString getRoleBytes() { } public static final int ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** - * - * *
                * The ID of the access-control entry.
                * 
            * * string id = 2; - * * @return The id. */ @java.lang.Override @@ -143,29 +116,29 @@ public java.lang.String getId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** - * - * *
                * The ID of the access-control entry.
                * 
            * * string id = 2; - * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); id_ = b; return b; } else { @@ -174,12 +147,9 @@ public com.google.protobuf.ByteString getIdBytes() { } public static final int ENTITY_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object entity_ = ""; /** - * - * *
                * The entity holding the permission, in one of the following forms:
                * * `user-{userid}`
            @@ -202,7 +172,6 @@ public com.google.protobuf.ByteString getIdBytes() {
                * 
            * * string entity = 3; - * * @return The entity. */ @java.lang.Override @@ -211,15 +180,14 @@ public java.lang.String getEntity() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entity_ = s; return s; } } /** - * - * *
                * The entity holding the permission, in one of the following forms:
                * * `user-{userid}`
            @@ -242,15 +210,16 @@ public java.lang.String getEntity() {
                * 
            * * string entity = 3; - * * @return The bytes for entity. */ @java.lang.Override - public com.google.protobuf.ByteString getEntityBytes() { + public com.google.protobuf.ByteString + getEntityBytes() { java.lang.Object ref = entity_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entity_ = b; return b; } else { @@ -259,19 +228,15 @@ public com.google.protobuf.ByteString getEntityBytes() { } public static final int ENTITY_ALT_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private volatile java.lang.Object entityAlt_ = ""; /** - * - * *
                * Output only. The alternative entity format, if exists. For project
                * entities, `project-{team}-{projectid}` format will be returned on response.
                * 
            * * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The entityAlt. */ @java.lang.Override @@ -280,30 +245,30 @@ public java.lang.String getEntityAlt() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityAlt_ = s; return s; } } /** - * - * *
                * Output only. The alternative entity format, if exists. For project
                * entities, `project-{team}-{projectid}` format will be returned on response.
                * 
            * * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for entityAlt. */ @java.lang.Override - public com.google.protobuf.ByteString getEntityAltBytes() { + public com.google.protobuf.ByteString + getEntityAltBytes() { java.lang.Object ref = entityAlt_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entityAlt_ = b; return b; } else { @@ -312,18 +277,14 @@ public com.google.protobuf.ByteString getEntityAltBytes() { } public static final int ENTITY_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object entityId_ = ""; /** - * - * *
                * The ID for the entity, if any.
                * 
            * * string entity_id = 4; - * * @return The entityId. */ @java.lang.Override @@ -332,29 +293,29 @@ public java.lang.String getEntityId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityId_ = s; return s; } } /** - * - * *
                * The ID for the entity, if any.
                * 
            * * string entity_id = 4; - * * @return The bytes for entityId. */ @java.lang.Override - public com.google.protobuf.ByteString getEntityIdBytes() { + public com.google.protobuf.ByteString + getEntityIdBytes() { java.lang.Object ref = entityId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entityId_ = b; return b; } else { @@ -363,12 +324,9 @@ public com.google.protobuf.ByteString getEntityIdBytes() { } public static final int ETAG_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
                * The etag of the BucketAccessControl.
                * If included in the metadata of an update or delete request message, the
            @@ -377,7 +335,6 @@ public com.google.protobuf.ByteString getEntityIdBytes() {
                * 
            * * string etag = 8; - * * @return The etag. */ @java.lang.Override @@ -386,15 +343,14 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
                * The etag of the BucketAccessControl.
                * If included in the metadata of an update or delete request message, the
            @@ -403,15 +359,16 @@ public java.lang.String getEtag() {
                * 
            * * string etag = 8; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -420,18 +377,14 @@ public com.google.protobuf.ByteString getEtagBytes() { } public static final int EMAIL_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object email_ = ""; /** - * - * *
                * The email address associated with the entity, if any.
                * 
            * * string email = 5; - * * @return The email. */ @java.lang.Override @@ -440,29 +393,29 @@ public java.lang.String getEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; } } /** - * - * *
                * The email address associated with the entity, if any.
                * 
            * * string email = 5; - * * @return The bytes for email. */ @java.lang.Override - public com.google.protobuf.ByteString getEmailBytes() { + public com.google.protobuf.ByteString + getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); email_ = b; return b; } else { @@ -471,18 +424,14 @@ public com.google.protobuf.ByteString getEmailBytes() { } public static final int DOMAIN_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object domain_ = ""; /** - * - * *
                * The domain associated with the entity, if any.
                * 
            * * string domain = 6; - * * @return The domain. */ @java.lang.Override @@ -491,29 +440,29 @@ public java.lang.String getDomain() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); domain_ = s; return s; } } /** - * - * *
                * The domain associated with the entity, if any.
                * 
            * * string domain = 6; - * * @return The bytes for domain. */ @java.lang.Override - public com.google.protobuf.ByteString getDomainBytes() { + public com.google.protobuf.ByteString + getDomainBytes() { java.lang.Object ref = domain_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); domain_ = b; return b; } else { @@ -524,14 +473,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 @@ -539,25 +485,18 @@ public boolean hasProjectTeam() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * The project team associated with the entity, if any.
                * 
            * * .google.storage.v2.ProjectTeam project_team = 7; - * * @return The projectTeam. */ @java.lang.Override public com.google.storage.v2.ProjectTeam getProjectTeam() { - return projectTeam_ == null - ? com.google.storage.v2.ProjectTeam.getDefaultInstance() - : projectTeam_; + return projectTeam_ == null ? com.google.storage.v2.ProjectTeam.getDefaultInstance() : projectTeam_; } /** - * - * *
                * The project team associated with the entity, if any.
                * 
            @@ -566,13 +505,10 @@ public com.google.storage.v2.ProjectTeam getProjectTeam() { */ @java.lang.Override public com.google.storage.v2.ProjectTeamOrBuilder getProjectTeamOrBuilder() { - return projectTeam_ == null - ? com.google.storage.v2.ProjectTeam.getDefaultInstance() - : projectTeam_; + return projectTeam_ == null ? com.google.storage.v2.ProjectTeam.getDefaultInstance() : projectTeam_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -584,7 +520,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(role_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, role_); } @@ -640,7 +577,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, domain_); } if (((bitField0_ & 0x00000001) != 0)) { - 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_); @@ -656,25 +594,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.BucketAccessControl)) { return super.equals(obj); } - com.google.storage.v2.BucketAccessControl other = - (com.google.storage.v2.BucketAccessControl) obj; - - if (!getRole().equals(other.getRole())) return false; - if (!getId().equals(other.getId())) return false; - if (!getEntity().equals(other.getEntity())) return false; - if (!getEntityAlt().equals(other.getEntityAlt())) return false; - if (!getEntityId().equals(other.getEntityId())) return false; - if (!getEtag().equals(other.getEtag())) return false; - if (!getEmail().equals(other.getEmail())) return false; - if (!getDomain().equals(other.getDomain())) return false; + com.google.storage.v2.BucketAccessControl other = (com.google.storage.v2.BucketAccessControl) obj; + + if (!getRole() + .equals(other.getRole())) return false; + if (!getId() + .equals(other.getId())) return false; + if (!getEntity() + .equals(other.getEntity())) return false; + if (!getEntityAlt() + .equals(other.getEntityAlt())) return false; + if (!getEntityId() + .equals(other.getEntityId())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (!getEmail() + .equals(other.getEmail())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; if (hasProjectTeam() != other.hasProjectTeam()) return false; if (hasProjectTeam()) { - if (!getProjectTeam().equals(other.getProjectTeam())) return false; + if (!getProjectTeam() + .equals(other.getProjectTeam())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -712,127 +658,120 @@ 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() @@ -840,17 +779,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) { getProjectTeamFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -872,9 +811,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_BucketAccessControl_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BucketAccessControl_descriptor; } @java.lang.Override @@ -893,11 +832,8 @@ public com.google.storage.v2.BucketAccessControl build() { @java.lang.Override public com.google.storage.v2.BucketAccessControl buildPartial() { - com.google.storage.v2.BucketAccessControl result = - new com.google.storage.v2.BucketAccessControl(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.BucketAccessControl result = new com.google.storage.v2.BucketAccessControl(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -930,8 +866,9 @@ private void buildPartial0(com.google.storage.v2.BucketAccessControl result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000100) != 0)) { - result.projectTeam_ = - projectTeamBuilder_ == null ? projectTeam_ : projectTeamBuilder_.build(); + result.projectTeam_ = projectTeamBuilder_ == null + ? projectTeam_ + : projectTeamBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -941,39 +878,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; @@ -1051,67 +987,59 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - role_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - id_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - entity_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - entityId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 34 - case 42: - { - email_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 42 - case 50: - { - domain_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 50 - case 58: - { - input.readMessage(getProjectTeamFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 58 - case 66: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 66 - case 74: - { - entityAlt_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 74 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + role_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + entity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + entityId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: { + email_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 42 + case 50: { + domain_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 50 + case 58: { + input.readMessage( + getProjectTeamFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 58 + case 66: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 66 + case 74: { + entityAlt_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 74 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1121,25 +1049,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object role_ = ""; /** - * - * *
                  * The access permission for the entity.
                  * 
            * * string role = 1; - * * @return The role. */ public java.lang.String getRole() { java.lang.Object ref = role_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; @@ -1148,21 +1073,20 @@ public java.lang.String getRole() { } } /** - * - * *
                  * The access permission for the entity.
                  * 
            * * string role = 1; - * * @return The bytes for role. */ - public com.google.protobuf.ByteString getRoleBytes() { + public com.google.protobuf.ByteString + getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); role_ = b; return b; } else { @@ -1170,35 +1094,28 @@ public com.google.protobuf.ByteString getRoleBytes() { } } /** - * - * *
                  * The access permission for the entity.
                  * 
            * * string role = 1; - * * @param value The role to set. * @return This builder for chaining. */ - public Builder setRole(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRole( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } role_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * The access permission for the entity.
                  * 
            * * string role = 1; - * * @return This builder for chaining. */ public Builder clearRole() { @@ -1208,21 +1125,17 @@ public Builder clearRole() { return this; } /** - * - * *
                  * The access permission for the entity.
                  * 
            * * string role = 1; - * * @param value The bytes for role to set. * @return This builder for chaining. */ - public Builder setRoleBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRoleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); role_ = value; bitField0_ |= 0x00000001; @@ -1232,20 +1145,18 @@ public Builder setRoleBytes(com.google.protobuf.ByteString value) { private java.lang.Object id_ = ""; /** - * - * *
                  * The ID of the access-control entry.
                  * 
            * * string id = 2; - * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; @@ -1254,21 +1165,20 @@ public java.lang.String getId() { } } /** - * - * *
                  * The ID of the access-control entry.
                  * 
            * * string id = 2; - * * @return The bytes for id. */ - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); id_ = b; return b; } else { @@ -1276,35 +1186,28 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
                  * The ID of the access-control entry.
                  * 
            * * string id = 2; - * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } id_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                  * The ID of the access-control entry.
                  * 
            * * string id = 2; - * * @return This builder for chaining. */ public Builder clearId() { @@ -1314,21 +1217,17 @@ public Builder clearId() { return this; } /** - * - * *
                  * The ID of the access-control entry.
                  * 
            * * string id = 2; - * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00000002; @@ -1338,8 +1237,6 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object entity_ = ""; /** - * - * *
                  * The entity holding the permission, in one of the following forms:
                  * * `user-{userid}`
            @@ -1362,13 +1259,13 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) {
                  * 
            * * string entity = 3; - * * @return The entity. */ public java.lang.String getEntity() { java.lang.Object ref = entity_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entity_ = s; return s; @@ -1377,8 +1274,6 @@ public java.lang.String getEntity() { } } /** - * - * *
                  * The entity holding the permission, in one of the following forms:
                  * * `user-{userid}`
            @@ -1401,14 +1296,15 @@ public java.lang.String getEntity() {
                  * 
            * * string entity = 3; - * * @return The bytes for entity. */ - public com.google.protobuf.ByteString getEntityBytes() { + public com.google.protobuf.ByteString + getEntityBytes() { java.lang.Object ref = entity_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entity_ = b; return b; } else { @@ -1416,8 +1312,6 @@ public com.google.protobuf.ByteString getEntityBytes() { } } /** - * - * *
                  * The entity holding the permission, in one of the following forms:
                  * * `user-{userid}`
            @@ -1440,22 +1334,18 @@ public com.google.protobuf.ByteString getEntityBytes() {
                  * 
            * * string entity = 3; - * * @param value The entity to set. * @return This builder for chaining. */ - public Builder setEntity(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEntity( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } entity_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
                  * The entity holding the permission, in one of the following forms:
                  * * `user-{userid}`
            @@ -1478,7 +1368,6 @@ public Builder setEntity(java.lang.String value) {
                  * 
            * * string entity = 3; - * * @return This builder for chaining. */ public Builder clearEntity() { @@ -1488,8 +1377,6 @@ public Builder clearEntity() { return this; } /** - * - * *
                  * The entity holding the permission, in one of the following forms:
                  * * `user-{userid}`
            @@ -1512,14 +1399,12 @@ public Builder clearEntity() {
                  * 
            * * string entity = 3; - * * @param value The bytes for entity to set. * @return This builder for chaining. */ - public Builder setEntityBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEntityBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); entity_ = value; bitField0_ |= 0x00000004; @@ -1529,21 +1414,19 @@ public Builder setEntityBytes(com.google.protobuf.ByteString value) { private java.lang.Object entityAlt_ = ""; /** - * - * *
                  * Output only. The alternative entity format, if exists. For project
                  * entities, `project-{team}-{projectid}` format will be returned on response.
                  * 
            * * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The entityAlt. */ public java.lang.String getEntityAlt() { java.lang.Object ref = entityAlt_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityAlt_ = s; return s; @@ -1552,22 +1435,21 @@ public java.lang.String getEntityAlt() { } } /** - * - * *
                  * Output only. The alternative entity format, if exists. For project
                  * entities, `project-{team}-{projectid}` format will be returned on response.
                  * 
            * * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for entityAlt. */ - public com.google.protobuf.ByteString getEntityAltBytes() { + public com.google.protobuf.ByteString + getEntityAltBytes() { java.lang.Object ref = entityAlt_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entityAlt_ = b; return b; } else { @@ -1575,37 +1457,30 @@ public com.google.protobuf.ByteString getEntityAltBytes() { } } /** - * - * *
                  * Output only. The alternative entity format, if exists. For project
                  * entities, `project-{team}-{projectid}` format will be returned on response.
                  * 
            * * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The entityAlt to set. * @return This builder for chaining. */ - public Builder setEntityAlt(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEntityAlt( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } entityAlt_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
                  * Output only. The alternative entity format, if exists. For project
                  * entities, `project-{team}-{projectid}` format will be returned on response.
                  * 
            * * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearEntityAlt() { @@ -1615,22 +1490,18 @@ public Builder clearEntityAlt() { return this; } /** - * - * *
                  * Output only. The alternative entity format, if exists. For project
                  * entities, `project-{team}-{projectid}` format will be returned on response.
                  * 
            * * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for entityAlt to set. * @return This builder for chaining. */ - public Builder setEntityAltBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEntityAltBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); entityAlt_ = value; bitField0_ |= 0x00000008; @@ -1640,20 +1511,18 @@ public Builder setEntityAltBytes(com.google.protobuf.ByteString value) { private java.lang.Object entityId_ = ""; /** - * - * *
                  * The ID for the entity, if any.
                  * 
            * * string entity_id = 4; - * * @return The entityId. */ public java.lang.String getEntityId() { java.lang.Object ref = entityId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityId_ = s; return s; @@ -1662,21 +1531,20 @@ public java.lang.String getEntityId() { } } /** - * - * *
                  * The ID for the entity, if any.
                  * 
            * * string entity_id = 4; - * * @return The bytes for entityId. */ - public com.google.protobuf.ByteString getEntityIdBytes() { + public com.google.protobuf.ByteString + getEntityIdBytes() { java.lang.Object ref = entityId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entityId_ = b; return b; } else { @@ -1684,35 +1552,28 @@ public com.google.protobuf.ByteString getEntityIdBytes() { } } /** - * - * *
                  * The ID for the entity, if any.
                  * 
            * * string entity_id = 4; - * * @param value The entityId to set. * @return This builder for chaining. */ - public Builder setEntityId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEntityId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } entityId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
                  * The ID for the entity, if any.
                  * 
            * * string entity_id = 4; - * * @return This builder for chaining. */ public Builder clearEntityId() { @@ -1722,21 +1583,17 @@ public Builder clearEntityId() { return this; } /** - * - * *
                  * The ID for the entity, if any.
                  * 
            * * string entity_id = 4; - * * @param value The bytes for entityId to set. * @return This builder for chaining. */ - public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEntityIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); entityId_ = value; bitField0_ |= 0x00000010; @@ -1746,8 +1603,6 @@ public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object etag_ = ""; /** - * - * *
                  * The etag of the BucketAccessControl.
                  * If included in the metadata of an update or delete request message, the
            @@ -1756,13 +1611,13 @@ public Builder setEntityIdBytes(com.google.protobuf.ByteString value) {
                  * 
            * * string etag = 8; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -1771,8 +1626,6 @@ public java.lang.String getEtag() { } } /** - * - * *
                  * The etag of the BucketAccessControl.
                  * If included in the metadata of an update or delete request message, the
            @@ -1781,14 +1634,15 @@ public java.lang.String getEtag() {
                  * 
            * * string etag = 8; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -1796,8 +1650,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
                  * The etag of the BucketAccessControl.
                  * If included in the metadata of an update or delete request message, the
            @@ -1806,22 +1658,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
                  * 
            * * string etag = 8; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
                  * The etag of the BucketAccessControl.
                  * If included in the metadata of an update or delete request message, the
            @@ -1830,7 +1678,6 @@ public Builder setEtag(java.lang.String value) {
                  * 
            * * string etag = 8; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -1840,8 +1687,6 @@ public Builder clearEtag() { return this; } /** - * - * *
                  * The etag of the BucketAccessControl.
                  * If included in the metadata of an update or delete request message, the
            @@ -1850,14 +1695,12 @@ public Builder clearEtag() {
                  * 
            * * string etag = 8; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000020; @@ -1867,20 +1710,18 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { private java.lang.Object email_ = ""; /** - * - * *
                  * The email address associated with the entity, if any.
                  * 
            * * string email = 5; - * * @return The email. */ public java.lang.String getEmail() { java.lang.Object ref = email_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; @@ -1889,21 +1730,20 @@ public java.lang.String getEmail() { } } /** - * - * *
                  * The email address associated with the entity, if any.
                  * 
            * * string email = 5; - * * @return The bytes for email. */ - public com.google.protobuf.ByteString getEmailBytes() { + public com.google.protobuf.ByteString + getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); email_ = b; return b; } else { @@ -1911,35 +1751,28 @@ public com.google.protobuf.ByteString getEmailBytes() { } } /** - * - * *
                  * The email address associated with the entity, if any.
                  * 
            * * string email = 5; - * * @param value The email to set. * @return This builder for chaining. */ - public Builder setEmail(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEmail( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } email_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
                  * The email address associated with the entity, if any.
                  * 
            * * string email = 5; - * * @return This builder for chaining. */ public Builder clearEmail() { @@ -1949,21 +1782,17 @@ public Builder clearEmail() { return this; } /** - * - * *
                  * The email address associated with the entity, if any.
                  * 
            * * string email = 5; - * * @param value The bytes for email to set. * @return This builder for chaining. */ - public Builder setEmailBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); email_ = value; bitField0_ |= 0x00000040; @@ -1973,20 +1802,18 @@ public Builder setEmailBytes(com.google.protobuf.ByteString value) { private java.lang.Object domain_ = ""; /** - * - * *
                  * The domain associated with the entity, if any.
                  * 
            * * string domain = 6; - * * @return The domain. */ public java.lang.String getDomain() { java.lang.Object ref = domain_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); domain_ = s; return s; @@ -1995,21 +1822,20 @@ public java.lang.String getDomain() { } } /** - * - * *
                  * The domain associated with the entity, if any.
                  * 
            * * string domain = 6; - * * @return The bytes for domain. */ - public com.google.protobuf.ByteString getDomainBytes() { + public com.google.protobuf.ByteString + getDomainBytes() { java.lang.Object ref = domain_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); domain_ = b; return b; } else { @@ -2017,35 +1843,28 @@ public com.google.protobuf.ByteString getDomainBytes() { } } /** - * - * *
                  * The domain associated with the entity, if any.
                  * 
            * * string domain = 6; - * * @param value The domain to set. * @return This builder for chaining. */ - public Builder setDomain(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDomain( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } domain_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * *
                  * The domain associated with the entity, if any.
                  * 
            * * string domain = 6; - * * @return This builder for chaining. */ public Builder clearDomain() { @@ -2055,21 +1874,17 @@ public Builder clearDomain() { return this; } /** - * - * *
                  * The domain associated with the entity, if any.
                  * 
            * * string domain = 6; - * * @param value The bytes for domain to set. * @return This builder for chaining. */ - public Builder setDomainBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); domain_ = value; bitField0_ |= 0x00000080; @@ -2079,47 +1894,34 @@ public Builder setDomainBytes(com.google.protobuf.ByteString value) { private com.google.storage.v2.ProjectTeam projectTeam_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.ProjectTeam, - com.google.storage.v2.ProjectTeam.Builder, - com.google.storage.v2.ProjectTeamOrBuilder> - projectTeamBuilder_; + com.google.storage.v2.ProjectTeam, com.google.storage.v2.ProjectTeam.Builder, com.google.storage.v2.ProjectTeamOrBuilder> projectTeamBuilder_; /** - * - * *
                  * The project team associated with the entity, if any.
                  * 
            * * .google.storage.v2.ProjectTeam project_team = 7; - * * @return Whether the projectTeam field is set. */ public boolean hasProjectTeam() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
                  * The project team associated with the entity, if any.
                  * 
            * * .google.storage.v2.ProjectTeam project_team = 7; - * * @return The projectTeam. */ public com.google.storage.v2.ProjectTeam getProjectTeam() { if (projectTeamBuilder_ == null) { - return projectTeam_ == null - ? com.google.storage.v2.ProjectTeam.getDefaultInstance() - : projectTeam_; + return projectTeam_ == null ? com.google.storage.v2.ProjectTeam.getDefaultInstance() : projectTeam_; } else { return projectTeamBuilder_.getMessage(); } } /** - * - * *
                  * The project team associated with the entity, if any.
                  * 
            @@ -2140,15 +1942,14 @@ public Builder setProjectTeam(com.google.storage.v2.ProjectTeam value) { return this; } /** - * - * *
                  * The project team associated with the entity, if any.
                  * 
            * * .google.storage.v2.ProjectTeam project_team = 7; */ - public Builder setProjectTeam(com.google.storage.v2.ProjectTeam.Builder builderForValue) { + public Builder setProjectTeam( + com.google.storage.v2.ProjectTeam.Builder builderForValue) { if (projectTeamBuilder_ == null) { projectTeam_ = builderForValue.build(); } else { @@ -2159,8 +1960,6 @@ public Builder setProjectTeam(com.google.storage.v2.ProjectTeam.Builder builderF return this; } /** - * - * *
                  * The project team associated with the entity, if any.
                  * 
            @@ -2169,9 +1968,9 @@ public Builder setProjectTeam(com.google.storage.v2.ProjectTeam.Builder builderF */ public Builder mergeProjectTeam(com.google.storage.v2.ProjectTeam value) { if (projectTeamBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && projectTeam_ != null - && projectTeam_ != com.google.storage.v2.ProjectTeam.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + projectTeam_ != null && + projectTeam_ != com.google.storage.v2.ProjectTeam.getDefaultInstance()) { getProjectTeamBuilder().mergeFrom(value); } else { projectTeam_ = value; @@ -2186,8 +1985,6 @@ public Builder mergeProjectTeam(com.google.storage.v2.ProjectTeam value) { return this; } /** - * - * *
                  * The project team associated with the entity, if any.
                  * 
            @@ -2205,8 +2002,6 @@ public Builder clearProjectTeam() { return this; } /** - * - * *
                  * The project team associated with the entity, if any.
                  * 
            @@ -2219,8 +2014,6 @@ public com.google.storage.v2.ProjectTeam.Builder getProjectTeamBuilder() { return getProjectTeamFieldBuilder().getBuilder(); } /** - * - * *
                  * The project team associated with the entity, if any.
                  * 
            @@ -2231,14 +2024,11 @@ public com.google.storage.v2.ProjectTeamOrBuilder getProjectTeamOrBuilder() { if (projectTeamBuilder_ != null) { return projectTeamBuilder_.getMessageOrBuilder(); } else { - return projectTeam_ == null - ? com.google.storage.v2.ProjectTeam.getDefaultInstance() - : projectTeam_; + return projectTeam_ == null ? + com.google.storage.v2.ProjectTeam.getDefaultInstance() : projectTeam_; } } /** - * - * *
                  * The project team associated with the entity, if any.
                  * 
            @@ -2246,24 +2036,21 @@ public com.google.storage.v2.ProjectTeamOrBuilder getProjectTeamOrBuilder() { * .google.storage.v2.ProjectTeam project_team = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.ProjectTeam, - com.google.storage.v2.ProjectTeam.Builder, - com.google.storage.v2.ProjectTeamOrBuilder> + com.google.storage.v2.ProjectTeam, com.google.storage.v2.ProjectTeam.Builder, com.google.storage.v2.ProjectTeamOrBuilder> getProjectTeamFieldBuilder() { if (projectTeamBuilder_ == null) { - projectTeamBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.ProjectTeam, - com.google.storage.v2.ProjectTeam.Builder, - com.google.storage.v2.ProjectTeamOrBuilder>( - getProjectTeam(), getParentForChildren(), isClean()); + projectTeamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.ProjectTeam, com.google.storage.v2.ProjectTeam.Builder, com.google.storage.v2.ProjectTeamOrBuilder>( + getProjectTeam(), + getParentForChildren(), + isClean()); projectTeam_ = null; } return projectTeamBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2273,12 +2060,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.BucketAccessControl) } // @@protoc_insertion_point(class_scope:google.storage.v2.BucketAccessControl) private static final com.google.storage.v2.BucketAccessControl DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.BucketAccessControl(); } @@ -2287,27 +2074,27 @@ public static com.google.storage.v2.BucketAccessControl getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BucketAccessControl parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BucketAccessControl parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2322,4 +2109,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.BucketAccessControl getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketAccessControlOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketAccessControlOrBuilder.java similarity index 81% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketAccessControlOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketAccessControlOrBuilder.java index 2c2582831a..a8ecae1f0a 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,82 +1,54 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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}`
            @@ -99,13 +71,10 @@ public interface BucketAccessControlOrBuilder
                * 
            * * string entity = 3; - * * @return The entity. */ java.lang.String getEntity(); /** - * - * *
                * The entity holding the permission, in one of the following forms:
                * * `user-{userid}`
            @@ -128,66 +97,54 @@ public interface BucketAccessControlOrBuilder
                * 
            * * string entity = 3; - * * @return The bytes for entity. */ - com.google.protobuf.ByteString getEntityBytes(); + com.google.protobuf.ByteString + getEntityBytes(); /** - * - * *
                * Output only. The alternative entity format, if exists. For project
                * entities, `project-{team}-{projectid}` format will be returned on response.
                * 
            * * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The entityAlt. */ java.lang.String getEntityAlt(); /** - * - * *
                * Output only. The alternative entity format, if exists. For project
                * entities, `project-{team}-{projectid}` format will be returned on response.
                * 
            * * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for entityAlt. */ - com.google.protobuf.ByteString getEntityAltBytes(); + com.google.protobuf.ByteString + getEntityAltBytes(); /** - * - * *
                * The ID for the entity, if any.
                * 
            * * string entity_id = 4; - * * @return The entityId. */ java.lang.String getEntityId(); /** - * - * *
                * The ID for the entity, if any.
                * 
            * * string entity_id = 4; - * * @return The bytes for entityId. */ - com.google.protobuf.ByteString getEntityIdBytes(); + com.google.protobuf.ByteString + getEntityIdBytes(); /** - * - * *
                * The etag of the BucketAccessControl.
                * If included in the metadata of an update or delete request message, the
            @@ -196,13 +153,10 @@ public interface BucketAccessControlOrBuilder
                * 
            * * string etag = 8; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
                * The etag of the BucketAccessControl.
                * If included in the metadata of an update or delete request message, the
            @@ -211,88 +165,70 @@ public interface BucketAccessControlOrBuilder
                * 
            * * string etag = 8; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
                * The email address associated with the entity, if any.
                * 
            * * string email = 5; - * * @return The email. */ java.lang.String getEmail(); /** - * - * *
                * The email address associated with the entity, if any.
                * 
            * * string email = 5; - * * @return The bytes for email. */ - com.google.protobuf.ByteString getEmailBytes(); + com.google.protobuf.ByteString + getEmailBytes(); /** - * - * *
                * The domain associated with the entity, if any.
                * 
            * * string domain = 6; - * * @return The domain. */ java.lang.String getDomain(); /** - * - * *
                * The domain associated with the entity, if any.
                * 
            * * string domain = 6; - * * @return The bytes for domain. */ - com.google.protobuf.ByteString getDomainBytes(); + com.google.protobuf.ByteString + getDomainBytes(); /** - * - * *
                * The project team associated with the entity, if any.
                * 
            * * .google.storage.v2.ProjectTeam project_team = 7; - * * @return Whether the projectTeam field is set. */ boolean hasProjectTeam(); /** - * - * *
                * The project team associated with the entity, if any.
                * 
            * * .google.storage.v2.ProjectTeam project_team = 7; - * * @return The projectTeam. */ com.google.storage.v2.ProjectTeam getProjectTeam(); /** - * - * *
                * The project team associated with the entity, if any.
                * 
            diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketName.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketName.java similarity index 100% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketName.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketName.java diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BucketOrBuilder.java similarity index 86% 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 d404726a3b..c26adfb28e 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,59 +1,36 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 package com.google.storage.v2; -public interface BucketOrBuilder - extends +public interface BucketOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket) com.google.protobuf.MessageOrBuilder { /** - * - * *
                * Immutable. The name of the bucket.
                * Format: `projects/{project}/buckets/{bucket}`
                * 
            * * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
                * Immutable. The name of the bucket.
                * Format: `projects/{project}/buckets/{bucket}`
                * 
            * * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
                * Output only. The user-chosen part of the bucket name. The `{bucket}`
                * portion of the `name` field. For globally unique buckets, this is equal to
            @@ -61,13 +38,10 @@ public interface BucketOrBuilder
                * 
            * * string bucket_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bucketId. */ java.lang.String getBucketId(); /** - * - * *
                * Output only. The user-chosen part of the bucket name. The `{bucket}`
                * portion of the `name` field. For globally unique buckets, this is equal to
            @@ -75,14 +49,12 @@ public interface BucketOrBuilder
                * 
            * * string bucket_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for bucketId. */ - com.google.protobuf.ByteString getBucketIdBytes(); + com.google.protobuf.ByteString + getBucketIdBytes(); /** - * - * *
                * The etag of the bucket.
                * If included in the metadata of an UpdateBucketRequest, the operation will
            @@ -90,13 +62,10 @@ public interface BucketOrBuilder
                * 
            * * string etag = 29; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
                * The etag of the bucket.
                * If included in the metadata of an UpdateBucketRequest, the operation will
            @@ -104,60 +73,46 @@ public interface BucketOrBuilder
                * 
            * * string etag = 29; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
                * Immutable. The project which owns this bucket, in the format of
                * "projects/{projectIdentifier}".
                * {projectIdentifier} can be the project ID or project number.
                * 
            * - * - * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The project. */ java.lang.String getProject(); /** - * - * *
                * Immutable. The project which owns this bucket, in the format of
                * "projects/{projectIdentifier}".
                * {projectIdentifier} can be the project ID or project number.
                * 
            * - * - * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ - com.google.protobuf.ByteString getProjectBytes(); + com.google.protobuf.ByteString + getProjectBytes(); /** - * - * *
                * Output only. The metadata generation of this bucket.
                * 
            * * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The metageneration. */ long getMetageneration(); /** - * - * *
                * Immutable. The location of the bucket. Object data for objects in the
                * bucket resides in physical storage within this region.  Defaults to `US`.
            @@ -168,13 +123,10 @@ public interface BucketOrBuilder
                * 
            * * string location = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The location. */ java.lang.String getLocation(); /** - * - * *
                * Immutable. The location of the bucket. Object data for objects in the
                * bucket resides in physical storage within this region.  Defaults to `US`.
            @@ -185,41 +137,34 @@ public interface BucketOrBuilder
                * 
            * * string location = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for location. */ - com.google.protobuf.ByteString getLocationBytes(); + com.google.protobuf.ByteString + getLocationBytes(); /** - * - * *
                * Output only. The location type of the bucket (region, dual-region,
                * multi-region, etc).
                * 
            * * string location_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The locationType. */ java.lang.String getLocationType(); /** - * - * *
                * Output only. The location type of the bucket (region, dual-region,
                * multi-region, etc).
                * 
            * * string location_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for locationType. */ - com.google.protobuf.ByteString getLocationTypeBytes(); + com.google.protobuf.ByteString + getLocationTypeBytes(); /** - * - * *
                * The bucket's default storage class, used whenever no storageClass is
                * specified for a newly-created object. This defines how objects in the
            @@ -230,13 +175,10 @@ public interface BucketOrBuilder
                * 
            * * string storage_class = 7; - * * @return The storageClass. */ java.lang.String getStorageClass(); /** - * - * *
                * The bucket's default storage class, used whenever no storageClass is
                * specified for a newly-created object. This defines how objects in the
            @@ -247,14 +189,12 @@ public interface BucketOrBuilder
                * 
            * * string storage_class = 7; - * * @return The bytes for storageClass. */ - com.google.protobuf.ByteString getStorageClassBytes(); + com.google.protobuf.ByteString + getStorageClassBytes(); /** - * - * *
                * The recovery point objective for cross-region replication of the bucket.
                * Applicable only for dual- and multi-region buckets. "DEFAULT" uses default
            @@ -265,13 +205,10 @@ public interface BucketOrBuilder
                * 
            * * string rpo = 27; - * * @return The rpo. */ java.lang.String getRpo(); /** - * - * *
                * The recovery point objective for cross-region replication of the bucket.
                * Applicable only for dual- and multi-region buckets. "DEFAULT" uses default
            @@ -282,14 +219,12 @@ public interface BucketOrBuilder
                * 
            * * string rpo = 27; - * * @return The bytes for rpo. */ - com.google.protobuf.ByteString getRpoBytes(); + com.google.protobuf.ByteString + getRpoBytes(); /** - * - * *
                * Access controls on the bucket.
                * If iam_config.uniform_bucket_level_access is enabled on this bucket,
            @@ -298,10 +233,9 @@ public interface BucketOrBuilder
                *
                * repeated .google.storage.v2.BucketAccessControl acl = 8;
                */
            -  java.util.List getAclList();
            +  java.util.List 
            +      getAclList();
               /**
            -   *
            -   *
                * 
                * Access controls on the bucket.
                * If iam_config.uniform_bucket_level_access is enabled on this bucket,
            @@ -312,8 +246,6 @@ public interface BucketOrBuilder
                */
               com.google.storage.v2.BucketAccessControl getAcl(int index);
               /**
            -   *
            -   *
                * 
                * Access controls on the bucket.
                * If iam_config.uniform_bucket_level_access is enabled on this bucket,
            @@ -324,8 +256,6 @@ public interface BucketOrBuilder
                */
               int getAclCount();
               /**
            -   *
            -   *
                * 
                * Access controls on the bucket.
                * If iam_config.uniform_bucket_level_access is enabled on this bucket,
            @@ -334,11 +264,9 @@ public interface BucketOrBuilder
                *
                * repeated .google.storage.v2.BucketAccessControl acl = 8;
                */
            -  java.util.List
            +  java.util.List 
                   getAclOrBuilderList();
               /**
            -   *
            -   *
                * 
                * Access controls on the bucket.
                * If iam_config.uniform_bucket_level_access is enabled on this bucket,
            @@ -347,11 +275,10 @@ public interface BucketOrBuilder
                *
                * repeated .google.storage.v2.BucketAccessControl acl = 8;
                */
            -  com.google.storage.v2.BucketAccessControlOrBuilder getAclOrBuilder(int index);
            +  com.google.storage.v2.BucketAccessControlOrBuilder getAclOrBuilder(
            +      int index);
             
               /**
            -   *
            -   *
                * 
                * Default access controls to apply to new objects when no ACL is provided.
                * If iam_config.uniform_bucket_level_access is enabled on this bucket,
            @@ -360,10 +287,9 @@ public interface BucketOrBuilder
                *
                * repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;
                */
            -  java.util.List getDefaultObjectAclList();
            +  java.util.List 
            +      getDefaultObjectAclList();
               /**
            -   *
            -   *
                * 
                * Default access controls to apply to new objects when no ACL is provided.
                * If iam_config.uniform_bucket_level_access is enabled on this bucket,
            @@ -374,8 +300,6 @@ public interface BucketOrBuilder
                */
               com.google.storage.v2.ObjectAccessControl getDefaultObjectAcl(int index);
               /**
            -   *
            -   *
                * 
                * Default access controls to apply to new objects when no ACL is provided.
                * If iam_config.uniform_bucket_level_access is enabled on this bucket,
            @@ -386,8 +310,6 @@ public interface BucketOrBuilder
                */
               int getDefaultObjectAclCount();
               /**
            -   *
            -   *
                * 
                * Default access controls to apply to new objects when no ACL is provided.
                * If iam_config.uniform_bucket_level_access is enabled on this bucket,
            @@ -396,11 +318,9 @@ public interface BucketOrBuilder
                *
                * repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;
                */
            -  java.util.List
            +  java.util.List 
                   getDefaultObjectAclOrBuilderList();
               /**
            -   *
            -   *
                * 
                * Default access controls to apply to new objects when no ACL is provided.
                * If iam_config.uniform_bucket_level_access is enabled on this bucket,
            @@ -409,11 +329,10 @@ public interface BucketOrBuilder
                *
                * repeated .google.storage.v2.ObjectAccessControl default_object_acl = 9;
                */
            -  com.google.storage.v2.ObjectAccessControlOrBuilder getDefaultObjectAclOrBuilder(int index);
            +  com.google.storage.v2.ObjectAccessControlOrBuilder getDefaultObjectAclOrBuilder(
            +      int index);
             
               /**
            -   *
            -   *
                * 
                * The bucket's lifecycle config. See
                * [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
            @@ -421,13 +340,10 @@ public interface BucketOrBuilder
                * 
            * * .google.storage.v2.Bucket.Lifecycle lifecycle = 10; - * * @return Whether the lifecycle field is set. */ boolean hasLifecycle(); /** - * - * *
                * The bucket's lifecycle config. See
                * [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
            @@ -435,13 +351,10 @@ public interface BucketOrBuilder
                * 
            * * .google.storage.v2.Bucket.Lifecycle lifecycle = 10; - * * @return The lifecycle. */ com.google.storage.v2.Bucket.Lifecycle getLifecycle(); /** - * - * *
                * The bucket's lifecycle config. See
                * [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
            @@ -453,46 +366,33 @@ public interface BucketOrBuilder
               com.google.storage.v2.Bucket.LifecycleOrBuilder getLifecycleOrBuilder();
             
               /**
            -   *
            -   *
                * 
                * Output only. The creation time of the bucket.
                * 
            * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
                * Output only. The creation time of the bucket.
                * 
            * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
                * Output only. The creation time of the bucket.
                * 
            * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
                * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
                * (CORS) config.
            @@ -500,10 +400,9 @@ public interface BucketOrBuilder
                *
                * repeated .google.storage.v2.Bucket.Cors cors = 12;
                */
            -  java.util.List getCorsList();
            +  java.util.List 
            +      getCorsList();
               /**
            -   *
            -   *
                * 
                * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
                * (CORS) config.
            @@ -513,8 +412,6 @@ public interface BucketOrBuilder
                */
               com.google.storage.v2.Bucket.Cors getCors(int index);
               /**
            -   *
            -   *
                * 
                * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
                * (CORS) config.
            @@ -524,8 +421,6 @@ public interface BucketOrBuilder
                */
               int getCorsCount();
               /**
            -   *
            -   *
                * 
                * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
                * (CORS) config.
            @@ -533,10 +428,9 @@ public interface BucketOrBuilder
                *
                * repeated .google.storage.v2.Bucket.Cors cors = 12;
                */
            -  java.util.List getCorsOrBuilderList();
            +  java.util.List 
            +      getCorsOrBuilderList();
               /**
            -   *
            -   *
                * 
                * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
                * (CORS) config.
            @@ -544,49 +438,37 @@ public interface BucketOrBuilder
                *
                * repeated .google.storage.v2.Bucket.Cors cors = 12;
                */
            -  com.google.storage.v2.Bucket.CorsOrBuilder getCorsOrBuilder(int index);
            +  com.google.storage.v2.Bucket.CorsOrBuilder getCorsOrBuilder(
            +      int index);
             
               /**
            -   *
            -   *
                * 
                * Output only. The modification time of the bucket.
                * 
            * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
                * Output only. The modification time of the bucket.
                * 
            * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
                * Output only. The modification time of the bucket.
                * 
            * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
                * The default value for event-based hold on newly created objects in this
                * bucket.  Event-based hold is a way to retain objects indefinitely until an
            @@ -604,14 +486,11 @@ public interface BucketOrBuilder
                * 
            * * bool default_event_based_hold = 14; - * * @return The defaultEventBasedHold. */ boolean getDefaultEventBasedHold(); /** - * - * *
                * User-provided labels, in key/value pairs.
                * 
            @@ -620,31 +499,30 @@ public interface BucketOrBuilder */ int getLabelsCount(); /** - * - * *
                * User-provided labels, in key/value pairs.
                * 
            * * map<string, string> labels = 15; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
                * User-provided labels, in key/value pairs.
                * 
            * * map<string, string> labels = 15; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
                * User-provided labels, in key/value pairs.
                * 
            @@ -652,24 +530,21 @@ public interface BucketOrBuilder * map<string, string> labels = 15; */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
                * User-provided labels, in key/value pairs.
                * 
            * * map<string, string> labels = 15; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
                * The bucket's website config, controlling how the service behaves
                * when accessing bucket contents as a web site. See the
            @@ -678,13 +553,10 @@ java.lang.String getLabelsOrDefault(
                * 
            * * .google.storage.v2.Bucket.Website website = 16; - * * @return Whether the website field is set. */ boolean hasWebsite(); /** - * - * *
                * The bucket's website config, controlling how the service behaves
                * when accessing bucket contents as a web site. See the
            @@ -693,13 +565,10 @@ java.lang.String getLabelsOrDefault(
                * 
            * * .google.storage.v2.Bucket.Website website = 16; - * * @return The website. */ com.google.storage.v2.Bucket.Website getWebsite(); /** - * - * *
                * The bucket's website config, controlling how the service behaves
                * when accessing bucket contents as a web site. See the
            @@ -712,32 +581,24 @@ java.lang.String getLabelsOrDefault(
               com.google.storage.v2.Bucket.WebsiteOrBuilder getWebsiteOrBuilder();
             
               /**
            -   *
            -   *
                * 
                * The bucket's versioning config.
                * 
            * * .google.storage.v2.Bucket.Versioning versioning = 17; - * * @return Whether the versioning field is set. */ boolean hasVersioning(); /** - * - * *
                * The bucket's versioning config.
                * 
            * * .google.storage.v2.Bucket.Versioning versioning = 17; - * * @return The versioning. */ com.google.storage.v2.Bucket.Versioning getVersioning(); /** - * - * *
                * The bucket's versioning config.
                * 
            @@ -747,34 +608,26 @@ java.lang.String getLabelsOrDefault( com.google.storage.v2.Bucket.VersioningOrBuilder getVersioningOrBuilder(); /** - * - * *
                * The bucket's logging config, which defines the destination bucket
                * and name prefix (if any) for the current bucket's logs.
                * 
            * * .google.storage.v2.Bucket.Logging logging = 18; - * * @return Whether the logging field is set. */ boolean hasLogging(); /** - * - * *
                * The bucket's logging config, which defines the destination bucket
                * and name prefix (if any) for the current bucket's logs.
                * 
            * * .google.storage.v2.Bucket.Logging logging = 18; - * * @return The logging. */ com.google.storage.v2.Bucket.Logging getLogging(); /** - * - * *
                * The bucket's logging config, which defines the destination bucket
                * and name prefix (if any) for the current bucket's logs.
            @@ -785,34 +638,26 @@ java.lang.String getLabelsOrDefault(
               com.google.storage.v2.Bucket.LoggingOrBuilder getLoggingOrBuilder();
             
               /**
            -   *
            -   *
                * 
                * Output only. The owner of the bucket. This is always the project team's
                * owner group.
                * 
            * * .google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the owner field is set. */ boolean hasOwner(); /** - * - * *
                * Output only. The owner of the bucket. This is always the project team's
                * owner group.
                * 
            * * .google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The owner. */ com.google.storage.v2.Owner getOwner(); /** - * - * *
                * Output only. The owner of the bucket. This is always the project team's
                * owner group.
            @@ -823,32 +668,24 @@ java.lang.String getLabelsOrDefault(
               com.google.storage.v2.OwnerOrBuilder getOwnerOrBuilder();
             
               /**
            -   *
            -   *
                * 
                * Encryption config for a bucket.
                * 
            * * .google.storage.v2.Bucket.Encryption encryption = 20; - * * @return Whether the encryption field is set. */ boolean hasEncryption(); /** - * - * *
                * Encryption config for a bucket.
                * 
            * * .google.storage.v2.Bucket.Encryption encryption = 20; - * * @return The encryption. */ com.google.storage.v2.Bucket.Encryption getEncryption(); /** - * - * *
                * Encryption config for a bucket.
                * 
            @@ -858,32 +695,24 @@ java.lang.String getLabelsOrDefault( com.google.storage.v2.Bucket.EncryptionOrBuilder getEncryptionOrBuilder(); /** - * - * *
                * The bucket's billing config.
                * 
            * * .google.storage.v2.Bucket.Billing billing = 21; - * * @return Whether the billing field is set. */ boolean hasBilling(); /** - * - * *
                * The bucket's billing config.
                * 
            * * .google.storage.v2.Bucket.Billing billing = 21; - * * @return The billing. */ com.google.storage.v2.Bucket.Billing getBilling(); /** - * - * *
                * The bucket's billing config.
                * 
            @@ -893,8 +722,6 @@ java.lang.String getLabelsOrDefault( com.google.storage.v2.Bucket.BillingOrBuilder getBillingOrBuilder(); /** - * - * *
                * The bucket's retention policy. The retention policy enforces a minimum
                * retention time for all objects contained in the bucket, based on their
            @@ -908,13 +735,10 @@ java.lang.String getLabelsOrDefault(
                * 
            * * .google.storage.v2.Bucket.RetentionPolicy retention_policy = 22; - * * @return Whether the retentionPolicy field is set. */ boolean hasRetentionPolicy(); /** - * - * *
                * The bucket's retention policy. The retention policy enforces a minimum
                * retention time for all objects contained in the bucket, based on their
            @@ -928,13 +752,10 @@ java.lang.String getLabelsOrDefault(
                * 
            * * .google.storage.v2.Bucket.RetentionPolicy retention_policy = 22; - * * @return The retentionPolicy. */ com.google.storage.v2.Bucket.RetentionPolicy getRetentionPolicy(); /** - * - * *
                * The bucket's retention policy. The retention policy enforces a minimum
                * retention time for all objects contained in the bucket, based on their
            @@ -952,32 +773,24 @@ java.lang.String getLabelsOrDefault(
               com.google.storage.v2.Bucket.RetentionPolicyOrBuilder getRetentionPolicyOrBuilder();
             
               /**
            -   *
            -   *
                * 
                * The bucket's IAM config.
                * 
            * * .google.storage.v2.Bucket.IamConfig iam_config = 23; - * * @return Whether the iamConfig field is set. */ boolean hasIamConfig(); /** - * - * *
                * The bucket's IAM config.
                * 
            * * .google.storage.v2.Bucket.IamConfig iam_config = 23; - * * @return The iamConfig. */ com.google.storage.v2.Bucket.IamConfig getIamConfig(); /** - * - * *
                * The bucket's IAM config.
                * 
            @@ -987,47 +800,36 @@ java.lang.String getLabelsOrDefault( com.google.storage.v2.Bucket.IamConfigOrBuilder getIamConfigOrBuilder(); /** - * - * *
                * Reserved for future use.
                * 
            * * bool satisfies_pzs = 25; - * * @return The satisfiesPzs. */ boolean getSatisfiesPzs(); /** - * - * *
                * Configuration that, if present, specifies the data placement for a
                * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
                * 
            * * .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26; - * * @return Whether the customPlacementConfig field is set. */ boolean hasCustomPlacementConfig(); /** - * - * *
                * Configuration that, if present, specifies the data placement for a
                * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
                * 
            * * .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26; - * * @return The customPlacementConfig. */ com.google.storage.v2.Bucket.CustomPlacementConfig getCustomPlacementConfig(); /** - * - * *
                * Configuration that, if present, specifies the data placement for a
                * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
            @@ -1038,34 +840,26 @@ java.lang.String getLabelsOrDefault(
               com.google.storage.v2.Bucket.CustomPlacementConfigOrBuilder getCustomPlacementConfigOrBuilder();
             
               /**
            -   *
            -   *
                * 
                * The bucket's Autoclass configuration. If there is no configuration, the
                * Autoclass feature will be disabled and have no effect on the bucket.
                * 
            * * .google.storage.v2.Bucket.Autoclass autoclass = 28; - * * @return Whether the autoclass field is set. */ boolean hasAutoclass(); /** - * - * *
                * The bucket's Autoclass configuration. If there is no configuration, the
                * Autoclass feature will be disabled and have no effect on the bucket.
                * 
            * * .google.storage.v2.Bucket.Autoclass autoclass = 28; - * * @return The autoclass. */ com.google.storage.v2.Bucket.Autoclass getAutoclass(); /** - * - * *
                * The bucket's Autoclass configuration. If there is no configuration, the
                * Autoclass feature will be disabled and have no effect on the bucket.
            @@ -1076,93 +870,65 @@ java.lang.String getLabelsOrDefault(
               com.google.storage.v2.Bucket.AutoclassOrBuilder getAutoclassOrBuilder();
             
               /**
            -   *
            -   *
                * 
                * Optional. The bucket's hierarchical namespace configuration. If there is no
                * configuration, the hierarchical namespace feature will be disabled and have
                * no effect on the bucket.
                * 
            * - * - * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the hierarchicalNamespace field is set. */ boolean hasHierarchicalNamespace(); /** - * - * *
                * Optional. The bucket's hierarchical namespace configuration. If there is no
                * configuration, the hierarchical namespace feature will be disabled and have
                * no effect on the bucket.
                * 
            * - * - * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; * @return The hierarchicalNamespace. */ com.google.storage.v2.Bucket.HierarchicalNamespace getHierarchicalNamespace(); /** - * - * *
                * Optional. The bucket's hierarchical namespace configuration. If there is no
                * configuration, the hierarchical namespace feature will be disabled and have
                * no effect on the bucket.
                * 
            * - * - * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.storage.v2.Bucket.HierarchicalNamespaceOrBuilder getHierarchicalNamespaceOrBuilder(); /** - * - * *
                * Optional. The bucket's soft delete policy. The soft delete policy prevents
                * soft-deleted objects from being permanently deleted.
                * 
            * - * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the softDeletePolicy field is set. */ boolean hasSoftDeletePolicy(); /** - * - * *
                * Optional. The bucket's soft delete policy. The soft delete policy prevents
                * soft-deleted objects from being permanently deleted.
                * 
            * - * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; * @return The softDeletePolicy. */ com.google.storage.v2.Bucket.SoftDeletePolicy getSoftDeletePolicy(); /** - * - * *
                * Optional. The bucket's soft delete policy. The soft delete policy prevents
                * soft-deleted objects from being permanently deleted.
                * 
            * - * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.storage.v2.Bucket.SoftDeletePolicyOrBuilder getSoftDeletePolicyOrBuilder(); } diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteRequest.java similarity index 67% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteRequest.java index 665a6bd9e7..72b8b9541f 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,8 +5,6 @@ package com.google.storage.v2; /** - * - * *
              * Message for canceling an in-progress resumable upload.
              * `upload_id` **must** be set.
            @@ -29,55 +12,49 @@
              *
              * Protobuf type {@code google.storage.v2.CancelResumableWriteRequest}
              */
            -public final class CancelResumableWriteRequest extends com.google.protobuf.GeneratedMessageV3
            -    implements
            +public final class CancelResumableWriteRequest extends
            +    com.google.protobuf.GeneratedMessageV3 implements
                 // @@protoc_insertion_point(message_implements:google.storage.v2.CancelResumableWriteRequest)
                 CancelResumableWriteRequestOrBuilder {
            -  private static final long serialVersionUID = 0L;
            +private static final long serialVersionUID = 0L;
               // Use CancelResumableWriteRequest.newBuilder() to construct.
               private CancelResumableWriteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                 super(builder);
               }
            -
               private CancelResumableWriteRequest() {
                 uploadId_ = "";
               }
             
               @java.lang.Override
               @SuppressWarnings({"unused"})
            -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
            +  protected java.lang.Object newInstance(
            +      UnusedPrivateParameter unused) {
                 return new CancelResumableWriteRequest();
               }
             
            -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            -    return com.google.storage.v2.StorageProto
            -        .internal_static_google_storage_v2_CancelResumableWriteRequest_descriptor;
            +  public static final com.google.protobuf.Descriptors.Descriptor
            +      getDescriptor() {
            +    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CancelResumableWriteRequest_descriptor;
               }
             
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
            -    return com.google.storage.v2.StorageProto
            -        .internal_static_google_storage_v2_CancelResumableWriteRequest_fieldAccessorTable
            +    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CancelResumableWriteRequest_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
            -            com.google.storage.v2.CancelResumableWriteRequest.class,
            -            com.google.storage.v2.CancelResumableWriteRequest.Builder.class);
            +            com.google.storage.v2.CancelResumableWriteRequest.class, com.google.storage.v2.CancelResumableWriteRequest.Builder.class);
               }
             
               public static final int UPLOAD_ID_FIELD_NUMBER = 1;
            -
               @SuppressWarnings("serial")
               private volatile java.lang.Object uploadId_ = "";
               /**
            -   *
            -   *
                * 
                * Required. The upload_id of the resumable upload to cancel. This should be
                * copied from the `upload_id` field of `StartResumableWriteResponse`.
                * 
            * * string upload_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uploadId. */ @java.lang.Override @@ -86,30 +63,30 @@ public java.lang.String getUploadId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uploadId_ = s; return s; } } /** - * - * *
                * Required. The upload_id of the resumable upload to cancel. This should be
                * copied from the `upload_id` field of `StartResumableWriteResponse`.
                * 
            * * string upload_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uploadId. */ @java.lang.Override - public com.google.protobuf.ByteString getUploadIdBytes() { + public com.google.protobuf.ByteString + getUploadIdBytes() { java.lang.Object ref = uploadId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uploadId_ = b; return b; } else { @@ -118,7 +95,6 @@ public com.google.protobuf.ByteString getUploadIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,7 +106,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uploadId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uploadId_); } @@ -154,15 +131,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.CancelResumableWriteRequest)) { return super.equals(obj); } - com.google.storage.v2.CancelResumableWriteRequest other = - (com.google.storage.v2.CancelResumableWriteRequest) obj; + com.google.storage.v2.CancelResumableWriteRequest other = (com.google.storage.v2.CancelResumableWriteRequest) obj; - if (!getUploadId().equals(other.getUploadId())) return false; + if (!getUploadId() + .equals(other.getUploadId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,103 +159,98 @@ public int hashCode() { } public static com.google.storage.v2.CancelResumableWriteRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.CancelResumableWriteRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.CancelResumableWriteRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.CancelResumableWriteRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.CancelResumableWriteRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.CancelResumableWriteRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.v2.CancelResumableWriteRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.v2.CancelResumableWriteRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.CancelResumableWriteRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.CancelResumableWriteRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.CancelResumableWriteRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.CancelResumableWriteRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.CancelResumableWriteRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.CancelResumableWriteRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.CancelResumableWriteRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * Message for canceling an in-progress resumable upload.
                * `upload_id` **must** be set.
            @@ -286,32 +258,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
                *
                * Protobuf type {@code google.storage.v2.CancelResumableWriteRequest}
                */
            -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
            -      implements
            +  public static final class Builder extends
            +      com.google.protobuf.GeneratedMessageV3.Builder implements
                   // @@protoc_insertion_point(builder_implements:google.storage.v2.CancelResumableWriteRequest)
                   com.google.storage.v2.CancelResumableWriteRequestOrBuilder {
            -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            -      return com.google.storage.v2.StorageProto
            -          .internal_static_google_storage_v2_CancelResumableWriteRequest_descriptor;
            +    public static final com.google.protobuf.Descriptors.Descriptor
            +        getDescriptor() {
            +      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CancelResumableWriteRequest_descriptor;
                 }
             
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
            -      return com.google.storage.v2.StorageProto
            -          .internal_static_google_storage_v2_CancelResumableWriteRequest_fieldAccessorTable
            +      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CancelResumableWriteRequest_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
            -              com.google.storage.v2.CancelResumableWriteRequest.class,
            -              com.google.storage.v2.CancelResumableWriteRequest.Builder.class);
            +              com.google.storage.v2.CancelResumableWriteRequest.class, com.google.storage.v2.CancelResumableWriteRequest.Builder.class);
                 }
             
                 // Construct using com.google.storage.v2.CancelResumableWriteRequest.newBuilder()
            -    private Builder() {}
            +    private Builder() {
             
            -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            -      super(parent);
                 }
             
            +    private Builder(
            +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            +      super(parent);
            +
            +    }
                 @java.lang.Override
                 public Builder clear() {
                   super.clear();
            @@ -321,9 +294,9 @@ public Builder clear() {
                 }
             
                 @java.lang.Override
            -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            -      return com.google.storage.v2.StorageProto
            -          .internal_static_google_storage_v2_CancelResumableWriteRequest_descriptor;
            +    public com.google.protobuf.Descriptors.Descriptor
            +        getDescriptorForType() {
            +      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CancelResumableWriteRequest_descriptor;
                 }
             
                 @java.lang.Override
            @@ -342,11 +315,8 @@ public com.google.storage.v2.CancelResumableWriteRequest build() {
             
                 @java.lang.Override
                 public com.google.storage.v2.CancelResumableWriteRequest buildPartial() {
            -      com.google.storage.v2.CancelResumableWriteRequest result =
            -          new com.google.storage.v2.CancelResumableWriteRequest(this);
            -      if (bitField0_ != 0) {
            -        buildPartial0(result);
            -      }
            +      com.google.storage.v2.CancelResumableWriteRequest result = new com.google.storage.v2.CancelResumableWriteRequest(this);
            +      if (bitField0_ != 0) { buildPartial0(result); }
                   onBuilt();
                   return result;
                 }
            @@ -362,39 +332,38 @@ private void buildPartial0(com.google.storage.v2.CancelResumableWriteRequest res
                 public Builder clone() {
                   return super.clone();
                 }
            -
                 @java.lang.Override
                 public Builder setField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field,
            +        java.lang.Object value) {
                   return super.setField(field, value);
                 }
            -
                 @java.lang.Override
            -    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
            +    public Builder clearField(
            +        com.google.protobuf.Descriptors.FieldDescriptor field) {
                   return super.clearField(field);
                 }
            -
                 @java.lang.Override
            -    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
            +    public Builder clearOneof(
            +        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                   return super.clearOneof(oneof);
                 }
            -
                 @java.lang.Override
                 public Builder setRepeatedField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field,
            +        int index, java.lang.Object value) {
                   return super.setRepeatedField(field, index, value);
                 }
            -
                 @java.lang.Override
                 public Builder addRepeatedField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field,
            +        java.lang.Object value) {
                   return super.addRepeatedField(field, value);
                 }
            -
                 @java.lang.Override
                 public Builder mergeFrom(com.google.protobuf.Message other) {
                   if (other instanceof com.google.storage.v2.CancelResumableWriteRequest) {
            -        return mergeFrom((com.google.storage.v2.CancelResumableWriteRequest) other);
            +        return mergeFrom((com.google.storage.v2.CancelResumableWriteRequest)other);
                   } else {
                     super.mergeFrom(other);
                     return this;
            @@ -402,8 +371,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
                 }
             
                 public Builder mergeFrom(com.google.storage.v2.CancelResumableWriteRequest other) {
            -      if (other == com.google.storage.v2.CancelResumableWriteRequest.getDefaultInstance())
            -        return this;
            +      if (other == com.google.storage.v2.CancelResumableWriteRequest.getDefaultInstance()) return this;
                   if (!other.getUploadId().isEmpty()) {
                     uploadId_ = other.uploadId_;
                     bitField0_ |= 0x00000001;
            @@ -435,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) {
            @@ -457,26 +423,23 @@ public Builder mergeFrom(
                   } // finally
                   return this;
                 }
            -
                 private int bitField0_;
             
                 private java.lang.Object uploadId_ = "";
                 /**
            -     *
            -     *
                  * 
                  * Required. The upload_id of the resumable upload to cancel. This should be
                  * copied from the `upload_id` field of `StartResumableWriteResponse`.
                  * 
            * * string upload_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uploadId. */ public java.lang.String getUploadId() { java.lang.Object ref = uploadId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uploadId_ = s; return s; @@ -485,22 +448,21 @@ public java.lang.String getUploadId() { } } /** - * - * *
                  * Required. The upload_id of the resumable upload to cancel. This should be
                  * copied from the `upload_id` field of `StartResumableWriteResponse`.
                  * 
            * * string upload_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uploadId. */ - public com.google.protobuf.ByteString getUploadIdBytes() { + public com.google.protobuf.ByteString + getUploadIdBytes() { java.lang.Object ref = uploadId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uploadId_ = b; return b; } else { @@ -508,37 +470,30 @@ public com.google.protobuf.ByteString getUploadIdBytes() { } } /** - * - * *
                  * Required. The upload_id of the resumable upload to cancel. This should be
                  * copied from the `upload_id` field of `StartResumableWriteResponse`.
                  * 
            * * string upload_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The uploadId to set. * @return This builder for chaining. */ - public Builder setUploadId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUploadId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uploadId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * Required. The upload_id of the resumable upload to cancel. This should be
                  * copied from the `upload_id` field of `StartResumableWriteResponse`.
                  * 
            * * string upload_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUploadId() { @@ -548,31 +503,27 @@ public Builder clearUploadId() { return this; } /** - * - * *
                  * Required. The upload_id of the resumable upload to cancel. This should be
                  * copied from the `upload_id` field of `StartResumableWriteResponse`.
                  * 
            * * string upload_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for uploadId to set. * @return This builder for chaining. */ - public Builder setUploadIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUploadIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uploadId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -582,12 +533,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.CancelResumableWriteRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.CancelResumableWriteRequest) private static final com.google.storage.v2.CancelResumableWriteRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.CancelResumableWriteRequest(); } @@ -596,27 +547,27 @@ public static com.google.storage.v2.CancelResumableWriteRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CancelResumableWriteRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CancelResumableWriteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -631,4 +582,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.storage.v2.CancelResumableWriteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteRequestOrBuilder.java similarity index 56% 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 7f147ed6b6..71c847c0da 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,53 +1,32 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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 520b8eafae..b97ddd0fc8 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,8 +5,6 @@ package com.google.storage.v2; /** - * - * *
              * Empty response message for canceling an in-progress resumable upload, will be
              * extended as needed.
            @@ -29,41 +12,39 @@
              *
              * Protobuf type {@code google.storage.v2.CancelResumableWriteResponse}
              */
            -public final class CancelResumableWriteResponse extends com.google.protobuf.GeneratedMessageV3
            -    implements
            +public final class CancelResumableWriteResponse extends
            +    com.google.protobuf.GeneratedMessageV3 implements
                 // @@protoc_insertion_point(message_implements:google.storage.v2.CancelResumableWriteResponse)
                 CancelResumableWriteResponseOrBuilder {
            -  private static final long serialVersionUID = 0L;
            +private static final long serialVersionUID = 0L;
               // Use CancelResumableWriteResponse.newBuilder() to construct.
               private CancelResumableWriteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                 super(builder);
               }
            -
            -  private CancelResumableWriteResponse() {}
            +  private CancelResumableWriteResponse() {
            +  }
             
               @java.lang.Override
               @SuppressWarnings({"unused"})
            -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
            +  protected java.lang.Object newInstance(
            +      UnusedPrivateParameter unused) {
                 return new CancelResumableWriteResponse();
               }
             
            -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            -    return com.google.storage.v2.StorageProto
            -        .internal_static_google_storage_v2_CancelResumableWriteResponse_descriptor;
            +  public static final com.google.protobuf.Descriptors.Descriptor
            +      getDescriptor() {
            +    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CancelResumableWriteResponse_descriptor;
               }
             
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
            -    return com.google.storage.v2.StorageProto
            -        .internal_static_google_storage_v2_CancelResumableWriteResponse_fieldAccessorTable
            +    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CancelResumableWriteResponse_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
            -            com.google.storage.v2.CancelResumableWriteResponse.class,
            -            com.google.storage.v2.CancelResumableWriteResponse.Builder.class);
            +            com.google.storage.v2.CancelResumableWriteResponse.class, com.google.storage.v2.CancelResumableWriteResponse.Builder.class);
               }
             
               private byte memoizedIsInitialized = -1;
            -
               @java.lang.Override
               public final boolean isInitialized() {
                 byte isInitialized = memoizedIsInitialized;
            @@ -75,7 +56,8 @@ public final boolean isInitialized() {
               }
             
               @java.lang.Override
            -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
            +  public void writeTo(com.google.protobuf.CodedOutputStream output)
            +                      throws java.io.IOException {
                 getUnknownFields().writeTo(output);
               }
             
            @@ -93,13 +75,12 @@ public int getSerializedSize() {
               @java.lang.Override
               public boolean equals(final java.lang.Object obj) {
                 if (obj == this) {
            -      return true;
            +     return true;
                 }
                 if (!(obj instanceof com.google.storage.v2.CancelResumableWriteResponse)) {
                   return super.equals(obj);
                 }
            -    com.google.storage.v2.CancelResumableWriteResponse other =
            -        (com.google.storage.v2.CancelResumableWriteResponse) obj;
            +    com.google.storage.v2.CancelResumableWriteResponse other = (com.google.storage.v2.CancelResumableWriteResponse) obj;
             
                 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
                 return true;
            @@ -118,103 +99,98 @@ public int hashCode() {
               }
             
               public static com.google.storage.v2.CancelResumableWriteResponse parseFrom(
            -      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
            +      java.nio.ByteBuffer data)
            +      throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
            -
               public static com.google.storage.v2.CancelResumableWriteResponse parseFrom(
            -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      java.nio.ByteBuffer data,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
            -
               public static com.google.storage.v2.CancelResumableWriteResponse parseFrom(
                   com.google.protobuf.ByteString data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
            -
               public static com.google.storage.v2.CancelResumableWriteResponse parseFrom(
                   com.google.protobuf.ByteString data,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
            -
               public static com.google.storage.v2.CancelResumableWriteResponse parseFrom(byte[] data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
            -
               public static com.google.storage.v2.CancelResumableWriteResponse parseFrom(
            -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      byte[] data,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
            -
            -  public static com.google.storage.v2.CancelResumableWriteResponse parseFrom(
            -      java.io.InputStream input) throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
            +  public static com.google.storage.v2.CancelResumableWriteResponse parseFrom(java.io.InputStream input)
            +      throws java.io.IOException {
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input);
               }
            -
               public static com.google.storage.v2.CancelResumableWriteResponse parseFrom(
            -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      java.io.InputStream input,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            -        PARSER, input, extensionRegistry);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input, extensionRegistry);
               }
             
            -  public static com.google.storage.v2.CancelResumableWriteResponse parseDelimitedFrom(
            -      java.io.InputStream input) throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
            +  public static com.google.storage.v2.CancelResumableWriteResponse parseDelimitedFrom(java.io.InputStream input)
            +      throws java.io.IOException {
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseDelimitedWithIOException(PARSER, input);
               }
             
               public static com.google.storage.v2.CancelResumableWriteResponse parseDelimitedFrom(
            -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      java.io.InputStream input,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            -        PARSER, input, extensionRegistry);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
               }
            -
               public static com.google.storage.v2.CancelResumableWriteResponse parseFrom(
            -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
            +      com.google.protobuf.CodedInputStream input)
            +      throws java.io.IOException {
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input);
               }
            -
               public static com.google.storage.v2.CancelResumableWriteResponse parseFrom(
                   com.google.protobuf.CodedInputStream input,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            -        PARSER, input, extensionRegistry);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input, extensionRegistry);
               }
             
               @java.lang.Override
            -  public Builder newBuilderForType() {
            -    return newBuilder();
            -  }
            -
            +  public Builder newBuilderForType() { return newBuilder(); }
               public static Builder newBuilder() {
                 return DEFAULT_INSTANCE.toBuilder();
               }
            -
               public static Builder newBuilder(com.google.storage.v2.CancelResumableWriteResponse prototype) {
                 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
               }
            -
               @java.lang.Override
               public Builder toBuilder() {
            -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
            +    return this == DEFAULT_INSTANCE
            +        ? new Builder() : new Builder().mergeFrom(this);
               }
             
               @java.lang.Override
            -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            +  protected Builder newBuilderForType(
            +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 Builder builder = new Builder(parent);
                 return builder;
               }
               /**
            -   *
            -   *
                * 
                * Empty response message for canceling an in-progress resumable upload, will be
                * extended as needed.
            @@ -222,32 +198,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
                *
                * Protobuf type {@code google.storage.v2.CancelResumableWriteResponse}
                */
            -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
            -      implements
            +  public static final class Builder extends
            +      com.google.protobuf.GeneratedMessageV3.Builder implements
                   // @@protoc_insertion_point(builder_implements:google.storage.v2.CancelResumableWriteResponse)
                   com.google.storage.v2.CancelResumableWriteResponseOrBuilder {
            -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            -      return com.google.storage.v2.StorageProto
            -          .internal_static_google_storage_v2_CancelResumableWriteResponse_descriptor;
            +    public static final com.google.protobuf.Descriptors.Descriptor
            +        getDescriptor() {
            +      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CancelResumableWriteResponse_descriptor;
                 }
             
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
            -      return com.google.storage.v2.StorageProto
            -          .internal_static_google_storage_v2_CancelResumableWriteResponse_fieldAccessorTable
            +      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CancelResumableWriteResponse_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
            -              com.google.storage.v2.CancelResumableWriteResponse.class,
            -              com.google.storage.v2.CancelResumableWriteResponse.Builder.class);
            +              com.google.storage.v2.CancelResumableWriteResponse.class, com.google.storage.v2.CancelResumableWriteResponse.Builder.class);
                 }
             
                 // Construct using com.google.storage.v2.CancelResumableWriteResponse.newBuilder()
            -    private Builder() {}
            +    private Builder() {
             
            -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            -      super(parent);
                 }
             
            +    private Builder(
            +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            +      super(parent);
            +
            +    }
                 @java.lang.Override
                 public Builder clear() {
                   super.clear();
            @@ -255,9 +232,9 @@ public Builder clear() {
                 }
             
                 @java.lang.Override
            -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            -      return com.google.storage.v2.StorageProto
            -          .internal_static_google_storage_v2_CancelResumableWriteResponse_descriptor;
            +    public com.google.protobuf.Descriptors.Descriptor
            +        getDescriptorForType() {
            +      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CancelResumableWriteResponse_descriptor;
                 }
             
                 @java.lang.Override
            @@ -276,8 +253,7 @@ public com.google.storage.v2.CancelResumableWriteResponse build() {
             
                 @java.lang.Override
                 public com.google.storage.v2.CancelResumableWriteResponse buildPartial() {
            -      com.google.storage.v2.CancelResumableWriteResponse result =
            -          new com.google.storage.v2.CancelResumableWriteResponse(this);
            +      com.google.storage.v2.CancelResumableWriteResponse result = new com.google.storage.v2.CancelResumableWriteResponse(this);
                   onBuilt();
                   return result;
                 }
            @@ -286,39 +262,38 @@ public com.google.storage.v2.CancelResumableWriteResponse buildPartial() {
                 public Builder clone() {
                   return super.clone();
                 }
            -
                 @java.lang.Override
                 public Builder setField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field,
            +        java.lang.Object value) {
                   return super.setField(field, value);
                 }
            -
                 @java.lang.Override
            -    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
            +    public Builder clearField(
            +        com.google.protobuf.Descriptors.FieldDescriptor field) {
                   return super.clearField(field);
                 }
            -
                 @java.lang.Override
            -    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
            +    public Builder clearOneof(
            +        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                   return super.clearOneof(oneof);
                 }
            -
                 @java.lang.Override
                 public Builder setRepeatedField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field,
            +        int index, java.lang.Object value) {
                   return super.setRepeatedField(field, index, value);
                 }
            -
                 @java.lang.Override
                 public Builder addRepeatedField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field,
            +        java.lang.Object value) {
                   return super.addRepeatedField(field, value);
                 }
            -
                 @java.lang.Override
                 public Builder mergeFrom(com.google.protobuf.Message other) {
                   if (other instanceof com.google.storage.v2.CancelResumableWriteResponse) {
            -        return mergeFrom((com.google.storage.v2.CancelResumableWriteResponse) other);
            +        return mergeFrom((com.google.storage.v2.CancelResumableWriteResponse)other);
                   } else {
                     super.mergeFrom(other);
                     return this;
            @@ -326,8 +301,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
                 }
             
                 public Builder mergeFrom(com.google.storage.v2.CancelResumableWriteResponse other) {
            -      if (other == com.google.storage.v2.CancelResumableWriteResponse.getDefaultInstance())
            -        return this;
            +      if (other == com.google.storage.v2.CancelResumableWriteResponse.getDefaultInstance()) return this;
                   this.mergeUnknownFields(other.getUnknownFields());
                   onChanged();
                   return this;
            @@ -354,13 +328,12 @@ public Builder mergeFrom(
                         case 0:
                           done = true;
                           break;
            -            default:
            -              {
            -                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            -                  done = true; // was an endgroup tag
            -                }
            -                break;
            -              } // default:
            +            default: {
            +              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            +                done = true; // was an endgroup tag
            +              }
            +              break;
            +            } // default:
                       } // switch (tag)
                     } // while (!done)
                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            @@ -370,9 +343,9 @@ public Builder mergeFrom(
                   } // finally
                   return this;
                 }
            -
                 @java.lang.Override
            -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
            +    public final Builder setUnknownFields(
            +        final com.google.protobuf.UnknownFieldSet unknownFields) {
                   return super.setUnknownFields(unknownFields);
                 }
             
            @@ -382,12 +355,12 @@ public final Builder mergeUnknownFields(
                   return super.mergeUnknownFields(unknownFields);
                 }
             
            +
                 // @@protoc_insertion_point(builder_scope:google.storage.v2.CancelResumableWriteResponse)
               }
             
               // @@protoc_insertion_point(class_scope:google.storage.v2.CancelResumableWriteResponse)
               private static final com.google.storage.v2.CancelResumableWriteResponse DEFAULT_INSTANCE;
            -
               static {
                 DEFAULT_INSTANCE = new com.google.storage.v2.CancelResumableWriteResponse();
               }
            @@ -396,27 +369,27 @@ public static com.google.storage.v2.CancelResumableWriteResponse getDefaultInsta
                 return DEFAULT_INSTANCE;
               }
             
            -  private static final com.google.protobuf.Parser PARSER =
            -      new com.google.protobuf.AbstractParser() {
            -        @java.lang.Override
            -        public CancelResumableWriteResponse parsePartialFrom(
            -            com.google.protobuf.CodedInputStream input,
            -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            -            throws com.google.protobuf.InvalidProtocolBufferException {
            -          Builder builder = newBuilder();
            -          try {
            -            builder.mergeFrom(input, extensionRegistry);
            -          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            -            throw e.setUnfinishedMessage(builder.buildPartial());
            -          } catch (com.google.protobuf.UninitializedMessageException e) {
            -            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
            -          } catch (java.io.IOException e) {
            -            throw new com.google.protobuf.InvalidProtocolBufferException(e)
            -                .setUnfinishedMessage(builder.buildPartial());
            -          }
            -          return builder.buildPartial();
            -        }
            -      };
            +  private static final com.google.protobuf.Parser
            +      PARSER = new com.google.protobuf.AbstractParser() {
            +    @java.lang.Override
            +    public CancelResumableWriteResponse parsePartialFrom(
            +        com.google.protobuf.CodedInputStream input,
            +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +        throws com.google.protobuf.InvalidProtocolBufferException {
            +      Builder builder = newBuilder();
            +      try {
            +        builder.mergeFrom(input, extensionRegistry);
            +      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            +        throw e.setUnfinishedMessage(builder.buildPartial());
            +      } catch (com.google.protobuf.UninitializedMessageException e) {
            +        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
            +      } catch (java.io.IOException e) {
            +        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            +            .setUnfinishedMessage(builder.buildPartial());
            +      }
            +      return builder.buildPartial();
            +    }
            +  };
             
               public static com.google.protobuf.Parser parser() {
                 return PARSER;
            @@ -431,4 +404,6 @@ public com.google.protobuf.Parser getParserForType
               public com.google.storage.v2.CancelResumableWriteResponse getDefaultInstanceForType() {
                 return DEFAULT_INSTANCE;
               }
            +
             }
            +
            diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteResponseOrBuilder.java
            new file mode 100644
            index 0000000000..91bfb9fa5b
            --- /dev/null
            +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteResponseOrBuilder.java
            @@ -0,0 +1,10 @@
            +// Generated by the protocol buffer compiler.  DO NOT EDIT!
            +// source: google/storage/v2/storage.proto
            +
            +// Protobuf Java Version: 3.25.3
            +package com.google.storage.v2;
            +
            +public interface CancelResumableWriteResponseOrBuilder extends
            +    // @@protoc_insertion_point(interface_extends:google.storage.v2.CancelResumableWriteResponse)
            +    com.google.protobuf.MessageOrBuilder {
            +}
            diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedData.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedData.java
            similarity index 68%
            rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedData.java
            rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedData.java
            index 824ba38894..ea1660fa48 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,18 +1,3 @@
            -/*
            - * Copyright 2024 Google LLC
            - *
            - * Licensed under the Apache License, Version 2.0 (the "License");
            - * you may not use this file except in compliance with the License.
            - * You may obtain a copy of the License at
            - *
            - *     https://www.apache.org/licenses/LICENSE-2.0
            - *
            - * Unless required by applicable law or agreed to in writing, software
            - * distributed under the License is distributed on an "AS IS" BASIS,
            - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            - * See the License for the specific language governing permissions and
            - * limitations under the License.
            - */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
            @@ -20,8 +5,6 @@
             package com.google.storage.v2;
             
             /**
            - *
            - *
              * 
              * Message used to convey content being read or written, along with an optional
              * checksum.
            @@ -29,53 +12,48 @@
              *
              * Protobuf type {@code google.storage.v2.ChecksummedData}
              */
            -public final class ChecksummedData extends com.google.protobuf.GeneratedMessageV3
            -    implements
            +public final class ChecksummedData extends
            +    com.google.protobuf.GeneratedMessageV3 implements
                 // @@protoc_insertion_point(message_implements:google.storage.v2.ChecksummedData)
                 ChecksummedDataOrBuilder {
            -  private static final long serialVersionUID = 0L;
            +private static final long serialVersionUID = 0L;
               // Use ChecksummedData.newBuilder() to construct.
               private ChecksummedData(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                 super(builder);
               }
            -
               private ChecksummedData() {
                 content_ = com.google.protobuf.ByteString.EMPTY;
               }
             
               @java.lang.Override
               @SuppressWarnings({"unused"})
            -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
            +  protected java.lang.Object newInstance(
            +      UnusedPrivateParameter unused) {
                 return new ChecksummedData();
               }
             
            -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            -    return com.google.storage.v2.StorageProto
            -        .internal_static_google_storage_v2_ChecksummedData_descriptor;
            +  public static final com.google.protobuf.Descriptors.Descriptor
            +      getDescriptor() {
            +    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ChecksummedData_descriptor;
               }
             
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
            -    return com.google.storage.v2.StorageProto
            -        .internal_static_google_storage_v2_ChecksummedData_fieldAccessorTable
            +    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ChecksummedData_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
            -            com.google.storage.v2.ChecksummedData.class,
            -            com.google.storage.v2.ChecksummedData.Builder.class);
            +            com.google.storage.v2.ChecksummedData.class, com.google.storage.v2.ChecksummedData.Builder.class);
               }
             
               private int bitField0_;
               public static final int CONTENT_FIELD_NUMBER = 1;
               private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY;
               /**
            -   *
            -   *
                * 
                * Optional. The data.
                * 
            * * bytes content = 1 [ctype = CORD, (.google.api.field_behavior) = OPTIONAL]; - * * @return The content. */ @java.lang.Override @@ -86,14 +64,11 @@ public com.google.protobuf.ByteString getContent() { public static final int CRC32C_FIELD_NUMBER = 2; private int crc32C_ = 0; /** - * - * *
                * If set, the CRC32C digest of the content field.
                * 
            * * optional fixed32 crc32c = 2; - * * @return Whether the crc32c field is set. */ @java.lang.Override @@ -101,14 +76,11 @@ public boolean hasCrc32C() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * If set, the CRC32C digest of the content field.
                * 
            * * optional fixed32 crc32c = 2; - * * @return The crc32c. */ @java.lang.Override @@ -117,7 +89,6 @@ public int getCrc32C() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -129,7 +100,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!content_.isEmpty()) { output.writeBytes(1, content_); } @@ -146,10 +118,12 @@ public int getSerializedSize() { size = 0; if (!content_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, content_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, content_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeFixed32Size(2, crc32C_); + size += com.google.protobuf.CodedOutputStream + .computeFixed32Size(2, crc32C_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -159,17 +133,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.ChecksummedData)) { return super.equals(obj); } com.google.storage.v2.ChecksummedData other = (com.google.storage.v2.ChecksummedData) obj; - if (!getContent().equals(other.getContent())) return false; + if (!getContent() + .equals(other.getContent())) return false; if (hasCrc32C() != other.hasCrc32C()) return false; if (hasCrc32C()) { - if (getCrc32C() != other.getCrc32C()) return false; + if (getCrc32C() + != other.getCrc32C()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -193,103 +169,99 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.ChecksummedData parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.ChecksummedData parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ChecksummedData parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.v2.ChecksummedData parseFrom(com.google.protobuf.ByteString data) + public static com.google.storage.v2.ChecksummedData parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ChecksummedData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.ChecksummedData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ChecksummedData parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.ChecksummedData parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.ChecksummedData parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.storage.v2.ChecksummedData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.ChecksummedData parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.ChecksummedData parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.ChecksummedData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.ChecksummedData prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * Message used to convey content being read or written, along with an optional
                * checksum.
            @@ -297,32 +269,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
                *
                * Protobuf type {@code google.storage.v2.ChecksummedData}
                */
            -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
            -      implements
            +  public static final class Builder extends
            +      com.google.protobuf.GeneratedMessageV3.Builder implements
                   // @@protoc_insertion_point(builder_implements:google.storage.v2.ChecksummedData)
                   com.google.storage.v2.ChecksummedDataOrBuilder {
            -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            -      return com.google.storage.v2.StorageProto
            -          .internal_static_google_storage_v2_ChecksummedData_descriptor;
            +    public static final com.google.protobuf.Descriptors.Descriptor
            +        getDescriptor() {
            +      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ChecksummedData_descriptor;
                 }
             
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
            -      return com.google.storage.v2.StorageProto
            -          .internal_static_google_storage_v2_ChecksummedData_fieldAccessorTable
            +      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ChecksummedData_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
            -              com.google.storage.v2.ChecksummedData.class,
            -              com.google.storage.v2.ChecksummedData.Builder.class);
            +              com.google.storage.v2.ChecksummedData.class, com.google.storage.v2.ChecksummedData.Builder.class);
                 }
             
                 // Construct using com.google.storage.v2.ChecksummedData.newBuilder()
            -    private Builder() {}
            +    private Builder() {
             
            -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            -      super(parent);
                 }
             
            +    private Builder(
            +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            +      super(parent);
            +
            +    }
                 @java.lang.Override
                 public Builder clear() {
                   super.clear();
            @@ -333,9 +306,9 @@ public Builder clear() {
                 }
             
                 @java.lang.Override
            -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            -      return com.google.storage.v2.StorageProto
            -          .internal_static_google_storage_v2_ChecksummedData_descriptor;
            +    public com.google.protobuf.Descriptors.Descriptor
            +        getDescriptorForType() {
            +      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ChecksummedData_descriptor;
                 }
             
                 @java.lang.Override
            @@ -354,11 +327,8 @@ public com.google.storage.v2.ChecksummedData build() {
             
                 @java.lang.Override
                 public com.google.storage.v2.ChecksummedData buildPartial() {
            -      com.google.storage.v2.ChecksummedData result =
            -          new com.google.storage.v2.ChecksummedData(this);
            -      if (bitField0_ != 0) {
            -        buildPartial0(result);
            -      }
            +      com.google.storage.v2.ChecksummedData result = new com.google.storage.v2.ChecksummedData(this);
            +      if (bitField0_ != 0) { buildPartial0(result); }
                   onBuilt();
                   return result;
                 }
            @@ -380,39 +350,38 @@ private void buildPartial0(com.google.storage.v2.ChecksummedData result) {
                 public Builder clone() {
                   return super.clone();
                 }
            -
                 @java.lang.Override
                 public Builder setField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field,
            +        java.lang.Object value) {
                   return super.setField(field, value);
                 }
            -
                 @java.lang.Override
            -    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
            +    public Builder clearField(
            +        com.google.protobuf.Descriptors.FieldDescriptor field) {
                   return super.clearField(field);
                 }
            -
                 @java.lang.Override
            -    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
            +    public Builder clearOneof(
            +        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                   return super.clearOneof(oneof);
                 }
            -
                 @java.lang.Override
                 public Builder setRepeatedField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field,
            +        int index, java.lang.Object value) {
                   return super.setRepeatedField(field, index, value);
                 }
            -
                 @java.lang.Override
                 public Builder addRepeatedField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field,
            +        java.lang.Object value) {
                   return super.addRepeatedField(field, value);
                 }
            -
                 @java.lang.Override
                 public Builder mergeFrom(com.google.protobuf.Message other) {
                   if (other instanceof com.google.storage.v2.ChecksummedData) {
            -        return mergeFrom((com.google.storage.v2.ChecksummedData) other);
            +        return mergeFrom((com.google.storage.v2.ChecksummedData)other);
                   } else {
                     super.mergeFrom(other);
                     return this;
            @@ -453,25 +422,22 @@ public Builder mergeFrom(
                         case 0:
                           done = true;
                           break;
            -            case 10:
            -              {
            -                content_ = input.readBytes();
            -                bitField0_ |= 0x00000001;
            -                break;
            -              } // case 10
            -            case 21:
            -              {
            -                crc32C_ = input.readFixed32();
            -                bitField0_ |= 0x00000002;
            -                break;
            -              } // case 21
            -            default:
            -              {
            -                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            -                  done = true; // was an endgroup tag
            -                }
            -                break;
            -              } // default:
            +            case 10: {
            +              content_ = input.readBytes();
            +              bitField0_ |= 0x00000001;
            +              break;
            +            } // case 10
            +            case 21: {
            +              crc32C_ = input.readFixed32();
            +              bitField0_ |= 0x00000002;
            +              break;
            +            } // case 21
            +            default: {
            +              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            +                done = true; // was an endgroup tag
            +              }
            +              break;
            +            } // default:
                       } // switch (tag)
                     } // while (!done)
                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            @@ -481,19 +447,15 @@ public Builder mergeFrom(
                   } // finally
                   return this;
                 }
            -
                 private int bitField0_;
             
                 private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY;
                 /**
            -     *
            -     *
                  * 
                  * Optional. The data.
                  * 
            * * bytes content = 1 [ctype = CORD, (.google.api.field_behavior) = OPTIONAL]; - * * @return The content. */ @java.lang.Override @@ -501,35 +463,27 @@ public com.google.protobuf.ByteString getContent() { return content_; } /** - * - * *
                  * Optional. The data.
                  * 
            * * bytes content = 1 [ctype = CORD, (.google.api.field_behavior) = OPTIONAL]; - * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } content_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * Optional. The data.
                  * 
            * * bytes content = 1 [ctype = CORD, (.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearContent() { @@ -539,16 +493,13 @@ public Builder clearContent() { return this; } - private int crc32C_; + private int crc32C_ ; /** - * - * *
                  * If set, the CRC32C digest of the content field.
                  * 
            * * optional fixed32 crc32c = 2; - * * @return Whether the crc32c field is set. */ @java.lang.Override @@ -556,14 +507,11 @@ public boolean hasCrc32C() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                  * If set, the CRC32C digest of the content field.
                  * 
            * * optional fixed32 crc32c = 2; - * * @return The crc32c. */ @java.lang.Override @@ -571,14 +519,11 @@ public int getCrc32C() { return crc32C_; } /** - * - * *
                  * If set, the CRC32C digest of the content field.
                  * 
            * * optional fixed32 crc32c = 2; - * * @param value The crc32c to set. * @return This builder for chaining. */ @@ -590,14 +535,11 @@ public Builder setCrc32C(int value) { return this; } /** - * - * *
                  * If set, the CRC32C digest of the content field.
                  * 
            * * optional fixed32 crc32c = 2; - * * @return This builder for chaining. */ public Builder clearCrc32C() { @@ -606,9 +548,9 @@ public Builder clearCrc32C() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -618,12 +560,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.ChecksummedData) } // @@protoc_insertion_point(class_scope:google.storage.v2.ChecksummedData) private static final com.google.storage.v2.ChecksummedData DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.ChecksummedData(); } @@ -632,27 +574,27 @@ public static com.google.storage.v2.ChecksummedData getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ChecksummedData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChecksummedData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -667,4 +609,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.ChecksummedData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedDataOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ChecksummedDataOrBuilder.java similarity index 57% 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 d5199d01d6..bb09ff65b7 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,63 +1,38 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 package com.google.storage.v2; -public interface ChecksummedDataOrBuilder - extends +public interface ChecksummedDataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.ChecksummedData) com.google.protobuf.MessageOrBuilder { /** - * - * *
                * Optional. The data.
                * 
            * * bytes content = 1 [ctype = CORD, (.google.api.field_behavior) = OPTIONAL]; - * * @return The content. */ com.google.protobuf.ByteString getContent(); /** - * - * *
                * If set, the CRC32C digest of the content field.
                * 
            * * optional fixed32 crc32c = 2; - * * @return Whether the crc32c field is set. */ boolean hasCrc32C(); /** - * - * *
                * If set, the CRC32C digest of the content field.
                * 
            * * optional fixed32 crc32c = 2; - * * @return The crc32c. */ int getCrc32C(); diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonObjectRequestParams.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonObjectRequestParams.java similarity index 70% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonObjectRequestParams.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonObjectRequestParams.java index 52a536ab54..85c8d9cf78 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,24 +5,21 @@ 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; @@ -46,39 +28,34 @@ private CommonObjectRequestParams() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CommonObjectRequestParams(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CommonObjectRequestParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CommonObjectRequestParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CommonObjectRequestParams_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CommonObjectRequestParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.CommonObjectRequestParams.class, - com.google.storage.v2.CommonObjectRequestParams.Builder.class); + com.google.storage.v2.CommonObjectRequestParams.class, com.google.storage.v2.CommonObjectRequestParams.Builder.class); } public static final int ENCRYPTION_ALGORITHM_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object encryptionAlgorithm_ = ""; /** - * - * *
                * Encryption algorithm used with the Customer-Supplied Encryption Keys
                * feature.
                * 
            * * string encryption_algorithm = 1; - * * @return The encryptionAlgorithm. */ @java.lang.Override @@ -87,30 +64,30 @@ public java.lang.String getEncryptionAlgorithm() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); encryptionAlgorithm_ = s; return s; } } /** - * - * *
                * Encryption algorithm used with the Customer-Supplied Encryption Keys
                * feature.
                * 
            * * string encryption_algorithm = 1; - * * @return The bytes for encryptionAlgorithm. */ @java.lang.Override - public com.google.protobuf.ByteString getEncryptionAlgorithmBytes() { + public com.google.protobuf.ByteString + getEncryptionAlgorithmBytes() { java.lang.Object ref = encryptionAlgorithm_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); encryptionAlgorithm_ = b; return b; } else { @@ -121,15 +98,12 @@ public com.google.protobuf.ByteString getEncryptionAlgorithmBytes() { public static final int ENCRYPTION_KEY_BYTES_FIELD_NUMBER = 4; private com.google.protobuf.ByteString encryptionKeyBytes_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
                * Encryption key used with the Customer-Supplied Encryption Keys feature.
                * In raw bytes format (not base64-encoded).
                * 
            * * bytes encryption_key_bytes = 4; - * * @return The encryptionKeyBytes. */ @java.lang.Override @@ -138,18 +112,14 @@ public com.google.protobuf.ByteString getEncryptionKeyBytes() { } public static final int ENCRYPTION_KEY_SHA256_BYTES_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString encryptionKeySha256Bytes_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString encryptionKeySha256Bytes_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
                * SHA256 hash of encryption key used with the Customer-Supplied Encryption
                * Keys feature.
                * 
            * * bytes encryption_key_sha256_bytes = 5; - * * @return The encryptionKeySha256Bytes. */ @java.lang.Override @@ -158,7 +128,6 @@ public com.google.protobuf.ByteString getEncryptionKeySha256Bytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -170,7 +139,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionAlgorithm_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, encryptionAlgorithm_); } @@ -193,10 +163,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, encryptionAlgorithm_); } if (!encryptionKeyBytes_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, encryptionKeyBytes_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, encryptionKeyBytes_); } if (!encryptionKeySha256Bytes_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, encryptionKeySha256Bytes_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(5, encryptionKeySha256Bytes_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -206,17 +178,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.CommonObjectRequestParams)) { return super.equals(obj); } - com.google.storage.v2.CommonObjectRequestParams other = - (com.google.storage.v2.CommonObjectRequestParams) obj; + com.google.storage.v2.CommonObjectRequestParams other = (com.google.storage.v2.CommonObjectRequestParams) obj; - if (!getEncryptionAlgorithm().equals(other.getEncryptionAlgorithm())) return false; - if (!getEncryptionKeyBytes().equals(other.getEncryptionKeyBytes())) return false; - if (!getEncryptionKeySha256Bytes().equals(other.getEncryptionKeySha256Bytes())) return false; + if (!getEncryptionAlgorithm() + .equals(other.getEncryptionAlgorithm())) return false; + if (!getEncryptionKeyBytes() + .equals(other.getEncryptionKeyBytes())) return false; + if (!getEncryptionKeySha256Bytes() + .equals(other.getEncryptionKeySha256Bytes())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -239,136 +213,132 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.CommonObjectRequestParams parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.CommonObjectRequestParams parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.CommonObjectRequestParams parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.CommonObjectRequestParams parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.CommonObjectRequestParams parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.CommonObjectRequestParams parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.CommonObjectRequestParams parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.CommonObjectRequestParams parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.CommonObjectRequestParams parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.CommonObjectRequestParams parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.CommonObjectRequestParams parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.CommonObjectRequestParams parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.CommonObjectRequestParams parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.CommonObjectRequestParams parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.CommonObjectRequestParams prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * Parameters that can be passed to any object request.
                * 
            * * Protobuf type {@code google.storage.v2.CommonObjectRequestParams} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.CommonObjectRequestParams) com.google.storage.v2.CommonObjectRequestParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CommonObjectRequestParams_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CommonObjectRequestParams_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CommonObjectRequestParams_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CommonObjectRequestParams_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.CommonObjectRequestParams.class, - com.google.storage.v2.CommonObjectRequestParams.Builder.class); + com.google.storage.v2.CommonObjectRequestParams.class, com.google.storage.v2.CommonObjectRequestParams.Builder.class); } // Construct using com.google.storage.v2.CommonObjectRequestParams.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -380,9 +350,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CommonObjectRequestParams_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CommonObjectRequestParams_descriptor; } @java.lang.Override @@ -401,11 +371,8 @@ public com.google.storage.v2.CommonObjectRequestParams build() { @java.lang.Override public com.google.storage.v2.CommonObjectRequestParams buildPartial() { - com.google.storage.v2.CommonObjectRequestParams result = - new com.google.storage.v2.CommonObjectRequestParams(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.CommonObjectRequestParams result = new com.google.storage.v2.CommonObjectRequestParams(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -427,39 +394,38 @@ private void buildPartial0(com.google.storage.v2.CommonObjectRequestParams resul public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.CommonObjectRequestParams) { - return mergeFrom((com.google.storage.v2.CommonObjectRequestParams) other); + return mergeFrom((com.google.storage.v2.CommonObjectRequestParams)other); } else { super.mergeFrom(other); return this; @@ -467,8 +433,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.v2.CommonObjectRequestParams other) { - if (other == com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) - return this; + if (other == com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) return this; if (!other.getEncryptionAlgorithm().isEmpty()) { encryptionAlgorithm_ = other.encryptionAlgorithm_; bitField0_ |= 0x00000001; @@ -506,31 +471,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - encryptionAlgorithm_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 34: - { - encryptionKeyBytes_ = input.readBytes(); - bitField0_ |= 0x00000002; - break; - } // case 34 - case 42: - { - encryptionKeySha256Bytes_ = input.readBytes(); - bitField0_ |= 0x00000004; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + encryptionAlgorithm_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 34: { + encryptionKeyBytes_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 34 + case 42: { + encryptionKeySha256Bytes_ = input.readBytes(); + bitField0_ |= 0x00000004; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -540,26 +501,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object encryptionAlgorithm_ = ""; /** - * - * *
                  * Encryption algorithm used with the Customer-Supplied Encryption Keys
                  * feature.
                  * 
            * * string encryption_algorithm = 1; - * * @return The encryptionAlgorithm. */ public java.lang.String getEncryptionAlgorithm() { java.lang.Object ref = encryptionAlgorithm_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); encryptionAlgorithm_ = s; return s; @@ -568,22 +526,21 @@ public java.lang.String getEncryptionAlgorithm() { } } /** - * - * *
                  * Encryption algorithm used with the Customer-Supplied Encryption Keys
                  * feature.
                  * 
            * * string encryption_algorithm = 1; - * * @return The bytes for encryptionAlgorithm. */ - public com.google.protobuf.ByteString getEncryptionAlgorithmBytes() { + public com.google.protobuf.ByteString + getEncryptionAlgorithmBytes() { java.lang.Object ref = encryptionAlgorithm_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); encryptionAlgorithm_ = b; return b; } else { @@ -591,37 +548,30 @@ public com.google.protobuf.ByteString getEncryptionAlgorithmBytes() { } } /** - * - * *
                  * Encryption algorithm used with the Customer-Supplied Encryption Keys
                  * feature.
                  * 
            * * string encryption_algorithm = 1; - * * @param value The encryptionAlgorithm to set. * @return This builder for chaining. */ - public Builder setEncryptionAlgorithm(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEncryptionAlgorithm( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } encryptionAlgorithm_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * Encryption algorithm used with the Customer-Supplied Encryption Keys
                  * feature.
                  * 
            * * string encryption_algorithm = 1; - * * @return This builder for chaining. */ public Builder clearEncryptionAlgorithm() { @@ -631,22 +581,18 @@ public Builder clearEncryptionAlgorithm() { return this; } /** - * - * *
                  * Encryption algorithm used with the Customer-Supplied Encryption Keys
                  * feature.
                  * 
            * * string encryption_algorithm = 1; - * * @param value The bytes for encryptionAlgorithm to set. * @return This builder for chaining. */ - public Builder setEncryptionAlgorithmBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEncryptionAlgorithmBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); encryptionAlgorithm_ = value; bitField0_ |= 0x00000001; @@ -654,18 +600,14 @@ public Builder setEncryptionAlgorithmBytes(com.google.protobuf.ByteString value) return this; } - private com.google.protobuf.ByteString encryptionKeyBytes_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString encryptionKeyBytes_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
                  * Encryption key used with the Customer-Supplied Encryption Keys feature.
                  * In raw bytes format (not base64-encoded).
                  * 
            * * bytes encryption_key_bytes = 4; - * * @return The encryptionKeyBytes. */ @java.lang.Override @@ -673,37 +615,29 @@ public com.google.protobuf.ByteString getEncryptionKeyBytes() { return encryptionKeyBytes_; } /** - * - * *
                  * Encryption key used with the Customer-Supplied Encryption Keys feature.
                  * In raw bytes format (not base64-encoded).
                  * 
            * * bytes encryption_key_bytes = 4; - * * @param value The encryptionKeyBytes to set. * @return This builder for chaining. */ public Builder setEncryptionKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } encryptionKeyBytes_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                  * Encryption key used with the Customer-Supplied Encryption Keys feature.
                  * In raw bytes format (not base64-encoded).
                  * 
            * * bytes encryption_key_bytes = 4; - * * @return This builder for chaining. */ public Builder clearEncryptionKeyBytes() { @@ -713,18 +647,14 @@ public Builder clearEncryptionKeyBytes() { return this; } - private com.google.protobuf.ByteString encryptionKeySha256Bytes_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString encryptionKeySha256Bytes_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
                  * SHA256 hash of encryption key used with the Customer-Supplied Encryption
                  * Keys feature.
                  * 
            * * bytes encryption_key_sha256_bytes = 5; - * * @return The encryptionKeySha256Bytes. */ @java.lang.Override @@ -732,37 +662,29 @@ public com.google.protobuf.ByteString getEncryptionKeySha256Bytes() { return encryptionKeySha256Bytes_; } /** - * - * *
                  * SHA256 hash of encryption key used with the Customer-Supplied Encryption
                  * Keys feature.
                  * 
            * * bytes encryption_key_sha256_bytes = 5; - * * @param value The encryptionKeySha256Bytes to set. * @return This builder for chaining. */ public Builder setEncryptionKeySha256Bytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } encryptionKeySha256Bytes_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
                  * SHA256 hash of encryption key used with the Customer-Supplied Encryption
                  * Keys feature.
                  * 
            * * bytes encryption_key_sha256_bytes = 5; - * * @return This builder for chaining. */ public Builder clearEncryptionKeySha256Bytes() { @@ -771,9 +693,9 @@ public Builder clearEncryptionKeySha256Bytes() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -783,12 +705,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.CommonObjectRequestParams) } // @@protoc_insertion_point(class_scope:google.storage.v2.CommonObjectRequestParams) private static final com.google.storage.v2.CommonObjectRequestParams DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.CommonObjectRequestParams(); } @@ -797,27 +719,27 @@ public static com.google.storage.v2.CommonObjectRequestParams getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommonObjectRequestParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommonObjectRequestParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -832,4 +754,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.storage.v2.CommonObjectRequestParams getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonObjectRequestParamsOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CommonObjectRequestParamsOrBuilder.java similarity index 64% 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 8232fa50e7..e9aa92db74 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,80 +1,53 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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 c400203b53..e9d53176aa 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,24 +5,21 @@ 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_ = ""; @@ -46,165 +28,132 @@ private ComposeObjectRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ComposeObjectRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ComposeObjectRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ComposeObjectRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ComposeObjectRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ComposeObjectRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ComposeObjectRequest.class, - com.google.storage.v2.ComposeObjectRequest.Builder.class); + com.google.storage.v2.ComposeObjectRequest.class, com.google.storage.v2.ComposeObjectRequest.Builder.class); } - public interface SourceObjectOrBuilder - extends + public interface SourceObjectOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.ComposeObjectRequest.SourceObject) com.google.protobuf.MessageOrBuilder { /** - * - * *
                  * Required. The source object's name. All source objects must reside in the
                  * same bucket.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
                  * Required. The source object's name. All source objects must reside in the
                  * same bucket.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
                  * The generation of this object to use as the source.
                  * 
            * * int64 generation = 2; - * * @return The generation. */ long getGeneration(); /** - * - * *
                  * Conditions that must be met for this operation to execute.
                  * 
            * - * - * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; - * - * + * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; * @return Whether the objectPreconditions field is set. */ boolean hasObjectPreconditions(); /** - * - * *
                  * Conditions that must be met for this operation to execute.
                  * 
            * - * - * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; - * - * + * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; * @return The objectPreconditions. */ - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - getObjectPreconditions(); + com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions getObjectPreconditions(); /** - * - * *
                  * Conditions that must be met for this operation to execute.
                  * 
            * - * - * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; - * + * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; */ - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditionsOrBuilder - getObjectPreconditionsOrBuilder(); + com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditionsOrBuilder getObjectPreconditionsOrBuilder(); } /** - * - * *
                * Description of a source object for a composition request.
                * 
            * * Protobuf type {@code google.storage.v2.ComposeObjectRequest.SourceObject} */ - public static final class SourceObject extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SourceObject extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.ComposeObjectRequest.SourceObject) SourceObjectOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SourceObject.newBuilder() to construct. private SourceObject(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SourceObject() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SourceObject(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ComposeObjectRequest.SourceObject.class, - com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder.class); + com.google.storage.v2.ComposeObjectRequest.SourceObject.class, com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder.class); } - public interface ObjectPreconditionsOrBuilder - extends + public interface ObjectPreconditionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions) com.google.protobuf.MessageOrBuilder { /** - * - * *
                    * Only perform the composition if the generation of the source object
                    * that would be used matches this value.  If this value and a generation
            @@ -212,13 +161,10 @@ public interface ObjectPreconditionsOrBuilder
                    * 
            * * optional int64 if_generation_match = 1; - * * @return Whether the ifGenerationMatch field is set. */ boolean hasIfGenerationMatch(); /** - * - * *
                    * Only perform the composition if the generation of the source object
                    * that would be used matches this value.  If this value and a generation
            @@ -226,60 +172,53 @@ public interface ObjectPreconditionsOrBuilder
                    * 
            * * optional int64 if_generation_match = 1; - * * @return The ifGenerationMatch. */ long getIfGenerationMatch(); } /** - * - * *
                  * Preconditions for a source object of a composition request.
                  * 
            * * Protobuf type {@code google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions} */ - public static final class ObjectPreconditions extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ObjectPreconditions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions) ObjectPreconditionsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ObjectPreconditions.newBuilder() to construct. private ObjectPreconditions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ObjectPreconditions() {} + private ObjectPreconditions() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ObjectPreconditions(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.class, - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.Builder - .class); + com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.class, com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.Builder.class); } private int bitField0_; public static final int IF_GENERATION_MATCH_FIELD_NUMBER = 1; private long ifGenerationMatch_ = 0L; /** - * - * *
                    * Only perform the composition if the generation of the source object
                    * that would be used matches this value.  If this value and a generation
            @@ -287,7 +226,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                    * 
            * * optional int64 if_generation_match = 1; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -295,8 +233,6 @@ public boolean hasIfGenerationMatch() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                    * Only perform the composition if the generation of the source object
                    * that would be used matches this value.  If this value and a generation
            @@ -304,7 +240,6 @@ public boolean hasIfGenerationMatch() {
                    * 
            * * optional int64 if_generation_match = 1; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -313,7 +248,6 @@ public long getIfGenerationMatch() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -325,7 +259,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(1, ifGenerationMatch_); } @@ -339,7 +274,8 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, ifGenerationMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, ifGenerationMatch_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -349,19 +285,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions)) { + if (!(obj instanceof com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions)) { return super.equals(obj); } - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions other = - (com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions) obj; + com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions other = (com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions) obj; if (hasIfGenerationMatch() != other.hasIfGenerationMatch()) return false; if (hasIfGenerationMatch()) { - if (getIfGenerationMatch() != other.getIfGenerationMatch()) return false; + if (getIfGenerationMatch() + != other.getIfGenerationMatch()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -376,110 +310,98 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); if (hasIfGenerationMatch()) { hash = (37 * hash) + IF_GENERATION_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfGenerationMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfGenerationMatch()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions prototype) { + public static Builder newBuilder(com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -489,44 +411,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
                    * Preconditions for a source object of a composition request.
                    * 
            * - * Protobuf type {@code - * google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions} + * Protobuf type {@code google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions) com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.class, - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - .Builder.class); + com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.class, com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.Builder.class); } - // Construct using - // com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.newBuilder() - private Builder() {} + // Construct using com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -536,22 +453,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_descriptor; } @java.lang.Override - public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - getDefaultInstanceForType() { - return com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - .getDefaultInstance(); + public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions getDefaultInstanceForType() { + return com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.getDefaultInstance(); } @java.lang.Override public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions build() { - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions result = - buildPartial(); + com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -559,19 +473,14 @@ public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditio } @java.lang.Override - public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - buildPartial() { - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions result = - new com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions buildPartial() { + com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions result = new com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions result) { + private void buildPartial0(com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -585,56 +494,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions) { - return mergeFrom( - (com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions) - other); + if (other instanceof com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions) { + return mergeFrom((com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions other) { - if (other - == com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions other) { + if (other == com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.getDefaultInstance()) return this; if (other.hasIfGenerationMatch()) { setIfGenerationMatch(other.getIfGenerationMatch()); } @@ -664,19 +563,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - ifGenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + ifGenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -686,13 +583,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private long ifGenerationMatch_; + private long ifGenerationMatch_ ; /** - * - * *
                      * Only perform the composition if the generation of the source object
                      * that would be used matches this value.  If this value and a generation
            @@ -700,7 +594,6 @@ public Builder mergeFrom(
                      * 
            * * optional int64 if_generation_match = 1; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -708,8 +601,6 @@ public boolean hasIfGenerationMatch() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                      * Only perform the composition if the generation of the source object
                      * that would be used matches this value.  If this value and a generation
            @@ -717,7 +608,6 @@ public boolean hasIfGenerationMatch() {
                      * 
            * * optional int64 if_generation_match = 1; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -725,8 +615,6 @@ public long getIfGenerationMatch() { return ifGenerationMatch_; } /** - * - * *
                      * Only perform the composition if the generation of the source object
                      * that would be used matches this value.  If this value and a generation
            @@ -734,7 +622,6 @@ public long getIfGenerationMatch() {
                      * 
            * * optional int64 if_generation_match = 1; - * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ @@ -746,8 +633,6 @@ public Builder setIfGenerationMatch(long value) { return this; } /** - * - * *
                      * Only perform the composition if the generation of the source object
                      * that would be used matches this value.  If this value and a generation
            @@ -755,7 +640,6 @@ public Builder setIfGenerationMatch(long value) {
                      * 
            * * optional int64 if_generation_match = 1; - * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -764,7 +648,6 @@ public Builder clearIfGenerationMatch() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -777,46 +660,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions) } // @@protoc_insertion_point(class_scope:google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions) - private static final com.google.storage.v2.ComposeObjectRequest.SourceObject - .ObjectPreconditions - DEFAULT_INSTANCE; - + private static final com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions(); + DEFAULT_INSTANCE = new com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions(); } - public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - getDefaultInstance() { + public static com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObjectPreconditions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObjectPreconditions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -828,27 +706,23 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - getDefaultInstanceForType() { + public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
                  * Required. The source object's name. All source objects must reside in the
                  * same bucket.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -857,30 +731,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
                  * Required. The source object's name. All source objects must reside in the
                  * same bucket.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -891,14 +765,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int GENERATION_FIELD_NUMBER = 2; private long generation_ = 0L; /** - * - * *
                  * The generation of this object to use as the source.
                  * 
            * * int64 generation = 2; - * * @return The generation. */ @java.lang.Override @@ -907,19 +778,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 @@ -927,48 +792,30 @@ public boolean hasObjectPreconditions() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                  * Conditions that must be met for this operation to execute.
                  * 
            * - * - * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; - * - * + * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; * @return The objectPreconditions. */ @java.lang.Override - public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - getObjectPreconditions() { - return objectPreconditions_ == null - ? com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - .getDefaultInstance() - : objectPreconditions_; + public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions getObjectPreconditions() { + return objectPreconditions_ == null ? com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.getDefaultInstance() : objectPreconditions_; } /** - * - * *
                  * Conditions that must be met for this operation to execute.
                  * 
            * - * - * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; - * + * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; */ @java.lang.Override - public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditionsOrBuilder - getObjectPreconditionsOrBuilder() { - return objectPreconditions_ == null - ? com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - .getDefaultInstance() - : objectPreconditions_; + public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditionsOrBuilder getObjectPreconditionsOrBuilder() { + return objectPreconditions_ == null ? com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.getDefaultInstance() : objectPreconditions_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -980,7 +827,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_); } @@ -1003,11 +851,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (generation_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, generation_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, generation_); } if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, getObjectPreconditions()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getObjectPreconditions()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1017,19 +866,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.ComposeObjectRequest.SourceObject)) { return super.equals(obj); } - com.google.storage.v2.ComposeObjectRequest.SourceObject other = - (com.google.storage.v2.ComposeObjectRequest.SourceObject) obj; + com.google.storage.v2.ComposeObjectRequest.SourceObject other = (com.google.storage.v2.ComposeObjectRequest.SourceObject) obj; - if (!getName().equals(other.getName())) return false; - if (getGeneration() != other.getGeneration()) return false; + if (!getName() + .equals(other.getName())) return false; + if (getGeneration() + != other.getGeneration()) return false; if (hasObjectPreconditions() != other.hasObjectPreconditions()) return false; if (hasObjectPreconditions()) { - if (!getObjectPreconditions().equals(other.getObjectPreconditions())) return false; + if (!getObjectPreconditions() + .equals(other.getObjectPreconditions())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1045,7 +896,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + GENERATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getGeneration()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getGeneration()); if (hasObjectPreconditions()) { hash = (37 * hash) + OBJECT_PRECONDITIONS_FIELD_NUMBER; hash = (53 * hash) + getObjectPreconditions().hashCode(); @@ -1056,94 +908,89 @@ public int hashCode() { } public static com.google.storage.v2.ComposeObjectRequest.SourceObject parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ComposeObjectRequest.SourceObject parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.ComposeObjectRequest.SourceObject parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ComposeObjectRequest.SourceObject parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.ComposeObjectRequest.SourceObject parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ComposeObjectRequest.SourceObject parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.v2.ComposeObjectRequest.SourceObject parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.v2.ComposeObjectRequest.SourceObject parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.ComposeObjectRequest.SourceObject parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.ComposeObjectRequest.SourceObject parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.ComposeObjectRequest.SourceObject parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.ComposeObjectRequest.SourceObject parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.ComposeObjectRequest.SourceObject parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.ComposeObjectRequest.SourceObject parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.storage.v2.ComposeObjectRequest.SourceObject prototype) { + public static Builder newBuilder(com.google.storage.v2.ComposeObjectRequest.SourceObject prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1153,32 +1000,27 @@ 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() @@ -1186,17 +1028,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) { getObjectPreconditionsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1212,9 +1054,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor; } @java.lang.Override @@ -1233,11 +1075,8 @@ public com.google.storage.v2.ComposeObjectRequest.SourceObject build() { @java.lang.Override public com.google.storage.v2.ComposeObjectRequest.SourceObject buildPartial() { - com.google.storage.v2.ComposeObjectRequest.SourceObject result = - new com.google.storage.v2.ComposeObjectRequest.SourceObject(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.ComposeObjectRequest.SourceObject result = new com.google.storage.v2.ComposeObjectRequest.SourceObject(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1252,10 +1091,9 @@ private void buildPartial0(com.google.storage.v2.ComposeObjectRequest.SourceObje } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.objectPreconditions_ = - objectPreconditionsBuilder_ == null - ? objectPreconditions_ - : objectPreconditionsBuilder_.build(); + result.objectPreconditions_ = objectPreconditionsBuilder_ == null + ? objectPreconditions_ + : objectPreconditionsBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -1265,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; @@ -1307,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; @@ -1346,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) { @@ -1381,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; @@ -1409,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 { @@ -1432,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() { @@ -1472,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; @@ -1495,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 @@ -1512,14 +1325,11 @@ public long getGeneration() { return generation_; } /** - * - * *
                    * The generation of this object to use as the source.
                    * 
            * * int64 generation = 2; - * * @param value The generation to set. * @return This builder for chaining. */ @@ -1531,14 +1341,11 @@ public Builder setGeneration(long value) { return this; } /** - * - * *
                    * The generation of this object to use as the source.
                    * 
            * * int64 generation = 2; - * * @return This builder for chaining. */ public Builder clearGeneration() { @@ -1548,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(); @@ -1621,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 { @@ -1644,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; @@ -1676,15 +1448,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); @@ -1697,74 +1465,52 @@ public Builder clearObjectPreconditions() { return this; } /** - * - * *
                    * Conditions that must be met for this operation to execute.
                    * 
            * - * - * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; - * + * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; */ - public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.Builder - getObjectPreconditionsBuilder() { + public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.Builder getObjectPreconditionsBuilder() { bitField0_ |= 0x00000004; onChanged(); return getObjectPreconditionsFieldBuilder().getBuilder(); } /** - * - * *
                    * Conditions that must be met for this operation to execute.
                    * 
            * - * - * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; - * + * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; */ - public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditionsOrBuilder - getObjectPreconditionsOrBuilder() { + public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditionsOrBuilder getObjectPreconditionsOrBuilder() { if (objectPreconditionsBuilder_ != null) { return objectPreconditionsBuilder_.getMessageOrBuilder(); } else { - return objectPreconditions_ == null - ? com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - .getDefaultInstance() - : objectPreconditions_; + return objectPreconditions_ == null ? + com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.getDefaultInstance() : objectPreconditions_; } } /** - * - * *
                    * Conditions that must be met for this operation to execute.
                    * 
            * - * - * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; - * + * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions, - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.Builder, - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditionsOrBuilder> + com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions, com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.Builder, com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditionsOrBuilder> getObjectPreconditionsFieldBuilder() { if (objectPreconditionsBuilder_ == null) { - objectPreconditionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions, - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions - .Builder, - com.google.storage.v2.ComposeObjectRequest.SourceObject - .ObjectPreconditionsOrBuilder>( - getObjectPreconditions(), getParentForChildren(), isClean()); + objectPreconditionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions, com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.Builder, com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditionsOrBuilder>( + getObjectPreconditions(), + getParentForChildren(), + isClean()); objectPreconditions_ = null; } return objectPreconditionsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1777,12 +1523,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.ComposeObjectRequest.SourceObject) } // @@protoc_insertion_point(class_scope:google.storage.v2.ComposeObjectRequest.SourceObject) private static final com.google.storage.v2.ComposeObjectRequest.SourceObject DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.ComposeObjectRequest.SourceObject(); } @@ -1791,28 +1537,27 @@ public static com.google.storage.v2.ComposeObjectRequest.SourceObject getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SourceObject parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SourceObject parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1827,21 +1572,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 @@ -1849,15 +1591,11 @@ 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. */ @java.lang.Override @@ -1865,14 +1603,11 @@ public com.google.storage.v2.Object getDestination() { return destination_ == null ? com.google.storage.v2.Object.getDefaultInstance() : destination_; } /** - * - * *
                * Required. Properties of the resulting object.
                * 
            * - * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.storage.v2.ObjectOrBuilder getDestinationOrBuilder() { @@ -1880,12 +1615,9 @@ public com.google.storage.v2.ObjectOrBuilder getDestinationOrBuilder() { } public static final int SOURCE_OBJECTS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List sourceObjects_; /** - * - * *
                * The list of source objects that will be concatenated into a single object.
                * 
            @@ -1893,13 +1625,10 @@ public com.google.storage.v2.ObjectOrBuilder getDestinationOrBuilder() { * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ @java.lang.Override - public java.util.List - getSourceObjectsList() { + public java.util.List getSourceObjectsList() { return sourceObjects_; } /** - * - * *
                * The list of source objects that will be concatenated into a single object.
                * 
            @@ -1907,13 +1636,11 @@ public com.google.storage.v2.ObjectOrBuilder getDestinationOrBuilder() { * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ @java.lang.Override - public java.util.List + public java.util.List getSourceObjectsOrBuilderList() { return sourceObjects_; } /** - * - * *
                * The list of source objects that will be concatenated into a single object.
                * 
            @@ -1925,8 +1652,6 @@ public int getSourceObjectsCount() { return sourceObjects_.size(); } /** - * - * *
                * The list of source objects that will be concatenated into a single object.
                * 
            @@ -1938,8 +1663,6 @@ public com.google.storage.v2.ComposeObjectRequest.SourceObject getSourceObjects( return sourceObjects_.get(index); } /** - * - * *
                * The list of source objects that will be concatenated into a single object.
                * 
            @@ -1953,12 +1676,9 @@ public com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder getSourc } public static final int DESTINATION_PREDEFINED_ACL_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private volatile java.lang.Object destinationPredefinedAcl_ = ""; /** - * - * *
                * Apply a predefined set of access controls to the destination object.
                * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -1966,7 +1686,6 @@ public com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder getSourc
                * 
            * * string destination_predefined_acl = 9; - * * @return The destinationPredefinedAcl. */ @java.lang.Override @@ -1975,15 +1694,14 @@ public java.lang.String getDestinationPredefinedAcl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationPredefinedAcl_ = s; return s; } } /** - * - * *
                * Apply a predefined set of access controls to the destination object.
                * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -1991,15 +1709,16 @@ public java.lang.String getDestinationPredefinedAcl() {
                * 
            * * string destination_predefined_acl = 9; - * * @return The bytes for destinationPredefinedAcl. */ @java.lang.Override - public com.google.protobuf.ByteString getDestinationPredefinedAclBytes() { + public com.google.protobuf.ByteString + getDestinationPredefinedAclBytes() { java.lang.Object ref = destinationPredefinedAcl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); destinationPredefinedAcl_ = b; return b; } else { @@ -2010,8 +1729,6 @@ public com.google.protobuf.ByteString getDestinationPredefinedAclBytes() { public static final int IF_GENERATION_MATCH_FIELD_NUMBER = 4; private long ifGenerationMatch_ = 0L; /** - * - * *
                * Makes the operation conditional on whether the object's current generation
                * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -2019,7 +1736,6 @@ public com.google.protobuf.ByteString getDestinationPredefinedAclBytes() {
                * 
            * * optional int64 if_generation_match = 4; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -2027,8 +1743,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
            @@ -2036,7 +1750,6 @@ public boolean hasIfGenerationMatch() {
                * 
            * * optional int64 if_generation_match = 4; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -2047,15 +1760,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 @@ -2063,15 +1773,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 @@ -2080,12 +1787,9 @@ public long getIfMetagenerationMatch() { } public static final int KMS_KEY_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object kmsKey_ = ""; /** - * - * *
                * Resource name of the Cloud KMS key, of the form
                * `projects/my-project/locations/my-location/keyRings/my-kr/cryptoKeys/my-key`,
            @@ -2094,7 +1798,6 @@ public long getIfMetagenerationMatch() {
                * 
            * * string kms_key = 6 [(.google.api.resource_reference) = { ... } - * * @return The kmsKey. */ @java.lang.Override @@ -2103,15 +1806,14 @@ public java.lang.String getKmsKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKey_ = s; return s; } } /** - * - * *
                * Resource name of the Cloud KMS key, of the form
                * `projects/my-project/locations/my-location/keyRings/my-kr/cryptoKeys/my-key`,
            @@ -2120,15 +1822,16 @@ public java.lang.String getKmsKey() {
                * 
            * * string kms_key = 6 [(.google.api.resource_reference) = { ... } - * * @return The bytes for kmsKey. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyBytes() { + public com.google.protobuf.ByteString + getKmsKeyBytes() { java.lang.Object ref = kmsKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKey_ = b; return b; } else { @@ -2139,14 +1842,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 @@ -2154,25 +1854,18 @@ public boolean hasCommonObjectRequestParams() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 7; - * * @return The commonObjectRequestParams. */ @java.lang.Override public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            @@ -2180,25 +1873,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 @@ -2206,26 +1893,19 @@ public boolean hasObjectChecksums() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
                * The checksums of the complete object. This will be validated against the
                * combined checksums of the component objects.
                * 
            * * .google.storage.v2.ObjectChecksums object_checksums = 10; - * * @return The objectChecksums. */ @java.lang.Override public com.google.storage.v2.ObjectChecksums getObjectChecksums() { - return objectChecksums_ == null - ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() - : objectChecksums_; + return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_; } /** - * - * *
                * The checksums of the complete object. This will be validated against the
                * combined checksums of the component objects.
            @@ -2235,13 +1915,10 @@ public com.google.storage.v2.ObjectChecksums getObjectChecksums() {
                */
               @java.lang.Override
               public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilder() {
            -    return objectChecksums_ == null
            -        ? com.google.storage.v2.ObjectChecksums.getDefaultInstance()
            -        : objectChecksums_;
            +    return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_;
               }
             
               private byte memoizedIsInitialized = -1;
            -
               @java.lang.Override
               public final boolean isInitialized() {
                 byte isInitialized = memoizedIsInitialized;
            @@ -2253,7 +1930,8 @@ public final boolean isInitialized() {
               }
             
               @java.lang.Override
            -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
            +  public void writeTo(com.google.protobuf.CodedOutputStream output)
            +                      throws java.io.IOException {
                 if (((bitField0_ & 0x00000001) != 0)) {
                   output.writeMessage(1, getDestination());
                 }
            @@ -2288,31 +1966,34 @@ public int getSerializedSize() {
             
                 size = 0;
                 if (((bitField0_ & 0x00000001) != 0)) {
            -      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_ & 0x00000002) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ifGenerationMatch_);
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeInt64Size(4, ifGenerationMatch_);
                 }
                 if (((bitField0_ & 0x00000004) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, 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 (((bitField0_ & 0x00000008) != 0)) {
            -      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 (((bitField0_ & 0x00000010) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getObjectChecksums());
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeMessageSize(10, getObjectChecksums());
                 }
                 size += getUnknownFields().getSerializedSize();
                 memoizedSize = size;
            @@ -2322,37 +2003,43 @@ public int getSerializedSize() {
               @java.lang.Override
               public boolean equals(final java.lang.Object obj) {
                 if (obj == this) {
            -      return true;
            +     return true;
                 }
                 if (!(obj instanceof com.google.storage.v2.ComposeObjectRequest)) {
                   return super.equals(obj);
                 }
            -    com.google.storage.v2.ComposeObjectRequest other =
            -        (com.google.storage.v2.ComposeObjectRequest) obj;
            +    com.google.storage.v2.ComposeObjectRequest other = (com.google.storage.v2.ComposeObjectRequest) obj;
             
                 if (hasDestination() != other.hasDestination()) return false;
                 if (hasDestination()) {
            -      if (!getDestination().equals(other.getDestination())) return false;
            +      if (!getDestination()
            +          .equals(other.getDestination())) return false;
                 }
            -    if (!getSourceObjectsList().equals(other.getSourceObjectsList())) return false;
            -    if (!getDestinationPredefinedAcl().equals(other.getDestinationPredefinedAcl())) return false;
            +    if (!getSourceObjectsList()
            +        .equals(other.getSourceObjectsList())) return false;
            +    if (!getDestinationPredefinedAcl()
            +        .equals(other.getDestinationPredefinedAcl())) return false;
                 if (hasIfGenerationMatch() != other.hasIfGenerationMatch()) return false;
                 if (hasIfGenerationMatch()) {
            -      if (getIfGenerationMatch() != other.getIfGenerationMatch()) return false;
            +      if (getIfGenerationMatch()
            +          != other.getIfGenerationMatch()) return false;
                 }
                 if (hasIfMetagenerationMatch() != other.hasIfMetagenerationMatch()) return false;
                 if (hasIfMetagenerationMatch()) {
            -      if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false;
            +      if (getIfMetagenerationMatch()
            +          != other.getIfMetagenerationMatch()) return false;
                 }
            -    if (!getKmsKey().equals(other.getKmsKey())) return false;
            +    if (!getKmsKey()
            +        .equals(other.getKmsKey())) return false;
                 if (hasCommonObjectRequestParams() != other.hasCommonObjectRequestParams()) return false;
                 if (hasCommonObjectRequestParams()) {
            -      if (!getCommonObjectRequestParams().equals(other.getCommonObjectRequestParams()))
            -        return false;
            +      if (!getCommonObjectRequestParams()
            +          .equals(other.getCommonObjectRequestParams())) return false;
                 }
                 if (hasObjectChecksums() != other.hasObjectChecksums()) return false;
                 if (hasObjectChecksums()) {
            -      if (!getObjectChecksums().equals(other.getObjectChecksums())) return false;
            +      if (!getObjectChecksums()
            +          .equals(other.getObjectChecksums())) return false;
                 }
                 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
                 return true;
            @@ -2377,11 +2064,13 @@ public int hashCode() {
                 hash = (53 * hash) + getDestinationPredefinedAcl().hashCode();
                 if (hasIfGenerationMatch()) {
                   hash = (37 * hash) + IF_GENERATION_MATCH_FIELD_NUMBER;
            -      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfGenerationMatch());
            +      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            +          getIfGenerationMatch());
                 }
                 if (hasIfMetagenerationMatch()) {
                   hash = (37 * hash) + IF_METAGENERATION_MATCH_FIELD_NUMBER;
            -      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationMatch());
            +      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            +          getIfMetagenerationMatch());
                 }
                 hash = (37 * hash) + KMS_KEY_FIELD_NUMBER;
                 hash = (53 * hash) + getKmsKey().hashCode();
            @@ -2398,127 +2087,120 @@ 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() @@ -2526,20 +2208,20 @@ 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) { getDestinationFieldBuilder(); getSourceObjectsFieldBuilder(); getCommonObjectRequestParamsFieldBuilder(); getObjectChecksumsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2574,9 +2256,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ComposeObjectRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ComposeObjectRequest_descriptor; } @java.lang.Override @@ -2595,12 +2277,9 @@ public com.google.storage.v2.ComposeObjectRequest build() { @java.lang.Override public com.google.storage.v2.ComposeObjectRequest buildPartial() { - com.google.storage.v2.ComposeObjectRequest result = - new com.google.storage.v2.ComposeObjectRequest(this); + com.google.storage.v2.ComposeObjectRequest result = new com.google.storage.v2.ComposeObjectRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -2621,8 +2300,9 @@ private void buildPartial0(com.google.storage.v2.ComposeObjectRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.destination_ = - destinationBuilder_ == null ? destination_ : destinationBuilder_.build(); + result.destination_ = destinationBuilder_ == null + ? destination_ + : destinationBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -2640,15 +2320,15 @@ 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(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.objectChecksums_ = - objectChecksumsBuilder_ == null ? objectChecksums_ : objectChecksumsBuilder_.build(); + result.objectChecksums_ = objectChecksumsBuilder_ == null + ? objectChecksums_ + : objectChecksumsBuilder_.build(); to_bitField0_ |= 0x00000010; } result.bitField0_ |= to_bitField0_; @@ -2658,39 +2338,38 @@ private void buildPartial0(com.google.storage.v2.ComposeObjectRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.ComposeObjectRequest) { - return mergeFrom((com.google.storage.v2.ComposeObjectRequest) other); + return mergeFrom((com.google.storage.v2.ComposeObjectRequest)other); } else { super.mergeFrom(other); return this; @@ -2720,10 +2399,9 @@ public Builder mergeFrom(com.google.storage.v2.ComposeObjectRequest other) { sourceObjectsBuilder_ = null; sourceObjects_ = other.sourceObjects_; bitField0_ = (bitField0_ & ~0x00000002); - sourceObjectsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSourceObjectsFieldBuilder() - : null; + sourceObjectsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSourceObjectsFieldBuilder() : null; } else { sourceObjectsBuilder_.addAllMessages(other.sourceObjects_); } @@ -2777,70 +2455,66 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getDestinationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - com.google.storage.v2.ComposeObjectRequest.SourceObject m = - input.readMessage( - com.google.storage.v2.ComposeObjectRequest.SourceObject.parser(), - extensionRegistry); - if (sourceObjectsBuilder_ == null) { - ensureSourceObjectsIsMutable(); - sourceObjects_.add(m); - } else { - sourceObjectsBuilder_.addMessage(m); - } - break; - } // case 18 - case 32: - { - ifGenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: - { - ifMetagenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 50: - { - kmsKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - input.readMessage( - getCommonObjectRequestParamsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 74: - { - destinationPredefinedAcl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 74 - case 82: - { - input.readMessage(getObjectChecksumsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getDestinationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.storage.v2.ComposeObjectRequest.SourceObject m = + input.readMessage( + com.google.storage.v2.ComposeObjectRequest.SourceObject.parser(), + extensionRegistry); + if (sourceObjectsBuilder_ == null) { + ensureSourceObjectsIsMutable(); + sourceObjects_.add(m); + } else { + sourceObjectsBuilder_.addMessage(m); + } + break; + } // case 18 + case 32: { + ifGenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + ifMetagenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: { + kmsKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getCommonObjectRequestParamsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 74: { + destinationPredefinedAcl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 74 + case 82: { + input.readMessage( + getObjectChecksumsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2850,60 +2524,43 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.storage.v2.Object destination_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Object, - com.google.storage.v2.Object.Builder, - com.google.storage.v2.ObjectOrBuilder> - destinationBuilder_; + com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> destinationBuilder_; /** - * - * *
                  * Required. Properties of the resulting object.
                  * 
            * - * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the destination field is set. */ public boolean hasDestination() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                  * Required. Properties of the resulting object.
                  * 
            * - * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The destination. */ public com.google.storage.v2.Object getDestination() { if (destinationBuilder_ == null) { - return destination_ == null - ? com.google.storage.v2.Object.getDefaultInstance() - : destination_; + return destination_ == null ? com.google.storage.v2.Object.getDefaultInstance() : destination_; } else { return destinationBuilder_.getMessage(); } } /** - * - * *
                  * Required. Properties of the resulting object.
                  * 
            * - * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDestination(com.google.storage.v2.Object value) { if (destinationBuilder_ == null) { @@ -2919,16 +2576,14 @@ public Builder setDestination(com.google.storage.v2.Object value) { return this; } /** - * - * *
                  * Required. Properties of the resulting object.
                  * 
            * - * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setDestination(com.google.storage.v2.Object.Builder builderForValue) { + public Builder setDestination( + com.google.storage.v2.Object.Builder builderForValue) { if (destinationBuilder_ == null) { destination_ = builderForValue.build(); } else { @@ -2939,20 +2594,17 @@ public Builder setDestination(com.google.storage.v2.Object.Builder builderForVal return this; } /** - * - * *
                  * Required. Properties of the resulting object.
                  * 
            * - * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeDestination(com.google.storage.v2.Object value) { if (destinationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && destination_ != null - && destination_ != com.google.storage.v2.Object.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + destination_ != null && + destination_ != com.google.storage.v2.Object.getDefaultInstance()) { getDestinationBuilder().mergeFrom(value); } else { destination_ = value; @@ -2967,14 +2619,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); @@ -2987,14 +2636,11 @@ public Builder clearDestination() { return this; } /** - * - * *
                  * Required. Properties of the resulting object.
                  * 
            * - * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.storage.v2.Object.Builder getDestinationBuilder() { bitField0_ |= 0x00000001; @@ -3002,81 +2648,61 @@ public com.google.storage.v2.Object.Builder getDestinationBuilder() { return getDestinationFieldBuilder().getBuilder(); } /** - * - * *
                  * Required. Properties of the resulting object.
                  * 
            * - * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.storage.v2.ObjectOrBuilder getDestinationOrBuilder() { if (destinationBuilder_ != null) { return destinationBuilder_.getMessageOrBuilder(); } else { - return destination_ == null - ? com.google.storage.v2.Object.getDefaultInstance() - : destination_; + return destination_ == null ? + com.google.storage.v2.Object.getDefaultInstance() : destination_; } } /** - * - * *
                  * Required. Properties of the resulting object.
                  * 
            * - * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.Object destination = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Object, - com.google.storage.v2.Object.Builder, - com.google.storage.v2.ObjectOrBuilder> + com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> getDestinationFieldBuilder() { if (destinationBuilder_ == null) { - destinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Object, - com.google.storage.v2.Object.Builder, - com.google.storage.v2.ObjectOrBuilder>( - getDestination(), getParentForChildren(), isClean()); + destinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder>( + getDestination(), + getParentForChildren(), + isClean()); destination_ = null; } return destinationBuilder_; } private java.util.List sourceObjects_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSourceObjectsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - sourceObjects_ = - new java.util.ArrayList( - sourceObjects_); + sourceObjects_ = new java.util.ArrayList(sourceObjects_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.ComposeObjectRequest.SourceObject, - com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder, - com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder> - sourceObjectsBuilder_; + com.google.storage.v2.ComposeObjectRequest.SourceObject, com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder, com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder> sourceObjectsBuilder_; /** - * - * *
                  * The list of source objects that will be concatenated into a single object.
                  * 
            * - * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; - * + * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ - public java.util.List - getSourceObjectsList() { + public java.util.List getSourceObjectsList() { if (sourceObjectsBuilder_ == null) { return java.util.Collections.unmodifiableList(sourceObjects_); } else { @@ -3084,14 +2710,11 @@ private void ensureSourceObjectsIsMutable() { } } /** - * - * *
                  * The list of source objects that will be concatenated into a single object.
                  * 
            * - * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; - * + * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ public int getSourceObjectsCount() { if (sourceObjectsBuilder_ == null) { @@ -3101,14 +2724,11 @@ public int getSourceObjectsCount() { } } /** - * - * *
                  * The list of source objects that will be concatenated into a single object.
                  * 
            * - * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; - * + * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ public com.google.storage.v2.ComposeObjectRequest.SourceObject getSourceObjects(int index) { if (sourceObjectsBuilder_ == null) { @@ -3118,14 +2738,11 @@ public com.google.storage.v2.ComposeObjectRequest.SourceObject getSourceObjects( } } /** - * - * *
                  * The list of source objects that will be concatenated into a single object.
                  * 
            * - * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; - * + * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ public Builder setSourceObjects( int index, com.google.storage.v2.ComposeObjectRequest.SourceObject value) { @@ -3142,18 +2759,14 @@ public Builder setSourceObjects( return this; } /** - * - * *
                  * The list of source objects that will be concatenated into a single object.
                  * 
            * - * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; - * + * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ public Builder setSourceObjects( - int index, - com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder builderForValue) { + int index, com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder builderForValue) { if (sourceObjectsBuilder_ == null) { ensureSourceObjectsIsMutable(); sourceObjects_.set(index, builderForValue.build()); @@ -3164,14 +2777,11 @@ public Builder setSourceObjects( return this; } /** - * - * *
                  * The list of source objects that will be concatenated into a single object.
                  * 
            * - * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; - * + * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ public Builder addSourceObjects(com.google.storage.v2.ComposeObjectRequest.SourceObject value) { if (sourceObjectsBuilder_ == null) { @@ -3187,14 +2797,11 @@ public Builder addSourceObjects(com.google.storage.v2.ComposeObjectRequest.Sourc return this; } /** - * - * *
                  * The list of source objects that will be concatenated into a single object.
                  * 
            * - * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; - * + * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ public Builder addSourceObjects( int index, com.google.storage.v2.ComposeObjectRequest.SourceObject value) { @@ -3211,14 +2818,11 @@ public Builder addSourceObjects( return this; } /** - * - * *
                  * The list of source objects that will be concatenated into a single object.
                  * 
            * - * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; - * + * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ public Builder addSourceObjects( com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder builderForValue) { @@ -3232,18 +2836,14 @@ public Builder addSourceObjects( return this; } /** - * - * *
                  * The list of source objects that will be concatenated into a single object.
                  * 
            * - * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; - * + * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ public Builder addSourceObjects( - int index, - com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder builderForValue) { + int index, com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder builderForValue) { if (sourceObjectsBuilder_ == null) { ensureSourceObjectsIsMutable(); sourceObjects_.add(index, builderForValue.build()); @@ -3254,21 +2854,18 @@ public Builder addSourceObjects( return this; } /** - * - * *
                  * The list of source objects that will be concatenated into a single object.
                  * 
            * - * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; - * + * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ public Builder addAllSourceObjects( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (sourceObjectsBuilder_ == null) { ensureSourceObjectsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sourceObjects_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sourceObjects_); onChanged(); } else { sourceObjectsBuilder_.addAllMessages(values); @@ -3276,14 +2873,11 @@ public Builder addAllSourceObjects( return this; } /** - * - * *
                  * The list of source objects that will be concatenated into a single object.
                  * 
            * - * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; - * + * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ public Builder clearSourceObjects() { if (sourceObjectsBuilder_ == null) { @@ -3296,14 +2890,11 @@ public Builder clearSourceObjects() { return this; } /** - * - * *
                  * The list of source objects that will be concatenated into a single object.
                  * 
            * - * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; - * + * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ public Builder removeSourceObjects(int index) { if (sourceObjectsBuilder_ == null) { @@ -3316,50 +2907,39 @@ public Builder removeSourceObjects(int index) { return this; } /** - * - * *
                  * The list of source objects that will be concatenated into a single object.
                  * 
            * - * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; - * + * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ public com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder getSourceObjectsBuilder( int index) { return getSourceObjectsFieldBuilder().getBuilder(index); } /** - * - * *
                  * The list of source objects that will be concatenated into a single object.
                  * 
            * - * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; - * + * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ - public com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder - getSourceObjectsOrBuilder(int index) { + public com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder getSourceObjectsOrBuilder( + int index) { if (sourceObjectsBuilder_ == null) { - return sourceObjects_.get(index); - } else { + return sourceObjects_.get(index); } else { return sourceObjectsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
                  * The list of source objects that will be concatenated into a single object.
                  * 
            * - * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; - * + * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ - public java.util.List< - ? extends com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder> - getSourceObjectsOrBuilderList() { + public java.util.List + getSourceObjectsOrBuilderList() { if (sourceObjectsBuilder_ != null) { return sourceObjectsBuilder_.getMessageOrBuilderList(); } else { @@ -3367,62 +2947,45 @@ public com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder getSource } } /** - * - * *
                  * The list of source objects that will be concatenated into a single object.
                  * 
            * - * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; - * + * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ - public com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder - addSourceObjectsBuilder() { - return getSourceObjectsFieldBuilder() - .addBuilder(com.google.storage.v2.ComposeObjectRequest.SourceObject.getDefaultInstance()); + public com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder addSourceObjectsBuilder() { + return getSourceObjectsFieldBuilder().addBuilder( + com.google.storage.v2.ComposeObjectRequest.SourceObject.getDefaultInstance()); } /** - * - * *
                  * The list of source objects that will be concatenated into a single object.
                  * 
            * - * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; - * + * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ public com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder addSourceObjectsBuilder( int index) { - return getSourceObjectsFieldBuilder() - .addBuilder( - index, com.google.storage.v2.ComposeObjectRequest.SourceObject.getDefaultInstance()); + return getSourceObjectsFieldBuilder().addBuilder( + index, com.google.storage.v2.ComposeObjectRequest.SourceObject.getDefaultInstance()); } /** - * - * *
                  * The list of source objects that will be concatenated into a single object.
                  * 
            * - * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; - * + * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ - public java.util.List - getSourceObjectsBuilderList() { + public java.util.List + getSourceObjectsBuilderList() { return getSourceObjectsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.ComposeObjectRequest.SourceObject, - com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder, - com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder> + com.google.storage.v2.ComposeObjectRequest.SourceObject, com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder, com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder> getSourceObjectsFieldBuilder() { if (sourceObjectsBuilder_ == null) { - sourceObjectsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.ComposeObjectRequest.SourceObject, - com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder, - com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder>( + sourceObjectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.storage.v2.ComposeObjectRequest.SourceObject, com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder, com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder>( sourceObjects_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -3434,8 +2997,6 @@ public com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder addSource private java.lang.Object destinationPredefinedAcl_ = ""; /** - * - * *
                  * Apply a predefined set of access controls to the destination object.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -3443,13 +3004,13 @@ public com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder addSource
                  * 
            * * string destination_predefined_acl = 9; - * * @return The destinationPredefinedAcl. */ public java.lang.String getDestinationPredefinedAcl() { java.lang.Object ref = destinationPredefinedAcl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationPredefinedAcl_ = s; return s; @@ -3458,8 +3019,6 @@ public java.lang.String getDestinationPredefinedAcl() { } } /** - * - * *
                  * Apply a predefined set of access controls to the destination object.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -3467,14 +3026,15 @@ public java.lang.String getDestinationPredefinedAcl() {
                  * 
            * * string destination_predefined_acl = 9; - * * @return The bytes for destinationPredefinedAcl. */ - public com.google.protobuf.ByteString getDestinationPredefinedAclBytes() { + public com.google.protobuf.ByteString + getDestinationPredefinedAclBytes() { java.lang.Object ref = destinationPredefinedAcl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); destinationPredefinedAcl_ = b; return b; } else { @@ -3482,8 +3042,6 @@ public com.google.protobuf.ByteString getDestinationPredefinedAclBytes() { } } /** - * - * *
                  * Apply a predefined set of access controls to the destination object.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -3491,22 +3049,18 @@ public com.google.protobuf.ByteString getDestinationPredefinedAclBytes() {
                  * 
            * * string destination_predefined_acl = 9; - * * @param value The destinationPredefinedAcl to set. * @return This builder for chaining. */ - public Builder setDestinationPredefinedAcl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationPredefinedAcl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } destinationPredefinedAcl_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
                  * Apply a predefined set of access controls to the destination object.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -3514,7 +3068,6 @@ public Builder setDestinationPredefinedAcl(java.lang.String value) {
                  * 
            * * string destination_predefined_acl = 9; - * * @return This builder for chaining. */ public Builder clearDestinationPredefinedAcl() { @@ -3524,8 +3077,6 @@ public Builder clearDestinationPredefinedAcl() { return this; } /** - * - * *
                  * Apply a predefined set of access controls to the destination object.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -3533,14 +3084,12 @@ public Builder clearDestinationPredefinedAcl() {
                  * 
            * * string destination_predefined_acl = 9; - * * @param value The bytes for destinationPredefinedAcl to set. * @return This builder for chaining. */ - public Builder setDestinationPredefinedAclBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationPredefinedAclBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); destinationPredefinedAcl_ = value; bitField0_ |= 0x00000004; @@ -3548,10 +3097,8 @@ public Builder setDestinationPredefinedAclBytes(com.google.protobuf.ByteString v return this; } - private long ifGenerationMatch_; + private long ifGenerationMatch_ ; /** - * - * *
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -3559,7 +3106,6 @@ public Builder setDestinationPredefinedAclBytes(com.google.protobuf.ByteString v
                  * 
            * * optional int64 if_generation_match = 4; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -3567,8 +3113,6 @@ public boolean hasIfGenerationMatch() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -3576,7 +3120,6 @@ public boolean hasIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_match = 4; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -3584,8 +3127,6 @@ public long getIfGenerationMatch() { return ifGenerationMatch_; } /** - * - * *
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -3593,7 +3134,6 @@ public long getIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_match = 4; - * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ @@ -3605,8 +3145,6 @@ public Builder setIfGenerationMatch(long value) { return this; } /** - * - * *
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -3614,7 +3152,6 @@ public Builder setIfGenerationMatch(long value) {
                  * 
            * * optional int64 if_generation_match = 4; - * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -3624,17 +3161,14 @@ public Builder clearIfGenerationMatch() { return this; } - private long ifMetagenerationMatch_; + private long ifMetagenerationMatch_ ; /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 5; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -3642,15 +3176,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 5; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -3658,15 +3189,12 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 5; - * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -3678,15 +3206,12 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 5; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -3698,8 +3223,6 @@ public Builder clearIfMetagenerationMatch() { private java.lang.Object kmsKey_ = ""; /** - * - * *
                  * Resource name of the Cloud KMS key, of the form
                  * `projects/my-project/locations/my-location/keyRings/my-kr/cryptoKeys/my-key`,
            @@ -3708,13 +3231,13 @@ public Builder clearIfMetagenerationMatch() {
                  * 
            * * string kms_key = 6 [(.google.api.resource_reference) = { ... } - * * @return The kmsKey. */ public java.lang.String getKmsKey() { java.lang.Object ref = kmsKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKey_ = s; return s; @@ -3723,8 +3246,6 @@ public java.lang.String getKmsKey() { } } /** - * - * *
                  * Resource name of the Cloud KMS key, of the form
                  * `projects/my-project/locations/my-location/keyRings/my-kr/cryptoKeys/my-key`,
            @@ -3733,14 +3254,15 @@ public java.lang.String getKmsKey() {
                  * 
            * * string kms_key = 6 [(.google.api.resource_reference) = { ... } - * * @return The bytes for kmsKey. */ - public com.google.protobuf.ByteString getKmsKeyBytes() { + public com.google.protobuf.ByteString + getKmsKeyBytes() { java.lang.Object ref = kmsKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKey_ = b; return b; } else { @@ -3748,8 +3270,6 @@ public com.google.protobuf.ByteString getKmsKeyBytes() { } } /** - * - * *
                  * Resource name of the Cloud KMS key, of the form
                  * `projects/my-project/locations/my-location/keyRings/my-kr/cryptoKeys/my-key`,
            @@ -3758,22 +3278,18 @@ public com.google.protobuf.ByteString getKmsKeyBytes() {
                  * 
            * * string kms_key = 6 [(.google.api.resource_reference) = { ... } - * * @param value The kmsKey to set. * @return This builder for chaining. */ - public Builder setKmsKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsKey_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
                  * Resource name of the Cloud KMS key, of the form
                  * `projects/my-project/locations/my-location/keyRings/my-kr/cryptoKeys/my-key`,
            @@ -3782,7 +3298,6 @@ public Builder setKmsKey(java.lang.String value) {
                  * 
            * * string kms_key = 6 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearKmsKey() { @@ -3792,8 +3307,6 @@ public Builder clearKmsKey() { return this; } /** - * - * *
                  * Resource name of the Cloud KMS key, of the form
                  * `projects/my-project/locations/my-location/keyRings/my-kr/cryptoKeys/my-key`,
            @@ -3802,14 +3315,12 @@ public Builder clearKmsKey() {
                  * 
            * * string kms_key = 6 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for kmsKey to set. * @return This builder for chaining. */ - public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKey_ = value; bitField0_ |= 0x00000020; @@ -3819,55 +3330,41 @@ public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> - commonObjectRequestParamsBuilder_; + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> commonObjectRequestParamsBuilder_; /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 7; - * * @return Whether the commonObjectRequestParams field is set. */ public boolean hasCommonObjectRequestParams() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 7; - * * @return The commonObjectRequestParams. */ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { if (commonObjectRequestParamsBuilder_ == null) { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } else { return commonObjectRequestParamsBuilder_.getMessage(); } } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 7; */ - public Builder setCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3881,8 +3378,6 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -3901,21 +3396,17 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 7; */ - public Builder mergeCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && commonObjectRequestParams_ != null - && commonObjectRequestParams_ - != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + commonObjectRequestParams_ != null && + commonObjectRequestParams_ != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { getCommonObjectRequestParamsBuilder().mergeFrom(value); } else { commonObjectRequestParams_ = value; @@ -3930,8 +3421,6 @@ public Builder mergeCommonObjectRequestParams( return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -3949,42 +3438,33 @@ public Builder clearCommonObjectRequestParams() { return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 7; */ - public com.google.storage.v2.CommonObjectRequestParams.Builder - getCommonObjectRequestParamsBuilder() { + public com.google.storage.v2.CommonObjectRequestParams.Builder getCommonObjectRequestParamsBuilder() { bitField0_ |= 0x00000040; onChanged(); return getCommonObjectRequestParamsFieldBuilder().getBuilder(); } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 7; */ - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { if (commonObjectRequestParamsBuilder_ != null) { return commonObjectRequestParamsBuilder_.getMessageOrBuilder(); } else { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? + com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -3992,17 +3472,14 @@ public Builder clearCommonObjectRequestParams() { * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> getCommonObjectRequestParamsFieldBuilder() { if (commonObjectRequestParamsBuilder_ == null) { - commonObjectRequestParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( - getCommonObjectRequestParams(), getParentForChildren(), isClean()); + commonObjectRequestParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( + getCommonObjectRequestParams(), + getParentForChildren(), + isClean()); commonObjectRequestParams_ = null; } return commonObjectRequestParamsBuilder_; @@ -4010,49 +3487,36 @@ public Builder clearCommonObjectRequestParams() { private com.google.storage.v2.ObjectChecksums objectChecksums_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.ObjectChecksums, - com.google.storage.v2.ObjectChecksums.Builder, - com.google.storage.v2.ObjectChecksumsOrBuilder> - objectChecksumsBuilder_; + com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder> objectChecksumsBuilder_; /** - * - * *
                  * The checksums of the complete object. This will be validated against the
                  * combined checksums of the component objects.
                  * 
            * * .google.storage.v2.ObjectChecksums object_checksums = 10; - * * @return Whether the objectChecksums field is set. */ public boolean hasObjectChecksums() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
                  * The checksums of the complete object. This will be validated against the
                  * combined checksums of the component objects.
                  * 
            * * .google.storage.v2.ObjectChecksums object_checksums = 10; - * * @return The objectChecksums. */ public com.google.storage.v2.ObjectChecksums getObjectChecksums() { if (objectChecksumsBuilder_ == null) { - return objectChecksums_ == null - ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() - : objectChecksums_; + return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_; } else { return objectChecksumsBuilder_.getMessage(); } } /** - * - * *
                  * The checksums of the complete object. This will be validated against the
                  * combined checksums of the component objects.
            @@ -4074,8 +3538,6 @@ public Builder setObjectChecksums(com.google.storage.v2.ObjectChecksums value) {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * The checksums of the complete object. This will be validated against the
                  * combined checksums of the component objects.
            @@ -4095,8 +3557,6 @@ public Builder setObjectChecksums(
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * The checksums of the complete object. This will be validated against the
                  * combined checksums of the component objects.
            @@ -4106,9 +3566,9 @@ public Builder setObjectChecksums(
                  */
                 public Builder mergeObjectChecksums(com.google.storage.v2.ObjectChecksums value) {
                   if (objectChecksumsBuilder_ == null) {
            -        if (((bitField0_ & 0x00000080) != 0)
            -            && objectChecksums_ != null
            -            && objectChecksums_ != com.google.storage.v2.ObjectChecksums.getDefaultInstance()) {
            +        if (((bitField0_ & 0x00000080) != 0) &&
            +          objectChecksums_ != null &&
            +          objectChecksums_ != com.google.storage.v2.ObjectChecksums.getDefaultInstance()) {
                       getObjectChecksumsBuilder().mergeFrom(value);
                     } else {
                       objectChecksums_ = value;
            @@ -4123,8 +3583,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.
            @@ -4143,8 +3601,6 @@ public Builder clearObjectChecksums() {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * The checksums of the complete object. This will be validated against the
                  * combined checksums of the component objects.
            @@ -4158,8 +3614,6 @@ public com.google.storage.v2.ObjectChecksums.Builder getObjectChecksumsBuilder()
                   return getObjectChecksumsFieldBuilder().getBuilder();
                 }
                 /**
            -     *
            -     *
                  * 
                  * The checksums of the complete object. This will be validated against the
                  * combined checksums of the component objects.
            @@ -4171,14 +3625,11 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
                   if (objectChecksumsBuilder_ != null) {
                     return objectChecksumsBuilder_.getMessageOrBuilder();
                   } else {
            -        return objectChecksums_ == null
            -            ? com.google.storage.v2.ObjectChecksums.getDefaultInstance()
            -            : objectChecksums_;
            +        return objectChecksums_ == null ?
            +            com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_;
                   }
                 }
                 /**
            -     *
            -     *
                  * 
                  * The checksums of the complete object. This will be validated against the
                  * combined checksums of the component objects.
            @@ -4187,24 +3638,21 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
                  * .google.storage.v2.ObjectChecksums object_checksums = 10;
                  */
                 private com.google.protobuf.SingleFieldBuilderV3<
            -            com.google.storage.v2.ObjectChecksums,
            -            com.google.storage.v2.ObjectChecksums.Builder,
            -            com.google.storage.v2.ObjectChecksumsOrBuilder>
            +        com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder> 
                     getObjectChecksumsFieldBuilder() {
                   if (objectChecksumsBuilder_ == null) {
            -        objectChecksumsBuilder_ =
            -            new com.google.protobuf.SingleFieldBuilderV3<
            -                com.google.storage.v2.ObjectChecksums,
            -                com.google.storage.v2.ObjectChecksums.Builder,
            -                com.google.storage.v2.ObjectChecksumsOrBuilder>(
            -                getObjectChecksums(), getParentForChildren(), isClean());
            +        objectChecksumsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            +            com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder>(
            +                getObjectChecksums(),
            +                getParentForChildren(),
            +                isClean());
                     objectChecksums_ = null;
                   }
                   return objectChecksumsBuilder_;
                 }
            -
                 @java.lang.Override
            -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
            +    public final Builder setUnknownFields(
            +        final com.google.protobuf.UnknownFieldSet unknownFields) {
                   return super.setUnknownFields(unknownFields);
                 }
             
            @@ -4214,12 +3662,12 @@ public final Builder mergeUnknownFields(
                   return super.mergeUnknownFields(unknownFields);
                 }
             
            +
                 // @@protoc_insertion_point(builder_scope:google.storage.v2.ComposeObjectRequest)
               }
             
               // @@protoc_insertion_point(class_scope:google.storage.v2.ComposeObjectRequest)
               private static final com.google.storage.v2.ComposeObjectRequest DEFAULT_INSTANCE;
            -
               static {
                 DEFAULT_INSTANCE = new com.google.storage.v2.ComposeObjectRequest();
               }
            @@ -4228,27 +3676,27 @@ public static com.google.storage.v2.ComposeObjectRequest getDefaultInstance() {
                 return DEFAULT_INSTANCE;
               }
             
            -  private static final com.google.protobuf.Parser PARSER =
            -      new com.google.protobuf.AbstractParser() {
            -        @java.lang.Override
            -        public ComposeObjectRequest parsePartialFrom(
            -            com.google.protobuf.CodedInputStream input,
            -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            -            throws com.google.protobuf.InvalidProtocolBufferException {
            -          Builder builder = newBuilder();
            -          try {
            -            builder.mergeFrom(input, extensionRegistry);
            -          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            -            throw e.setUnfinishedMessage(builder.buildPartial());
            -          } catch (com.google.protobuf.UninitializedMessageException e) {
            -            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
            -          } catch (java.io.IOException e) {
            -            throw new com.google.protobuf.InvalidProtocolBufferException(e)
            -                .setUnfinishedMessage(builder.buildPartial());
            -          }
            -          return builder.buildPartial();
            -        }
            -      };
            +  private static final com.google.protobuf.Parser
            +      PARSER = new com.google.protobuf.AbstractParser() {
            +    @java.lang.Override
            +    public ComposeObjectRequest parsePartialFrom(
            +        com.google.protobuf.CodedInputStream input,
            +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +        throws com.google.protobuf.InvalidProtocolBufferException {
            +      Builder builder = newBuilder();
            +      try {
            +        builder.mergeFrom(input, extensionRegistry);
            +      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            +        throw e.setUnfinishedMessage(builder.buildPartial());
            +      } catch (com.google.protobuf.UninitializedMessageException e) {
            +        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
            +      } catch (java.io.IOException e) {
            +        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            +            .setUnfinishedMessage(builder.buildPartial());
            +      }
            +      return builder.buildPartial();
            +    }
            +  };
             
               public static com.google.protobuf.Parser parser() {
                 return PARSER;
            @@ -4263,4 +3711,6 @@ public com.google.protobuf.Parser getParserForType() {
               public com.google.storage.v2.ComposeObjectRequest getDefaultInstanceForType() {
                 return DEFAULT_INSTANCE;
               }
            +
             }
            +
            diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ComposeObjectRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ComposeObjectRequestOrBuilder.java
            similarity index 85%
            rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ComposeObjectRequestOrBuilder.java
            rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ComposeObjectRequestOrBuilder.java
            index 1eaa01f1a3..8458f3a94c 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,80 +1,50 @@
            -/*
            - * Copyright 2024 Google LLC
            - *
            - * Licensed under the Apache License, Version 2.0 (the "License");
            - * you may not use this file except in compliance with the License.
            - * You may obtain a copy of the License at
            - *
            - *     https://www.apache.org/licenses/LICENSE-2.0
            - *
            - * Unless required by applicable law or agreed to in writing, software
            - * distributed under the License is distributed on an "AS IS" BASIS,
            - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            - * See the License for the specific language governing permissions and
            - * limitations under the License.
            - */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
             // Protobuf Java Version: 3.25.3
             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.
                * 
            @@ -83,8 +53,6 @@ public interface ComposeObjectRequestOrBuilder */ com.google.storage.v2.ComposeObjectRequest.SourceObject getSourceObjects(int index); /** - * - * *
                * The list of source objects that will be concatenated into a single object.
                * 
            @@ -93,19 +61,15 @@ public interface ComposeObjectRequestOrBuilder */ int getSourceObjectsCount(); /** - * - * *
                * The list of source objects that will be concatenated into a single object.
                * 
            * * repeated .google.storage.v2.ComposeObjectRequest.SourceObject source_objects = 2; */ - java.util.List + java.util.List getSourceObjectsOrBuilderList(); /** - * - * *
                * The list of source objects that will be concatenated into a single object.
                * 
            @@ -116,8 +80,6 @@ com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder getSourceObject int index); /** - * - * *
                * Apply a predefined set of access controls to the destination object.
                * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -125,13 +87,10 @@ com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder getSourceObject
                * 
            * * string destination_predefined_acl = 9; - * * @return The destinationPredefinedAcl. */ java.lang.String getDestinationPredefinedAcl(); /** - * - * *
                * Apply a predefined set of access controls to the destination object.
                * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -139,14 +98,12 @@ com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder getSourceObject
                * 
            * * string destination_predefined_acl = 9; - * * @return The bytes for destinationPredefinedAcl. */ - com.google.protobuf.ByteString getDestinationPredefinedAclBytes(); + com.google.protobuf.ByteString + getDestinationPredefinedAclBytes(); /** - * - * *
                * Makes the operation conditional on whether the object's current generation
                * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -154,13 +111,10 @@ com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder getSourceObject
                * 
            * * optional int64 if_generation_match = 4; - * * @return Whether the ifGenerationMatch field is set. */ boolean hasIfGenerationMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's current generation
                * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -168,41 +122,32 @@ com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder getSourceObject
                * 
            * * optional int64 if_generation_match = 4; - * * @return The ifGenerationMatch. */ long getIfGenerationMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 5; - * * @return Whether the ifMetagenerationMatch field is set. */ boolean hasIfMetagenerationMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 5; - * * @return The ifMetagenerationMatch. */ long getIfMetagenerationMatch(); /** - * - * *
                * Resource name of the Cloud KMS key, of the form
                * `projects/my-project/locations/my-location/keyRings/my-kr/cryptoKeys/my-key`,
            @@ -211,13 +156,10 @@ com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder getSourceObject
                * 
            * * string kms_key = 6 [(.google.api.resource_reference) = { ... } - * * @return The kmsKey. */ java.lang.String getKmsKey(); /** - * - * *
                * Resource name of the Cloud KMS key, of the form
                * `projects/my-project/locations/my-location/keyRings/my-kr/cryptoKeys/my-key`,
            @@ -226,38 +168,30 @@ com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder getSourceObject
                * 
            * * string kms_key = 6 [(.google.api.resource_reference) = { ... } - * * @return The bytes for kmsKey. */ - com.google.protobuf.ByteString getKmsKeyBytes(); + com.google.protobuf.ByteString + getKmsKeyBytes(); /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 7; - * * @return Whether the commonObjectRequestParams field is set. */ boolean hasCommonObjectRequestParams(); /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 7; - * * @return The commonObjectRequestParams. */ com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams(); /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            @@ -267,34 +201,26 @@ com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder getSourceObject com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder(); /** - * - * *
                * The checksums of the complete object. This will be validated against the
                * combined checksums of the component objects.
                * 
            * * .google.storage.v2.ObjectChecksums object_checksums = 10; - * * @return Whether the objectChecksums field is set. */ boolean hasObjectChecksums(); /** - * - * *
                * The checksums of the complete object. This will be validated against the
                * combined checksums of the component objects.
                * 
            * * .google.storage.v2.ObjectChecksums object_checksums = 10; - * * @return The objectChecksums. */ com.google.storage.v2.ObjectChecksums getObjectChecksums(); /** - * - * *
                * The checksums of the complete object. This will be validated against the
                * combined checksums of the component objects.
            diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ContentRange.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ContentRange.java
            similarity index 66%
            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 98a1721113..edcc5f0ed7 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,18 +1,3 @@
            -/*
            - * Copyright 2024 Google LLC
            - *
            - * Licensed under the Apache License, Version 2.0 (the "License");
            - * you may not use this file except in compliance with the License.
            - * You may obtain a copy of the License at
            - *
            - *     https://www.apache.org/licenses/LICENSE-2.0
            - *
            - * Unless required by applicable law or agreed to in writing, software
            - * distributed under the License is distributed on an "AS IS" BASIS,
            - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            - * See the License for the specific language governing permissions and
            - * limitations under the License.
            - */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
            @@ -20,58 +5,52 @@
             package com.google.storage.v2;
             
             /**
            - *
            - *
              * 
              * Specifies a requested range of bytes to download.
              * 
            * * Protobuf type {@code google.storage.v2.ContentRange} */ -public final class ContentRange extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ContentRange extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.ContentRange) ContentRangeOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ContentRange.newBuilder() to construct. private ContentRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ContentRange() {} + private ContentRange() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ContentRange(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ContentRange_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ContentRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ContentRange_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ContentRange_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ContentRange.class, - com.google.storage.v2.ContentRange.Builder.class); + com.google.storage.v2.ContentRange.class, com.google.storage.v2.ContentRange.Builder.class); } public static final int START_FIELD_NUMBER = 1; private long start_ = 0L; /** - * - * *
                * The starting offset of the object data. This value is inclusive.
                * 
            * * int64 start = 1; - * * @return The start. */ @java.lang.Override @@ -82,14 +61,11 @@ public long getStart() { public static final int END_FIELD_NUMBER = 2; private long end_ = 0L; /** - * - * *
                * The ending offset of the object data. This value is exclusive.
                * 
            * * int64 end = 2; - * * @return The end. */ @java.lang.Override @@ -100,14 +76,11 @@ public long getEnd() { public static final int COMPLETE_LENGTH_FIELD_NUMBER = 3; private long completeLength_ = 0L; /** - * - * *
                * The complete length of the object data.
                * 
            * * int64 complete_length = 3; - * * @return The completeLength. */ @java.lang.Override @@ -116,7 +89,6 @@ public long getCompleteLength() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -128,7 +100,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (start_ != 0L) { output.writeInt64(1, start_); } @@ -148,13 +121,16 @@ public int getSerializedSize() { size = 0; if (start_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, start_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, start_); } if (end_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, end_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, end_); } if (completeLength_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, completeLength_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, completeLength_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -164,16 +140,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.ContentRange)) { return super.equals(obj); } com.google.storage.v2.ContentRange other = (com.google.storage.v2.ContentRange) obj; - if (getStart() != other.getStart()) return false; - if (getEnd() != other.getEnd()) return false; - if (getCompleteLength() != other.getCompleteLength()) return false; + if (getStart() + != other.getStart()) return false; + if (getEnd() + != other.getEnd()) return false; + if (getCompleteLength() + != other.getCompleteLength()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,145 +165,145 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + START_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getStart()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStart()); hash = (37 * hash) + END_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEnd()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getEnd()); hash = (37 * hash) + COMPLETE_LENGTH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCompleteLength()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCompleteLength()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.storage.v2.ContentRange parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.ContentRange parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ContentRange parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.v2.ContentRange parseFrom(com.google.protobuf.ByteString data) + public static com.google.storage.v2.ContentRange parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ContentRange parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.ContentRange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ContentRange parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.ContentRange parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.ContentRange parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.storage.v2.ContentRange parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.ContentRange parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.ContentRange parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.ContentRange parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.ContentRange prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * Specifies a requested range of bytes to download.
                * 
            * * Protobuf type {@code google.storage.v2.ContentRange} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.ContentRange) com.google.storage.v2.ContentRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ContentRange_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ContentRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ContentRange_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ContentRange_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ContentRange.class, - com.google.storage.v2.ContentRange.Builder.class); + com.google.storage.v2.ContentRange.class, com.google.storage.v2.ContentRange.Builder.class); } // Construct using com.google.storage.v2.ContentRange.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -336,9 +315,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ContentRange_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ContentRange_descriptor; } @java.lang.Override @@ -358,9 +337,7 @@ public com.google.storage.v2.ContentRange build() { @java.lang.Override public com.google.storage.v2.ContentRange buildPartial() { com.google.storage.v2.ContentRange result = new com.google.storage.v2.ContentRange(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -382,39 +359,38 @@ private void buildPartial0(com.google.storage.v2.ContentRange result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.ContentRange) { - return mergeFrom((com.google.storage.v2.ContentRange) other); + return mergeFrom((com.google.storage.v2.ContentRange)other); } else { super.mergeFrom(other); return this; @@ -458,31 +434,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - start_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - end_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - completeLength_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + start_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + end_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + completeLength_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -492,19 +464,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private long start_; + private long start_ ; /** - * - * *
                  * The starting offset of the object data. This value is inclusive.
                  * 
            * * int64 start = 1; - * * @return The start. */ @java.lang.Override @@ -512,14 +480,11 @@ public long getStart() { return start_; } /** - * - * *
                  * The starting offset of the object data. This value is inclusive.
                  * 
            * * int64 start = 1; - * * @param value The start to set. * @return This builder for chaining. */ @@ -531,14 +496,11 @@ public Builder setStart(long value) { return this; } /** - * - * *
                  * The starting offset of the object data. This value is inclusive.
                  * 
            * * int64 start = 1; - * * @return This builder for chaining. */ public Builder clearStart() { @@ -548,16 +510,13 @@ public Builder clearStart() { return this; } - private long end_; + private long end_ ; /** - * - * *
                  * The ending offset of the object data. This value is exclusive.
                  * 
            * * int64 end = 2; - * * @return The end. */ @java.lang.Override @@ -565,14 +524,11 @@ public long getEnd() { return end_; } /** - * - * *
                  * The ending offset of the object data. This value is exclusive.
                  * 
            * * int64 end = 2; - * * @param value The end to set. * @return This builder for chaining. */ @@ -584,14 +540,11 @@ public Builder setEnd(long value) { return this; } /** - * - * *
                  * The ending offset of the object data. This value is exclusive.
                  * 
            * * int64 end = 2; - * * @return This builder for chaining. */ public Builder clearEnd() { @@ -601,16 +554,13 @@ public Builder clearEnd() { return this; } - private long completeLength_; + private long completeLength_ ; /** - * - * *
                  * The complete length of the object data.
                  * 
            * * int64 complete_length = 3; - * * @return The completeLength. */ @java.lang.Override @@ -618,14 +568,11 @@ public long getCompleteLength() { return completeLength_; } /** - * - * *
                  * The complete length of the object data.
                  * 
            * * int64 complete_length = 3; - * * @param value The completeLength to set. * @return This builder for chaining. */ @@ -637,14 +584,11 @@ public Builder setCompleteLength(long value) { return this; } /** - * - * *
                  * The complete length of the object data.
                  * 
            * * int64 complete_length = 3; - * * @return This builder for chaining. */ public Builder clearCompleteLength() { @@ -653,9 +597,9 @@ public Builder clearCompleteLength() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -665,12 +609,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.ContentRange) } // @@protoc_insertion_point(class_scope:google.storage.v2.ContentRange) private static final com.google.storage.v2.ContentRange DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.ContentRange(); } @@ -679,27 +623,27 @@ public static com.google.storage.v2.ContentRange getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ContentRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContentRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -714,4 +658,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 55% 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 d4cf266f8e..ca2f994fcf 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,64 +1,39 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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. This value is inclusive.
                * 
            * * int64 start = 1; - * * @return The start. */ long getStart(); /** - * - * *
                * The ending offset of the object data. This value is exclusive.
                * 
            * * int64 end = 2; - * * @return The end. */ long getEnd(); /** - * - * *
                * The complete length of the object data.
                * 
            * * int64 complete_length = 3; - * * @return The completeLength. */ long getCompleteLength(); diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequest.java similarity index 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 8c1eed4745..9ea0a7630e 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,24 +5,21 @@ 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_ = ""; @@ -47,41 +29,34 @@ private CreateBucketRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateBucketRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CreateBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CreateBucketRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.CreateBucketRequest.class, - com.google.storage.v2.CreateBucketRequest.Builder.class); + com.google.storage.v2.CreateBucketRequest.class, com.google.storage.v2.CreateBucketRequest.Builder.class); } private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
                * Required. The project to which this bucket will belong.
                * 
            * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -90,31 +65,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
                * Required. The project to which this bucket will belong.
                * 
            * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -125,8 +98,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int BUCKET_FIELD_NUMBER = 2; private com.google.storage.v2.Bucket bucket_; /** - * - * *
                * Properties of the new bucket being inserted.
                * The name of the bucket is specified in the `bucket_id` field. Populating
            @@ -138,7 +109,6 @@ public com.google.protobuf.ByteString getParentBytes() {
                * 
            * * .google.storage.v2.Bucket bucket = 2; - * * @return Whether the bucket field is set. */ @java.lang.Override @@ -146,8 +116,6 @@ public boolean hasBucket() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * Properties of the new bucket being inserted.
                * The name of the bucket is specified in the `bucket_id` field. Populating
            @@ -159,7 +127,6 @@ public boolean hasBucket() {
                * 
            * * .google.storage.v2.Bucket bucket = 2; - * * @return The bucket. */ @java.lang.Override @@ -167,8 +134,6 @@ public com.google.storage.v2.Bucket getBucket() { return bucket_ == null ? com.google.storage.v2.Bucket.getDefaultInstance() : bucket_; } /** - * - * *
                * Properties of the new bucket being inserted.
                * The name of the bucket is specified in the `bucket_id` field. Populating
            @@ -187,12 +152,9 @@ public com.google.storage.v2.BucketOrBuilder getBucketOrBuilder() {
               }
             
               public static final int BUCKET_ID_FIELD_NUMBER = 3;
            -
               @SuppressWarnings("serial")
               private volatile java.lang.Object bucketId_ = "";
               /**
            -   *
            -   *
                * 
                * Required. The ID to use for this bucket, which will become the final
                * component of the bucket's resource name. For example, the value `foo` might
            @@ -200,7 +162,6 @@ public com.google.storage.v2.BucketOrBuilder getBucketOrBuilder() {
                * 
            * * string bucket_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bucketId. */ @java.lang.Override @@ -209,15 +170,14 @@ public java.lang.String getBucketId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucketId_ = s; return s; } } /** - * - * *
                * Required. The ID to use for this bucket, which will become the final
                * component of the bucket's resource name. For example, the value `foo` might
            @@ -225,15 +185,16 @@ public java.lang.String getBucketId() {
                * 
            * * string bucket_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for bucketId. */ @java.lang.Override - public com.google.protobuf.ByteString getBucketIdBytes() { + public com.google.protobuf.ByteString + getBucketIdBytes() { java.lang.Object ref = bucketId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); bucketId_ = b; return b; } else { @@ -242,12 +203,9 @@ public com.google.protobuf.ByteString getBucketIdBytes() { } public static final int PREDEFINED_ACL_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object predefinedAcl_ = ""; /** - * - * *
                * Apply a predefined set of access controls to this bucket.
                * Valid values are "authenticatedRead", "private", "projectPrivate",
            @@ -255,7 +213,6 @@ public com.google.protobuf.ByteString getBucketIdBytes() {
                * 
            * * string predefined_acl = 6; - * * @return The predefinedAcl. */ @java.lang.Override @@ -264,15 +221,14 @@ public java.lang.String getPredefinedAcl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); predefinedAcl_ = s; return s; } } /** - * - * *
                * Apply a predefined set of access controls to this bucket.
                * Valid values are "authenticatedRead", "private", "projectPrivate",
            @@ -280,15 +236,16 @@ public java.lang.String getPredefinedAcl() {
                * 
            * * string predefined_acl = 6; - * * @return The bytes for predefinedAcl. */ @java.lang.Override - public com.google.protobuf.ByteString getPredefinedAclBytes() { + public com.google.protobuf.ByteString + getPredefinedAclBytes() { java.lang.Object ref = predefinedAcl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); predefinedAcl_ = b; return b; } else { @@ -297,12 +254,9 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() { } public static final int PREDEFINED_DEFAULT_OBJECT_ACL_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object predefinedDefaultObjectAcl_ = ""; /** - * - * *
                * Apply a predefined set of default object access controls to this bucket.
                * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -310,7 +264,6 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() {
                * 
            * * string predefined_default_object_acl = 7; - * * @return The predefinedDefaultObjectAcl. */ @java.lang.Override @@ -319,15 +272,14 @@ public java.lang.String getPredefinedDefaultObjectAcl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); predefinedDefaultObjectAcl_ = s; return s; } } /** - * - * *
                * Apply a predefined set of default object access controls to this bucket.
                * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -335,15 +287,16 @@ public java.lang.String getPredefinedDefaultObjectAcl() {
                * 
            * * string predefined_default_object_acl = 7; - * * @return The bytes for predefinedDefaultObjectAcl. */ @java.lang.Override - public com.google.protobuf.ByteString getPredefinedDefaultObjectAclBytes() { + public com.google.protobuf.ByteString + getPredefinedDefaultObjectAclBytes() { java.lang.Object ref = predefinedDefaultObjectAcl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); predefinedDefaultObjectAcl_ = b; return b; } else { @@ -352,7 +305,6 @@ public com.google.protobuf.ByteString getPredefinedDefaultObjectAclBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -364,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -393,7 +346,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (((bitField0_ & 0x00000001) != 0)) { - 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_); @@ -402,8 +356,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, predefinedAcl_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(predefinedDefaultObjectAcl_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(7, predefinedDefaultObjectAcl_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, predefinedDefaultObjectAcl_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -413,23 +366,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.CreateBucketRequest)) { return super.equals(obj); } - com.google.storage.v2.CreateBucketRequest other = - (com.google.storage.v2.CreateBucketRequest) obj; + com.google.storage.v2.CreateBucketRequest other = (com.google.storage.v2.CreateBucketRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasBucket() != other.hasBucket()) return false; if (hasBucket()) { - if (!getBucket().equals(other.getBucket())) return false; - } - if (!getBucketId().equals(other.getBucketId())) return false; - if (!getPredefinedAcl().equals(other.getPredefinedAcl())) return false; - if (!getPredefinedDefaultObjectAcl().equals(other.getPredefinedDefaultObjectAcl())) - return false; + if (!getBucket() + .equals(other.getBucket())) return false; + } + if (!getBucketId() + .equals(other.getBucketId())) return false; + if (!getPredefinedAcl() + .equals(other.getPredefinedAcl())) return false; + if (!getPredefinedDefaultObjectAcl() + .equals(other.getPredefinedDefaultObjectAcl())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -458,127 +414,120 @@ 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() @@ -586,17 +535,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) { getBucketFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -614,9 +563,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CreateBucketRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateBucketRequest_descriptor; } @java.lang.Override @@ -635,11 +584,8 @@ public com.google.storage.v2.CreateBucketRequest build() { @java.lang.Override public com.google.storage.v2.CreateBucketRequest buildPartial() { - com.google.storage.v2.CreateBucketRequest result = - new com.google.storage.v2.CreateBucketRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.CreateBucketRequest result = new com.google.storage.v2.CreateBucketRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -651,7 +597,9 @@ private void buildPartial0(com.google.storage.v2.CreateBucketRequest result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.bucket_ = bucketBuilder_ == null ? bucket_ : bucketBuilder_.build(); + result.bucket_ = bucketBuilder_ == null + ? bucket_ + : bucketBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -670,39 +618,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; @@ -760,43 +707,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getBucketFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - bucketId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 50: - { - predefinedAcl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 50 - case 58: - { - predefinedDefaultObjectAcl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getBucketFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + bucketId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 50: { + predefinedAcl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 50 + case 58: { + predefinedDefaultObjectAcl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -806,27 +749,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
                  * Required. The project to which this bucket will belong.
                  * 
            * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -835,23 +773,20 @@ public java.lang.String getParent() { } } /** - * - * *
                  * Required. The project to which this bucket will belong.
                  * 
            * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -859,39 +794,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
                  * Required. The project to which this bucket will belong.
                  * 
            * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * Required. The project to which this bucket will belong.
                  * 
            * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -901,23 +825,17 @@ public Builder clearParent() { return this; } /** - * - * *
                  * Required. The project to which this bucket will belong.
                  * 
            * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -927,13 +845,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.storage.v2.Bucket bucket_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket, - com.google.storage.v2.Bucket.Builder, - com.google.storage.v2.BucketOrBuilder> - bucketBuilder_; + com.google.storage.v2.Bucket, com.google.storage.v2.Bucket.Builder, com.google.storage.v2.BucketOrBuilder> bucketBuilder_; /** - * - * *
                  * Properties of the new bucket being inserted.
                  * The name of the bucket is specified in the `bucket_id` field. Populating
            @@ -945,15 +858,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
                  * 
            * * .google.storage.v2.Bucket bucket = 2; - * * @return Whether the bucket field is set. */ public boolean hasBucket() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                  * Properties of the new bucket being inserted.
                  * The name of the bucket is specified in the `bucket_id` field. Populating
            @@ -965,7 +875,6 @@ public boolean hasBucket() {
                  * 
            * * .google.storage.v2.Bucket bucket = 2; - * * @return The bucket. */ public com.google.storage.v2.Bucket getBucket() { @@ -976,8 +885,6 @@ public com.google.storage.v2.Bucket getBucket() { } } /** - * - * *
                  * Properties of the new bucket being inserted.
                  * The name of the bucket is specified in the `bucket_id` field. Populating
            @@ -1004,8 +911,6 @@ public Builder setBucket(com.google.storage.v2.Bucket value) {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Properties of the new bucket being inserted.
                  * The name of the bucket is specified in the `bucket_id` field. Populating
            @@ -1018,7 +923,8 @@ public Builder setBucket(com.google.storage.v2.Bucket value) {
                  *
                  * .google.storage.v2.Bucket bucket = 2;
                  */
            -    public Builder setBucket(com.google.storage.v2.Bucket.Builder builderForValue) {
            +    public Builder setBucket(
            +        com.google.storage.v2.Bucket.Builder builderForValue) {
                   if (bucketBuilder_ == null) {
                     bucket_ = builderForValue.build();
                   } else {
            @@ -1029,8 +935,6 @@ public Builder setBucket(com.google.storage.v2.Bucket.Builder builderForValue) {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Properties of the new bucket being inserted.
                  * The name of the bucket is specified in the `bucket_id` field. Populating
            @@ -1045,9 +949,9 @@ public Builder setBucket(com.google.storage.v2.Bucket.Builder builderForValue) {
                  */
                 public Builder mergeBucket(com.google.storage.v2.Bucket value) {
                   if (bucketBuilder_ == null) {
            -        if (((bitField0_ & 0x00000002) != 0)
            -            && bucket_ != null
            -            && bucket_ != com.google.storage.v2.Bucket.getDefaultInstance()) {
            +        if (((bitField0_ & 0x00000002) != 0) &&
            +          bucket_ != null &&
            +          bucket_ != com.google.storage.v2.Bucket.getDefaultInstance()) {
                       getBucketBuilder().mergeFrom(value);
                     } else {
                       bucket_ = value;
            @@ -1062,8 +966,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
            @@ -1087,8 +989,6 @@ public Builder clearBucket() {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Properties of the new bucket being inserted.
                  * The name of the bucket is specified in the `bucket_id` field. Populating
            @@ -1107,8 +1007,6 @@ public com.google.storage.v2.Bucket.Builder getBucketBuilder() {
                   return getBucketFieldBuilder().getBuilder();
                 }
                 /**
            -     *
            -     *
                  * 
                  * Properties of the new bucket being inserted.
                  * The name of the bucket is specified in the `bucket_id` field. Populating
            @@ -1125,12 +1023,11 @@ public com.google.storage.v2.BucketOrBuilder getBucketOrBuilder() {
                   if (bucketBuilder_ != null) {
                     return bucketBuilder_.getMessageOrBuilder();
                   } else {
            -        return bucket_ == null ? com.google.storage.v2.Bucket.getDefaultInstance() : bucket_;
            +        return bucket_ == null ?
            +            com.google.storage.v2.Bucket.getDefaultInstance() : bucket_;
                   }
                 }
                 /**
            -     *
            -     *
                  * 
                  * Properties of the new bucket being inserted.
                  * The name of the bucket is specified in the `bucket_id` field. Populating
            @@ -1144,17 +1041,14 @@ public com.google.storage.v2.BucketOrBuilder getBucketOrBuilder() {
                  * .google.storage.v2.Bucket bucket = 2;
                  */
                 private com.google.protobuf.SingleFieldBuilderV3<
            -            com.google.storage.v2.Bucket,
            -            com.google.storage.v2.Bucket.Builder,
            -            com.google.storage.v2.BucketOrBuilder>
            +        com.google.storage.v2.Bucket, com.google.storage.v2.Bucket.Builder, com.google.storage.v2.BucketOrBuilder> 
                     getBucketFieldBuilder() {
                   if (bucketBuilder_ == null) {
            -        bucketBuilder_ =
            -            new com.google.protobuf.SingleFieldBuilderV3<
            -                com.google.storage.v2.Bucket,
            -                com.google.storage.v2.Bucket.Builder,
            -                com.google.storage.v2.BucketOrBuilder>(
            -                getBucket(), getParentForChildren(), isClean());
            +        bucketBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            +            com.google.storage.v2.Bucket, com.google.storage.v2.Bucket.Builder, com.google.storage.v2.BucketOrBuilder>(
            +                getBucket(),
            +                getParentForChildren(),
            +                isClean());
                     bucket_ = null;
                   }
                   return bucketBuilder_;
            @@ -1162,8 +1056,6 @@ public com.google.storage.v2.BucketOrBuilder getBucketOrBuilder() {
             
                 private java.lang.Object bucketId_ = "";
                 /**
            -     *
            -     *
                  * 
                  * Required. The ID to use for this bucket, which will become the final
                  * component of the bucket's resource name. For example, the value `foo` might
            @@ -1171,13 +1063,13 @@ public com.google.storage.v2.BucketOrBuilder getBucketOrBuilder() {
                  * 
            * * string bucket_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bucketId. */ public java.lang.String getBucketId() { java.lang.Object ref = bucketId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucketId_ = s; return s; @@ -1186,8 +1078,6 @@ public java.lang.String getBucketId() { } } /** - * - * *
                  * Required. The ID to use for this bucket, which will become the final
                  * component of the bucket's resource name. For example, the value `foo` might
            @@ -1195,14 +1085,15 @@ public java.lang.String getBucketId() {
                  * 
            * * string bucket_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for bucketId. */ - public com.google.protobuf.ByteString getBucketIdBytes() { + public com.google.protobuf.ByteString + getBucketIdBytes() { java.lang.Object ref = bucketId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); bucketId_ = b; return b; } else { @@ -1210,8 +1101,6 @@ public com.google.protobuf.ByteString getBucketIdBytes() { } } /** - * - * *
                  * Required. The ID to use for this bucket, which will become the final
                  * component of the bucket's resource name. For example, the value `foo` might
            @@ -1219,22 +1108,18 @@ public com.google.protobuf.ByteString getBucketIdBytes() {
                  * 
            * * string bucket_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bucketId to set. * @return This builder for chaining. */ - public Builder setBucketId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBucketId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } bucketId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
                  * Required. The ID to use for this bucket, which will become the final
                  * component of the bucket's resource name. For example, the value `foo` might
            @@ -1242,7 +1127,6 @@ public Builder setBucketId(java.lang.String value) {
                  * 
            * * string bucket_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearBucketId() { @@ -1252,8 +1136,6 @@ public Builder clearBucketId() { return this; } /** - * - * *
                  * Required. The ID to use for this bucket, which will become the final
                  * component of the bucket's resource name. For example, the value `foo` might
            @@ -1261,14 +1143,12 @@ public Builder clearBucketId() {
                  * 
            * * string bucket_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for bucketId to set. * @return This builder for chaining. */ - public Builder setBucketIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBucketIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bucketId_ = value; bitField0_ |= 0x00000004; @@ -1278,8 +1158,6 @@ public Builder setBucketIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object predefinedAcl_ = ""; /** - * - * *
                  * Apply a predefined set of access controls to this bucket.
                  * Valid values are "authenticatedRead", "private", "projectPrivate",
            @@ -1287,13 +1165,13 @@ public Builder setBucketIdBytes(com.google.protobuf.ByteString value) {
                  * 
            * * string predefined_acl = 6; - * * @return The predefinedAcl. */ public java.lang.String getPredefinedAcl() { java.lang.Object ref = predefinedAcl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); predefinedAcl_ = s; return s; @@ -1302,8 +1180,6 @@ public java.lang.String getPredefinedAcl() { } } /** - * - * *
                  * Apply a predefined set of access controls to this bucket.
                  * Valid values are "authenticatedRead", "private", "projectPrivate",
            @@ -1311,14 +1187,15 @@ public java.lang.String getPredefinedAcl() {
                  * 
            * * string predefined_acl = 6; - * * @return The bytes for predefinedAcl. */ - public com.google.protobuf.ByteString getPredefinedAclBytes() { + public com.google.protobuf.ByteString + getPredefinedAclBytes() { java.lang.Object ref = predefinedAcl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); predefinedAcl_ = b; return b; } else { @@ -1326,8 +1203,6 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() { } } /** - * - * *
                  * Apply a predefined set of access controls to this bucket.
                  * Valid values are "authenticatedRead", "private", "projectPrivate",
            @@ -1335,22 +1210,18 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() {
                  * 
            * * string predefined_acl = 6; - * * @param value The predefinedAcl to set. * @return This builder for chaining. */ - public Builder setPredefinedAcl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPredefinedAcl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } predefinedAcl_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
                  * Apply a predefined set of access controls to this bucket.
                  * Valid values are "authenticatedRead", "private", "projectPrivate",
            @@ -1358,7 +1229,6 @@ public Builder setPredefinedAcl(java.lang.String value) {
                  * 
            * * string predefined_acl = 6; - * * @return This builder for chaining. */ public Builder clearPredefinedAcl() { @@ -1368,8 +1238,6 @@ public Builder clearPredefinedAcl() { return this; } /** - * - * *
                  * Apply a predefined set of access controls to this bucket.
                  * Valid values are "authenticatedRead", "private", "projectPrivate",
            @@ -1377,14 +1245,12 @@ public Builder clearPredefinedAcl() {
                  * 
            * * string predefined_acl = 6; - * * @param value The bytes for predefinedAcl to set. * @return This builder for chaining. */ - public Builder setPredefinedAclBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPredefinedAclBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); predefinedAcl_ = value; bitField0_ |= 0x00000008; @@ -1394,8 +1260,6 @@ public Builder setPredefinedAclBytes(com.google.protobuf.ByteString value) { private java.lang.Object predefinedDefaultObjectAcl_ = ""; /** - * - * *
                  * Apply a predefined set of default object access controls to this bucket.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -1403,13 +1267,13 @@ public Builder setPredefinedAclBytes(com.google.protobuf.ByteString value) {
                  * 
            * * string predefined_default_object_acl = 7; - * * @return The predefinedDefaultObjectAcl. */ public java.lang.String getPredefinedDefaultObjectAcl() { java.lang.Object ref = predefinedDefaultObjectAcl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); predefinedDefaultObjectAcl_ = s; return s; @@ -1418,8 +1282,6 @@ public java.lang.String getPredefinedDefaultObjectAcl() { } } /** - * - * *
                  * Apply a predefined set of default object access controls to this bucket.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -1427,14 +1289,15 @@ public java.lang.String getPredefinedDefaultObjectAcl() {
                  * 
            * * string predefined_default_object_acl = 7; - * * @return The bytes for predefinedDefaultObjectAcl. */ - public com.google.protobuf.ByteString getPredefinedDefaultObjectAclBytes() { + public com.google.protobuf.ByteString + getPredefinedDefaultObjectAclBytes() { java.lang.Object ref = predefinedDefaultObjectAcl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); predefinedDefaultObjectAcl_ = b; return b; } else { @@ -1442,8 +1305,6 @@ public com.google.protobuf.ByteString getPredefinedDefaultObjectAclBytes() { } } /** - * - * *
                  * Apply a predefined set of default object access controls to this bucket.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -1451,22 +1312,18 @@ public com.google.protobuf.ByteString getPredefinedDefaultObjectAclBytes() {
                  * 
            * * string predefined_default_object_acl = 7; - * * @param value The predefinedDefaultObjectAcl to set. * @return This builder for chaining. */ - public Builder setPredefinedDefaultObjectAcl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPredefinedDefaultObjectAcl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } predefinedDefaultObjectAcl_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
                  * Apply a predefined set of default object access controls to this bucket.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -1474,7 +1331,6 @@ public Builder setPredefinedDefaultObjectAcl(java.lang.String value) {
                  * 
            * * string predefined_default_object_acl = 7; - * * @return This builder for chaining. */ public Builder clearPredefinedDefaultObjectAcl() { @@ -1484,8 +1340,6 @@ public Builder clearPredefinedDefaultObjectAcl() { return this; } /** - * - * *
                  * Apply a predefined set of default object access controls to this bucket.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -1493,23 +1347,21 @@ public Builder clearPredefinedDefaultObjectAcl() {
                  * 
            * * string predefined_default_object_acl = 7; - * * @param value The bytes for predefinedDefaultObjectAcl to set. * @return This builder for chaining. */ - public Builder setPredefinedDefaultObjectAclBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPredefinedDefaultObjectAclBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); predefinedDefaultObjectAcl_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1519,12 +1371,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.CreateBucketRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.CreateBucketRequest) private static final com.google.storage.v2.CreateBucketRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.CreateBucketRequest(); } @@ -1533,27 +1385,27 @@ public static com.google.storage.v2.CreateBucketRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateBucketRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBucketRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1568,4 +1420,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.CreateBucketRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateBucketRequestOrBuilder.java similarity index 78% 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 32fa4e23d6..86c52f7b14 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,61 +1,34 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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
            @@ -67,13 +40,10 @@ public interface CreateBucketRequestOrBuilder
                * 
            * * .google.storage.v2.Bucket bucket = 2; - * * @return Whether the bucket field is set. */ boolean hasBucket(); /** - * - * *
                * Properties of the new bucket being inserted.
                * The name of the bucket is specified in the `bucket_id` field. Populating
            @@ -85,13 +55,10 @@ public interface CreateBucketRequestOrBuilder
                * 
            * * .google.storage.v2.Bucket bucket = 2; - * * @return The bucket. */ com.google.storage.v2.Bucket getBucket(); /** - * - * *
                * Properties of the new bucket being inserted.
                * The name of the bucket is specified in the `bucket_id` field. Populating
            @@ -107,8 +74,6 @@ public interface CreateBucketRequestOrBuilder
               com.google.storage.v2.BucketOrBuilder getBucketOrBuilder();
             
               /**
            -   *
            -   *
                * 
                * Required. The ID to use for this bucket, which will become the final
                * component of the bucket's resource name. For example, the value `foo` might
            @@ -116,13 +81,10 @@ public interface CreateBucketRequestOrBuilder
                * 
            * * string bucket_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bucketId. */ java.lang.String getBucketId(); /** - * - * *
                * Required. The ID to use for this bucket, which will become the final
                * component of the bucket's resource name. For example, the value `foo` might
            @@ -130,14 +92,12 @@ public interface CreateBucketRequestOrBuilder
                * 
            * * string bucket_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for bucketId. */ - com.google.protobuf.ByteString getBucketIdBytes(); + com.google.protobuf.ByteString + getBucketIdBytes(); /** - * - * *
                * Apply a predefined set of access controls to this bucket.
                * Valid values are "authenticatedRead", "private", "projectPrivate",
            @@ -145,13 +105,10 @@ public interface CreateBucketRequestOrBuilder
                * 
            * * string predefined_acl = 6; - * * @return The predefinedAcl. */ java.lang.String getPredefinedAcl(); /** - * - * *
                * Apply a predefined set of access controls to this bucket.
                * Valid values are "authenticatedRead", "private", "projectPrivate",
            @@ -159,14 +116,12 @@ public interface CreateBucketRequestOrBuilder
                * 
            * * string predefined_acl = 6; - * * @return The bytes for predefinedAcl. */ - com.google.protobuf.ByteString getPredefinedAclBytes(); + com.google.protobuf.ByteString + getPredefinedAclBytes(); /** - * - * *
                * Apply a predefined set of default object access controls to this bucket.
                * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -174,13 +129,10 @@ public interface CreateBucketRequestOrBuilder
                * 
            * * string predefined_default_object_acl = 7; - * * @return The predefinedDefaultObjectAcl. */ java.lang.String getPredefinedDefaultObjectAcl(); /** - * - * *
                * Apply a predefined set of default object access controls to this bucket.
                * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -188,8 +140,8 @@ public interface CreateBucketRequestOrBuilder
                * 
            * * string predefined_default_object_acl = 7; - * * @return The bytes for predefinedDefaultObjectAcl. */ - com.google.protobuf.ByteString getPredefinedDefaultObjectAclBytes(); + com.google.protobuf.ByteString + getPredefinedDefaultObjectAclBytes(); } diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequest.java similarity index 66% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequest.java index 278b0bee55..10e7cad7e5 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,24 +5,21 @@ 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_ = ""; @@ -45,42 +27,35 @@ private CreateHmacKeyRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateHmacKeyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CreateHmacKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateHmacKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CreateHmacKeyRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateHmacKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.CreateHmacKeyRequest.class, - com.google.storage.v2.CreateHmacKeyRequest.Builder.class); + com.google.storage.v2.CreateHmacKeyRequest.class, com.google.storage.v2.CreateHmacKeyRequest.Builder.class); } public static final int PROJECT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object project_ = ""; /** - * - * *
                * Required. The project that the HMAC-owning service account lives in, in the
                * format of "projects/{projectIdentifier}". {projectIdentifier} can be the
                * project ID or project number.
                * 
            * - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The project. */ @java.lang.Override @@ -89,33 +64,31 @@ public java.lang.String getProject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; } } /** - * - * *
                * Required. The project that the HMAC-owning service account lives in, in the
                * format of "projects/{projectIdentifier}". {projectIdentifier} can be the
                * project ID or project number.
                * 
            * - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); project_ = b; return b; } else { @@ -124,18 +97,14 @@ public com.google.protobuf.ByteString getProjectBytes() { } public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object serviceAccountEmail_ = ""; /** - * - * *
                * Required. The service account to create the HMAC for.
                * 
            * * string service_account_email = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The serviceAccountEmail. */ @java.lang.Override @@ -144,29 +113,29 @@ public java.lang.String getServiceAccountEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountEmail_ = s; return s; } } /** - * - * *
                * Required. The service account to create the HMAC for.
                * 
            * * string service_account_email = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for serviceAccountEmail. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString + getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccountEmail_ = b; return b; } else { @@ -175,7 +144,6 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -187,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); } @@ -217,16 +186,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.CreateHmacKeyRequest)) { return super.equals(obj); } - com.google.storage.v2.CreateHmacKeyRequest other = - (com.google.storage.v2.CreateHmacKeyRequest) obj; + com.google.storage.v2.CreateHmacKeyRequest other = (com.google.storage.v2.CreateHmacKeyRequest) obj; - if (!getProject().equals(other.getProject())) return false; - if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; + if (!getProject() + .equals(other.getProject())) return false; + if (!getServiceAccountEmail() + .equals(other.getServiceAccountEmail())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -247,136 +217,132 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.CreateHmacKeyRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.CreateHmacKeyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.CreateHmacKeyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.CreateHmacKeyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.CreateHmacKeyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.CreateHmacKeyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.CreateHmacKeyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.CreateHmacKeyRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.CreateHmacKeyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.CreateHmacKeyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.CreateHmacKeyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.CreateHmacKeyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.CreateHmacKeyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.CreateHmacKeyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.CreateHmacKeyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * Request message for CreateHmacKey.
                * 
            * * Protobuf type {@code google.storage.v2.CreateHmacKeyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.CreateHmacKeyRequest) com.google.storage.v2.CreateHmacKeyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CreateHmacKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateHmacKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CreateHmacKeyRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateHmacKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.CreateHmacKeyRequest.class, - com.google.storage.v2.CreateHmacKeyRequest.Builder.class); + com.google.storage.v2.CreateHmacKeyRequest.class, com.google.storage.v2.CreateHmacKeyRequest.Builder.class); } // Construct using com.google.storage.v2.CreateHmacKeyRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -387,9 +353,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CreateHmacKeyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateHmacKeyRequest_descriptor; } @java.lang.Override @@ -408,11 +374,8 @@ public com.google.storage.v2.CreateHmacKeyRequest build() { @java.lang.Override public com.google.storage.v2.CreateHmacKeyRequest buildPartial() { - com.google.storage.v2.CreateHmacKeyRequest result = - new com.google.storage.v2.CreateHmacKeyRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.CreateHmacKeyRequest result = new com.google.storage.v2.CreateHmacKeyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -431,39 +394,38 @@ private void buildPartial0(com.google.storage.v2.CreateHmacKeyRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.CreateHmacKeyRequest) { - return mergeFrom((com.google.storage.v2.CreateHmacKeyRequest) other); + return mergeFrom((com.google.storage.v2.CreateHmacKeyRequest)other); } else { super.mergeFrom(other); return this; @@ -508,25 +470,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - project_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - serviceAccountEmail_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + serviceAccountEmail_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -536,29 +495,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object project_ = ""; /** - * - * *
                  * Required. The project that the HMAC-owning service account lives in, in the
                  * format of "projects/{projectIdentifier}". {projectIdentifier} can be the
                  * project ID or project number.
                  * 
            * - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; @@ -567,25 +521,22 @@ public java.lang.String getProject() { } } /** - * - * *
                  * Required. The project that the HMAC-owning service account lives in, in the
                  * format of "projects/{projectIdentifier}". {projectIdentifier} can be the
                  * project ID or project number.
                  * 
            * - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); project_ = b; return b; } else { @@ -593,43 +544,32 @@ public com.google.protobuf.ByteString getProjectBytes() { } } /** - * - * *
                  * Required. The project that the HMAC-owning service account lives in, in the
                  * format of "projects/{projectIdentifier}". {projectIdentifier} can be the
                  * project ID or project number.
                  * 
            * - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProject( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } project_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * Required. The project that the HMAC-owning service account lives in, in the
                  * format of "projects/{projectIdentifier}". {projectIdentifier} can be the
                  * project ID or project number.
                  * 
            * - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearProject() { @@ -639,25 +579,19 @@ public Builder clearProject() { return this; } /** - * - * *
                  * Required. The project that the HMAC-owning service account lives in, in the
                  * format of "projects/{projectIdentifier}". {projectIdentifier} can be the
                  * project ID or project number.
                  * 
            * - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); project_ = value; bitField0_ |= 0x00000001; @@ -667,20 +601,18 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { private java.lang.Object serviceAccountEmail_ = ""; /** - * - * *
                  * Required. The service account to create the HMAC for.
                  * 
            * * string service_account_email = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The serviceAccountEmail. */ public java.lang.String getServiceAccountEmail() { java.lang.Object ref = serviceAccountEmail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountEmail_ = s; return s; @@ -689,21 +621,20 @@ public java.lang.String getServiceAccountEmail() { } } /** - * - * *
                  * Required. The service account to create the HMAC for.
                  * 
            * * string service_account_email = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for serviceAccountEmail. */ - public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString + getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccountEmail_ = b; return b; } else { @@ -711,35 +642,28 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { } } /** - * - * *
                  * Required. The service account to create the HMAC for.
                  * 
            * * string service_account_email = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmail(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAccountEmail( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } serviceAccountEmail_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                  * Required. The service account to create the HMAC for.
                  * 
            * * string service_account_email = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearServiceAccountEmail() { @@ -749,30 +673,26 @@ public Builder clearServiceAccountEmail() { return this; } /** - * - * *
                  * Required. The service account to create the HMAC for.
                  * 
            * * string service_account_email = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAccountEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceAccountEmail_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -782,12 +702,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.CreateHmacKeyRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.CreateHmacKeyRequest) private static final com.google.storage.v2.CreateHmacKeyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.CreateHmacKeyRequest(); } @@ -796,27 +716,27 @@ public static com.google.storage.v2.CreateHmacKeyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateHmacKeyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateHmacKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -831,4 +751,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.CreateHmacKeyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequestOrBuilder.java similarity index 55% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyRequestOrBuilder.java index df1e6b8135..c4e33b8ac3 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,84 +1,54 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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 4e763b462c..aadd401294 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,61 +5,54 @@ package com.google.storage.v2; /** - * - * *
              * Create hmac response.  The only time the secret for an HMAC will be returned.
              * 
            * * Protobuf type {@code google.storage.v2.CreateHmacKeyResponse} */ -public final class CreateHmacKeyResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateHmacKeyResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.CreateHmacKeyResponse) CreateHmacKeyResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateHmacKeyResponse.newBuilder() to construct. private CreateHmacKeyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateHmacKeyResponse() { secretKeyBytes_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateHmacKeyResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CreateHmacKeyResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateHmacKeyResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CreateHmacKeyResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateHmacKeyResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.CreateHmacKeyResponse.class, - com.google.storage.v2.CreateHmacKeyResponse.Builder.class); + com.google.storage.v2.CreateHmacKeyResponse.class, com.google.storage.v2.CreateHmacKeyResponse.Builder.class); } private int bitField0_; public static final int METADATA_FIELD_NUMBER = 1; private com.google.storage.v2.HmacKeyMetadata metadata_; /** - * - * *
                * Key metadata.
                * 
            * * .google.storage.v2.HmacKeyMetadata metadata = 1; - * * @return Whether the metadata field is set. */ @java.lang.Override @@ -82,25 +60,18 @@ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * Key metadata.
                * 
            * * .google.storage.v2.HmacKeyMetadata metadata = 1; - * * @return The metadata. */ @java.lang.Override public com.google.storage.v2.HmacKeyMetadata getMetadata() { - return metadata_ == null - ? com.google.storage.v2.HmacKeyMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.storage.v2.HmacKeyMetadata.getDefaultInstance() : metadata_; } /** - * - * *
                * Key metadata.
                * 
            @@ -109,23 +80,18 @@ public com.google.storage.v2.HmacKeyMetadata getMetadata() { */ @java.lang.Override public com.google.storage.v2.HmacKeyMetadataOrBuilder getMetadataOrBuilder() { - return metadata_ == null - ? com.google.storage.v2.HmacKeyMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.storage.v2.HmacKeyMetadata.getDefaultInstance() : metadata_; } public static final int SECRET_KEY_BYTES_FIELD_NUMBER = 3; private com.google.protobuf.ByteString secretKeyBytes_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
                * HMAC key secret material.
                * In raw bytes format (not base64-encoded).
                * 
            * * bytes secret_key_bytes = 3; - * * @return The secretKeyBytes. */ @java.lang.Override @@ -134,7 +100,6 @@ public com.google.protobuf.ByteString getSecretKeyBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -146,7 +111,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getMetadata()); } @@ -163,10 +129,12 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - 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; @@ -176,19 +144,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.CreateHmacKeyResponse)) { return super.equals(obj); } - com.google.storage.v2.CreateHmacKeyResponse other = - (com.google.storage.v2.CreateHmacKeyResponse) obj; + com.google.storage.v2.CreateHmacKeyResponse other = (com.google.storage.v2.CreateHmacKeyResponse) obj; if (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { - if (!getMetadata().equals(other.getMetadata())) return false; + if (!getMetadata() + .equals(other.getMetadata())) return false; } - if (!getSecretKeyBytes().equals(other.getSecretKeyBytes())) return false; + if (!getSecretKeyBytes() + .equals(other.getSecretKeyBytes())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -211,127 +180,120 @@ 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() @@ -339,17 +301,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) { getMetadataFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -364,9 +326,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CreateHmacKeyResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateHmacKeyResponse_descriptor; } @java.lang.Override @@ -385,11 +347,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; } @@ -398,7 +357,9 @@ private void buildPartial0(com.google.storage.v2.CreateHmacKeyResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + result.metadata_ = metadataBuilder_ == null + ? metadata_ + : metadataBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { @@ -411,39 +372,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; @@ -484,25 +444,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: - { - secretKeyBytes_ = input.readBytes(); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: { + secretKeyBytes_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -512,52 +471,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.storage.v2.HmacKeyMetadata metadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.HmacKeyMetadata, - com.google.storage.v2.HmacKeyMetadata.Builder, - com.google.storage.v2.HmacKeyMetadataOrBuilder> - metadataBuilder_; + com.google.storage.v2.HmacKeyMetadata, com.google.storage.v2.HmacKeyMetadata.Builder, com.google.storage.v2.HmacKeyMetadataOrBuilder> metadataBuilder_; /** - * - * *
                  * Key metadata.
                  * 
            * * .google.storage.v2.HmacKeyMetadata metadata = 1; - * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                  * Key metadata.
                  * 
            * * .google.storage.v2.HmacKeyMetadata metadata = 1; - * * @return The metadata. */ public com.google.storage.v2.HmacKeyMetadata getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null - ? com.google.storage.v2.HmacKeyMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.storage.v2.HmacKeyMetadata.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** - * - * *
                  * Key metadata.
                  * 
            @@ -578,15 +523,14 @@ public Builder setMetadata(com.google.storage.v2.HmacKeyMetadata value) { return this; } /** - * - * *
                  * Key metadata.
                  * 
            * * .google.storage.v2.HmacKeyMetadata metadata = 1; */ - public Builder setMetadata(com.google.storage.v2.HmacKeyMetadata.Builder builderForValue) { + public Builder setMetadata( + com.google.storage.v2.HmacKeyMetadata.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); } else { @@ -597,8 +541,6 @@ public Builder setMetadata(com.google.storage.v2.HmacKeyMetadata.Builder builder return this; } /** - * - * *
                  * Key metadata.
                  * 
            @@ -607,9 +549,9 @@ public Builder setMetadata(com.google.storage.v2.HmacKeyMetadata.Builder builder */ public Builder mergeMetadata(com.google.storage.v2.HmacKeyMetadata value) { if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && metadata_ != null - && metadata_ != com.google.storage.v2.HmacKeyMetadata.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + metadata_ != null && + metadata_ != com.google.storage.v2.HmacKeyMetadata.getDefaultInstance()) { getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; @@ -624,8 +566,6 @@ public Builder mergeMetadata(com.google.storage.v2.HmacKeyMetadata value) { return this; } /** - * - * *
                  * Key metadata.
                  * 
            @@ -643,8 +583,6 @@ public Builder clearMetadata() { return this; } /** - * - * *
                  * Key metadata.
                  * 
            @@ -657,8 +595,6 @@ public com.google.storage.v2.HmacKeyMetadata.Builder getMetadataBuilder() { return getMetadataFieldBuilder().getBuilder(); } /** - * - * *
                  * Key metadata.
                  * 
            @@ -669,14 +605,11 @@ public com.google.storage.v2.HmacKeyMetadataOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { - return metadata_ == null - ? com.google.storage.v2.HmacKeyMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? + com.google.storage.v2.HmacKeyMetadata.getDefaultInstance() : metadata_; } } /** - * - * *
                  * Key metadata.
                  * 
            @@ -684,17 +617,14 @@ public com.google.storage.v2.HmacKeyMetadataOrBuilder getMetadataOrBuilder() { * .google.storage.v2.HmacKeyMetadata metadata = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.HmacKeyMetadata, - com.google.storage.v2.HmacKeyMetadata.Builder, - com.google.storage.v2.HmacKeyMetadataOrBuilder> + com.google.storage.v2.HmacKeyMetadata, com.google.storage.v2.HmacKeyMetadata.Builder, com.google.storage.v2.HmacKeyMetadataOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { - metadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.HmacKeyMetadata, - com.google.storage.v2.HmacKeyMetadata.Builder, - com.google.storage.v2.HmacKeyMetadataOrBuilder>( - getMetadata(), getParentForChildren(), isClean()); + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.HmacKeyMetadata, com.google.storage.v2.HmacKeyMetadata.Builder, com.google.storage.v2.HmacKeyMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); metadata_ = null; } return metadataBuilder_; @@ -702,15 +632,12 @@ public com.google.storage.v2.HmacKeyMetadataOrBuilder getMetadataOrBuilder() { private com.google.protobuf.ByteString secretKeyBytes_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
                  * HMAC key secret material.
                  * In raw bytes format (not base64-encoded).
                  * 
            * * bytes secret_key_bytes = 3; - * * @return The secretKeyBytes. */ @java.lang.Override @@ -718,37 +645,29 @@ public com.google.protobuf.ByteString getSecretKeyBytes() { return secretKeyBytes_; } /** - * - * *
                  * HMAC key secret material.
                  * In raw bytes format (not base64-encoded).
                  * 
            * * bytes secret_key_bytes = 3; - * * @param value The secretKeyBytes to set. * @return This builder for chaining. */ public Builder setSecretKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } secretKeyBytes_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                  * HMAC key secret material.
                  * In raw bytes format (not base64-encoded).
                  * 
            * * bytes secret_key_bytes = 3; - * * @return This builder for chaining. */ public Builder clearSecretKeyBytes() { @@ -757,9 +676,9 @@ public Builder clearSecretKeyBytes() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -769,12 +688,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.CreateHmacKeyResponse) } // @@protoc_insertion_point(class_scope:google.storage.v2.CreateHmacKeyResponse) private static final com.google.storage.v2.CreateHmacKeyResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.CreateHmacKeyResponse(); } @@ -783,27 +702,27 @@ public static com.google.storage.v2.CreateHmacKeyResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateHmacKeyResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateHmacKeyResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -818,4 +737,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.CreateHmacKeyResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateHmacKeyResponseOrBuilder.java similarity index 62% 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 1b0ca68d84..ab6129549d 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,56 +1,32 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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.
                * 
            @@ -60,15 +36,12 @@ public interface CreateHmacKeyResponseOrBuilder com.google.storage.v2.HmacKeyMetadataOrBuilder getMetadataOrBuilder(); /** - * - * *
                * HMAC key secret material.
                * In raw bytes format (not base64-encoded).
                * 
            * * bytes secret_key_bytes = 3; - * * @return The secretKeyBytes. */ com.google.protobuf.ByteString getSecretKeyBytes(); diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequest.java similarity index 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 32583d678c..eac3d9d919 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,66 +5,55 @@ package com.google.storage.v2; /** - * - * *
              * Request message for CreateNotificationConfig.
              * 
            * * Protobuf type {@code google.storage.v2.CreateNotificationConfigRequest} */ -public final class CreateNotificationConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateNotificationConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.CreateNotificationConfigRequest) CreateNotificationConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateNotificationConfigRequest.newBuilder() to construct. - private CreateNotificationConfigRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateNotificationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateNotificationConfigRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateNotificationConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CreateNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CreateNotificationConfigRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.CreateNotificationConfigRequest.class, - com.google.storage.v2.CreateNotificationConfigRequest.Builder.class); + com.google.storage.v2.CreateNotificationConfigRequest.class, com.google.storage.v2.CreateNotificationConfigRequest.Builder.class); } private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
                * Required. The bucket to which this NotificationConfig belongs.
                * 
            * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -88,31 +62,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
                * Required. The bucket to which this NotificationConfig belongs.
                * 
            * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -123,16 +95,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 @@ -140,44 +107,30 @@ public boolean hasNotificationConfig() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * Required. Properties of the NotificationConfig to be inserted.
                * 
            * - * - * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The notificationConfig. */ @java.lang.Override public com.google.storage.v2.NotificationConfig getNotificationConfig() { - return notificationConfig_ == null - ? com.google.storage.v2.NotificationConfig.getDefaultInstance() - : notificationConfig_; + return notificationConfig_ == null ? com.google.storage.v2.NotificationConfig.getDefaultInstance() : notificationConfig_; } /** - * - * *
                * Required. Properties of the NotificationConfig to be inserted.
                * 
            * - * - * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.storage.v2.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { - return notificationConfig_ == null - ? com.google.storage.v2.NotificationConfig.getDefaultInstance() - : notificationConfig_; + return notificationConfig_ == null ? com.google.storage.v2.NotificationConfig.getDefaultInstance() : notificationConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -189,7 +142,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_); } @@ -209,7 +163,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getNotificationConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getNotificationConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -219,18 +174,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.CreateNotificationConfigRequest)) { return super.equals(obj); } - com.google.storage.v2.CreateNotificationConfigRequest other = - (com.google.storage.v2.CreateNotificationConfigRequest) obj; + com.google.storage.v2.CreateNotificationConfigRequest other = (com.google.storage.v2.CreateNotificationConfigRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasNotificationConfig() != other.hasNotificationConfig()) return false; if (hasNotificationConfig()) { - if (!getNotificationConfig().equals(other.getNotificationConfig())) return false; + if (!getNotificationConfig() + .equals(other.getNotificationConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -255,127 +211,119 @@ 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() @@ -383,17 +331,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) { getNotificationConfigFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -408,9 +356,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_CreateNotificationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateNotificationConfigRequest_descriptor; } @java.lang.Override @@ -429,11 +377,8 @@ public com.google.storage.v2.CreateNotificationConfigRequest build() { @java.lang.Override public com.google.storage.v2.CreateNotificationConfigRequest buildPartial() { - com.google.storage.v2.CreateNotificationConfigRequest result = - new com.google.storage.v2.CreateNotificationConfigRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.CreateNotificationConfigRequest result = new com.google.storage.v2.CreateNotificationConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -445,10 +390,9 @@ private void buildPartial0(com.google.storage.v2.CreateNotificationConfigRequest } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.notificationConfig_ = - notificationConfigBuilder_ == null - ? notificationConfig_ - : notificationConfigBuilder_.build(); + result.notificationConfig_ = notificationConfigBuilder_ == null + ? notificationConfig_ + : notificationConfigBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -458,39 +402,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; @@ -498,8 +441,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.v2.CreateNotificationConfigRequest other) { - if (other == com.google.storage.v2.CreateNotificationConfigRequest.getDefaultInstance()) - return this; + if (other == com.google.storage.v2.CreateNotificationConfigRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -534,26 +476,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getNotificationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getNotificationConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -563,27 +503,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
                  * Required. The bucket to which this NotificationConfig belongs.
                  * 
            * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -592,23 +527,20 @@ public java.lang.String getParent() { } } /** - * - * *
                  * Required. The bucket to which this NotificationConfig belongs.
                  * 
            * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -616,39 +548,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
                  * Required. The bucket to which this NotificationConfig belongs.
                  * 
            * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * Required. The bucket to which this NotificationConfig belongs.
                  * 
            * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -658,23 +579,17 @@ public Builder clearParent() { return this; } /** - * - * *
                  * Required. The bucket to which this NotificationConfig belongs.
                  * 
            * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -684,58 +599,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.storage.v2.NotificationConfig notificationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.NotificationConfig, - com.google.storage.v2.NotificationConfig.Builder, - com.google.storage.v2.NotificationConfigOrBuilder> - notificationConfigBuilder_; + com.google.storage.v2.NotificationConfig, com.google.storage.v2.NotificationConfig.Builder, com.google.storage.v2.NotificationConfigOrBuilder> notificationConfigBuilder_; /** - * - * *
                  * Required. Properties of the NotificationConfig to be inserted.
                  * 
            * - * - * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the notificationConfig field is set. */ public boolean hasNotificationConfig() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                  * Required. Properties of the NotificationConfig to be inserted.
                  * 
            * - * - * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The notificationConfig. */ public com.google.storage.v2.NotificationConfig getNotificationConfig() { if (notificationConfigBuilder_ == null) { - return notificationConfig_ == null - ? com.google.storage.v2.NotificationConfig.getDefaultInstance() - : notificationConfig_; + return notificationConfig_ == null ? com.google.storage.v2.NotificationConfig.getDefaultInstance() : notificationConfig_; } else { return notificationConfigBuilder_.getMessage(); } } /** - * - * *
                  * Required. Properties of the NotificationConfig to be inserted.
                  * 
            * - * - * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setNotificationConfig(com.google.storage.v2.NotificationConfig value) { if (notificationConfigBuilder_ == null) { @@ -751,15 +647,11 @@ public Builder setNotificationConfig(com.google.storage.v2.NotificationConfig va return this; } /** - * - * *
                  * Required. Properties of the NotificationConfig to be inserted.
                  * 
            * - * - * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setNotificationConfig( com.google.storage.v2.NotificationConfig.Builder builderForValue) { @@ -773,22 +665,17 @@ public Builder setNotificationConfig( return this; } /** - * - * *
                  * Required. Properties of the NotificationConfig to be inserted.
                  * 
            * - * - * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeNotificationConfig(com.google.storage.v2.NotificationConfig value) { if (notificationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && notificationConfig_ != null - && notificationConfig_ - != com.google.storage.v2.NotificationConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + notificationConfig_ != null && + notificationConfig_ != com.google.storage.v2.NotificationConfig.getDefaultInstance()) { getNotificationConfigBuilder().mergeFrom(value); } else { notificationConfig_ = value; @@ -803,15 +690,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); @@ -824,15 +707,11 @@ public Builder clearNotificationConfig() { return this; } /** - * - * *
                  * Required. Properties of the NotificationConfig to be inserted.
                  * 
            * - * - * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.storage.v2.NotificationConfig.Builder getNotificationConfigBuilder() { bitField0_ |= 0x00000002; @@ -840,55 +719,43 @@ public com.google.storage.v2.NotificationConfig.Builder getNotificationConfigBui return getNotificationConfigFieldBuilder().getBuilder(); } /** - * - * *
                  * Required. Properties of the NotificationConfig to be inserted.
                  * 
            * - * - * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.storage.v2.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { if (notificationConfigBuilder_ != null) { return notificationConfigBuilder_.getMessageOrBuilder(); } else { - return notificationConfig_ == null - ? com.google.storage.v2.NotificationConfig.getDefaultInstance() - : notificationConfig_; + return notificationConfig_ == null ? + com.google.storage.v2.NotificationConfig.getDefaultInstance() : notificationConfig_; } } /** - * - * *
                  * Required. Properties of the NotificationConfig to be inserted.
                  * 
            * - * - * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.NotificationConfig, - com.google.storage.v2.NotificationConfig.Builder, - com.google.storage.v2.NotificationConfigOrBuilder> + com.google.storage.v2.NotificationConfig, com.google.storage.v2.NotificationConfig.Builder, com.google.storage.v2.NotificationConfigOrBuilder> getNotificationConfigFieldBuilder() { if (notificationConfigBuilder_ == null) { - notificationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.NotificationConfig, - com.google.storage.v2.NotificationConfig.Builder, - com.google.storage.v2.NotificationConfigOrBuilder>( - getNotificationConfig(), getParentForChildren(), isClean()); + notificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.NotificationConfig, com.google.storage.v2.NotificationConfig.Builder, com.google.storage.v2.NotificationConfigOrBuilder>( + getNotificationConfig(), + getParentForChildren(), + isClean()); notificationConfig_ = null; } return notificationConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -898,12 +765,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.CreateNotificationConfigRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.CreateNotificationConfigRequest) private static final com.google.storage.v2.CreateNotificationConfigRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.CreateNotificationConfigRequest(); } @@ -912,27 +779,27 @@ public static com.google.storage.v2.CreateNotificationConfigRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateNotificationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateNotificationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -947,4 +814,6 @@ public com.google.protobuf.Parser getParserForT public com.google.storage.v2.CreateNotificationConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequestOrBuilder.java new file mode 100644 index 0000000000..be68b4dcc5 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequestOrBuilder.java @@ -0,0 +1,57 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/storage/v2/storage.proto + +// Protobuf Java Version: 3.25.3 +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 9c12a01357..8d7101d91f 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,8 +5,6 @@ package com.google.storage.v2; /** - * - * *
              * Describes the Customer-Supplied Encryption Key mechanism used to store an
              * Object's data at rest.
            @@ -29,16 +12,15 @@
              *
              * Protobuf type {@code google.storage.v2.CustomerEncryption}
              */
            -public final class CustomerEncryption extends com.google.protobuf.GeneratedMessageV3
            -    implements
            +public final class CustomerEncryption extends
            +    com.google.protobuf.GeneratedMessageV3 implements
                 // @@protoc_insertion_point(message_implements:google.storage.v2.CustomerEncryption)
                 CustomerEncryptionOrBuilder {
            -  private static final long serialVersionUID = 0L;
            +private static final long serialVersionUID = 0L;
               // Use CustomerEncryption.newBuilder() to construct.
               private CustomerEncryption(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                 super(builder);
               }
            -
               private CustomerEncryption() {
                 encryptionAlgorithm_ = "";
                 keySha256Bytes_ = com.google.protobuf.ByteString.EMPTY;
            @@ -46,38 +28,33 @@ private CustomerEncryption() {
             
               @java.lang.Override
               @SuppressWarnings({"unused"})
            -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
            +  protected java.lang.Object newInstance(
            +      UnusedPrivateParameter unused) {
                 return new CustomerEncryption();
               }
             
            -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            -    return com.google.storage.v2.StorageProto
            -        .internal_static_google_storage_v2_CustomerEncryption_descriptor;
            +  public static final com.google.protobuf.Descriptors.Descriptor
            +      getDescriptor() {
            +    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CustomerEncryption_descriptor;
               }
             
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
            -    return com.google.storage.v2.StorageProto
            -        .internal_static_google_storage_v2_CustomerEncryption_fieldAccessorTable
            +    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CustomerEncryption_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
            -            com.google.storage.v2.CustomerEncryption.class,
            -            com.google.storage.v2.CustomerEncryption.Builder.class);
            +            com.google.storage.v2.CustomerEncryption.class, com.google.storage.v2.CustomerEncryption.Builder.class);
               }
             
               public static final int ENCRYPTION_ALGORITHM_FIELD_NUMBER = 1;
            -
               @SuppressWarnings("serial")
               private volatile java.lang.Object encryptionAlgorithm_ = "";
               /**
            -   *
            -   *
                * 
                * The encryption algorithm.
                * 
            * * string encryption_algorithm = 1; - * * @return The encryptionAlgorithm. */ @java.lang.Override @@ -86,29 +63,29 @@ public java.lang.String getEncryptionAlgorithm() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); encryptionAlgorithm_ = s; return s; } } /** - * - * *
                * The encryption algorithm.
                * 
            * * string encryption_algorithm = 1; - * * @return The bytes for encryptionAlgorithm. */ @java.lang.Override - public com.google.protobuf.ByteString getEncryptionAlgorithmBytes() { + public com.google.protobuf.ByteString + getEncryptionAlgorithmBytes() { java.lang.Object ref = encryptionAlgorithm_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); encryptionAlgorithm_ = b; return b; } else { @@ -119,15 +96,12 @@ public com.google.protobuf.ByteString getEncryptionAlgorithmBytes() { public static final int KEY_SHA256_BYTES_FIELD_NUMBER = 3; private com.google.protobuf.ByteString keySha256Bytes_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
                * SHA256 hash value of the encryption key.
                * In raw bytes format (not base64-encoded).
                * 
            * * bytes key_sha256_bytes = 3; - * * @return The keySha256Bytes. */ @java.lang.Override @@ -136,7 +110,6 @@ public com.google.protobuf.ByteString getKeySha256Bytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -148,7 +121,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionAlgorithm_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, encryptionAlgorithm_); } @@ -168,7 +142,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, encryptionAlgorithm_); } if (!keySha256Bytes_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, keySha256Bytes_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, keySha256Bytes_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -178,15 +153,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.CustomerEncryption)) { return super.equals(obj); } com.google.storage.v2.CustomerEncryption other = (com.google.storage.v2.CustomerEncryption) obj; - if (!getEncryptionAlgorithm().equals(other.getEncryptionAlgorithm())) return false; - if (!getKeySha256Bytes().equals(other.getKeySha256Bytes())) return false; + if (!getEncryptionAlgorithm() + .equals(other.getEncryptionAlgorithm())) return false; + if (!getKeySha256Bytes() + .equals(other.getKeySha256Bytes())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -207,104 +184,99 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.CustomerEncryption parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.CustomerEncryption parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.CustomerEncryption parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.CustomerEncryption parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.CustomerEncryption parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.CustomerEncryption parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.CustomerEncryption parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.CustomerEncryption parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.CustomerEncryption parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.CustomerEncryption parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.CustomerEncryption parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.CustomerEncryption parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.CustomerEncryption parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.CustomerEncryption parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.CustomerEncryption prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * Describes the Customer-Supplied Encryption Key mechanism used to store an
                * Object's data at rest.
            @@ -312,32 +284,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
                *
                * Protobuf type {@code google.storage.v2.CustomerEncryption}
                */
            -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
            -      implements
            +  public static final class Builder extends
            +      com.google.protobuf.GeneratedMessageV3.Builder implements
                   // @@protoc_insertion_point(builder_implements:google.storage.v2.CustomerEncryption)
                   com.google.storage.v2.CustomerEncryptionOrBuilder {
            -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            -      return com.google.storage.v2.StorageProto
            -          .internal_static_google_storage_v2_CustomerEncryption_descriptor;
            +    public static final com.google.protobuf.Descriptors.Descriptor
            +        getDescriptor() {
            +      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CustomerEncryption_descriptor;
                 }
             
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
            -      return com.google.storage.v2.StorageProto
            -          .internal_static_google_storage_v2_CustomerEncryption_fieldAccessorTable
            +      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CustomerEncryption_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
            -              com.google.storage.v2.CustomerEncryption.class,
            -              com.google.storage.v2.CustomerEncryption.Builder.class);
            +              com.google.storage.v2.CustomerEncryption.class, com.google.storage.v2.CustomerEncryption.Builder.class);
                 }
             
                 // Construct using com.google.storage.v2.CustomerEncryption.newBuilder()
            -    private Builder() {}
            +    private Builder() {
             
            -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            -      super(parent);
                 }
             
            +    private Builder(
            +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            +      super(parent);
            +
            +    }
                 @java.lang.Override
                 public Builder clear() {
                   super.clear();
            @@ -348,9 +321,9 @@ public Builder clear() {
                 }
             
                 @java.lang.Override
            -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            -      return com.google.storage.v2.StorageProto
            -          .internal_static_google_storage_v2_CustomerEncryption_descriptor;
            +    public com.google.protobuf.Descriptors.Descriptor
            +        getDescriptorForType() {
            +      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CustomerEncryption_descriptor;
                 }
             
                 @java.lang.Override
            @@ -369,11 +342,8 @@ public com.google.storage.v2.CustomerEncryption build() {
             
                 @java.lang.Override
                 public com.google.storage.v2.CustomerEncryption buildPartial() {
            -      com.google.storage.v2.CustomerEncryption result =
            -          new com.google.storage.v2.CustomerEncryption(this);
            -      if (bitField0_ != 0) {
            -        buildPartial0(result);
            -      }
            +      com.google.storage.v2.CustomerEncryption result = new com.google.storage.v2.CustomerEncryption(this);
            +      if (bitField0_ != 0) { buildPartial0(result); }
                   onBuilt();
                   return result;
                 }
            @@ -392,39 +362,38 @@ private void buildPartial0(com.google.storage.v2.CustomerEncryption result) {
                 public Builder clone() {
                   return super.clone();
                 }
            -
                 @java.lang.Override
                 public Builder setField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field,
            +        java.lang.Object value) {
                   return super.setField(field, value);
                 }
            -
                 @java.lang.Override
            -    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
            +    public Builder clearField(
            +        com.google.protobuf.Descriptors.FieldDescriptor field) {
                   return super.clearField(field);
                 }
            -
                 @java.lang.Override
            -    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
            +    public Builder clearOneof(
            +        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                   return super.clearOneof(oneof);
                 }
            -
                 @java.lang.Override
                 public Builder setRepeatedField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field,
            +        int index, java.lang.Object value) {
                   return super.setRepeatedField(field, index, value);
                 }
            -
                 @java.lang.Override
                 public Builder addRepeatedField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field,
            +        java.lang.Object value) {
                   return super.addRepeatedField(field, value);
                 }
            -
                 @java.lang.Override
                 public Builder mergeFrom(com.google.protobuf.Message other) {
                   if (other instanceof com.google.storage.v2.CustomerEncryption) {
            -        return mergeFrom((com.google.storage.v2.CustomerEncryption) other);
            +        return mergeFrom((com.google.storage.v2.CustomerEncryption)other);
                   } else {
                     super.mergeFrom(other);
                     return this;
            @@ -467,25 +436,22 @@ public Builder mergeFrom(
                         case 0:
                           done = true;
                           break;
            -            case 10:
            -              {
            -                encryptionAlgorithm_ = input.readStringRequireUtf8();
            -                bitField0_ |= 0x00000001;
            -                break;
            -              } // case 10
            -            case 26:
            -              {
            -                keySha256Bytes_ = input.readBytes();
            -                bitField0_ |= 0x00000002;
            -                break;
            -              } // case 26
            -            default:
            -              {
            -                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            -                  done = true; // was an endgroup tag
            -                }
            -                break;
            -              } // default:
            +            case 10: {
            +              encryptionAlgorithm_ = input.readStringRequireUtf8();
            +              bitField0_ |= 0x00000001;
            +              break;
            +            } // case 10
            +            case 26: {
            +              keySha256Bytes_ = input.readBytes();
            +              bitField0_ |= 0x00000002;
            +              break;
            +            } // case 26
            +            default: {
            +              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            +                done = true; // was an endgroup tag
            +              }
            +              break;
            +            } // default:
                       } // switch (tag)
                     } // while (!done)
                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            @@ -495,25 +461,22 @@ public Builder mergeFrom(
                   } // finally
                   return this;
                 }
            -
                 private int bitField0_;
             
                 private java.lang.Object encryptionAlgorithm_ = "";
                 /**
            -     *
            -     *
                  * 
                  * The encryption algorithm.
                  * 
            * * string encryption_algorithm = 1; - * * @return The encryptionAlgorithm. */ public java.lang.String getEncryptionAlgorithm() { java.lang.Object ref = encryptionAlgorithm_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); encryptionAlgorithm_ = s; return s; @@ -522,21 +485,20 @@ public java.lang.String getEncryptionAlgorithm() { } } /** - * - * *
                  * The encryption algorithm.
                  * 
            * * string encryption_algorithm = 1; - * * @return The bytes for encryptionAlgorithm. */ - public com.google.protobuf.ByteString getEncryptionAlgorithmBytes() { + public com.google.protobuf.ByteString + getEncryptionAlgorithmBytes() { java.lang.Object ref = encryptionAlgorithm_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); encryptionAlgorithm_ = b; return b; } else { @@ -544,35 +506,28 @@ public com.google.protobuf.ByteString getEncryptionAlgorithmBytes() { } } /** - * - * *
                  * The encryption algorithm.
                  * 
            * * string encryption_algorithm = 1; - * * @param value The encryptionAlgorithm to set. * @return This builder for chaining. */ - public Builder setEncryptionAlgorithm(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEncryptionAlgorithm( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } encryptionAlgorithm_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * The encryption algorithm.
                  * 
            * * string encryption_algorithm = 1; - * * @return This builder for chaining. */ public Builder clearEncryptionAlgorithm() { @@ -582,21 +537,17 @@ public Builder clearEncryptionAlgorithm() { return this; } /** - * - * *
                  * The encryption algorithm.
                  * 
            * * string encryption_algorithm = 1; - * * @param value The bytes for encryptionAlgorithm to set. * @return This builder for chaining. */ - public Builder setEncryptionAlgorithmBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEncryptionAlgorithmBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); encryptionAlgorithm_ = value; bitField0_ |= 0x00000001; @@ -606,15 +557,12 @@ public Builder setEncryptionAlgorithmBytes(com.google.protobuf.ByteString value) private com.google.protobuf.ByteString keySha256Bytes_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
                  * SHA256 hash value of the encryption key.
                  * In raw bytes format (not base64-encoded).
                  * 
            * * bytes key_sha256_bytes = 3; - * * @return The keySha256Bytes. */ @java.lang.Override @@ -622,37 +570,29 @@ public com.google.protobuf.ByteString getKeySha256Bytes() { return keySha256Bytes_; } /** - * - * *
                  * SHA256 hash value of the encryption key.
                  * In raw bytes format (not base64-encoded).
                  * 
            * * bytes key_sha256_bytes = 3; - * * @param value The keySha256Bytes to set. * @return This builder for chaining. */ public Builder setKeySha256Bytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } keySha256Bytes_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                  * SHA256 hash value of the encryption key.
                  * In raw bytes format (not base64-encoded).
                  * 
            * * bytes key_sha256_bytes = 3; - * * @return This builder for chaining. */ public Builder clearKeySha256Bytes() { @@ -661,9 +601,9 @@ public Builder clearKeySha256Bytes() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -673,12 +613,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.CustomerEncryption) } // @@protoc_insertion_point(class_scope:google.storage.v2.CustomerEncryption) private static final com.google.storage.v2.CustomerEncryption DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.CustomerEncryption(); } @@ -687,27 +627,27 @@ public static com.google.storage.v2.CustomerEncryption getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomerEncryption parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomerEncryption parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -722,4 +662,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.CustomerEncryption getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CustomerEncryptionOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CustomerEncryptionOrBuilder.java similarity index 55% 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 dea3c58a16..a0fad36687 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,64 +1,40 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 package com.google.storage.v2; -public interface CustomerEncryptionOrBuilder - extends +public interface CustomerEncryptionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.CustomerEncryption) com.google.protobuf.MessageOrBuilder { /** - * - * *
                * The encryption algorithm.
                * 
            * * string encryption_algorithm = 1; - * * @return The encryptionAlgorithm. */ java.lang.String getEncryptionAlgorithm(); /** - * - * *
                * The encryption algorithm.
                * 
            * * string encryption_algorithm = 1; - * * @return The bytes for encryptionAlgorithm. */ - com.google.protobuf.ByteString getEncryptionAlgorithmBytes(); + com.google.protobuf.ByteString + getEncryptionAlgorithmBytes(); /** - * - * *
                * SHA256 hash value of the encryption key.
                * In raw bytes format (not base64-encoded).
                * 
            * * bytes key_sha256_bytes = 3; - * * @return The keySha256Bytes. */ com.google.protobuf.ByteString getKeySha256Bytes(); diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequest.java similarity index 68% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequest.java index a41ce6b14a..8e65f77b70 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,65 +5,55 @@ package com.google.storage.v2; /** - * - * *
              * Request message for DeleteBucket.
              * 
            * * Protobuf type {@code google.storage.v2.DeleteBucketRequest} */ -public final class DeleteBucketRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteBucketRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.DeleteBucketRequest) DeleteBucketRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteBucketRequest.newBuilder() to construct. private DeleteBucketRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteBucketRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteBucketRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_DeleteBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_DeleteBucketRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.DeleteBucketRequest.class, - com.google.storage.v2.DeleteBucketRequest.Builder.class); + com.google.storage.v2.DeleteBucketRequest.class, com.google.storage.v2.DeleteBucketRequest.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
                * Required. Name of a bucket to delete.
                * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -87,31 +62,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
                * Required. Name of a bucket to delete.
                * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -122,14 +95,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER = 2; private long ifMetagenerationMatch_ = 0L; /** - * - * *
                * If set, only deletes the bucket if its metageneration matches this value.
                * 
            * * optional int64 if_metageneration_match = 2; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -137,14 +107,11 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * If set, only deletes the bucket if its metageneration matches this value.
                * 
            * * optional int64 if_metageneration_match = 2; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -155,15 +122,12 @@ public long getIfMetagenerationMatch() { public static final int IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER = 3; private long ifMetagenerationNotMatch_ = 0L; /** - * - * *
                * If set, only deletes the bucket if its metageneration does not match this
                * value.
                * 
            * * optional int64 if_metageneration_not_match = 3; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -171,15 +135,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                * If set, only deletes the bucket if its metageneration does not match this
                * value.
                * 
            * * optional int64 if_metageneration_not_match = 3; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -188,7 +149,6 @@ public long getIfMetagenerationNotMatch() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,7 +160,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -223,10 +184,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, ifMetagenerationMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, ifMetagenerationMatch_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, ifMetagenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, ifMetagenerationNotMatch_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -236,22 +199,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.DeleteBucketRequest)) { return super.equals(obj); } - com.google.storage.v2.DeleteBucketRequest other = - (com.google.storage.v2.DeleteBucketRequest) obj; + com.google.storage.v2.DeleteBucketRequest other = (com.google.storage.v2.DeleteBucketRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasIfMetagenerationMatch() != other.hasIfMetagenerationMatch()) return false; if (hasIfMetagenerationMatch()) { - if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false; + if (getIfMetagenerationMatch() + != other.getIfMetagenerationMatch()) return false; } if (hasIfMetagenerationNotMatch() != other.hasIfMetagenerationNotMatch()) return false; if (hasIfMetagenerationNotMatch()) { - if (getIfMetagenerationNotMatch() != other.getIfMetagenerationNotMatch()) return false; + if (getIfMetagenerationNotMatch() + != other.getIfMetagenerationNotMatch()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -268,147 +233,145 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); if (hasIfMetagenerationMatch()) { hash = (37 * hash) + IF_METAGENERATION_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationMatch()); } if (hasIfMetagenerationNotMatch()) { hash = (37 * hash) + IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationNotMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationNotMatch()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.storage.v2.DeleteBucketRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.DeleteBucketRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.DeleteBucketRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.DeleteBucketRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.DeleteBucketRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.DeleteBucketRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.DeleteBucketRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.DeleteBucketRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.DeleteBucketRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.DeleteBucketRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.DeleteBucketRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.DeleteBucketRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.DeleteBucketRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.DeleteBucketRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.DeleteBucketRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * Request message for DeleteBucket.
                * 
            * * Protobuf type {@code google.storage.v2.DeleteBucketRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.DeleteBucketRequest) com.google.storage.v2.DeleteBucketRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_DeleteBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_DeleteBucketRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.DeleteBucketRequest.class, - com.google.storage.v2.DeleteBucketRequest.Builder.class); + com.google.storage.v2.DeleteBucketRequest.class, com.google.storage.v2.DeleteBucketRequest.Builder.class); } // Construct using com.google.storage.v2.DeleteBucketRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -420,9 +383,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_DeleteBucketRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteBucketRequest_descriptor; } @java.lang.Override @@ -441,11 +404,8 @@ public com.google.storage.v2.DeleteBucketRequest build() { @java.lang.Override public com.google.storage.v2.DeleteBucketRequest buildPartial() { - com.google.storage.v2.DeleteBucketRequest result = - new com.google.storage.v2.DeleteBucketRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.DeleteBucketRequest result = new com.google.storage.v2.DeleteBucketRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -471,39 +431,38 @@ private void buildPartial0(com.google.storage.v2.DeleteBucketRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.DeleteBucketRequest) { - return mergeFrom((com.google.storage.v2.DeleteBucketRequest) other); + return mergeFrom((com.google.storage.v2.DeleteBucketRequest)other); } else { super.mergeFrom(other); return this; @@ -549,31 +508,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - ifMetagenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - ifMetagenerationNotMatch_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + ifMetagenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + ifMetagenerationNotMatch_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -583,27 +538,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
                  * Required. Name of a bucket to delete.
                  * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -612,23 +562,20 @@ public java.lang.String getName() { } } /** - * - * *
                  * Required. Name of a bucket to delete.
                  * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -636,39 +583,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
                  * Required. Name of a bucket to delete.
                  * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * Required. Name of a bucket to delete.
                  * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -678,23 +614,17 @@ public Builder clearName() { return this; } /** - * - * *
                  * Required. Name of a bucket to delete.
                  * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -702,16 +632,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private long ifMetagenerationMatch_; + private long ifMetagenerationMatch_ ; /** - * - * *
                  * If set, only deletes the bucket if its metageneration matches this value.
                  * 
            * * optional int64 if_metageneration_match = 2; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -719,14 +646,11 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                  * If set, only deletes the bucket if its metageneration matches this value.
                  * 
            * * optional int64 if_metageneration_match = 2; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -734,14 +658,11 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** - * - * *
                  * If set, only deletes the bucket if its metageneration matches this value.
                  * 
            * * optional int64 if_metageneration_match = 2; - * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -753,14 +674,11 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** - * - * *
                  * If set, only deletes the bucket if its metageneration matches this value.
                  * 
            * * optional int64 if_metageneration_match = 2; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -770,17 +688,14 @@ public Builder clearIfMetagenerationMatch() { return this; } - private long ifMetagenerationNotMatch_; + private long ifMetagenerationNotMatch_ ; /** - * - * *
                  * If set, only deletes the bucket if its metageneration does not match this
                  * value.
                  * 
            * * optional int64 if_metageneration_not_match = 3; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -788,15 +703,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
                  * If set, only deletes the bucket if its metageneration does not match this
                  * value.
                  * 
            * * optional int64 if_metageneration_not_match = 3; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -804,15 +716,12 @@ public long getIfMetagenerationNotMatch() { return ifMetagenerationNotMatch_; } /** - * - * *
                  * If set, only deletes the bucket if its metageneration does not match this
                  * value.
                  * 
            * * optional int64 if_metageneration_not_match = 3; - * * @param value The ifMetagenerationNotMatch to set. * @return This builder for chaining. */ @@ -824,15 +733,12 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** - * - * *
                  * If set, only deletes the bucket if its metageneration does not match this
                  * value.
                  * 
            * * optional int64 if_metageneration_not_match = 3; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -841,9 +747,9 @@ public Builder clearIfMetagenerationNotMatch() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -853,12 +759,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.DeleteBucketRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.DeleteBucketRequest) private static final com.google.storage.v2.DeleteBucketRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.DeleteBucketRequest(); } @@ -867,27 +773,27 @@ public static com.google.storage.v2.DeleteBucketRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteBucketRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBucketRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -902,4 +808,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.DeleteBucketRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteBucketRequestOrBuilder.java similarity index 61% 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 e16f379ea9..3aab3359a0 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,106 +1,69 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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 f424f3e660..9e3542f3f7 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,24 +5,21 @@ 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_ = ""; @@ -45,38 +27,33 @@ private DeleteHmacKeyRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteHmacKeyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_DeleteHmacKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteHmacKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_DeleteHmacKeyRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteHmacKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.DeleteHmacKeyRequest.class, - com.google.storage.v2.DeleteHmacKeyRequest.Builder.class); + com.google.storage.v2.DeleteHmacKeyRequest.class, com.google.storage.v2.DeleteHmacKeyRequest.Builder.class); } public static final int ACCESS_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object accessId_ = ""; /** - * - * *
                * Required. The identifying key for the HMAC to delete.
                * 
            * * string access_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The accessId. */ @java.lang.Override @@ -85,29 +62,29 @@ public java.lang.String getAccessId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accessId_ = s; return s; } } /** - * - * *
                * Required. The identifying key for the HMAC to delete.
                * 
            * * string access_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for accessId. */ @java.lang.Override - public com.google.protobuf.ByteString getAccessIdBytes() { + public com.google.protobuf.ByteString + getAccessIdBytes() { java.lang.Object ref = accessId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); accessId_ = b; return b; } else { @@ -116,22 +93,16 @@ public com.google.protobuf.ByteString getAccessIdBytes() { } public static final int PROJECT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object project_ = ""; /** - * - * *
                * Required. The project that owns the HMAC key, in the format of
                * "projects/{projectIdentifier}".
                * {projectIdentifier} can be the project ID or project number.
                * 
            * - * - * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The project. */ @java.lang.Override @@ -140,33 +111,31 @@ public java.lang.String getProject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; } } /** - * - * *
                * Required. The project that owns the HMAC key, in the format of
                * "projects/{projectIdentifier}".
                * {projectIdentifier} can be the project ID or project number.
                * 
            * - * - * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); project_ = b; return b; } else { @@ -175,7 +144,6 @@ public com.google.protobuf.ByteString getProjectBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -187,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accessId_); } @@ -217,16 +186,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.DeleteHmacKeyRequest)) { return super.equals(obj); } - com.google.storage.v2.DeleteHmacKeyRequest other = - (com.google.storage.v2.DeleteHmacKeyRequest) obj; + com.google.storage.v2.DeleteHmacKeyRequest other = (com.google.storage.v2.DeleteHmacKeyRequest) obj; - if (!getAccessId().equals(other.getAccessId())) return false; - if (!getProject().equals(other.getProject())) return false; + if (!getAccessId() + .equals(other.getAccessId())) return false; + if (!getProject() + .equals(other.getProject())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -247,136 +217,132 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.DeleteHmacKeyRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.DeleteHmacKeyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.DeleteHmacKeyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.DeleteHmacKeyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.DeleteHmacKeyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.DeleteHmacKeyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.DeleteHmacKeyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.DeleteHmacKeyRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.DeleteHmacKeyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.DeleteHmacKeyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.DeleteHmacKeyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.DeleteHmacKeyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.DeleteHmacKeyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.DeleteHmacKeyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.DeleteHmacKeyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * Request object to delete a given HMAC key.
                * 
            * * Protobuf type {@code google.storage.v2.DeleteHmacKeyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.DeleteHmacKeyRequest) com.google.storage.v2.DeleteHmacKeyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_DeleteHmacKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteHmacKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_DeleteHmacKeyRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteHmacKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.DeleteHmacKeyRequest.class, - com.google.storage.v2.DeleteHmacKeyRequest.Builder.class); + com.google.storage.v2.DeleteHmacKeyRequest.class, com.google.storage.v2.DeleteHmacKeyRequest.Builder.class); } // Construct using com.google.storage.v2.DeleteHmacKeyRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -387,9 +353,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_DeleteHmacKeyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteHmacKeyRequest_descriptor; } @java.lang.Override @@ -408,11 +374,8 @@ public com.google.storage.v2.DeleteHmacKeyRequest build() { @java.lang.Override public com.google.storage.v2.DeleteHmacKeyRequest buildPartial() { - com.google.storage.v2.DeleteHmacKeyRequest result = - new com.google.storage.v2.DeleteHmacKeyRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.DeleteHmacKeyRequest result = new com.google.storage.v2.DeleteHmacKeyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -431,39 +394,38 @@ private void buildPartial0(com.google.storage.v2.DeleteHmacKeyRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.DeleteHmacKeyRequest) { - return mergeFrom((com.google.storage.v2.DeleteHmacKeyRequest) other); + return mergeFrom((com.google.storage.v2.DeleteHmacKeyRequest)other); } else { super.mergeFrom(other); return this; @@ -508,25 +470,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - accessId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - project_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + accessId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -536,25 +495,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object accessId_ = ""; /** - * - * *
                  * Required. The identifying key for the HMAC to delete.
                  * 
            * * string access_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The accessId. */ public java.lang.String getAccessId() { java.lang.Object ref = accessId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accessId_ = s; return s; @@ -563,21 +519,20 @@ public java.lang.String getAccessId() { } } /** - * - * *
                  * Required. The identifying key for the HMAC to delete.
                  * 
            * * string access_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for accessId. */ - public com.google.protobuf.ByteString getAccessIdBytes() { + public com.google.protobuf.ByteString + getAccessIdBytes() { java.lang.Object ref = accessId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); accessId_ = b; return b; } else { @@ -585,35 +540,28 @@ public com.google.protobuf.ByteString getAccessIdBytes() { } } /** - * - * *
                  * Required. The identifying key for the HMAC to delete.
                  * 
            * * string access_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The accessId to set. * @return This builder for chaining. */ - public Builder setAccessId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAccessId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } accessId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * Required. The identifying key for the HMAC to delete.
                  * 
            * * string access_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearAccessId() { @@ -623,21 +571,17 @@ public Builder clearAccessId() { return this; } /** - * - * *
                  * Required. The identifying key for the HMAC to delete.
                  * 
            * * string access_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for accessId to set. * @return This builder for chaining. */ - public Builder setAccessIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAccessIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); accessId_ = value; bitField0_ |= 0x00000001; @@ -647,24 +591,20 @@ public Builder setAccessIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object project_ = ""; /** - * - * *
                  * Required. The project that owns the HMAC key, in the format of
                  * "projects/{projectIdentifier}".
                  * {projectIdentifier} can be the project ID or project number.
                  * 
            * - * - * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; @@ -673,25 +613,22 @@ public java.lang.String getProject() { } } /** - * - * *
                  * Required. The project that owns the HMAC key, in the format of
                  * "projects/{projectIdentifier}".
                  * {projectIdentifier} can be the project ID or project number.
                  * 
            * - * - * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); project_ = b; return b; } else { @@ -699,43 +636,32 @@ public com.google.protobuf.ByteString getProjectBytes() { } } /** - * - * *
                  * Required. The project that owns the HMAC key, in the format of
                  * "projects/{projectIdentifier}".
                  * {projectIdentifier} can be the project ID or project number.
                  * 
            * - * - * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProject( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } project_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                  * Required. The project that owns the HMAC key, in the format of
                  * "projects/{projectIdentifier}".
                  * {projectIdentifier} can be the project ID or project number.
                  * 
            * - * - * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearProject() { @@ -745,34 +671,28 @@ public Builder clearProject() { return this; } /** - * - * *
                  * Required. The project that owns the HMAC key, in the format of
                  * "projects/{projectIdentifier}".
                  * {projectIdentifier} can be the project ID or project number.
                  * 
            * - * - * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); project_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -782,12 +702,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.DeleteHmacKeyRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.DeleteHmacKeyRequest) private static final com.google.storage.v2.DeleteHmacKeyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.DeleteHmacKeyRequest(); } @@ -796,27 +716,27 @@ public static com.google.storage.v2.DeleteHmacKeyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteHmacKeyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteHmacKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -831,4 +751,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.DeleteHmacKeyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteHmacKeyRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteHmacKeyRequestOrBuilder.java similarity index 54% 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 25f792bd18..2873f30a08 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,84 +1,54 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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 3ed33c9ef2..17eb7a5349 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,65 +5,54 @@ package com.google.storage.v2; /** - * - * *
              * Request message for DeleteNotificationConfig.
              * 
            * * Protobuf type {@code google.storage.v2.DeleteNotificationConfigRequest} */ -public final class DeleteNotificationConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteNotificationConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.DeleteNotificationConfigRequest) DeleteNotificationConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteNotificationConfigRequest.newBuilder() to construct. - private DeleteNotificationConfigRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteNotificationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteNotificationConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteNotificationConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_DeleteNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_DeleteNotificationConfigRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.DeleteNotificationConfigRequest.class, - com.google.storage.v2.DeleteNotificationConfigRequest.Builder.class); + com.google.storage.v2.DeleteNotificationConfigRequest.class, com.google.storage.v2.DeleteNotificationConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
                * Required. The parent bucket of the NotificationConfig.
                * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -87,31 +61,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
                * Required. The parent bucket of the NotificationConfig.
                * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -120,7 +92,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,7 +103,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -156,15 +128,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.DeleteNotificationConfigRequest)) { return super.equals(obj); } - com.google.storage.v2.DeleteNotificationConfigRequest other = - (com.google.storage.v2.DeleteNotificationConfigRequest) obj; + com.google.storage.v2.DeleteNotificationConfigRequest other = (com.google.storage.v2.DeleteNotificationConfigRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,136 +156,131 @@ public int hashCode() { } public static com.google.storage.v2.DeleteNotificationConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.DeleteNotificationConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.DeleteNotificationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.DeleteNotificationConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.DeleteNotificationConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.DeleteNotificationConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.v2.DeleteNotificationConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.v2.DeleteNotificationConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.DeleteNotificationConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.DeleteNotificationConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.DeleteNotificationConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.DeleteNotificationConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.DeleteNotificationConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.DeleteNotificationConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.storage.v2.DeleteNotificationConfigRequest prototype) { + public static Builder newBuilder(com.google.storage.v2.DeleteNotificationConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * Request message for DeleteNotificationConfig.
                * 
            * * Protobuf type {@code google.storage.v2.DeleteNotificationConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.DeleteNotificationConfigRequest) com.google.storage.v2.DeleteNotificationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_DeleteNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_DeleteNotificationConfigRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.DeleteNotificationConfigRequest.class, - com.google.storage.v2.DeleteNotificationConfigRequest.Builder.class); + com.google.storage.v2.DeleteNotificationConfigRequest.class, com.google.storage.v2.DeleteNotificationConfigRequest.Builder.class); } // Construct using com.google.storage.v2.DeleteNotificationConfigRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -323,9 +290,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_DeleteNotificationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteNotificationConfigRequest_descriptor; } @java.lang.Override @@ -344,11 +311,8 @@ public com.google.storage.v2.DeleteNotificationConfigRequest build() { @java.lang.Override public com.google.storage.v2.DeleteNotificationConfigRequest buildPartial() { - com.google.storage.v2.DeleteNotificationConfigRequest result = - new com.google.storage.v2.DeleteNotificationConfigRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.DeleteNotificationConfigRequest result = new com.google.storage.v2.DeleteNotificationConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -364,39 +328,38 @@ private void buildPartial0(com.google.storage.v2.DeleteNotificationConfigRequest public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.DeleteNotificationConfigRequest) { - return mergeFrom((com.google.storage.v2.DeleteNotificationConfigRequest) other); + return mergeFrom((com.google.storage.v2.DeleteNotificationConfigRequest)other); } else { super.mergeFrom(other); return this; @@ -404,8 +367,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.v2.DeleteNotificationConfigRequest other) { - if (other == com.google.storage.v2.DeleteNotificationConfigRequest.getDefaultInstance()) - return this; + if (other == com.google.storage.v2.DeleteNotificationConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -437,19 +399,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -459,27 +419,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
                  * Required. The parent bucket of the NotificationConfig.
                  * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -488,23 +443,20 @@ public java.lang.String getName() { } } /** - * - * *
                  * Required. The parent bucket of the NotificationConfig.
                  * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -512,39 +464,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
                  * Required. The parent bucket of the NotificationConfig.
                  * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * Required. The parent bucket of the NotificationConfig.
                  * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -554,32 +495,26 @@ public Builder clearName() { return this; } /** - * - * *
                  * Required. The parent bucket of the NotificationConfig.
                  * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -589,12 +524,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.DeleteNotificationConfigRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.DeleteNotificationConfigRequest) private static final com.google.storage.v2.DeleteNotificationConfigRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.DeleteNotificationConfigRequest(); } @@ -603,27 +538,27 @@ public static com.google.storage.v2.DeleteNotificationConfigRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteNotificationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteNotificationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -638,4 +573,6 @@ public com.google.protobuf.Parser getParserForT public com.google.storage.v2.DeleteNotificationConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequestOrBuilder.java new file mode 100644 index 0000000000..1c84430baa --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequestOrBuilder.java @@ -0,0 +1,30 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/storage/v2/storage.proto + +// Protobuf Java Version: 3.25.3 +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 225ab6115b..682eab6421 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,8 +5,6 @@ package com.google.storage.v2; /** - * - * *
              * Message for deleting an object.
              * `bucket` and `object` **must** be set.
            @@ -29,16 +12,15 @@
              *
              * Protobuf type {@code google.storage.v2.DeleteObjectRequest}
              */
            -public final class DeleteObjectRequest extends com.google.protobuf.GeneratedMessageV3
            -    implements
            +public final class DeleteObjectRequest extends
            +    com.google.protobuf.GeneratedMessageV3 implements
                 // @@protoc_insertion_point(message_implements:google.storage.v2.DeleteObjectRequest)
                 DeleteObjectRequestOrBuilder {
            -  private static final long serialVersionUID = 0L;
            +private static final long serialVersionUID = 0L;
               // Use DeleteObjectRequest.newBuilder() to construct.
               private DeleteObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                 super(builder);
               }
            -
               private DeleteObjectRequest() {
                 bucket_ = "";
                 object_ = "";
            @@ -46,41 +28,34 @@ private DeleteObjectRequest() {
             
               @java.lang.Override
               @SuppressWarnings({"unused"})
            -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
            +  protected java.lang.Object newInstance(
            +      UnusedPrivateParameter unused) {
                 return new DeleteObjectRequest();
               }
             
            -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            -    return com.google.storage.v2.StorageProto
            -        .internal_static_google_storage_v2_DeleteObjectRequest_descriptor;
            +  public static final com.google.protobuf.Descriptors.Descriptor
            +      getDescriptor() {
            +    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteObjectRequest_descriptor;
               }
             
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
            -    return com.google.storage.v2.StorageProto
            -        .internal_static_google_storage_v2_DeleteObjectRequest_fieldAccessorTable
            +    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteObjectRequest_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
            -            com.google.storage.v2.DeleteObjectRequest.class,
            -            com.google.storage.v2.DeleteObjectRequest.Builder.class);
            +            com.google.storage.v2.DeleteObjectRequest.class, com.google.storage.v2.DeleteObjectRequest.Builder.class);
               }
             
               private int bitField0_;
               public static final int BUCKET_FIELD_NUMBER = 1;
            -
               @SuppressWarnings("serial")
               private volatile java.lang.Object bucket_ = "";
               /**
            -   *
            -   *
                * 
                * Required. Name of the bucket in which the object resides.
                * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bucket. */ @java.lang.Override @@ -89,31 +64,29 @@ public java.lang.String getBucket() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucket_ = s; return s; } } /** - * - * *
                * Required. Name of the bucket in which the object resides.
                * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for bucket. */ @java.lang.Override - public com.google.protobuf.ByteString getBucketBytes() { + public com.google.protobuf.ByteString + getBucketBytes() { java.lang.Object ref = bucket_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); bucket_ = b; return b; } else { @@ -122,12 +95,9 @@ public com.google.protobuf.ByteString getBucketBytes() { } public static final int OBJECT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object object_ = ""; /** - * - * *
                * Required. The name of the finalized object to delete.
                * Note: If you want to delete an unfinalized resumable upload please use
            @@ -135,7 +105,6 @@ public com.google.protobuf.ByteString getBucketBytes() {
                * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The object. */ @java.lang.Override @@ -144,15 +113,14 @@ public java.lang.String getObject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); object_ = s; return s; } } /** - * - * *
                * Required. The name of the finalized object to delete.
                * Note: If you want to delete an unfinalized resumable upload please use
            @@ -160,15 +128,16 @@ public java.lang.String getObject() {
                * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for object. */ @java.lang.Override - public com.google.protobuf.ByteString getObjectBytes() { + public com.google.protobuf.ByteString + getObjectBytes() { java.lang.Object ref = object_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); object_ = b; return b; } else { @@ -179,15 +148,12 @@ public com.google.protobuf.ByteString getObjectBytes() { public static final int GENERATION_FIELD_NUMBER = 4; private long generation_ = 0L; /** - * - * *
                * If present, permanently deletes a specific revision of this object (as
                * opposed to the latest version, the default).
                * 
            * * int64 generation = 4; - * * @return The generation. */ @java.lang.Override @@ -198,8 +164,6 @@ public long getGeneration() { public static final int IF_GENERATION_MATCH_FIELD_NUMBER = 5; private long ifGenerationMatch_ = 0L; /** - * - * *
                * Makes the operation conditional on whether the object's current generation
                * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -207,7 +171,6 @@ public long getGeneration() {
                * 
            * * optional int64 if_generation_match = 5; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -215,8 +178,6 @@ public boolean hasIfGenerationMatch() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * Makes the operation conditional on whether the object's current generation
                * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -224,7 +185,6 @@ public boolean hasIfGenerationMatch() {
                * 
            * * optional int64 if_generation_match = 5; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -235,8 +195,6 @@ public long getIfGenerationMatch() { public static final int IF_GENERATION_NOT_MATCH_FIELD_NUMBER = 6; private long ifGenerationNotMatch_ = 0L; /** - * - * *
                * Makes the operation conditional on whether the object's live generation
                * does not match the given value. If no live object exists, the precondition
            @@ -245,7 +203,6 @@ public long getIfGenerationMatch() {
                * 
            * * optional int64 if_generation_not_match = 6; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -253,8 +210,6 @@ public boolean hasIfGenerationNotMatch() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                * Makes the operation conditional on whether the object's live generation
                * does not match the given value. If no live object exists, the precondition
            @@ -263,7 +218,6 @@ public boolean hasIfGenerationNotMatch() {
                * 
            * * optional int64 if_generation_not_match = 6; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -274,15 +228,12 @@ public long getIfGenerationNotMatch() { public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER = 7; private long ifMetagenerationMatch_ = 0L; /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 7; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -290,15 +241,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 7; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -309,15 +257,12 @@ public long getIfMetagenerationMatch() { public static final int IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER = 8; private long ifMetagenerationNotMatch_ = 0L; /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 8; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -325,15 +270,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 8; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -344,14 +286,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 @@ -359,25 +298,18 @@ public boolean hasCommonObjectRequestParams() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; - * * @return The commonObjectRequestParams. */ @java.lang.Override public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            @@ -385,15 +317,11 @@ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestPar * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ @java.lang.Override - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -405,7 +333,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_); } @@ -446,24 +375,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, object_); } if (generation_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, generation_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, generation_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, ifGenerationMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, ifGenerationMatch_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, ifGenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, ifGenerationNotMatch_); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, ifMetagenerationMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, ifMetagenerationMatch_); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, ifMetagenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(8, ifMetagenerationNotMatch_); } if (((bitField0_ & 0x00000010) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 10, getCommonObjectRequestParams()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getCommonObjectRequestParams()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -473,37 +406,43 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.DeleteObjectRequest)) { return super.equals(obj); } - com.google.storage.v2.DeleteObjectRequest other = - (com.google.storage.v2.DeleteObjectRequest) obj; + com.google.storage.v2.DeleteObjectRequest other = (com.google.storage.v2.DeleteObjectRequest) obj; - if (!getBucket().equals(other.getBucket())) return false; - if (!getObject().equals(other.getObject())) return false; - if (getGeneration() != other.getGeneration()) return false; + if (!getBucket() + .equals(other.getBucket())) return false; + if (!getObject() + .equals(other.getObject())) return false; + if (getGeneration() + != other.getGeneration()) return false; if (hasIfGenerationMatch() != other.hasIfGenerationMatch()) return false; if (hasIfGenerationMatch()) { - if (getIfGenerationMatch() != other.getIfGenerationMatch()) return false; + if (getIfGenerationMatch() + != other.getIfGenerationMatch()) return false; } if (hasIfGenerationNotMatch() != other.hasIfGenerationNotMatch()) return false; if (hasIfGenerationNotMatch()) { - if (getIfGenerationNotMatch() != other.getIfGenerationNotMatch()) return false; + if (getIfGenerationNotMatch() + != other.getIfGenerationNotMatch()) return false; } if (hasIfMetagenerationMatch() != other.hasIfMetagenerationMatch()) return false; if (hasIfMetagenerationMatch()) { - if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false; + if (getIfMetagenerationMatch() + != other.getIfMetagenerationMatch()) return false; } if (hasIfMetagenerationNotMatch() != other.hasIfMetagenerationNotMatch()) return false; if (hasIfMetagenerationNotMatch()) { - if (getIfMetagenerationNotMatch() != other.getIfMetagenerationNotMatch()) return false; + if (getIfMetagenerationNotMatch() + != other.getIfMetagenerationNotMatch()) return false; } if (hasCommonObjectRequestParams() != other.hasCommonObjectRequestParams()) return false; if (hasCommonObjectRequestParams()) { - if (!getCommonObjectRequestParams().equals(other.getCommonObjectRequestParams())) - return false; + if (!getCommonObjectRequestParams() + .equals(other.getCommonObjectRequestParams())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -521,22 +460,27 @@ public int hashCode() { hash = (37 * hash) + OBJECT_FIELD_NUMBER; hash = (53 * hash) + getObject().hashCode(); hash = (37 * hash) + GENERATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getGeneration()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getGeneration()); if (hasIfGenerationMatch()) { hash = (37 * hash) + IF_GENERATION_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfGenerationMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfGenerationMatch()); } if (hasIfGenerationNotMatch()) { hash = (37 * hash) + IF_GENERATION_NOT_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfGenerationNotMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfGenerationNotMatch()); } if (hasIfMetagenerationMatch()) { hash = (37 * hash) + IF_METAGENERATION_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationMatch()); } if (hasIfMetagenerationNotMatch()) { hash = (37 * hash) + IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationNotMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationNotMatch()); } if (hasCommonObjectRequestParams()) { hash = (37 * hash) + COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER; @@ -547,104 +491,99 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.DeleteObjectRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.DeleteObjectRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.DeleteObjectRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.DeleteObjectRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.DeleteObjectRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.DeleteObjectRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.DeleteObjectRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.DeleteObjectRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.DeleteObjectRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.DeleteObjectRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.DeleteObjectRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.DeleteObjectRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.DeleteObjectRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.DeleteObjectRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.DeleteObjectRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * Message for deleting an object.
                * `bucket` and `object` **must** be set.
            @@ -652,23 +591,21 @@ 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()
            @@ -676,17 +613,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) {
                     getCommonObjectRequestParamsFieldBuilder();
                   }
                 }
            -
                 @java.lang.Override
                 public Builder clear() {
                   super.clear();
            @@ -707,9 +644,9 @@ public Builder clear() {
                 }
             
                 @java.lang.Override
            -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            -      return com.google.storage.v2.StorageProto
            -          .internal_static_google_storage_v2_DeleteObjectRequest_descriptor;
            +    public com.google.protobuf.Descriptors.Descriptor
            +        getDescriptorForType() {
            +      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteObjectRequest_descriptor;
                 }
             
                 @java.lang.Override
            @@ -728,11 +665,8 @@ public com.google.storage.v2.DeleteObjectRequest build() {
             
                 @java.lang.Override
                 public com.google.storage.v2.DeleteObjectRequest buildPartial() {
            -      com.google.storage.v2.DeleteObjectRequest result =
            -          new com.google.storage.v2.DeleteObjectRequest(this);
            -      if (bitField0_ != 0) {
            -        buildPartial0(result);
            -      }
            +      com.google.storage.v2.DeleteObjectRequest result = new com.google.storage.v2.DeleteObjectRequest(this);
            +      if (bitField0_ != 0) { buildPartial0(result); }
                   onBuilt();
                   return result;
                 }
            @@ -766,10 +700,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();
                     to_bitField0_ |= 0x00000010;
                   }
                   result.bitField0_ |= to_bitField0_;
            @@ -779,39 +712,38 @@ private void buildPartial0(com.google.storage.v2.DeleteObjectRequest result) {
                 public Builder clone() {
                   return super.clone();
                 }
            -
                 @java.lang.Override
                 public Builder setField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field,
            +        java.lang.Object value) {
                   return super.setField(field, value);
                 }
            -
                 @java.lang.Override
            -    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
            +    public Builder clearField(
            +        com.google.protobuf.Descriptors.FieldDescriptor field) {
                   return super.clearField(field);
                 }
            -
                 @java.lang.Override
            -    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
            +    public Builder clearOneof(
            +        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                   return super.clearOneof(oneof);
                 }
            -
                 @java.lang.Override
                 public Builder setRepeatedField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field,
            +        int index, java.lang.Object value) {
                   return super.setRepeatedField(field, index, value);
                 }
            -
                 @java.lang.Override
                 public Builder addRepeatedField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field,
            +        java.lang.Object value) {
                   return super.addRepeatedField(field, value);
                 }
            -
                 @java.lang.Override
                 public Builder mergeFrom(com.google.protobuf.Message other) {
                   if (other instanceof com.google.storage.v2.DeleteObjectRequest) {
            -        return mergeFrom((com.google.storage.v2.DeleteObjectRequest) other);
            +        return mergeFrom((com.google.storage.v2.DeleteObjectRequest)other);
                   } else {
                     super.mergeFrom(other);
                     return this;
            @@ -874,62 +806,54 @@ public Builder mergeFrom(
                         case 0:
                           done = true;
                           break;
            -            case 10:
            -              {
            -                bucket_ = input.readStringRequireUtf8();
            -                bitField0_ |= 0x00000001;
            -                break;
            -              } // case 10
            -            case 18:
            -              {
            -                object_ = input.readStringRequireUtf8();
            -                bitField0_ |= 0x00000002;
            -                break;
            -              } // case 18
            -            case 32:
            -              {
            -                generation_ = input.readInt64();
            -                bitField0_ |= 0x00000004;
            -                break;
            -              } // case 32
            -            case 40:
            -              {
            -                ifGenerationMatch_ = input.readInt64();
            -                bitField0_ |= 0x00000008;
            -                break;
            -              } // case 40
            -            case 48:
            -              {
            -                ifGenerationNotMatch_ = input.readInt64();
            -                bitField0_ |= 0x00000010;
            -                break;
            -              } // case 48
            -            case 56:
            -              {
            -                ifMetagenerationMatch_ = input.readInt64();
            -                bitField0_ |= 0x00000020;
            -                break;
            -              } // case 56
            -            case 64:
            -              {
            -                ifMetagenerationNotMatch_ = input.readInt64();
            -                bitField0_ |= 0x00000040;
            -                break;
            -              } // case 64
            -            case 82:
            -              {
            -                input.readMessage(
            -                    getCommonObjectRequestParamsFieldBuilder().getBuilder(), extensionRegistry);
            -                bitField0_ |= 0x00000080;
            -                break;
            -              } // case 82
            -            default:
            -              {
            -                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            -                  done = true; // was an endgroup tag
            -                }
            -                break;
            -              } // default:
            +            case 10: {
            +              bucket_ = input.readStringRequireUtf8();
            +              bitField0_ |= 0x00000001;
            +              break;
            +            } // case 10
            +            case 18: {
            +              object_ = input.readStringRequireUtf8();
            +              bitField0_ |= 0x00000002;
            +              break;
            +            } // case 18
            +            case 32: {
            +              generation_ = input.readInt64();
            +              bitField0_ |= 0x00000004;
            +              break;
            +            } // case 32
            +            case 40: {
            +              ifGenerationMatch_ = input.readInt64();
            +              bitField0_ |= 0x00000008;
            +              break;
            +            } // case 40
            +            case 48: {
            +              ifGenerationNotMatch_ = input.readInt64();
            +              bitField0_ |= 0x00000010;
            +              break;
            +            } // case 48
            +            case 56: {
            +              ifMetagenerationMatch_ = input.readInt64();
            +              bitField0_ |= 0x00000020;
            +              break;
            +            } // case 56
            +            case 64: {
            +              ifMetagenerationNotMatch_ = input.readInt64();
            +              bitField0_ |= 0x00000040;
            +              break;
            +            } // case 64
            +            case 82: {
            +              input.readMessage(
            +                  getCommonObjectRequestParamsFieldBuilder().getBuilder(),
            +                  extensionRegistry);
            +              bitField0_ |= 0x00000080;
            +              break;
            +            } // case 82
            +            default: {
            +              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            +                done = true; // was an endgroup tag
            +              }
            +              break;
            +            } // default:
                       } // switch (tag)
                     } // while (!done)
                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            @@ -939,27 +863,22 @@ public Builder mergeFrom(
                   } // finally
                   return this;
                 }
            -
                 private int bitField0_;
             
                 private java.lang.Object bucket_ = "";
                 /**
            -     *
            -     *
                  * 
                  * Required. Name of the bucket in which the object resides.
                  * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bucket. */ public java.lang.String getBucket() { java.lang.Object ref = bucket_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucket_ = s; return s; @@ -968,23 +887,20 @@ public java.lang.String getBucket() { } } /** - * - * *
                  * Required. Name of the bucket in which the object resides.
                  * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for bucket. */ - public com.google.protobuf.ByteString getBucketBytes() { + public com.google.protobuf.ByteString + getBucketBytes() { java.lang.Object ref = bucket_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); bucket_ = b; return b; } else { @@ -992,39 +908,28 @@ public com.google.protobuf.ByteString getBucketBytes() { } } /** - * - * *
                  * Required. Name of the bucket in which the object resides.
                  * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bucket to set. * @return This builder for chaining. */ - public Builder setBucket(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBucket( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } bucket_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * Required. Name of the bucket in which the object resides.
                  * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearBucket() { @@ -1034,23 +939,17 @@ public Builder clearBucket() { return this; } /** - * - * *
                  * Required. Name of the bucket in which the object resides.
                  * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for bucket to set. * @return This builder for chaining. */ - public Builder setBucketBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBucketBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bucket_ = value; bitField0_ |= 0x00000001; @@ -1060,8 +959,6 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) { private java.lang.Object object_ = ""; /** - * - * *
                  * Required. The name of the finalized object to delete.
                  * Note: If you want to delete an unfinalized resumable upload please use
            @@ -1069,13 +966,13 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) {
                  * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The object. */ public java.lang.String getObject() { java.lang.Object ref = object_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); object_ = s; return s; @@ -1084,8 +981,6 @@ public java.lang.String getObject() { } } /** - * - * *
                  * Required. The name of the finalized object to delete.
                  * Note: If you want to delete an unfinalized resumable upload please use
            @@ -1093,14 +988,15 @@ public java.lang.String getObject() {
                  * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for object. */ - public com.google.protobuf.ByteString getObjectBytes() { + public com.google.protobuf.ByteString + getObjectBytes() { java.lang.Object ref = object_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); object_ = b; return b; } else { @@ -1108,8 +1004,6 @@ public com.google.protobuf.ByteString getObjectBytes() { } } /** - * - * *
                  * Required. The name of the finalized object to delete.
                  * Note: If you want to delete an unfinalized resumable upload please use
            @@ -1117,22 +1011,18 @@ public com.google.protobuf.ByteString getObjectBytes() {
                  * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The object to set. * @return This builder for chaining. */ - public Builder setObject(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setObject( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } object_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                  * Required. The name of the finalized object to delete.
                  * Note: If you want to delete an unfinalized resumable upload please use
            @@ -1140,7 +1030,6 @@ public Builder setObject(java.lang.String value) {
                  * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearObject() { @@ -1150,8 +1039,6 @@ public Builder clearObject() { return this; } /** - * - * *
                  * Required. The name of the finalized object to delete.
                  * Note: If you want to delete an unfinalized resumable upload please use
            @@ -1159,14 +1046,12 @@ public Builder clearObject() {
                  * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for object to set. * @return This builder for chaining. */ - public Builder setObjectBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setObjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); object_ = value; bitField0_ |= 0x00000002; @@ -1174,17 +1059,14 @@ public Builder setObjectBytes(com.google.protobuf.ByteString value) { return this; } - private long generation_; + private long generation_ ; /** - * - * *
                  * If present, permanently deletes a specific revision of this object (as
                  * opposed to the latest version, the default).
                  * 
            * * int64 generation = 4; - * * @return The generation. */ @java.lang.Override @@ -1192,15 +1074,12 @@ public long getGeneration() { return generation_; } /** - * - * *
                  * If present, permanently deletes a specific revision of this object (as
                  * opposed to the latest version, the default).
                  * 
            * * int64 generation = 4; - * * @param value The generation to set. * @return This builder for chaining. */ @@ -1212,15 +1091,12 @@ public Builder setGeneration(long value) { return this; } /** - * - * *
                  * If present, permanently deletes a specific revision of this object (as
                  * opposed to the latest version, the default).
                  * 
            * * int64 generation = 4; - * * @return This builder for chaining. */ public Builder clearGeneration() { @@ -1230,10 +1106,8 @@ public Builder clearGeneration() { return this; } - private long ifGenerationMatch_; + private long ifGenerationMatch_ ; /** - * - * *
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -1241,7 +1115,6 @@ public Builder clearGeneration() {
                  * 
            * * optional int64 if_generation_match = 5; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -1249,8 +1122,6 @@ public boolean hasIfGenerationMatch() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -1258,7 +1129,6 @@ public boolean hasIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_match = 5; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -1266,8 +1136,6 @@ public long getIfGenerationMatch() { return ifGenerationMatch_; } /** - * - * *
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -1275,7 +1143,6 @@ public long getIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_match = 5; - * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ @@ -1287,8 +1154,6 @@ public Builder setIfGenerationMatch(long value) { return this; } /** - * - * *
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -1296,7 +1161,6 @@ public Builder setIfGenerationMatch(long value) {
                  * 
            * * optional int64 if_generation_match = 5; - * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -1306,10 +1170,8 @@ public Builder clearIfGenerationMatch() { return this; } - private long ifGenerationNotMatch_; + private long ifGenerationNotMatch_ ; /** - * - * *
                  * Makes the operation conditional on whether the object's live generation
                  * does not match the given value. If no live object exists, the precondition
            @@ -1318,7 +1180,6 @@ public Builder clearIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_not_match = 6; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -1326,8 +1187,6 @@ public boolean hasIfGenerationNotMatch() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
                  * Makes the operation conditional on whether the object's live generation
                  * does not match the given value. If no live object exists, the precondition
            @@ -1336,7 +1195,6 @@ public boolean hasIfGenerationNotMatch() {
                  * 
            * * optional int64 if_generation_not_match = 6; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -1344,8 +1202,6 @@ public long getIfGenerationNotMatch() { return ifGenerationNotMatch_; } /** - * - * *
                  * Makes the operation conditional on whether the object's live generation
                  * does not match the given value. If no live object exists, the precondition
            @@ -1354,7 +1210,6 @@ public long getIfGenerationNotMatch() {
                  * 
            * * optional int64 if_generation_not_match = 6; - * * @param value The ifGenerationNotMatch to set. * @return This builder for chaining. */ @@ -1366,8 +1221,6 @@ public Builder setIfGenerationNotMatch(long value) { return this; } /** - * - * *
                  * Makes the operation conditional on whether the object's live generation
                  * does not match the given value. If no live object exists, the precondition
            @@ -1376,7 +1229,6 @@ public Builder setIfGenerationNotMatch(long value) {
                  * 
            * * optional int64 if_generation_not_match = 6; - * * @return This builder for chaining. */ public Builder clearIfGenerationNotMatch() { @@ -1386,17 +1238,14 @@ public Builder clearIfGenerationNotMatch() { return this; } - private long ifMetagenerationMatch_; + private long ifMetagenerationMatch_ ; /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 7; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -1404,15 +1253,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 7; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -1420,15 +1266,12 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 7; - * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -1440,15 +1283,12 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 7; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -1458,17 +1298,14 @@ public Builder clearIfMetagenerationMatch() { return this; } - private long ifMetagenerationNotMatch_; + private long ifMetagenerationNotMatch_ ; /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 8; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -1476,15 +1313,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 8; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -1492,15 +1326,12 @@ public long getIfMetagenerationNotMatch() { return ifMetagenerationNotMatch_; } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 8; - * * @param value The ifMetagenerationNotMatch to set. * @return This builder for chaining. */ @@ -1512,15 +1343,12 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 8; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -1532,55 +1360,41 @@ public Builder clearIfMetagenerationNotMatch() { private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> - commonObjectRequestParamsBuilder_; + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> commonObjectRequestParamsBuilder_; /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; - * * @return Whether the commonObjectRequestParams field is set. */ public boolean hasCommonObjectRequestParams() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; - * * @return The commonObjectRequestParams. */ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { if (commonObjectRequestParamsBuilder_ == null) { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } else { return commonObjectRequestParamsBuilder_.getMessage(); } } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ - public Builder setCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1594,8 +1408,6 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -1614,21 +1426,17 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ - public Builder mergeCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && commonObjectRequestParams_ != null - && commonObjectRequestParams_ - != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + commonObjectRequestParams_ != null && + commonObjectRequestParams_ != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { getCommonObjectRequestParamsBuilder().mergeFrom(value); } else { commonObjectRequestParams_ = value; @@ -1643,8 +1451,6 @@ public Builder mergeCommonObjectRequestParams( return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -1662,42 +1468,33 @@ public Builder clearCommonObjectRequestParams() { return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ - public com.google.storage.v2.CommonObjectRequestParams.Builder - getCommonObjectRequestParamsBuilder() { + public com.google.storage.v2.CommonObjectRequestParams.Builder getCommonObjectRequestParamsBuilder() { bitField0_ |= 0x00000080; onChanged(); return getCommonObjectRequestParamsFieldBuilder().getBuilder(); } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { if (commonObjectRequestParamsBuilder_ != null) { return commonObjectRequestParamsBuilder_.getMessageOrBuilder(); } else { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? + com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -1705,24 +1502,21 @@ public Builder clearCommonObjectRequestParams() { * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> getCommonObjectRequestParamsFieldBuilder() { if (commonObjectRequestParamsBuilder_ == null) { - commonObjectRequestParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( - getCommonObjectRequestParams(), getParentForChildren(), isClean()); + commonObjectRequestParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( + getCommonObjectRequestParams(), + getParentForChildren(), + isClean()); commonObjectRequestParams_ = null; } return commonObjectRequestParamsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1732,12 +1526,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.DeleteObjectRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.DeleteObjectRequest) private static final com.google.storage.v2.DeleteObjectRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.DeleteObjectRequest(); } @@ -1746,27 +1540,27 @@ public static com.google.storage.v2.DeleteObjectRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteObjectRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteObjectRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1781,4 +1575,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.DeleteObjectRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteObjectRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteObjectRequestOrBuilder.java similarity index 81% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteObjectRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteObjectRequestOrBuilder.java index 26265c14dc..1542fc3cd9 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,61 +1,34 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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
            @@ -63,13 +36,10 @@ public interface DeleteObjectRequestOrBuilder
                * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The object. */ java.lang.String getObject(); /** - * - * *
                * Required. The name of the finalized object to delete.
                * Note: If you want to delete an unfinalized resumable upload please use
            @@ -77,28 +47,23 @@ public interface DeleteObjectRequestOrBuilder
                * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for object. */ - com.google.protobuf.ByteString getObjectBytes(); + com.google.protobuf.ByteString + getObjectBytes(); /** - * - * *
                * If present, permanently deletes a specific revision of this object (as
                * opposed to the latest version, the default).
                * 
            * * int64 generation = 4; - * * @return The generation. */ long getGeneration(); /** - * - * *
                * Makes the operation conditional on whether the object's current generation
                * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -106,13 +71,10 @@ public interface DeleteObjectRequestOrBuilder
                * 
            * * optional int64 if_generation_match = 5; - * * @return Whether the ifGenerationMatch field is set. */ boolean hasIfGenerationMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's current generation
                * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -120,14 +82,11 @@ public interface DeleteObjectRequestOrBuilder
                * 
            * * optional int64 if_generation_match = 5; - * * @return The ifGenerationMatch. */ long getIfGenerationMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's live generation
                * does not match the given value. If no live object exists, the precondition
            @@ -136,13 +95,10 @@ public interface DeleteObjectRequestOrBuilder
                * 
            * * optional int64 if_generation_not_match = 6; - * * @return Whether the ifGenerationNotMatch field is set. */ boolean hasIfGenerationNotMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's live generation
                * does not match the given value. If no live object exists, the precondition
            @@ -151,92 +107,71 @@ public interface DeleteObjectRequestOrBuilder
                * 
            * * optional int64 if_generation_not_match = 6; - * * @return The ifGenerationNotMatch. */ long getIfGenerationNotMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 7; - * * @return Whether the ifMetagenerationMatch field is set. */ boolean hasIfMetagenerationMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 7; - * * @return The ifMetagenerationMatch. */ long getIfMetagenerationMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 8; - * * @return Whether the ifMetagenerationNotMatch field is set. */ boolean hasIfMetagenerationNotMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 8; - * * @return The ifMetagenerationNotMatch. */ long getIfMetagenerationNotMatch(); /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; - * * @return Whether the commonObjectRequestParams field is set. */ boolean hasCommonObjectRequestParams(); /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; - * * @return The commonObjectRequestParams. */ com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams(); /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetBucketRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetBucketRequest.java similarity index 72% 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 e436ba6cfc..4364d0806b 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,65 +5,55 @@ package com.google.storage.v2; /** - * - * *
              * Request message for GetBucket.
              * 
            * * Protobuf type {@code google.storage.v2.GetBucketRequest} */ -public final class GetBucketRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetBucketRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.GetBucketRequest) GetBucketRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetBucketRequest.newBuilder() to construct. private GetBucketRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetBucketRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetBucketRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetBucketRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.GetBucketRequest.class, - com.google.storage.v2.GetBucketRequest.Builder.class); + com.google.storage.v2.GetBucketRequest.class, com.google.storage.v2.GetBucketRequest.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
                * Required. Name of a bucket.
                * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -87,31 +62,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
                * Required. Name of a bucket.
                * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -122,15 +95,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER = 2; private long ifMetagenerationMatch_ = 0L; /** - * - * *
                * If set, and if the bucket's current metageneration does not match the
                * specified value, the request will return an error.
                * 
            * * optional int64 if_metageneration_match = 2; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -138,15 +108,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * If set, and if the bucket's current metageneration does not match the
                * specified value, the request will return an error.
                * 
            * * optional int64 if_metageneration_match = 2; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -157,15 +124,12 @@ public long getIfMetagenerationMatch() { public static final int IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER = 3; private long ifMetagenerationNotMatch_ = 0L; /** - * - * *
                * If set, and if the bucket's current metageneration matches the specified
                * value, the request will return an error.
                * 
            * * optional int64 if_metageneration_not_match = 3; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -173,15 +137,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                * If set, and if the bucket's current metageneration matches the specified
                * value, the request will return an error.
                * 
            * * optional int64 if_metageneration_not_match = 3; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -192,8 +153,6 @@ public long getIfMetagenerationNotMatch() { public static final int READ_MASK_FIELD_NUMBER = 5; private com.google.protobuf.FieldMask readMask_; /** - * - * *
                * Mask specifying which fields to read.
                * A "*" field may be used to indicate all fields.
            @@ -201,7 +160,6 @@ public long getIfMetagenerationNotMatch() {
                * 
            * * optional .google.protobuf.FieldMask read_mask = 5; - * * @return Whether the readMask field is set. */ @java.lang.Override @@ -209,8 +167,6 @@ public boolean hasReadMask() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
                * Mask specifying which fields to read.
                * A "*" field may be used to indicate all fields.
            @@ -218,7 +174,6 @@ public boolean hasReadMask() {
                * 
            * * optional .google.protobuf.FieldMask read_mask = 5; - * * @return The readMask. */ @java.lang.Override @@ -226,8 +181,6 @@ public com.google.protobuf.FieldMask getReadMask() { return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } /** - * - * *
                * Mask specifying which fields to read.
                * A "*" field may be used to indicate all fields.
            @@ -242,7 +195,6 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
               }
             
               private byte memoizedIsInitialized = -1;
            -
               @java.lang.Override
               public final boolean isInitialized() {
                 byte isInitialized = memoizedIsInitialized;
            @@ -254,7 +206,8 @@ public final boolean isInitialized() {
               }
             
               @java.lang.Override
            -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
            +  public void writeTo(com.google.protobuf.CodedOutputStream output)
            +                      throws java.io.IOException {
                 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
                   com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
                 }
            @@ -280,13 +233,16 @@ public int getSerializedSize() {
                   size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
                 }
                 if (((bitField0_ & 0x00000001) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, ifMetagenerationMatch_);
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeInt64Size(2, ifMetagenerationMatch_);
                 }
                 if (((bitField0_ & 0x00000002) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, ifMetagenerationNotMatch_);
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeInt64Size(3, ifMetagenerationNotMatch_);
                 }
                 if (((bitField0_ & 0x00000004) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getReadMask());
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeMessageSize(5, getReadMask());
                 }
                 size += getUnknownFields().getSerializedSize();
                 memoizedSize = size;
            @@ -296,25 +252,29 @@ public int getSerializedSize() {
               @java.lang.Override
               public boolean equals(final java.lang.Object obj) {
                 if (obj == this) {
            -      return true;
            +     return true;
                 }
                 if (!(obj instanceof com.google.storage.v2.GetBucketRequest)) {
                   return super.equals(obj);
                 }
                 com.google.storage.v2.GetBucketRequest other = (com.google.storage.v2.GetBucketRequest) obj;
             
            -    if (!getName().equals(other.getName())) return false;
            +    if (!getName()
            +        .equals(other.getName())) return false;
                 if (hasIfMetagenerationMatch() != other.hasIfMetagenerationMatch()) return false;
                 if (hasIfMetagenerationMatch()) {
            -      if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false;
            +      if (getIfMetagenerationMatch()
            +          != other.getIfMetagenerationMatch()) return false;
                 }
                 if (hasIfMetagenerationNotMatch() != other.hasIfMetagenerationNotMatch()) return false;
                 if (hasIfMetagenerationNotMatch()) {
            -      if (getIfMetagenerationNotMatch() != other.getIfMetagenerationNotMatch()) return false;
            +      if (getIfMetagenerationNotMatch()
            +          != other.getIfMetagenerationNotMatch()) return false;
                 }
                 if (hasReadMask() != other.hasReadMask()) return false;
                 if (hasReadMask()) {
            -      if (!getReadMask().equals(other.getReadMask())) return false;
            +      if (!getReadMask()
            +          .equals(other.getReadMask())) return false;
                 }
                 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
                 return true;
            @@ -331,11 +291,13 @@ public int hashCode() {
                 hash = (53 * hash) + getName().hashCode();
                 if (hasIfMetagenerationMatch()) {
                   hash = (37 * hash) + IF_METAGENERATION_MATCH_FIELD_NUMBER;
            -      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationMatch());
            +      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            +          getIfMetagenerationMatch());
                 }
                 if (hasIfMetagenerationNotMatch()) {
                   hash = (37 * hash) + IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER;
            -      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationNotMatch());
            +      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            +          getIfMetagenerationNotMatch());
                 }
                 if (hasReadMask()) {
                   hash = (37 * hash) + READ_MASK_FIELD_NUMBER;
            @@ -346,127 +308,120 @@ public int hashCode() {
                 return hash;
               }
             
            -  public static com.google.storage.v2.GetBucketRequest parseFrom(java.nio.ByteBuffer data)
            +  public static com.google.storage.v2.GetBucketRequest parseFrom(
            +      java.nio.ByteBuffer data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
            -
               public static com.google.storage.v2.GetBucketRequest parseFrom(
            -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      java.nio.ByteBuffer data,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
            -
               public static com.google.storage.v2.GetBucketRequest parseFrom(
                   com.google.protobuf.ByteString data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
            -
               public static com.google.storage.v2.GetBucketRequest parseFrom(
                   com.google.protobuf.ByteString data,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
            -
               public static com.google.storage.v2.GetBucketRequest parseFrom(byte[] data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
            -
               public static com.google.storage.v2.GetBucketRequest parseFrom(
            -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      byte[] data,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
            -
               public static com.google.storage.v2.GetBucketRequest parseFrom(java.io.InputStream input)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input);
               }
            -
               public static com.google.storage.v2.GetBucketRequest parseFrom(
            -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      java.io.InputStream input,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            -        PARSER, input, extensionRegistry);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input, extensionRegistry);
               }
             
               public static com.google.storage.v2.GetBucketRequest parseDelimitedFrom(java.io.InputStream input)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseDelimitedWithIOException(PARSER, input);
               }
             
               public static com.google.storage.v2.GetBucketRequest parseDelimitedFrom(
            -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      java.io.InputStream input,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            -        PARSER, input, extensionRegistry);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
               }
            -
               public static com.google.storage.v2.GetBucketRequest parseFrom(
            -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
            +      com.google.protobuf.CodedInputStream input)
            +      throws java.io.IOException {
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input);
               }
            -
               public static com.google.storage.v2.GetBucketRequest parseFrom(
                   com.google.protobuf.CodedInputStream input,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            -        PARSER, input, extensionRegistry);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input, extensionRegistry);
               }
             
               @java.lang.Override
            -  public Builder newBuilderForType() {
            -    return newBuilder();
            -  }
            -
            +  public Builder newBuilderForType() { return newBuilder(); }
               public static Builder newBuilder() {
                 return DEFAULT_INSTANCE.toBuilder();
               }
            -
               public static Builder newBuilder(com.google.storage.v2.GetBucketRequest prototype) {
                 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
               }
            -
               @java.lang.Override
               public Builder toBuilder() {
            -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
            +    return this == DEFAULT_INSTANCE
            +        ? new Builder() : new Builder().mergeFrom(this);
               }
             
               @java.lang.Override
            -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            +  protected Builder newBuilderForType(
            +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 Builder builder = new Builder(parent);
                 return builder;
               }
               /**
            -   *
            -   *
                * 
                * Request message for GetBucket.
                * 
            * * Protobuf type {@code google.storage.v2.GetBucketRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.GetBucketRequest) com.google.storage.v2.GetBucketRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetBucketRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.GetBucketRequest.class, - com.google.storage.v2.GetBucketRequest.Builder.class); + com.google.storage.v2.GetBucketRequest.class, com.google.storage.v2.GetBucketRequest.Builder.class); } // Construct using com.google.storage.v2.GetBucketRequest.newBuilder() @@ -474,17 +429,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getReadMaskFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -501,9 +456,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetBucketRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetBucketRequest_descriptor; } @java.lang.Override @@ -522,11 +477,8 @@ public com.google.storage.v2.GetBucketRequest build() { @java.lang.Override public com.google.storage.v2.GetBucketRequest buildPartial() { - com.google.storage.v2.GetBucketRequest result = - new com.google.storage.v2.GetBucketRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.GetBucketRequest result = new com.google.storage.v2.GetBucketRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -546,7 +498,9 @@ private void buildPartial0(com.google.storage.v2.GetBucketRequest result) { to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + result.readMask_ = readMaskBuilder_ == null + ? readMask_ + : readMaskBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; @@ -556,39 +510,38 @@ private void buildPartial0(com.google.storage.v2.GetBucketRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.GetBucketRequest) { - return mergeFrom((com.google.storage.v2.GetBucketRequest) other); + return mergeFrom((com.google.storage.v2.GetBucketRequest)other); } else { super.mergeFrom(other); return this; @@ -637,37 +590,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - ifMetagenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - ifMetagenerationNotMatch_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 42: - { - input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + ifMetagenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + ifMetagenerationNotMatch_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 42: { + input.readMessage( + getReadMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -677,27 +627,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
                  * Required. Name of a bucket.
                  * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -706,23 +651,20 @@ public java.lang.String getName() { } } /** - * - * *
                  * Required. Name of a bucket.
                  * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -730,39 +672,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
                  * Required. Name of a bucket.
                  * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * Required. Name of a bucket.
                  * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -772,23 +703,17 @@ public Builder clearName() { return this; } /** - * - * *
                  * Required. Name of a bucket.
                  * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -796,17 +721,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private long ifMetagenerationMatch_; + private long ifMetagenerationMatch_ ; /** - * - * *
                  * If set, and if the bucket's current metageneration does not match the
                  * specified value, the request will return an error.
                  * 
            * * optional int64 if_metageneration_match = 2; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -814,15 +736,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                  * If set, and if the bucket's current metageneration does not match the
                  * specified value, the request will return an error.
                  * 
            * * optional int64 if_metageneration_match = 2; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -830,15 +749,12 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** - * - * *
                  * If set, and if the bucket's current metageneration does not match the
                  * specified value, the request will return an error.
                  * 
            * * optional int64 if_metageneration_match = 2; - * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -850,15 +766,12 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** - * - * *
                  * If set, and if the bucket's current metageneration does not match the
                  * specified value, the request will return an error.
                  * 
            * * optional int64 if_metageneration_match = 2; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -868,17 +781,14 @@ public Builder clearIfMetagenerationMatch() { return this; } - private long ifMetagenerationNotMatch_; + private long ifMetagenerationNotMatch_ ; /** - * - * *
                  * If set, and if the bucket's current metageneration matches the specified
                  * value, the request will return an error.
                  * 
            * * optional int64 if_metageneration_not_match = 3; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -886,15 +796,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
                  * If set, and if the bucket's current metageneration matches the specified
                  * value, the request will return an error.
                  * 
            * * optional int64 if_metageneration_not_match = 3; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -902,15 +809,12 @@ public long getIfMetagenerationNotMatch() { return ifMetagenerationNotMatch_; } /** - * - * *
                  * If set, and if the bucket's current metageneration matches the specified
                  * value, the request will return an error.
                  * 
            * * optional int64 if_metageneration_not_match = 3; - * * @param value The ifMetagenerationNotMatch to set. * @return This builder for chaining. */ @@ -922,15 +826,12 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** - * - * *
                  * If set, and if the bucket's current metageneration matches the specified
                  * value, the request will return an error.
                  * 
            * * optional int64 if_metageneration_not_match = 3; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -942,13 +843,8 @@ public Builder clearIfMetagenerationNotMatch() { private com.google.protobuf.FieldMask readMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - readMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> readMaskBuilder_; /** - * - * *
                  * Mask specifying which fields to read.
                  * A "*" field may be used to indicate all fields.
            @@ -956,15 +852,12 @@ public Builder clearIfMetagenerationNotMatch() {
                  * 
            * * optional .google.protobuf.FieldMask read_mask = 5; - * * @return Whether the readMask field is set. */ public boolean hasReadMask() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
                  * Mask specifying which fields to read.
                  * A "*" field may be used to indicate all fields.
            @@ -972,7 +865,6 @@ public boolean hasReadMask() {
                  * 
            * * optional .google.protobuf.FieldMask read_mask = 5; - * * @return The readMask. */ public com.google.protobuf.FieldMask getReadMask() { @@ -983,8 +875,6 @@ public com.google.protobuf.FieldMask getReadMask() { } } /** - * - * *
                  * Mask specifying which fields to read.
                  * A "*" field may be used to indicate all fields.
            @@ -1007,8 +897,6 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Mask specifying which fields to read.
                  * A "*" field may be used to indicate all fields.
            @@ -1017,7 +905,8 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) {
                  *
                  * optional .google.protobuf.FieldMask read_mask = 5;
                  */
            -    public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) {
            +    public Builder setReadMask(
            +        com.google.protobuf.FieldMask.Builder builderForValue) {
                   if (readMaskBuilder_ == null) {
                     readMask_ = builderForValue.build();
                   } else {
            @@ -1028,8 +917,6 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Mask specifying which fields to read.
                  * A "*" field may be used to indicate all fields.
            @@ -1040,9 +927,9 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue
                  */
                 public Builder mergeReadMask(com.google.protobuf.FieldMask value) {
                   if (readMaskBuilder_ == null) {
            -        if (((bitField0_ & 0x00000008) != 0)
            -            && readMask_ != null
            -            && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
            +        if (((bitField0_ & 0x00000008) != 0) &&
            +          readMask_ != null &&
            +          readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
                       getReadMaskBuilder().mergeFrom(value);
                     } else {
                       readMask_ = value;
            @@ -1057,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.
            @@ -1078,8 +963,6 @@ public Builder clearReadMask() {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Mask specifying which fields to read.
                  * A "*" field may be used to indicate all fields.
            @@ -1094,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.
            @@ -1108,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.
            @@ -1123,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);
                 }
             
            @@ -1150,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();
               }
            @@ -1164,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;
            @@ -1199,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 72%
            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 0a797f87ca..cd8f88bda8 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,115 +1,76 @@
            -/*
            - * Copyright 2024 Google LLC
            - *
            - * Licensed under the Apache License, Version 2.0 (the "License");
            - * you may not use this file except in compliance with the License.
            - * You may obtain a copy of the License at
            - *
            - *     https://www.apache.org/licenses/LICENSE-2.0
            - *
            - * Unless required by applicable law or agreed to in writing, software
            - * distributed under the License is distributed on an "AS IS" BASIS,
            - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            - * See the License for the specific language governing permissions and
            - * limitations under the License.
            - */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
             // Protobuf Java Version: 3.25.3
             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.
            @@ -117,13 +78,10 @@ public interface GetBucketRequestOrBuilder
                * 
            * * optional .google.protobuf.FieldMask read_mask = 5; - * * @return Whether the readMask field is set. */ boolean hasReadMask(); /** - * - * *
                * Mask specifying which fields to read.
                * A "*" field may be used to indicate all fields.
            @@ -131,13 +89,10 @@ public interface GetBucketRequestOrBuilder
                * 
            * * optional .google.protobuf.FieldMask read_mask = 5; - * * @return The readMask. */ com.google.protobuf.FieldMask getReadMask(); /** - * - * *
                * Mask specifying which fields to read.
                * A "*" field may be used to indicate all fields.
            diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequest.java
            similarity index 66%
            rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequest.java
            rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequest.java
            index 1ac5037e16..6ec5983078 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,18 +1,3 @@
            -/*
            - * Copyright 2024 Google LLC
            - *
            - * Licensed under the Apache License, Version 2.0 (the "License");
            - * you may not use this file except in compliance with the License.
            - * You may obtain a copy of the License at
            - *
            - *     https://www.apache.org/licenses/LICENSE-2.0
            - *
            - * Unless required by applicable law or agreed to in writing, software
            - * distributed under the License is distributed on an "AS IS" BASIS,
            - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            - * See the License for the specific language governing permissions and
            - * limitations under the License.
            - */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
            @@ -20,24 +5,21 @@
             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_ = ""; @@ -45,38 +27,33 @@ private GetHmacKeyRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetHmacKeyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetHmacKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetHmacKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetHmacKeyRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetHmacKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.GetHmacKeyRequest.class, - com.google.storage.v2.GetHmacKeyRequest.Builder.class); + com.google.storage.v2.GetHmacKeyRequest.class, com.google.storage.v2.GetHmacKeyRequest.Builder.class); } public static final int ACCESS_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object accessId_ = ""; /** - * - * *
                * Required. The identifying key for the HMAC to delete.
                * 
            * * string access_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The accessId. */ @java.lang.Override @@ -85,29 +62,29 @@ public java.lang.String getAccessId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accessId_ = s; return s; } } /** - * - * *
                * Required. The identifying key for the HMAC to delete.
                * 
            * * string access_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for accessId. */ @java.lang.Override - public com.google.protobuf.ByteString getAccessIdBytes() { + public com.google.protobuf.ByteString + getAccessIdBytes() { java.lang.Object ref = accessId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); accessId_ = b; return b; } else { @@ -116,22 +93,16 @@ public com.google.protobuf.ByteString getAccessIdBytes() { } public static final int PROJECT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object project_ = ""; /** - * - * *
                * Required. The project the HMAC key lies in, in the format of
                * "projects/{projectIdentifier}".
                * {projectIdentifier} can be the project ID or project number.
                * 
            * - * - * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The project. */ @java.lang.Override @@ -140,33 +111,31 @@ public java.lang.String getProject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; } } /** - * - * *
                * Required. The project the HMAC key lies in, in the format of
                * "projects/{projectIdentifier}".
                * {projectIdentifier} can be the project ID or project number.
                * 
            * - * - * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); project_ = b; return b; } else { @@ -175,7 +144,6 @@ public com.google.protobuf.ByteString getProjectBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -187,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accessId_); } @@ -217,15 +186,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.GetHmacKeyRequest)) { return super.equals(obj); } com.google.storage.v2.GetHmacKeyRequest other = (com.google.storage.v2.GetHmacKeyRequest) obj; - if (!getAccessId().equals(other.getAccessId())) return false; - if (!getProject().equals(other.getProject())) return false; + if (!getAccessId() + .equals(other.getAccessId())) return false; + if (!getProject() + .equals(other.getProject())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -246,136 +217,132 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.GetHmacKeyRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.GetHmacKeyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.GetHmacKeyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.GetHmacKeyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.GetHmacKeyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.GetHmacKeyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.GetHmacKeyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.GetHmacKeyRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.GetHmacKeyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.GetHmacKeyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.GetHmacKeyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.GetHmacKeyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.GetHmacKeyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.GetHmacKeyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.GetHmacKeyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * Request object to get metadata on a given HMAC key.
                * 
            * * Protobuf type {@code google.storage.v2.GetHmacKeyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.GetHmacKeyRequest) com.google.storage.v2.GetHmacKeyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetHmacKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetHmacKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetHmacKeyRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetHmacKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.GetHmacKeyRequest.class, - com.google.storage.v2.GetHmacKeyRequest.Builder.class); + com.google.storage.v2.GetHmacKeyRequest.class, com.google.storage.v2.GetHmacKeyRequest.Builder.class); } // Construct using com.google.storage.v2.GetHmacKeyRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -386,9 +353,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_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 @@ -407,11 +374,8 @@ public com.google.storage.v2.GetHmacKeyRequest build() { @java.lang.Override public com.google.storage.v2.GetHmacKeyRequest buildPartial() { - com.google.storage.v2.GetHmacKeyRequest result = - new com.google.storage.v2.GetHmacKeyRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.GetHmacKeyRequest result = new com.google.storage.v2.GetHmacKeyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -430,39 +394,38 @@ private void buildPartial0(com.google.storage.v2.GetHmacKeyRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.GetHmacKeyRequest) { - return mergeFrom((com.google.storage.v2.GetHmacKeyRequest) other); + return mergeFrom((com.google.storage.v2.GetHmacKeyRequest)other); } else { super.mergeFrom(other); return this; @@ -507,25 +470,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - accessId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - project_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + accessId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -535,25 +495,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object accessId_ = ""; /** - * - * *
                  * Required. The identifying key for the HMAC to delete.
                  * 
            * * string access_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The accessId. */ public java.lang.String getAccessId() { java.lang.Object ref = accessId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accessId_ = s; return s; @@ -562,21 +519,20 @@ public java.lang.String getAccessId() { } } /** - * - * *
                  * Required. The identifying key for the HMAC to delete.
                  * 
            * * string access_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for accessId. */ - public com.google.protobuf.ByteString getAccessIdBytes() { + public com.google.protobuf.ByteString + getAccessIdBytes() { java.lang.Object ref = accessId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); accessId_ = b; return b; } else { @@ -584,35 +540,28 @@ public com.google.protobuf.ByteString getAccessIdBytes() { } } /** - * - * *
                  * Required. The identifying key for the HMAC to delete.
                  * 
            * * string access_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The accessId to set. * @return This builder for chaining. */ - public Builder setAccessId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAccessId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } accessId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * Required. The identifying key for the HMAC to delete.
                  * 
            * * string access_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearAccessId() { @@ -622,21 +571,17 @@ public Builder clearAccessId() { return this; } /** - * - * *
                  * Required. The identifying key for the HMAC to delete.
                  * 
            * * string access_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for accessId to set. * @return This builder for chaining. */ - public Builder setAccessIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAccessIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); accessId_ = value; bitField0_ |= 0x00000001; @@ -646,24 +591,20 @@ public Builder setAccessIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object project_ = ""; /** - * - * *
                  * Required. The project 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; @@ -672,25 +613,22 @@ public java.lang.String getProject() { } } /** - * - * *
                  * Required. The project the HMAC key lies in, in the format of
                  * "projects/{projectIdentifier}".
                  * {projectIdentifier} can be the project ID or project number.
                  * 
            * - * - * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); project_ = b; return b; } else { @@ -698,43 +636,32 @@ public com.google.protobuf.ByteString getProjectBytes() { } } /** - * - * *
                  * Required. The project the HMAC key lies in, in the format of
                  * "projects/{projectIdentifier}".
                  * {projectIdentifier} can be the project ID or project number.
                  * 
            * - * - * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProject( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } project_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                  * Required. The project the HMAC key lies in, in the format of
                  * "projects/{projectIdentifier}".
                  * {projectIdentifier} can be the project ID or project number.
                  * 
            * - * - * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearProject() { @@ -744,34 +671,28 @@ public Builder clearProject() { return this; } /** - * - * *
                  * Required. The project the HMAC key lies in, in the format of
                  * "projects/{projectIdentifier}".
                  * {projectIdentifier} can be the project ID or project number.
                  * 
            * - * - * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); project_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -781,12 +702,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.GetHmacKeyRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.GetHmacKeyRequest) private static final com.google.storage.v2.GetHmacKeyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.GetHmacKeyRequest(); } @@ -795,27 +716,27 @@ public static com.google.storage.v2.GetHmacKeyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetHmacKeyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetHmacKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -830,4 +751,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.GetHmacKeyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetHmacKeyRequestOrBuilder.java similarity index 54% 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 810b54f45a..5855f16174 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,84 +1,54 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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 ac58e69583..510ec44e04 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,66 +5,56 @@ package com.google.storage.v2; /** - * - * *
              * Request message for GetNotificationConfig.
              * 
            * * Protobuf type {@code google.storage.v2.GetNotificationConfigRequest} */ -public final class GetNotificationConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetNotificationConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.GetNotificationConfigRequest) GetNotificationConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetNotificationConfigRequest.newBuilder() to construct. private GetNotificationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetNotificationConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetNotificationConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetNotificationConfigRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.GetNotificationConfigRequest.class, - com.google.storage.v2.GetNotificationConfigRequest.Builder.class); + com.google.storage.v2.GetNotificationConfigRequest.class, com.google.storage.v2.GetNotificationConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
                * Required. The parent bucket of the NotificationConfig.
                * Format:
                * `projects/{project}/buckets/{bucket}/notificationConfigs/{notificationConfig}`
                * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -88,33 +63,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
                * Required. The parent bucket of the NotificationConfig.
                * Format:
                * `projects/{project}/buckets/{bucket}/notificationConfigs/{notificationConfig}`
                * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +96,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,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_); } @@ -159,15 +132,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.GetNotificationConfigRequest)) { return super.equals(obj); } - com.google.storage.v2.GetNotificationConfigRequest other = - (com.google.storage.v2.GetNotificationConfigRequest) obj; + com.google.storage.v2.GetNotificationConfigRequest other = (com.google.storage.v2.GetNotificationConfigRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,135 +160,131 @@ public int hashCode() { } public static com.google.storage.v2.GetNotificationConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.GetNotificationConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.GetNotificationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.GetNotificationConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.GetNotificationConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.GetNotificationConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.v2.GetNotificationConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.v2.GetNotificationConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.GetNotificationConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.GetNotificationConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.GetNotificationConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.GetNotificationConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.GetNotificationConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.GetNotificationConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.GetNotificationConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * Request message for GetNotificationConfig.
                * 
            * * Protobuf type {@code google.storage.v2.GetNotificationConfigRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.GetNotificationConfigRequest) com.google.storage.v2.GetNotificationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetNotificationConfigRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.GetNotificationConfigRequest.class, - com.google.storage.v2.GetNotificationConfigRequest.Builder.class); + com.google.storage.v2.GetNotificationConfigRequest.class, com.google.storage.v2.GetNotificationConfigRequest.Builder.class); } // Construct using com.google.storage.v2.GetNotificationConfigRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -325,9 +294,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetNotificationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetNotificationConfigRequest_descriptor; } @java.lang.Override @@ -346,11 +315,8 @@ public com.google.storage.v2.GetNotificationConfigRequest build() { @java.lang.Override public com.google.storage.v2.GetNotificationConfigRequest buildPartial() { - com.google.storage.v2.GetNotificationConfigRequest result = - new com.google.storage.v2.GetNotificationConfigRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.GetNotificationConfigRequest result = new com.google.storage.v2.GetNotificationConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -366,39 +332,38 @@ private void buildPartial0(com.google.storage.v2.GetNotificationConfigRequest re public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.GetNotificationConfigRequest) { - return mergeFrom((com.google.storage.v2.GetNotificationConfigRequest) other); + return mergeFrom((com.google.storage.v2.GetNotificationConfigRequest)other); } else { super.mergeFrom(other); return this; @@ -406,8 +371,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.v2.GetNotificationConfigRequest other) { - if (other == com.google.storage.v2.GetNotificationConfigRequest.getDefaultInstance()) - return this; + if (other == com.google.storage.v2.GetNotificationConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -439,19 +403,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -461,29 +423,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
                  * Required. The parent bucket of the NotificationConfig.
                  * Format:
                  * `projects/{project}/buckets/{bucket}/notificationConfigs/{notificationConfig}`
                  * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -492,25 +449,22 @@ public java.lang.String getName() { } } /** - * - * *
                  * Required. The parent bucket of the NotificationConfig.
                  * Format:
                  * `projects/{project}/buckets/{bucket}/notificationConfigs/{notificationConfig}`
                  * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -518,43 +472,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
                  * Required. The parent bucket of the NotificationConfig.
                  * Format:
                  * `projects/{project}/buckets/{bucket}/notificationConfigs/{notificationConfig}`
                  * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * Required. The parent bucket of the NotificationConfig.
                  * Format:
                  * `projects/{project}/buckets/{bucket}/notificationConfigs/{notificationConfig}`
                  * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -564,34 +507,28 @@ public Builder clearName() { return this; } /** - * - * *
                  * Required. The parent bucket of the NotificationConfig.
                  * Format:
                  * `projects/{project}/buckets/{bucket}/notificationConfigs/{notificationConfig}`
                  * 
            * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -601,12 +538,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.GetNotificationConfigRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.GetNotificationConfigRequest) private static final com.google.storage.v2.GetNotificationConfigRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.GetNotificationConfigRequest(); } @@ -615,27 +552,27 @@ public static com.google.storage.v2.GetNotificationConfigRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNotificationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNotificationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,4 +587,6 @@ public com.google.protobuf.Parser getParserForType public com.google.storage.v2.GetNotificationConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequestOrBuilder.java new file mode 100644 index 0000000000..4eb8a26d58 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequestOrBuilder.java @@ -0,0 +1,34 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/storage/v2/storage.proto + +// Protobuf Java Version: 3.25.3 +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 75% 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 383c4f611c..6b5d8d3fe6 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,24 +5,21 @@ 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_ = ""; @@ -45,41 +27,34 @@ private GetObjectRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetObjectRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetObjectRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetObjectRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetObjectRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetObjectRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.GetObjectRequest.class, - com.google.storage.v2.GetObjectRequest.Builder.class); + com.google.storage.v2.GetObjectRequest.class, com.google.storage.v2.GetObjectRequest.Builder.class); } private int bitField0_; public static final int BUCKET_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object bucket_ = ""; /** - * - * *
                * Required. Name of the bucket in which the object resides.
                * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bucket. */ @java.lang.Override @@ -88,31 +63,29 @@ public java.lang.String getBucket() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucket_ = s; return s; } } /** - * - * *
                * Required. Name of the bucket in which the object resides.
                * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for bucket. */ @java.lang.Override - public com.google.protobuf.ByteString getBucketBytes() { + public com.google.protobuf.ByteString + getBucketBytes() { java.lang.Object ref = bucket_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); bucket_ = b; return b; } else { @@ -121,18 +94,14 @@ public com.google.protobuf.ByteString getBucketBytes() { } public static final int OBJECT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object object_ = ""; /** - * - * *
                * Required. Name of the object.
                * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The object. */ @java.lang.Override @@ -141,29 +110,29 @@ public java.lang.String getObject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); object_ = s; return s; } } /** - * - * *
                * Required. Name of the object.
                * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for object. */ @java.lang.Override - public com.google.protobuf.ByteString getObjectBytes() { + public com.google.protobuf.ByteString + getObjectBytes() { java.lang.Object ref = object_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); object_ = b; return b; } else { @@ -174,15 +143,12 @@ public com.google.protobuf.ByteString getObjectBytes() { public static final int GENERATION_FIELD_NUMBER = 3; private long generation_ = 0L; /** - * - * *
                * If present, selects a specific revision of this object (as opposed to the
                * latest version, the default).
                * 
            * * int64 generation = 3; - * * @return The generation. */ @java.lang.Override @@ -193,14 +159,11 @@ public long getGeneration() { public static final int SOFT_DELETED_FIELD_NUMBER = 11; private boolean softDeleted_ = false; /** - * - * *
                * If true, return the soft-deleted version of this object.
                * 
            * * optional bool soft_deleted = 11; - * * @return Whether the softDeleted field is set. */ @java.lang.Override @@ -208,14 +171,11 @@ public boolean hasSoftDeleted() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * If true, return the soft-deleted version of this object.
                * 
            * * optional bool soft_deleted = 11; - * * @return The softDeleted. */ @java.lang.Override @@ -226,8 +186,6 @@ public boolean getSoftDeleted() { public static final int IF_GENERATION_MATCH_FIELD_NUMBER = 4; private long ifGenerationMatch_ = 0L; /** - * - * *
                * Makes the operation conditional on whether the object's current generation
                * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -235,7 +193,6 @@ public boolean getSoftDeleted() {
                * 
            * * optional int64 if_generation_match = 4; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -243,8 +200,6 @@ public boolean hasIfGenerationMatch() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                * Makes the operation conditional on whether the object's current generation
                * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -252,7 +207,6 @@ public boolean hasIfGenerationMatch() {
                * 
            * * optional int64 if_generation_match = 4; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -263,8 +217,6 @@ public long getIfGenerationMatch() { public static final int IF_GENERATION_NOT_MATCH_FIELD_NUMBER = 5; private long ifGenerationNotMatch_ = 0L; /** - * - * *
                * Makes the operation conditional on whether the object's live generation
                * does not match the given value. If no live object exists, the precondition
            @@ -273,7 +225,6 @@ public long getIfGenerationMatch() {
                * 
            * * optional int64 if_generation_not_match = 5; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -281,8 +232,6 @@ public boolean hasIfGenerationNotMatch() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
                * Makes the operation conditional on whether the object's live generation
                * does not match the given value. If no live object exists, the precondition
            @@ -291,7 +240,6 @@ public boolean hasIfGenerationNotMatch() {
                * 
            * * optional int64 if_generation_not_match = 5; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -302,15 +250,12 @@ public long getIfGenerationNotMatch() { public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER = 6; private long ifMetagenerationMatch_ = 0L; /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 6; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -318,15 +263,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 6; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -337,15 +279,12 @@ public long getIfMetagenerationMatch() { public static final int IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER = 7; private long ifMetagenerationNotMatch_ = 0L; /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 7; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -353,15 +292,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 7; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -372,14 +308,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 @@ -387,25 +320,18 @@ public boolean hasCommonObjectRequestParams() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return The commonObjectRequestParams. */ @java.lang.Override public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            @@ -413,18 +339,13 @@ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestPar * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ @java.lang.Override - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } public static final int READ_MASK_FIELD_NUMBER = 10; private com.google.protobuf.FieldMask readMask_; /** - * - * *
                * Mask specifying which fields to read.
                * If no mask is specified, will default to all fields except metadata.acl and
            @@ -433,7 +354,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 @@ -441,8 +361,6 @@ public boolean hasReadMask() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
                * Mask specifying which fields to read.
                * If no mask is specified, will default to all fields except metadata.acl and
            @@ -451,7 +369,6 @@ public boolean hasReadMask() {
                * 
            * * optional .google.protobuf.FieldMask read_mask = 10; - * * @return The readMask. */ @java.lang.Override @@ -459,8 +376,6 @@ public com.google.protobuf.FieldMask getReadMask() { return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } /** - * - * *
                * Mask specifying which fields to read.
                * If no mask is specified, will default to all fields except metadata.acl and
            @@ -476,7 +391,6 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
               }
             
               private byte memoizedIsInitialized = -1;
            -
               @java.lang.Override
               public final boolean isInitialized() {
                 byte isInitialized = memoizedIsInitialized;
            @@ -488,7 +402,8 @@ public final boolean isInitialized() {
               }
             
               @java.lang.Override
            -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
            +  public void writeTo(com.google.protobuf.CodedOutputStream output)
            +                      throws java.io.IOException {
                 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) {
                   com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_);
                 }
            @@ -535,30 +450,36 @@ public int getSerializedSize() {
                   size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, object_);
                 }
                 if (generation_ != 0L) {
            -      size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, generation_);
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeInt64Size(3, generation_);
                 }
                 if (((bitField0_ & 0x00000002) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ifGenerationMatch_);
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeInt64Size(4, ifGenerationMatch_);
                 }
                 if (((bitField0_ & 0x00000004) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, ifGenerationNotMatch_);
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeInt64Size(5, ifGenerationNotMatch_);
                 }
                 if (((bitField0_ & 0x00000008) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, ifMetagenerationMatch_);
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeInt64Size(6, ifMetagenerationMatch_);
                 }
                 if (((bitField0_ & 0x00000010) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, ifMetagenerationNotMatch_);
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeInt64Size(7, ifMetagenerationNotMatch_);
                 }
                 if (((bitField0_ & 0x00000020) != 0)) {
            -      size +=
            -          com.google.protobuf.CodedOutputStream.computeMessageSize(
            -              8, getCommonObjectRequestParams());
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeMessageSize(8, getCommonObjectRequestParams());
                 }
                 if (((bitField0_ & 0x00000040) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getReadMask());
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeMessageSize(10, getReadMask());
                 }
                 if (((bitField0_ & 0x00000001) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, softDeleted_);
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeBoolSize(11, softDeleted_);
                 }
                 size += getUnknownFields().getSerializedSize();
                 memoizedSize = size;
            @@ -568,44 +489,53 @@ public int getSerializedSize() {
               @java.lang.Override
               public boolean equals(final java.lang.Object obj) {
                 if (obj == this) {
            -      return true;
            +     return true;
                 }
                 if (!(obj instanceof com.google.storage.v2.GetObjectRequest)) {
                   return super.equals(obj);
                 }
                 com.google.storage.v2.GetObjectRequest other = (com.google.storage.v2.GetObjectRequest) obj;
             
            -    if (!getBucket().equals(other.getBucket())) return false;
            -    if (!getObject().equals(other.getObject())) return false;
            -    if (getGeneration() != other.getGeneration()) return false;
            +    if (!getBucket()
            +        .equals(other.getBucket())) return false;
            +    if (!getObject()
            +        .equals(other.getObject())) return false;
            +    if (getGeneration()
            +        != other.getGeneration()) return false;
                 if (hasSoftDeleted() != other.hasSoftDeleted()) return false;
                 if (hasSoftDeleted()) {
            -      if (getSoftDeleted() != other.getSoftDeleted()) return false;
            +      if (getSoftDeleted()
            +          != other.getSoftDeleted()) return false;
                 }
                 if (hasIfGenerationMatch() != other.hasIfGenerationMatch()) return false;
                 if (hasIfGenerationMatch()) {
            -      if (getIfGenerationMatch() != other.getIfGenerationMatch()) return false;
            +      if (getIfGenerationMatch()
            +          != other.getIfGenerationMatch()) return false;
                 }
                 if (hasIfGenerationNotMatch() != other.hasIfGenerationNotMatch()) return false;
                 if (hasIfGenerationNotMatch()) {
            -      if (getIfGenerationNotMatch() != other.getIfGenerationNotMatch()) return false;
            +      if (getIfGenerationNotMatch()
            +          != other.getIfGenerationNotMatch()) return false;
                 }
                 if (hasIfMetagenerationMatch() != other.hasIfMetagenerationMatch()) return false;
                 if (hasIfMetagenerationMatch()) {
            -      if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false;
            +      if (getIfMetagenerationMatch()
            +          != other.getIfMetagenerationMatch()) return false;
                 }
                 if (hasIfMetagenerationNotMatch() != other.hasIfMetagenerationNotMatch()) return false;
                 if (hasIfMetagenerationNotMatch()) {
            -      if (getIfMetagenerationNotMatch() != other.getIfMetagenerationNotMatch()) return false;
            +      if (getIfMetagenerationNotMatch()
            +          != other.getIfMetagenerationNotMatch()) return false;
                 }
                 if (hasCommonObjectRequestParams() != other.hasCommonObjectRequestParams()) return false;
                 if (hasCommonObjectRequestParams()) {
            -      if (!getCommonObjectRequestParams().equals(other.getCommonObjectRequestParams()))
            -        return false;
            +      if (!getCommonObjectRequestParams()
            +          .equals(other.getCommonObjectRequestParams())) return false;
                 }
                 if (hasReadMask() != other.hasReadMask()) return false;
                 if (hasReadMask()) {
            -      if (!getReadMask().equals(other.getReadMask())) return false;
            +      if (!getReadMask()
            +          .equals(other.getReadMask())) return false;
                 }
                 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
                 return true;
            @@ -623,26 +553,32 @@ public int hashCode() {
                 hash = (37 * hash) + OBJECT_FIELD_NUMBER;
                 hash = (53 * hash) + getObject().hashCode();
                 hash = (37 * hash) + GENERATION_FIELD_NUMBER;
            -    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getGeneration());
            +    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            +        getGeneration());
                 if (hasSoftDeleted()) {
                   hash = (37 * hash) + SOFT_DELETED_FIELD_NUMBER;
            -      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSoftDeleted());
            +      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
            +          getSoftDeleted());
                 }
                 if (hasIfGenerationMatch()) {
                   hash = (37 * hash) + IF_GENERATION_MATCH_FIELD_NUMBER;
            -      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfGenerationMatch());
            +      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            +          getIfGenerationMatch());
                 }
                 if (hasIfGenerationNotMatch()) {
                   hash = (37 * hash) + IF_GENERATION_NOT_MATCH_FIELD_NUMBER;
            -      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfGenerationNotMatch());
            +      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            +          getIfGenerationNotMatch());
                 }
                 if (hasIfMetagenerationMatch()) {
                   hash = (37 * hash) + IF_METAGENERATION_MATCH_FIELD_NUMBER;
            -      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationMatch());
            +      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            +          getIfMetagenerationMatch());
                 }
                 if (hasIfMetagenerationNotMatch()) {
                   hash = (37 * hash) + IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER;
            -      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationNotMatch());
            +      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            +          getIfMetagenerationNotMatch());
                 }
                 if (hasCommonObjectRequestParams()) {
                   hash = (37 * hash) + COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER;
            @@ -657,127 +593,120 @@ public int hashCode() {
                 return hash;
               }
             
            -  public static com.google.storage.v2.GetObjectRequest parseFrom(java.nio.ByteBuffer data)
            +  public static com.google.storage.v2.GetObjectRequest parseFrom(
            +      java.nio.ByteBuffer data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
            -
               public static com.google.storage.v2.GetObjectRequest parseFrom(
            -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      java.nio.ByteBuffer data,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
            -
               public static com.google.storage.v2.GetObjectRequest parseFrom(
                   com.google.protobuf.ByteString data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
            -
               public static com.google.storage.v2.GetObjectRequest parseFrom(
                   com.google.protobuf.ByteString data,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
            -
               public static com.google.storage.v2.GetObjectRequest parseFrom(byte[] data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
            -
               public static com.google.storage.v2.GetObjectRequest parseFrom(
            -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      byte[] data,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
            -
               public static com.google.storage.v2.GetObjectRequest parseFrom(java.io.InputStream input)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input);
               }
            -
               public static com.google.storage.v2.GetObjectRequest parseFrom(
            -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      java.io.InputStream input,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            -        PARSER, input, extensionRegistry);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input, extensionRegistry);
               }
             
               public static com.google.storage.v2.GetObjectRequest parseDelimitedFrom(java.io.InputStream input)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseDelimitedWithIOException(PARSER, input);
               }
             
               public static com.google.storage.v2.GetObjectRequest parseDelimitedFrom(
            -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      java.io.InputStream input,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            -        PARSER, input, extensionRegistry);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
               }
            -
               public static com.google.storage.v2.GetObjectRequest parseFrom(
            -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
            +      com.google.protobuf.CodedInputStream input)
            +      throws java.io.IOException {
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input);
               }
            -
               public static com.google.storage.v2.GetObjectRequest parseFrom(
                   com.google.protobuf.CodedInputStream input,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            -        PARSER, input, extensionRegistry);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input, extensionRegistry);
               }
             
               @java.lang.Override
            -  public Builder newBuilderForType() {
            -    return newBuilder();
            -  }
            -
            +  public Builder newBuilderForType() { return newBuilder(); }
               public static Builder newBuilder() {
                 return DEFAULT_INSTANCE.toBuilder();
               }
            -
               public static Builder newBuilder(com.google.storage.v2.GetObjectRequest prototype) {
                 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
               }
            -
               @java.lang.Override
               public Builder toBuilder() {
            -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
            +    return this == DEFAULT_INSTANCE
            +        ? new Builder() : new Builder().mergeFrom(this);
               }
             
               @java.lang.Override
            -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            +  protected Builder newBuilderForType(
            +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 Builder builder = new Builder(parent);
                 return builder;
               }
               /**
            -   *
            -   *
                * 
                * Request message for GetObject.
                * 
            * * Protobuf type {@code google.storage.v2.GetObjectRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.GetObjectRequest) com.google.storage.v2.GetObjectRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetObjectRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetObjectRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetObjectRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetObjectRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.GetObjectRequest.class, - com.google.storage.v2.GetObjectRequest.Builder.class); + com.google.storage.v2.GetObjectRequest.class, com.google.storage.v2.GetObjectRequest.Builder.class); } // Construct using com.google.storage.v2.GetObjectRequest.newBuilder() @@ -785,18 +714,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getCommonObjectRequestParamsFieldBuilder(); getReadMaskFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -823,9 +752,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_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 @@ -844,11 +773,8 @@ public com.google.storage.v2.GetObjectRequest build() { @java.lang.Override public com.google.storage.v2.GetObjectRequest buildPartial() { - com.google.storage.v2.GetObjectRequest result = - new com.google.storage.v2.GetObjectRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.GetObjectRequest result = new com.google.storage.v2.GetObjectRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -886,14 +812,15 @@ private void buildPartial0(com.google.storage.v2.GetObjectRequest result) { to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.commonObjectRequestParams_ = - commonObjectRequestParamsBuilder_ == null - ? commonObjectRequestParams_ - : commonObjectRequestParamsBuilder_.build(); + result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null + ? commonObjectRequestParams_ + : commonObjectRequestParamsBuilder_.build(); to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + result.readMask_ = readMaskBuilder_ == null + ? readMask_ + : readMaskBuilder_.build(); to_bitField0_ |= 0x00000040; } result.bitField0_ |= to_bitField0_; @@ -903,39 +830,38 @@ private void buildPartial0(com.google.storage.v2.GetObjectRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.GetObjectRequest) { - return mergeFrom((com.google.storage.v2.GetObjectRequest) other); + return mergeFrom((com.google.storage.v2.GetObjectRequest)other); } else { super.mergeFrom(other); return this; @@ -1004,74 +930,66 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - bucket_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - object_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - generation_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - ifGenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000010; - break; - } // case 32 - case 40: - { - ifGenerationNotMatch_ = input.readInt64(); - bitField0_ |= 0x00000020; - break; - } // case 40 - case 48: - { - ifMetagenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000040; - break; - } // case 48 - case 56: - { - ifMetagenerationNotMatch_ = input.readInt64(); - bitField0_ |= 0x00000080; - break; - } // case 56 - case 66: - { - input.readMessage( - getCommonObjectRequestParamsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 66 - case 82: - { - input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 88: - { - softDeleted_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 88 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + bucket_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + object_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + generation_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + ifGenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 40: { + ifGenerationNotMatch_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 40 + case 48: { + ifMetagenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 48 + case 56: { + ifMetagenerationNotMatch_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 56 + case 66: { + input.readMessage( + getCommonObjectRequestParamsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 82: { + input.readMessage( + getReadMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 88: { + softDeleted_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 88 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1081,27 +999,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object bucket_ = ""; /** - * - * *
                  * Required. Name of the bucket in which the object resides.
                  * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bucket. */ public java.lang.String getBucket() { java.lang.Object ref = bucket_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucket_ = s; return s; @@ -1110,23 +1023,20 @@ public java.lang.String getBucket() { } } /** - * - * *
                  * Required. Name of the bucket in which the object resides.
                  * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for bucket. */ - public com.google.protobuf.ByteString getBucketBytes() { + public com.google.protobuf.ByteString + getBucketBytes() { java.lang.Object ref = bucket_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); bucket_ = b; return b; } else { @@ -1134,39 +1044,28 @@ public com.google.protobuf.ByteString getBucketBytes() { } } /** - * - * *
                  * Required. Name of the bucket in which the object resides.
                  * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bucket to set. * @return This builder for chaining. */ - public Builder setBucket(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBucket( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } bucket_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * Required. Name of the bucket in which the object resides.
                  * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearBucket() { @@ -1176,23 +1075,17 @@ public Builder clearBucket() { return this; } /** - * - * *
                  * Required. Name of the bucket in which the object resides.
                  * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for bucket to set. * @return This builder for chaining. */ - public Builder setBucketBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBucketBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bucket_ = value; bitField0_ |= 0x00000001; @@ -1202,20 +1095,18 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) { private java.lang.Object object_ = ""; /** - * - * *
                  * Required. Name of the object.
                  * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The object. */ public java.lang.String getObject() { java.lang.Object ref = object_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); object_ = s; return s; @@ -1224,21 +1115,20 @@ public java.lang.String getObject() { } } /** - * - * *
                  * Required. Name of the object.
                  * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for object. */ - public com.google.protobuf.ByteString getObjectBytes() { + public com.google.protobuf.ByteString + getObjectBytes() { java.lang.Object ref = object_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); object_ = b; return b; } else { @@ -1246,35 +1136,28 @@ public com.google.protobuf.ByteString getObjectBytes() { } } /** - * - * *
                  * Required. Name of the object.
                  * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The object to set. * @return This builder for chaining. */ - public Builder setObject(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setObject( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } object_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                  * Required. Name of the object.
                  * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearObject() { @@ -1284,21 +1167,17 @@ public Builder clearObject() { return this; } /** - * - * *
                  * Required. Name of the object.
                  * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for object to set. * @return This builder for chaining. */ - public Builder setObjectBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setObjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); object_ = value; bitField0_ |= 0x00000002; @@ -1306,17 +1185,14 @@ public Builder setObjectBytes(com.google.protobuf.ByteString value) { return this; } - private long generation_; + private long generation_ ; /** - * - * *
                  * If present, selects a specific revision of this object (as opposed to the
                  * latest version, the default).
                  * 
            * * int64 generation = 3; - * * @return The generation. */ @java.lang.Override @@ -1324,15 +1200,12 @@ public long getGeneration() { return generation_; } /** - * - * *
                  * If present, selects a specific revision of this object (as opposed to the
                  * latest version, the default).
                  * 
            * * int64 generation = 3; - * * @param value The generation to set. * @return This builder for chaining. */ @@ -1344,15 +1217,12 @@ public Builder setGeneration(long value) { return this; } /** - * - * *
                  * If present, selects a specific revision of this object (as opposed to the
                  * latest version, the default).
                  * 
            * * int64 generation = 3; - * * @return This builder for chaining. */ public Builder clearGeneration() { @@ -1362,16 +1232,13 @@ public Builder clearGeneration() { return this; } - private boolean softDeleted_; + private boolean softDeleted_ ; /** - * - * *
                  * If true, return the soft-deleted version of this object.
                  * 
            * * optional bool soft_deleted = 11; - * * @return Whether the softDeleted field is set. */ @java.lang.Override @@ -1379,14 +1246,11 @@ public boolean hasSoftDeleted() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
                  * If true, return the soft-deleted version of this object.
                  * 
            * * optional bool soft_deleted = 11; - * * @return The softDeleted. */ @java.lang.Override @@ -1394,14 +1258,11 @@ public boolean getSoftDeleted() { return softDeleted_; } /** - * - * *
                  * If true, return the soft-deleted version of this object.
                  * 
            * * optional bool soft_deleted = 11; - * * @param value The softDeleted to set. * @return This builder for chaining. */ @@ -1413,14 +1274,11 @@ public Builder setSoftDeleted(boolean value) { return this; } /** - * - * *
                  * If true, return the soft-deleted version of this object.
                  * 
            * * optional bool soft_deleted = 11; - * * @return This builder for chaining. */ public Builder clearSoftDeleted() { @@ -1430,10 +1288,8 @@ public Builder clearSoftDeleted() { return this; } - private long ifGenerationMatch_; + private long ifGenerationMatch_ ; /** - * - * *
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -1441,7 +1297,6 @@ public Builder clearSoftDeleted() {
                  * 
            * * optional int64 if_generation_match = 4; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -1449,8 +1304,6 @@ public boolean hasIfGenerationMatch() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -1458,7 +1311,6 @@ public boolean hasIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_match = 4; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -1466,8 +1318,6 @@ public long getIfGenerationMatch() { return ifGenerationMatch_; } /** - * - * *
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -1475,7 +1325,6 @@ public long getIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_match = 4; - * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ @@ -1487,8 +1336,6 @@ public Builder setIfGenerationMatch(long value) { return this; } /** - * - * *
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -1496,7 +1343,6 @@ public Builder setIfGenerationMatch(long value) {
                  * 
            * * optional int64 if_generation_match = 4; - * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -1506,10 +1352,8 @@ public Builder clearIfGenerationMatch() { return this; } - private long ifGenerationNotMatch_; + private long ifGenerationNotMatch_ ; /** - * - * *
                  * Makes the operation conditional on whether the object's live generation
                  * does not match the given value. If no live object exists, the precondition
            @@ -1518,7 +1362,6 @@ public Builder clearIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_not_match = 5; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -1526,8 +1369,6 @@ public boolean hasIfGenerationNotMatch() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
                  * Makes the operation conditional on whether the object's live generation
                  * does not match the given value. If no live object exists, the precondition
            @@ -1536,7 +1377,6 @@ public boolean hasIfGenerationNotMatch() {
                  * 
            * * optional int64 if_generation_not_match = 5; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -1544,8 +1384,6 @@ public long getIfGenerationNotMatch() { return ifGenerationNotMatch_; } /** - * - * *
                  * Makes the operation conditional on whether the object's live generation
                  * does not match the given value. If no live object exists, the precondition
            @@ -1554,7 +1392,6 @@ public long getIfGenerationNotMatch() {
                  * 
            * * optional int64 if_generation_not_match = 5; - * * @param value The ifGenerationNotMatch to set. * @return This builder for chaining. */ @@ -1566,8 +1403,6 @@ public Builder setIfGenerationNotMatch(long value) { return this; } /** - * - * *
                  * Makes the operation conditional on whether the object's live generation
                  * does not match the given value. If no live object exists, the precondition
            @@ -1576,7 +1411,6 @@ public Builder setIfGenerationNotMatch(long value) {
                  * 
            * * optional int64 if_generation_not_match = 5; - * * @return This builder for chaining. */ public Builder clearIfGenerationNotMatch() { @@ -1586,17 +1420,14 @@ public Builder clearIfGenerationNotMatch() { return this; } - private long ifMetagenerationMatch_; + private long ifMetagenerationMatch_ ; /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 6; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -1604,15 +1435,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 6; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -1620,15 +1448,12 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 6; - * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -1640,15 +1465,12 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 6; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -1658,17 +1480,14 @@ public Builder clearIfMetagenerationMatch() { return this; } - private long ifMetagenerationNotMatch_; + private long ifMetagenerationNotMatch_ ; /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 7; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -1676,15 +1495,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 7; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -1692,15 +1508,12 @@ public long getIfMetagenerationNotMatch() { return ifMetagenerationNotMatch_; } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 7; - * * @param value The ifMetagenerationNotMatch to set. * @return This builder for chaining. */ @@ -1712,15 +1525,12 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 7; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -1732,55 +1542,41 @@ public Builder clearIfMetagenerationNotMatch() { private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> - commonObjectRequestParamsBuilder_; + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> commonObjectRequestParamsBuilder_; /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return Whether the commonObjectRequestParams field is set. */ public boolean hasCommonObjectRequestParams() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return The commonObjectRequestParams. */ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { if (commonObjectRequestParamsBuilder_ == null) { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } else { return commonObjectRequestParamsBuilder_.getMessage(); } } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ - public Builder setCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1794,8 +1590,6 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -1814,21 +1608,17 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ - public Builder mergeCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && commonObjectRequestParams_ != null - && commonObjectRequestParams_ - != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + commonObjectRequestParams_ != null && + commonObjectRequestParams_ != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { getCommonObjectRequestParamsBuilder().mergeFrom(value); } else { commonObjectRequestParams_ = value; @@ -1843,8 +1633,6 @@ public Builder mergeCommonObjectRequestParams( return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -1862,42 +1650,33 @@ public Builder clearCommonObjectRequestParams() { return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ - public com.google.storage.v2.CommonObjectRequestParams.Builder - getCommonObjectRequestParamsBuilder() { + public com.google.storage.v2.CommonObjectRequestParams.Builder getCommonObjectRequestParamsBuilder() { bitField0_ |= 0x00000100; onChanged(); return getCommonObjectRequestParamsFieldBuilder().getBuilder(); } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { if (commonObjectRequestParamsBuilder_ != null) { return commonObjectRequestParamsBuilder_.getMessageOrBuilder(); } else { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? + com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -1905,17 +1684,14 @@ public Builder clearCommonObjectRequestParams() { * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> getCommonObjectRequestParamsFieldBuilder() { if (commonObjectRequestParamsBuilder_ == null) { - commonObjectRequestParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( - getCommonObjectRequestParams(), getParentForChildren(), isClean()); + commonObjectRequestParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( + getCommonObjectRequestParams(), + getParentForChildren(), + isClean()); commonObjectRequestParams_ = null; } return commonObjectRequestParamsBuilder_; @@ -1923,13 +1699,8 @@ public Builder clearCommonObjectRequestParams() { private com.google.protobuf.FieldMask readMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - readMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> readMaskBuilder_; /** - * - * *
                  * Mask specifying which fields to read.
                  * If no mask is specified, will default to all fields except metadata.acl and
            @@ -1938,15 +1709,12 @@ public Builder clearCommonObjectRequestParams() {
                  * 
            * * optional .google.protobuf.FieldMask read_mask = 10; - * * @return Whether the readMask field is set. */ public boolean hasReadMask() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
                  * Mask specifying which fields to read.
                  * If no mask is specified, will default to all fields except metadata.acl and
            @@ -1955,7 +1723,6 @@ public boolean hasReadMask() {
                  * 
            * * optional .google.protobuf.FieldMask read_mask = 10; - * * @return The readMask. */ public com.google.protobuf.FieldMask getReadMask() { @@ -1966,8 +1733,6 @@ public com.google.protobuf.FieldMask getReadMask() { } } /** - * - * *
                  * Mask specifying which fields to read.
                  * If no mask is specified, will default to all fields except metadata.acl and
            @@ -1991,8 +1756,6 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Mask specifying which fields to read.
                  * If no mask is specified, will default to all fields except metadata.acl and
            @@ -2002,7 +1765,8 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) {
                  *
                  * optional .google.protobuf.FieldMask read_mask = 10;
                  */
            -    public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) {
            +    public Builder setReadMask(
            +        com.google.protobuf.FieldMask.Builder builderForValue) {
                   if (readMaskBuilder_ == null) {
                     readMask_ = builderForValue.build();
                   } else {
            @@ -2013,8 +1777,6 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Mask specifying which fields to read.
                  * If no mask is specified, will default to all fields except metadata.acl and
            @@ -2026,9 +1788,9 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue
                  */
                 public Builder mergeReadMask(com.google.protobuf.FieldMask value) {
                   if (readMaskBuilder_ == null) {
            -        if (((bitField0_ & 0x00000200) != 0)
            -            && readMask_ != null
            -            && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
            +        if (((bitField0_ & 0x00000200) != 0) &&
            +          readMask_ != null &&
            +          readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
                       getReadMaskBuilder().mergeFrom(value);
                     } else {
                       readMask_ = value;
            @@ -2043,8 +1805,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
            @@ -2065,8 +1825,6 @@ public Builder clearReadMask() {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Mask specifying which fields to read.
                  * If no mask is specified, will default to all fields except metadata.acl and
            @@ -2082,8 +1840,6 @@ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() {
                   return getReadMaskFieldBuilder().getBuilder();
                 }
                 /**
            -     *
            -     *
                  * 
                  * Mask specifying which fields to read.
                  * If no mask is specified, will default to all fields except metadata.acl and
            @@ -2097,12 +1853,11 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
                   if (readMaskBuilder_ != null) {
                     return readMaskBuilder_.getMessageOrBuilder();
                   } else {
            -        return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_;
            +        return readMask_ == null ?
            +            com.google.protobuf.FieldMask.getDefaultInstance() : readMask_;
                   }
                 }
                 /**
            -     *
            -     *
                  * 
                  * Mask specifying which fields to read.
                  * If no mask is specified, will default to all fields except metadata.acl and
            @@ -2113,24 +1868,21 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
                  * optional .google.protobuf.FieldMask read_mask = 10;
                  */
                 private com.google.protobuf.SingleFieldBuilderV3<
            -            com.google.protobuf.FieldMask,
            -            com.google.protobuf.FieldMask.Builder,
            -            com.google.protobuf.FieldMaskOrBuilder>
            +        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
                     getReadMaskFieldBuilder() {
                   if (readMaskBuilder_ == null) {
            -        readMaskBuilder_ =
            -            new com.google.protobuf.SingleFieldBuilderV3<
            -                com.google.protobuf.FieldMask,
            -                com.google.protobuf.FieldMask.Builder,
            -                com.google.protobuf.FieldMaskOrBuilder>(
            -                getReadMask(), getParentForChildren(), isClean());
            +        readMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            +            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
            +                getReadMask(),
            +                getParentForChildren(),
            +                isClean());
                     readMask_ = null;
                   }
                   return readMaskBuilder_;
                 }
            -
                 @java.lang.Override
            -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
            +    public final Builder setUnknownFields(
            +        final com.google.protobuf.UnknownFieldSet unknownFields) {
                   return super.setUnknownFields(unknownFields);
                 }
             
            @@ -2140,12 +1892,12 @@ public final Builder mergeUnknownFields(
                   return super.mergeUnknownFields(unknownFields);
                 }
             
            +
                 // @@protoc_insertion_point(builder_scope:google.storage.v2.GetObjectRequest)
               }
             
               // @@protoc_insertion_point(class_scope:google.storage.v2.GetObjectRequest)
               private static final com.google.storage.v2.GetObjectRequest DEFAULT_INSTANCE;
            -
               static {
                 DEFAULT_INSTANCE = new com.google.storage.v2.GetObjectRequest();
               }
            @@ -2154,27 +1906,27 @@ public static com.google.storage.v2.GetObjectRequest getDefaultInstance() {
                 return DEFAULT_INSTANCE;
               }
             
            -  private static final com.google.protobuf.Parser PARSER =
            -      new com.google.protobuf.AbstractParser() {
            -        @java.lang.Override
            -        public GetObjectRequest parsePartialFrom(
            -            com.google.protobuf.CodedInputStream input,
            -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            -            throws com.google.protobuf.InvalidProtocolBufferException {
            -          Builder builder = newBuilder();
            -          try {
            -            builder.mergeFrom(input, extensionRegistry);
            -          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            -            throw e.setUnfinishedMessage(builder.buildPartial());
            -          } catch (com.google.protobuf.UninitializedMessageException e) {
            -            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
            -          } catch (java.io.IOException e) {
            -            throw new com.google.protobuf.InvalidProtocolBufferException(e)
            -                .setUnfinishedMessage(builder.buildPartial());
            -          }
            -          return builder.buildPartial();
            -        }
            -      };
            +  private static final com.google.protobuf.Parser
            +      PARSER = new com.google.protobuf.AbstractParser() {
            +    @java.lang.Override
            +    public GetObjectRequest parsePartialFrom(
            +        com.google.protobuf.CodedInputStream input,
            +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +        throws com.google.protobuf.InvalidProtocolBufferException {
            +      Builder builder = newBuilder();
            +      try {
            +        builder.mergeFrom(input, extensionRegistry);
            +      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            +        throw e.setUnfinishedMessage(builder.buildPartial());
            +      } catch (com.google.protobuf.UninitializedMessageException e) {
            +        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
            +      } catch (java.io.IOException e) {
            +        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            +            .setUnfinishedMessage(builder.buildPartial());
            +      }
            +      return builder.buildPartial();
            +    }
            +  };
             
               public static com.google.protobuf.Parser parser() {
                 return PARSER;
            @@ -2189,4 +1941,6 @@ public com.google.protobuf.Parser getParserForType() {
               public com.google.storage.v2.GetObjectRequest getDefaultInstanceForType() {
                 return DEFAULT_INSTANCE;
               }
            +
             }
            +
            diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetObjectRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetObjectRequestOrBuilder.java
            similarity index 83%
            rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetObjectRequestOrBuilder.java
            rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetObjectRequestOrBuilder.java
            index 3c9d4e4b29..a59071291a 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,125 +1,84 @@
            -/*
            - * Copyright 2024 Google LLC
            - *
            - * Licensed under the Apache License, Version 2.0 (the "License");
            - * you may not use this file except in compliance with the License.
            - * You may obtain a copy of the License at
            - *
            - *     https://www.apache.org/licenses/LICENSE-2.0
            - *
            - * Unless required by applicable law or agreed to in writing, software
            - * distributed under the License is distributed on an "AS IS" BASIS,
            - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            - * See the License for the specific language governing permissions and
            - * limitations under the License.
            - */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
             // Protobuf Java Version: 3.25.3
             package com.google.storage.v2;
             
            -public interface GetObjectRequestOrBuilder
            -    extends
            +public interface GetObjectRequestOrBuilder extends
                 // @@protoc_insertion_point(interface_extends:google.storage.v2.GetObjectRequest)
                 com.google.protobuf.MessageOrBuilder {
             
               /**
            -   *
            -   *
                * 
                * Required. Name of the bucket in which the object resides.
                * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bucket. */ java.lang.String getBucket(); /** - * - * *
                * Required. Name of the bucket in which the object resides.
                * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for bucket. */ - com.google.protobuf.ByteString getBucketBytes(); + com.google.protobuf.ByteString + getBucketBytes(); /** - * - * *
                * Required. Name of the object.
                * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The object. */ java.lang.String getObject(); /** - * - * *
                * Required. Name of the object.
                * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for object. */ - com.google.protobuf.ByteString getObjectBytes(); + com.google.protobuf.ByteString + getObjectBytes(); /** - * - * *
                * If present, selects a specific revision of this object (as opposed to the
                * latest version, the default).
                * 
            * * int64 generation = 3; - * * @return The generation. */ long getGeneration(); /** - * - * *
                * If true, return the soft-deleted version of this object.
                * 
            * * optional bool soft_deleted = 11; - * * @return Whether the softDeleted field is set. */ boolean hasSoftDeleted(); /** - * - * *
                * If true, return the soft-deleted version of this object.
                * 
            * * optional bool soft_deleted = 11; - * * @return The softDeleted. */ boolean getSoftDeleted(); /** - * - * *
                * Makes the operation conditional on whether the object's current generation
                * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -127,13 +86,10 @@ public interface GetObjectRequestOrBuilder
                * 
            * * optional int64 if_generation_match = 4; - * * @return Whether the ifGenerationMatch field is set. */ boolean hasIfGenerationMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's current generation
                * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -141,14 +97,11 @@ public interface GetObjectRequestOrBuilder
                * 
            * * optional int64 if_generation_match = 4; - * * @return The ifGenerationMatch. */ long getIfGenerationMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's live generation
                * does not match the given value. If no live object exists, the precondition
            @@ -157,13 +110,10 @@ public interface GetObjectRequestOrBuilder
                * 
            * * optional int64 if_generation_not_match = 5; - * * @return Whether the ifGenerationNotMatch field is set. */ boolean hasIfGenerationNotMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's live generation
                * does not match the given value. If no live object exists, the precondition
            @@ -172,92 +122,71 @@ public interface GetObjectRequestOrBuilder
                * 
            * * optional int64 if_generation_not_match = 5; - * * @return The ifGenerationNotMatch. */ long getIfGenerationNotMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 6; - * * @return Whether the ifMetagenerationMatch field is set. */ boolean hasIfMetagenerationMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 6; - * * @return The ifMetagenerationMatch. */ long getIfMetagenerationMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 7; - * * @return Whether the ifMetagenerationNotMatch field is set. */ boolean hasIfMetagenerationNotMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 7; - * * @return The ifMetagenerationNotMatch. */ long getIfMetagenerationNotMatch(); /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return Whether the commonObjectRequestParams field is set. */ boolean hasCommonObjectRequestParams(); /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return The commonObjectRequestParams. */ com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams(); /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            @@ -267,8 +196,6 @@ public interface GetObjectRequestOrBuilder com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder(); /** - * - * *
                * Mask specifying which fields to read.
                * If no mask is specified, will default to all fields except metadata.acl and
            @@ -277,13 +204,10 @@ public interface GetObjectRequestOrBuilder
                * 
            * * optional .google.protobuf.FieldMask read_mask = 10; - * * @return Whether the readMask field is set. */ boolean hasReadMask(); /** - * - * *
                * Mask specifying which fields to read.
                * If no mask is specified, will default to all fields except metadata.acl and
            @@ -292,13 +216,10 @@ public interface GetObjectRequestOrBuilder
                * 
            * * optional .google.protobuf.FieldMask read_mask = 10; - * * @return The readMask. */ com.google.protobuf.FieldMask getReadMask(); /** - * - * *
                * Mask specifying which fields to read.
                * If no mask is specified, will default to all fields except metadata.acl and
            diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequest.java
            similarity index 63%
            rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequest.java
            rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequest.java
            index 103bc4a558..7f7ed3d0e8 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,18 +1,3 @@
            -/*
            - * Copyright 2024 Google LLC
            - *
            - * Licensed under the Apache License, Version 2.0 (the "License");
            - * you may not use this file except in compliance with the License.
            - * You may obtain a copy of the License at
            - *
            - *     https://www.apache.org/licenses/LICENSE-2.0
            - *
            - * Unless required by applicable law or agreed to in writing, software
            - * distributed under the License is distributed on an "AS IS" BASIS,
            - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            - * See the License for the specific language governing permissions and
            - * limitations under the License.
            - */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
            @@ -20,65 +5,55 @@
             package com.google.storage.v2;
             
             /**
            - *
            - *
              * 
              * Request message for GetServiceAccount.
              * 
            * * Protobuf type {@code google.storage.v2.GetServiceAccountRequest} */ -public final class GetServiceAccountRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetServiceAccountRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.GetServiceAccountRequest) GetServiceAccountRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetServiceAccountRequest.newBuilder() to construct. private GetServiceAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetServiceAccountRequest() { project_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetServiceAccountRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetServiceAccountRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetServiceAccountRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetServiceAccountRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetServiceAccountRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.GetServiceAccountRequest.class, - com.google.storage.v2.GetServiceAccountRequest.Builder.class); + com.google.storage.v2.GetServiceAccountRequest.class, com.google.storage.v2.GetServiceAccountRequest.Builder.class); } public static final int PROJECT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object project_ = ""; /** - * - * *
                * Required. Project ID, in the format of "projects/{projectIdentifier}".
                * {projectIdentifier} can be the project ID or project number.
                * 
            * - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The project. */ @java.lang.Override @@ -87,32 +62,30 @@ public java.lang.String getProject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; } } /** - * - * *
                * Required. Project ID, in the format of "projects/{projectIdentifier}".
                * {projectIdentifier} can be the project ID or project number.
                * 
            * - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); project_ = b; return b; } else { @@ -121,7 +94,6 @@ public com.google.protobuf.ByteString getProjectBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -133,7 +105,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); } @@ -157,15 +130,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.GetServiceAccountRequest)) { return super.equals(obj); } - com.google.storage.v2.GetServiceAccountRequest other = - (com.google.storage.v2.GetServiceAccountRequest) obj; + com.google.storage.v2.GetServiceAccountRequest other = (com.google.storage.v2.GetServiceAccountRequest) obj; - if (!getProject().equals(other.getProject())) return false; + if (!getProject() + .equals(other.getProject())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,136 +157,132 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.GetServiceAccountRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.GetServiceAccountRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.GetServiceAccountRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.GetServiceAccountRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.GetServiceAccountRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.GetServiceAccountRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.GetServiceAccountRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.GetServiceAccountRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.GetServiceAccountRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.GetServiceAccountRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.GetServiceAccountRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.GetServiceAccountRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.GetServiceAccountRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.GetServiceAccountRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.GetServiceAccountRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * Request message for GetServiceAccount.
                * 
            * * Protobuf type {@code google.storage.v2.GetServiceAccountRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.GetServiceAccountRequest) com.google.storage.v2.GetServiceAccountRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetServiceAccountRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetServiceAccountRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetServiceAccountRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetServiceAccountRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.GetServiceAccountRequest.class, - com.google.storage.v2.GetServiceAccountRequest.Builder.class); + com.google.storage.v2.GetServiceAccountRequest.class, com.google.storage.v2.GetServiceAccountRequest.Builder.class); } // Construct using com.google.storage.v2.GetServiceAccountRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -323,9 +292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_GetServiceAccountRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetServiceAccountRequest_descriptor; } @java.lang.Override @@ -344,11 +313,8 @@ public com.google.storage.v2.GetServiceAccountRequest build() { @java.lang.Override public com.google.storage.v2.GetServiceAccountRequest buildPartial() { - com.google.storage.v2.GetServiceAccountRequest result = - new com.google.storage.v2.GetServiceAccountRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.GetServiceAccountRequest result = new com.google.storage.v2.GetServiceAccountRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -364,39 +330,38 @@ private void buildPartial0(com.google.storage.v2.GetServiceAccountRequest result public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.GetServiceAccountRequest) { - return mergeFrom((com.google.storage.v2.GetServiceAccountRequest) other); + return mergeFrom((com.google.storage.v2.GetServiceAccountRequest)other); } else { super.mergeFrom(other); return this; @@ -436,19 +401,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - project_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -458,28 +421,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object project_ = ""; /** - * - * *
                  * Required. Project ID, in the format of "projects/{projectIdentifier}".
                  * {projectIdentifier} can be the project ID or project number.
                  * 
            * - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; @@ -488,24 +446,21 @@ public java.lang.String getProject() { } } /** - * - * *
                  * Required. Project ID, in the format of "projects/{projectIdentifier}".
                  * {projectIdentifier} can be the project ID or project number.
                  * 
            * - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); project_ = b; return b; } else { @@ -513,41 +468,30 @@ public com.google.protobuf.ByteString getProjectBytes() { } } /** - * - * *
                  * Required. Project ID, in the format of "projects/{projectIdentifier}".
                  * {projectIdentifier} can be the project ID or project number.
                  * 
            * - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProject( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } project_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * Required. Project ID, in the format of "projects/{projectIdentifier}".
                  * {projectIdentifier} can be the project ID or project number.
                  * 
            * - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearProject() { @@ -557,33 +501,27 @@ public Builder clearProject() { return this; } /** - * - * *
                  * Required. Project ID, in the format of "projects/{projectIdentifier}".
                  * {projectIdentifier} can be the project ID or project number.
                  * 
            * - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); project_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -593,12 +531,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.GetServiceAccountRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.GetServiceAccountRequest) private static final com.google.storage.v2.GetServiceAccountRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.GetServiceAccountRequest(); } @@ -607,27 +545,27 @@ public static com.google.storage.v2.GetServiceAccountRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetServiceAccountRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetServiceAccountRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -642,4 +580,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.GetServiceAccountRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequestOrBuilder.java new file mode 100644 index 0000000000..c31a6ee893 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequestOrBuilder.java @@ -0,0 +1,32 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/storage/v2/storage.proto + +// Protobuf Java Version: 3.25.3 +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 08557a21b6..c013c3b034 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,24 +5,21 @@ 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_ = ""; @@ -49,33 +31,29 @@ private HmacKeyMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new HmacKeyMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_HmacKeyMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_HmacKeyMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_HmacKeyMetadata_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_HmacKeyMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.HmacKeyMetadata.class, - com.google.storage.v2.HmacKeyMetadata.Builder.class); + com.google.storage.v2.HmacKeyMetadata.class, com.google.storage.v2.HmacKeyMetadata.Builder.class); } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** - * - * *
                * Immutable. Resource name ID of the key in the format
                * {projectIdentifier}/{accessId}.
            @@ -83,7 +61,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                * 
            * * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The id. */ @java.lang.Override @@ -92,15 +69,14 @@ public java.lang.String getId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** - * - * *
                * Immutable. Resource name ID of the key in the format
                * {projectIdentifier}/{accessId}.
            @@ -108,15 +84,16 @@ public java.lang.String getId() {
                * 
            * * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); id_ = b; return b; } else { @@ -125,18 +102,14 @@ public com.google.protobuf.ByteString getIdBytes() { } public static final int ACCESS_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object accessId_ = ""; /** - * - * *
                * Immutable. Globally unique id for keys.
                * 
            * * string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The accessId. */ @java.lang.Override @@ -145,29 +118,29 @@ public java.lang.String getAccessId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accessId_ = s; return s; } } /** - * - * *
                * Immutable. Globally unique id for keys.
                * 
            * * string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for accessId. */ @java.lang.Override - public com.google.protobuf.ByteString getAccessIdBytes() { + public com.google.protobuf.ByteString + getAccessIdBytes() { java.lang.Object ref = accessId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); accessId_ = b; return b; } else { @@ -176,22 +149,16 @@ public com.google.protobuf.ByteString getAccessIdBytes() { } public static final int PROJECT_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object project_ = ""; /** - * - * *
                * Immutable. Identifies the project that owns the service account of the
                * specified HMAC key, in the format "projects/{projectIdentifier}".
                * {projectIdentifier} can be the project ID or project number.
                * 
            * - * - * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The project. */ @java.lang.Override @@ -200,33 +167,31 @@ public java.lang.String getProject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; } } /** - * - * *
                * Immutable. Identifies the project that owns the service account of the
                * specified HMAC key, in the format "projects/{projectIdentifier}".
                * {projectIdentifier} can be the project ID or project number.
                * 
            * - * - * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); project_ = b; return b; } else { @@ -235,18 +200,14 @@ public com.google.protobuf.ByteString getProjectBytes() { } public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object serviceAccountEmail_ = ""; /** - * - * *
                * Output only. Email of the service account the key authenticates as.
                * 
            * * string service_account_email = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serviceAccountEmail. */ @java.lang.Override @@ -255,29 +216,29 @@ public java.lang.String getServiceAccountEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountEmail_ = s; return s; } } /** - * - * *
                * Output only. Email of the service account the key authenticates as.
                * 
            * * string service_account_email = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for serviceAccountEmail. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString + getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccountEmail_ = b; return b; } else { @@ -286,19 +247,15 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { } public static final int STATE_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object state_ = ""; /** - * - * *
                * State of the key. One of ACTIVE, INACTIVE, or DELETED.
                * Writable, can be updated by UpdateHmacKey operation.
                * 
            * * string state = 5; - * * @return The state. */ @java.lang.Override @@ -307,30 +264,30 @@ public java.lang.String getState() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); state_ = s; return s; } } /** - * - * *
                * State of the key. One of ACTIVE, INACTIVE, or DELETED.
                * Writable, can be updated by UpdateHmacKey operation.
                * 
            * * string state = 5; - * * @return The bytes for state. */ @java.lang.Override - public com.google.protobuf.ByteString getStateBytes() { + public com.google.protobuf.ByteString + getStateBytes() { java.lang.Object ref = state_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); state_ = b; return b; } else { @@ -341,15 +298,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 @@ -357,15 +310,11 @@ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * Output only. The creation time of the HMAC key.
                * 
            * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -373,14 +322,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
                * Output only. The creation time of the HMAC key.
                * 
            * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -390,15 +336,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 @@ -406,15 +348,11 @@ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                * Output only. The last modification time of the HMAC key metadata.
                * 
            * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -422,14 +360,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
                * Output only. The last modification time of the HMAC key metadata.
                * 
            * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -437,18 +372,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int ETAG_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
                * The etag of the HMAC key.
                * 
            * * string etag = 8; - * * @return The etag. */ @java.lang.Override @@ -457,29 +388,29 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
                * The etag of the HMAC key.
                * 
            * * string etag = 8; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -488,7 +419,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -500,7 +430,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } @@ -550,10 +481,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, state_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { - 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_); @@ -566,27 +499,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.HmacKeyMetadata)) { return super.equals(obj); } com.google.storage.v2.HmacKeyMetadata other = (com.google.storage.v2.HmacKeyMetadata) obj; - if (!getId().equals(other.getId())) return false; - if (!getAccessId().equals(other.getAccessId())) return false; - if (!getProject().equals(other.getProject())) return false; - if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; - if (!getState().equals(other.getState())) return false; + if (!getId() + .equals(other.getId())) return false; + if (!getAccessId() + .equals(other.getAccessId())) return false; + if (!getProject() + .equals(other.getProject())) return false; + if (!getServiceAccountEmail() + .equals(other.getServiceAccountEmail())) return false; + if (!getState() + .equals(other.getState())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (!getEtag().equals(other.getEtag())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -623,126 +564,120 @@ 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() @@ -750,18 +685,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) { getCreateTimeFieldBuilder(); getUpdateTimeFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -786,9 +721,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_HmacKeyMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_HmacKeyMetadata_descriptor; } @java.lang.Override @@ -807,11 +742,8 @@ public com.google.storage.v2.HmacKeyMetadata build() { @java.lang.Override public com.google.storage.v2.HmacKeyMetadata buildPartial() { - com.google.storage.v2.HmacKeyMetadata result = - new com.google.storage.v2.HmacKeyMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.HmacKeyMetadata result = new com.google.storage.v2.HmacKeyMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -835,11 +767,15 @@ private void buildPartial0(com.google.storage.v2.HmacKeyMetadata result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000020) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000080) != 0)) { @@ -852,39 +788,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; @@ -955,61 +890,56 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - id_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - accessId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - project_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - serviceAccountEmail_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - state_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + accessId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + serviceAccountEmail_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + state_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1019,13 +949,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object id_ = ""; /** - * - * *
                  * Immutable. Resource name ID of the key in the format
                  * {projectIdentifier}/{accessId}.
            @@ -1033,13 +960,13 @@ public Builder mergeFrom(
                  * 
            * * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; @@ -1048,8 +975,6 @@ public java.lang.String getId() { } } /** - * - * *
                  * Immutable. Resource name ID of the key in the format
                  * {projectIdentifier}/{accessId}.
            @@ -1057,14 +982,15 @@ public java.lang.String getId() {
                  * 
            * * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for id. */ - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); id_ = b; return b; } else { @@ -1072,8 +998,6 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
                  * Immutable. Resource name ID of the key in the format
                  * {projectIdentifier}/{accessId}.
            @@ -1081,22 +1005,18 @@ public com.google.protobuf.ByteString getIdBytes() {
                  * 
            * * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * Immutable. Resource name ID of the key in the format
                  * {projectIdentifier}/{accessId}.
            @@ -1104,7 +1024,6 @@ public Builder setId(java.lang.String value) {
                  * 
            * * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearId() { @@ -1114,8 +1033,6 @@ public Builder clearId() { return this; } /** - * - * *
                  * Immutable. Resource name ID of the key in the format
                  * {projectIdentifier}/{accessId}.
            @@ -1123,14 +1040,12 @@ public Builder clearId() {
                  * 
            * * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00000001; @@ -1140,20 +1055,18 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object accessId_ = ""; /** - * - * *
                  * Immutable. Globally unique id for keys.
                  * 
            * * string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The accessId. */ public java.lang.String getAccessId() { java.lang.Object ref = accessId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accessId_ = s; return s; @@ -1162,21 +1075,20 @@ public java.lang.String getAccessId() { } } /** - * - * *
                  * Immutable. Globally unique id for keys.
                  * 
            * * string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for accessId. */ - public com.google.protobuf.ByteString getAccessIdBytes() { + public com.google.protobuf.ByteString + getAccessIdBytes() { java.lang.Object ref = accessId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); accessId_ = b; return b; } else { @@ -1184,35 +1096,28 @@ public com.google.protobuf.ByteString getAccessIdBytes() { } } /** - * - * *
                  * Immutable. Globally unique id for keys.
                  * 
            * * string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The accessId to set. * @return This builder for chaining. */ - public Builder setAccessId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAccessId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } accessId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                  * Immutable. Globally unique id for keys.
                  * 
            * * string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearAccessId() { @@ -1222,21 +1127,17 @@ public Builder clearAccessId() { return this; } /** - * - * *
                  * Immutable. Globally unique id for keys.
                  * 
            * * string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for accessId to set. * @return This builder for chaining. */ - public Builder setAccessIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAccessIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); accessId_ = value; bitField0_ |= 0x00000002; @@ -1246,24 +1147,20 @@ public Builder setAccessIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object project_ = ""; /** - * - * *
                  * Immutable. Identifies the project that owns the service account of the
                  * specified HMAC key, in the format "projects/{projectIdentifier}".
                  * {projectIdentifier} can be the project ID or project number.
                  * 
            * - * - * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; @@ -1272,25 +1169,22 @@ public java.lang.String getProject() { } } /** - * - * *
                  * Immutable. Identifies the project that owns the service account of the
                  * specified HMAC key, in the format "projects/{projectIdentifier}".
                  * {projectIdentifier} can be the project ID or project number.
                  * 
            * - * - * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); project_ = b; return b; } else { @@ -1298,43 +1192,32 @@ public com.google.protobuf.ByteString getProjectBytes() { } } /** - * - * *
                  * Immutable. Identifies the project that owns the service account of the
                  * specified HMAC key, in the format "projects/{projectIdentifier}".
                  * {projectIdentifier} can be the project ID or project number.
                  * 
            * - * - * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProject( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } project_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
                  * Immutable. Identifies the project that owns the service account of the
                  * specified HMAC key, in the format "projects/{projectIdentifier}".
                  * {projectIdentifier} can be the project ID or project number.
                  * 
            * - * - * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearProject() { @@ -1344,25 +1227,19 @@ public Builder clearProject() { return this; } /** - * - * *
                  * Immutable. Identifies the project that owns the service account of the
                  * specified HMAC key, in the format "projects/{projectIdentifier}".
                  * {projectIdentifier} can be the project ID or project number.
                  * 
            * - * - * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); project_ = value; bitField0_ |= 0x00000004; @@ -1372,20 +1249,18 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { private java.lang.Object serviceAccountEmail_ = ""; /** - * - * *
                  * Output only. Email of the service account the key authenticates as.
                  * 
            * * string service_account_email = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serviceAccountEmail. */ public java.lang.String getServiceAccountEmail() { java.lang.Object ref = serviceAccountEmail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountEmail_ = s; return s; @@ -1394,21 +1269,20 @@ public java.lang.String getServiceAccountEmail() { } } /** - * - * *
                  * Output only. Email of the service account the key authenticates as.
                  * 
            * * string service_account_email = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for serviceAccountEmail. */ - public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString + getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccountEmail_ = b; return b; } else { @@ -1416,35 +1290,28 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { } } /** - * - * *
                  * Output only. Email of the service account the key authenticates as.
                  * 
            * * string service_account_email = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmail(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAccountEmail( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } serviceAccountEmail_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
                  * Output only. Email of the service account the key authenticates as.
                  * 
            * * string service_account_email = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearServiceAccountEmail() { @@ -1454,21 +1321,17 @@ public Builder clearServiceAccountEmail() { return this; } /** - * - * *
                  * Output only. Email of the service account the key authenticates as.
                  * 
            * * string service_account_email = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAccountEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceAccountEmail_ = value; bitField0_ |= 0x00000008; @@ -1478,21 +1341,19 @@ public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) private java.lang.Object state_ = ""; /** - * - * *
                  * State of the key. One of ACTIVE, INACTIVE, or DELETED.
                  * Writable, can be updated by UpdateHmacKey operation.
                  * 
            * * string state = 5; - * * @return The state. */ public java.lang.String getState() { java.lang.Object ref = state_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); state_ = s; return s; @@ -1501,22 +1362,21 @@ public java.lang.String getState() { } } /** - * - * *
                  * State of the key. One of ACTIVE, INACTIVE, or DELETED.
                  * Writable, can be updated by UpdateHmacKey operation.
                  * 
            * * string state = 5; - * * @return The bytes for state. */ - public com.google.protobuf.ByteString getStateBytes() { + public com.google.protobuf.ByteString + getStateBytes() { java.lang.Object ref = state_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); state_ = b; return b; } else { @@ -1524,37 +1384,30 @@ public com.google.protobuf.ByteString getStateBytes() { } } /** - * - * *
                  * State of the key. One of ACTIVE, INACTIVE, or DELETED.
                  * Writable, can be updated by UpdateHmacKey operation.
                  * 
            * * string state = 5; - * * @param value The state to set. * @return This builder for chaining. */ - public Builder setState(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setState( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } state_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
                  * State of the key. One of ACTIVE, INACTIVE, or DELETED.
                  * Writable, can be updated by UpdateHmacKey operation.
                  * 
            * * string state = 5; - * * @return This builder for chaining. */ public Builder clearState() { @@ -1564,22 +1417,18 @@ public Builder clearState() { return this; } /** - * - * *
                  * State of the key. One of ACTIVE, INACTIVE, or DELETED.
                  * Writable, can be updated by UpdateHmacKey operation.
                  * 
            * * string state = 5; - * * @param value The bytes for state to set. * @return This builder for chaining. */ - public Builder setStateBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStateBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); state_ = value; bitField0_ |= 0x00000010; @@ -1589,58 +1438,39 @@ public Builder setStateBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
                  * Output only. The creation time of the HMAC key.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
                  * Output only. The creation time of the HMAC key.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
                  * Output only. The creation time of the HMAC key.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1656,17 +1486,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                  * Output only. The creation time of the HMAC key.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1677,21 +1504,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
                  * Output only. The creation time of the HMAC key.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1706,15 +1529,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); @@ -1727,15 +1546,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
                  * Output only. The creation time of the HMAC key.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000020; @@ -1743,48 +1558,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
                  * Output only. The creation time of the HMAC key.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
                  * Output only. The creation time of the HMAC key.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1792,58 +1595,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
                  * Output only. The last modification time of the HMAC key metadata.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
                  * Output only. The last modification time of the HMAC key metadata.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
                  * Output only. The last modification time of the HMAC key metadata.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1859,17 +1643,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                  * Output only. The last modification time of the HMAC key metadata.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1880,21 +1661,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
                  * Output only. The last modification time of the HMAC key metadata.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1909,15 +1686,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); @@ -1930,15 +1703,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
                  * Output only. The last modification time of the HMAC key metadata.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000040; @@ -1946,48 +1715,36 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
                  * Output only. The last modification time of the HMAC key metadata.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
                  * Output only. The last modification time of the HMAC key metadata.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -1995,20 +1752,18 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object etag_ = ""; /** - * - * *
                  * The etag of the HMAC key.
                  * 
            * * string etag = 8; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -2017,21 +1772,20 @@ public java.lang.String getEtag() { } } /** - * - * *
                  * The etag of the HMAC key.
                  * 
            * * string etag = 8; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -2039,35 +1793,28 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
                  * The etag of the HMAC key.
                  * 
            * * string etag = 8; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * *
                  * The etag of the HMAC key.
                  * 
            * * string etag = 8; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -2077,30 +1824,26 @@ public Builder clearEtag() { return this; } /** - * - * *
                  * The etag of the HMAC key.
                  * 
            * * string etag = 8; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2110,12 +1853,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.HmacKeyMetadata) } // @@protoc_insertion_point(class_scope:google.storage.v2.HmacKeyMetadata) private static final com.google.storage.v2.HmacKeyMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.HmacKeyMetadata(); } @@ -2124,27 +1867,27 @@ public static com.google.storage.v2.HmacKeyMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HmacKeyMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HmacKeyMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2159,4 +1902,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.HmacKeyMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadataOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadataOrBuilder.java similarity index 72% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadataOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/HmacKeyMetadataOrBuilder.java index 10537fa671..5423e56dd2 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,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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}.
            @@ -34,13 +16,10 @@ public interface HmacKeyMetadataOrBuilder
                * 
            * * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The id. */ java.lang.String getId(); /** - * - * *
                * Immutable. Resource name ID of the key in the format
                * {projectIdentifier}/{accessId}.
            @@ -48,219 +27,168 @@ public interface HmacKeyMetadataOrBuilder
                * 
            * * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
                * Immutable. Globally unique id for keys.
                * 
            * * string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The accessId. */ java.lang.String getAccessId(); /** - * - * *
                * Immutable. Globally unique id for keys.
                * 
            * * string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for accessId. */ - com.google.protobuf.ByteString getAccessIdBytes(); + com.google.protobuf.ByteString + getAccessIdBytes(); /** - * - * *
                * Immutable. Identifies the project that owns the service account of the
                * specified HMAC key, in the format "projects/{projectIdentifier}".
                * {projectIdentifier} can be the project ID or project number.
                * 
            * - * - * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The project. */ java.lang.String getProject(); /** - * - * *
                * Immutable. Identifies the project that owns the service account of the
                * specified HMAC key, in the format "projects/{projectIdentifier}".
                * {projectIdentifier} can be the project ID or project number.
                * 
            * - * - * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ - com.google.protobuf.ByteString getProjectBytes(); + com.google.protobuf.ByteString + getProjectBytes(); /** - * - * *
                * Output only. Email of the service account the key authenticates as.
                * 
            * * string service_account_email = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serviceAccountEmail. */ java.lang.String getServiceAccountEmail(); /** - * - * *
                * Output only. Email of the service account the key authenticates as.
                * 
            * * string service_account_email = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for serviceAccountEmail. */ - com.google.protobuf.ByteString getServiceAccountEmailBytes(); + com.google.protobuf.ByteString + getServiceAccountEmailBytes(); /** - * - * *
                * State of the key. One of ACTIVE, INACTIVE, or DELETED.
                * Writable, can be updated by UpdateHmacKey operation.
                * 
            * * string state = 5; - * * @return The state. */ java.lang.String getState(); /** - * - * *
                * State of the key. One of ACTIVE, INACTIVE, or DELETED.
                * Writable, can be updated by UpdateHmacKey operation.
                * 
            * * string state = 5; - * * @return The bytes for state. */ - com.google.protobuf.ByteString getStateBytes(); + com.google.protobuf.ByteString + getStateBytes(); /** - * - * *
                * Output only. The creation time of the HMAC key.
                * 
            * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
                * Output only. The creation time of the HMAC key.
                * 
            * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
                * Output only. The creation time of the HMAC key.
                * 
            * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
                * Output only. The last modification time of the HMAC key metadata.
                * 
            * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
                * Output only. The last modification time of the HMAC key metadata.
                * 
            * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
                * Output only. The last modification time of the HMAC key metadata.
                * 
            * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
                * The etag of the HMAC key.
                * 
            * * string etag = 8; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
                * The etag of the HMAC key.
                * 
            * * string etag = 8; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsRequest.java similarity index 71% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsRequest.java index 3f0459ea2d..aff73c09ae 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,24 +5,21 @@ 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_ = ""; @@ -46,41 +28,34 @@ private ListBucketsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListBucketsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListBucketsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListBucketsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListBucketsRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListBucketsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListBucketsRequest.class, - com.google.storage.v2.ListBucketsRequest.Builder.class); + com.google.storage.v2.ListBucketsRequest.class, com.google.storage.v2.ListBucketsRequest.Builder.class); } private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
                * Required. The project whose buckets we are listing.
                * 
            * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -89,31 +64,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
                * Required. The project whose buckets we are listing.
                * 
            * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -124,8 +97,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
                * Maximum number of buckets to return in a single response. The service will
                * use this parameter or 1,000 items, whichever is smaller. If "acl" is
            @@ -134,7 +105,6 @@ public com.google.protobuf.ByteString getParentBytes() {
                * 
            * * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -143,19 +113,15 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
                * A previously-returned page token representing part of the larger set of
                * results to view.
                * 
            * * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -164,30 +130,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
                * A previously-returned page token representing part of the larger set of
                * results to view.
                * 
            * * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -196,18 +162,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int PREFIX_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object prefix_ = ""; /** - * - * *
                * Filter results to buckets whose names begin with this prefix.
                * 
            * * string prefix = 4; - * * @return The prefix. */ @java.lang.Override @@ -216,29 +178,29 @@ public java.lang.String getPrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); prefix_ = s; return s; } } /** - * - * *
                * Filter results to buckets whose names begin with this prefix.
                * 
            * * string prefix = 4; - * * @return The bytes for prefix. */ @java.lang.Override - public com.google.protobuf.ByteString getPrefixBytes() { + public com.google.protobuf.ByteString + getPrefixBytes() { java.lang.Object ref = prefix_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); prefix_ = b; return b; } else { @@ -249,8 +211,6 @@ public com.google.protobuf.ByteString getPrefixBytes() { public static final int READ_MASK_FIELD_NUMBER = 5; private com.google.protobuf.FieldMask readMask_; /** - * - * *
                * Mask specifying which fields to read from each result.
                * If no mask is specified, will default to all fields except items.owner,
            @@ -259,7 +219,6 @@ public com.google.protobuf.ByteString getPrefixBytes() {
                * 
            * * optional .google.protobuf.FieldMask read_mask = 5; - * * @return Whether the readMask field is set. */ @java.lang.Override @@ -267,8 +226,6 @@ public boolean hasReadMask() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * Mask specifying which fields to read from each result.
                * If no mask is specified, will default to all fields except items.owner,
            @@ -277,7 +234,6 @@ public boolean hasReadMask() {
                * 
            * * optional .google.protobuf.FieldMask read_mask = 5; - * * @return The readMask. */ @java.lang.Override @@ -285,8 +241,6 @@ public com.google.protobuf.FieldMask getReadMask() { return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } /** - * - * *
                * Mask specifying which fields to read from each result.
                * If no mask is specified, will default to all fields except items.owner,
            @@ -302,7 +256,6 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
               }
             
               private byte memoizedIsInitialized = -1;
            -
               @java.lang.Override
               public final boolean isInitialized() {
                 byte isInitialized = memoizedIsInitialized;
            @@ -314,7 +267,8 @@ public final boolean isInitialized() {
               }
             
               @java.lang.Override
            -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
            +  public void writeTo(com.google.protobuf.CodedOutputStream output)
            +                      throws java.io.IOException {
                 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
                   com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
                 }
            @@ -343,7 +297,8 @@ public int getSerializedSize() {
                   size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
                 }
                 if (pageSize_ != 0) {
            -      size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_);
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeInt32Size(2, pageSize_);
                 }
                 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
                   size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
            @@ -352,7 +307,8 @@ public int getSerializedSize() {
                   size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, prefix_);
                 }
                 if (((bitField0_ & 0x00000001) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getReadMask());
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeMessageSize(5, getReadMask());
                 }
                 size += getUnknownFields().getSerializedSize();
                 memoizedSize = size;
            @@ -362,20 +318,25 @@ public int getSerializedSize() {
               @java.lang.Override
               public boolean equals(final java.lang.Object obj) {
                 if (obj == this) {
            -      return true;
            +     return true;
                 }
                 if (!(obj instanceof com.google.storage.v2.ListBucketsRequest)) {
                   return super.equals(obj);
                 }
                 com.google.storage.v2.ListBucketsRequest other = (com.google.storage.v2.ListBucketsRequest) obj;
             
            -    if (!getParent().equals(other.getParent())) return false;
            -    if (getPageSize() != other.getPageSize()) return false;
            -    if (!getPageToken().equals(other.getPageToken())) return false;
            -    if (!getPrefix().equals(other.getPrefix())) return false;
            +    if (!getParent()
            +        .equals(other.getParent())) return false;
            +    if (getPageSize()
            +        != other.getPageSize()) return false;
            +    if (!getPageToken()
            +        .equals(other.getPageToken())) return false;
            +    if (!getPrefix()
            +        .equals(other.getPrefix())) return false;
                 if (hasReadMask() != other.hasReadMask()) return false;
                 if (hasReadMask()) {
            -      if (!getReadMask().equals(other.getReadMask())) return false;
            +      if (!getReadMask()
            +          .equals(other.getReadMask())) return false;
                 }
                 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
                 return true;
            @@ -405,127 +366,120 @@ public int hashCode() {
                 return hash;
               }
             
            -  public static com.google.storage.v2.ListBucketsRequest parseFrom(java.nio.ByteBuffer data)
            +  public static com.google.storage.v2.ListBucketsRequest parseFrom(
            +      java.nio.ByteBuffer data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
            -
               public static com.google.storage.v2.ListBucketsRequest parseFrom(
            -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      java.nio.ByteBuffer data,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
            -
               public static com.google.storage.v2.ListBucketsRequest parseFrom(
                   com.google.protobuf.ByteString data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
            -
               public static com.google.storage.v2.ListBucketsRequest parseFrom(
                   com.google.protobuf.ByteString data,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
            -
               public static com.google.storage.v2.ListBucketsRequest parseFrom(byte[] data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
            -
               public static com.google.storage.v2.ListBucketsRequest parseFrom(
            -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      byte[] data,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
            -
               public static com.google.storage.v2.ListBucketsRequest parseFrom(java.io.InputStream input)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input);
               }
            -
               public static com.google.storage.v2.ListBucketsRequest parseFrom(
            -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      java.io.InputStream input,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            -        PARSER, input, extensionRegistry);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input, extensionRegistry);
               }
             
            -  public static com.google.storage.v2.ListBucketsRequest parseDelimitedFrom(
            -      java.io.InputStream input) throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
            +  public static com.google.storage.v2.ListBucketsRequest parseDelimitedFrom(java.io.InputStream input)
            +      throws java.io.IOException {
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseDelimitedWithIOException(PARSER, input);
               }
             
               public static com.google.storage.v2.ListBucketsRequest parseDelimitedFrom(
            -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      java.io.InputStream input,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            -        PARSER, input, extensionRegistry);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
               }
            -
               public static com.google.storage.v2.ListBucketsRequest parseFrom(
            -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
            +      com.google.protobuf.CodedInputStream input)
            +      throws java.io.IOException {
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input);
               }
            -
               public static com.google.storage.v2.ListBucketsRequest parseFrom(
                   com.google.protobuf.CodedInputStream input,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            -        PARSER, input, extensionRegistry);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input, extensionRegistry);
               }
             
               @java.lang.Override
            -  public Builder newBuilderForType() {
            -    return newBuilder();
            -  }
            -
            +  public Builder newBuilderForType() { return newBuilder(); }
               public static Builder newBuilder() {
                 return DEFAULT_INSTANCE.toBuilder();
               }
            -
               public static Builder newBuilder(com.google.storage.v2.ListBucketsRequest prototype) {
                 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
               }
            -
               @java.lang.Override
               public Builder toBuilder() {
            -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
            +    return this == DEFAULT_INSTANCE
            +        ? new Builder() : new Builder().mergeFrom(this);
               }
             
               @java.lang.Override
            -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            +  protected Builder newBuilderForType(
            +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 Builder builder = new Builder(parent);
                 return builder;
               }
               /**
            -   *
            -   *
                * 
                * Request message for ListBuckets.
                * 
            * * Protobuf type {@code google.storage.v2.ListBucketsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.ListBucketsRequest) com.google.storage.v2.ListBucketsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListBucketsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListBucketsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListBucketsRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListBucketsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListBucketsRequest.class, - com.google.storage.v2.ListBucketsRequest.Builder.class); + com.google.storage.v2.ListBucketsRequest.class, com.google.storage.v2.ListBucketsRequest.Builder.class); } // Construct using com.google.storage.v2.ListBucketsRequest.newBuilder() @@ -533,17 +487,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getReadMaskFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -561,9 +515,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListBucketsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListBucketsRequest_descriptor; } @java.lang.Override @@ -582,11 +536,8 @@ public com.google.storage.v2.ListBucketsRequest build() { @java.lang.Override public com.google.storage.v2.ListBucketsRequest buildPartial() { - com.google.storage.v2.ListBucketsRequest result = - new com.google.storage.v2.ListBucketsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.ListBucketsRequest result = new com.google.storage.v2.ListBucketsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -607,7 +558,9 @@ private void buildPartial0(com.google.storage.v2.ListBucketsRequest result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { - result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + result.readMask_ = readMaskBuilder_ == null + ? readMask_ + : readMaskBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -617,39 +570,38 @@ private void buildPartial0(com.google.storage.v2.ListBucketsRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.ListBucketsRequest) { - return mergeFrom((com.google.storage.v2.ListBucketsRequest) other); + return mergeFrom((com.google.storage.v2.ListBucketsRequest)other); } else { super.mergeFrom(other); return this; @@ -705,43 +657,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - prefix_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + prefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getReadMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -751,27 +699,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
                  * Required. The project whose buckets we are listing.
                  * 
            * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -780,23 +723,20 @@ public java.lang.String getParent() { } } /** - * - * *
                  * Required. The project whose buckets we are listing.
                  * 
            * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -804,39 +744,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
                  * Required. The project whose buckets we are listing.
                  * 
            * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * Required. The project whose buckets we are listing.
                  * 
            * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -846,23 +775,17 @@ public Builder clearParent() { return this; } /** - * - * *
                  * Required. The project whose buckets we are listing.
                  * 
            * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -870,10 +793,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
                  * Maximum number of buckets to return in a single response. The service will
                  * use this parameter or 1,000 items, whichever is smaller. If "acl" is
            @@ -882,7 +803,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
                  * 
            * * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -890,8 +810,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
                  * Maximum number of buckets to return in a single response. The service will
                  * use this parameter or 1,000 items, whichever is smaller. If "acl" is
            @@ -900,7 +818,6 @@ public int getPageSize() {
                  * 
            * * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -912,8 +829,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
                  * Maximum number of buckets to return in a single response. The service will
                  * use this parameter or 1,000 items, whichever is smaller. If "acl" is
            @@ -922,7 +837,6 @@ public Builder setPageSize(int value) {
                  * 
            * * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -934,21 +848,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
                  * A previously-returned page token representing part of the larger set of
                  * results to view.
                  * 
            * * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -957,22 +869,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
                  * A previously-returned page token representing part of the larger set of
                  * results to view.
                  * 
            * * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -980,37 +891,30 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
                  * A previously-returned page token representing part of the larger set of
                  * results to view.
                  * 
            * * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
                  * A previously-returned page token representing part of the larger set of
                  * results to view.
                  * 
            * * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1020,22 +924,18 @@ public Builder clearPageToken() { return this; } /** - * - * *
                  * A previously-returned page token representing part of the larger set of
                  * results to view.
                  * 
            * * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1045,20 +945,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object prefix_ = ""; /** - * - * *
                  * Filter results to buckets whose names begin with this prefix.
                  * 
            * * string prefix = 4; - * * @return The prefix. */ public java.lang.String getPrefix() { java.lang.Object ref = prefix_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); prefix_ = s; return s; @@ -1067,21 +965,20 @@ public java.lang.String getPrefix() { } } /** - * - * *
                  * Filter results to buckets whose names begin with this prefix.
                  * 
            * * string prefix = 4; - * * @return The bytes for prefix. */ - public com.google.protobuf.ByteString getPrefixBytes() { + public com.google.protobuf.ByteString + getPrefixBytes() { java.lang.Object ref = prefix_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); prefix_ = b; return b; } else { @@ -1089,35 +986,28 @@ public com.google.protobuf.ByteString getPrefixBytes() { } } /** - * - * *
                  * Filter results to buckets whose names begin with this prefix.
                  * 
            * * string prefix = 4; - * * @param value The prefix to set. * @return This builder for chaining. */ - public Builder setPrefix(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPrefix( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } prefix_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
                  * Filter results to buckets whose names begin with this prefix.
                  * 
            * * string prefix = 4; - * * @return This builder for chaining. */ public Builder clearPrefix() { @@ -1127,21 +1017,17 @@ public Builder clearPrefix() { return this; } /** - * - * *
                  * Filter results to buckets whose names begin with this prefix.
                  * 
            * * string prefix = 4; - * * @param value The bytes for prefix to set. * @return This builder for chaining. */ - public Builder setPrefixBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPrefixBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); prefix_ = value; bitField0_ |= 0x00000008; @@ -1151,13 +1037,8 @@ public Builder setPrefixBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.FieldMask readMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - readMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> readMaskBuilder_; /** - * - * *
                  * Mask specifying which fields to read from each result.
                  * If no mask is specified, will default to all fields except items.owner,
            @@ -1166,15 +1047,12 @@ public Builder setPrefixBytes(com.google.protobuf.ByteString value) {
                  * 
            * * optional .google.protobuf.FieldMask read_mask = 5; - * * @return Whether the readMask field is set. */ public boolean hasReadMask() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
                  * Mask specifying which fields to read from each result.
                  * If no mask is specified, will default to all fields except items.owner,
            @@ -1183,7 +1061,6 @@ public boolean hasReadMask() {
                  * 
            * * optional .google.protobuf.FieldMask read_mask = 5; - * * @return The readMask. */ public com.google.protobuf.FieldMask getReadMask() { @@ -1194,8 +1071,6 @@ public com.google.protobuf.FieldMask getReadMask() { } } /** - * - * *
                  * Mask specifying which fields to read from each result.
                  * If no mask is specified, will default to all fields except items.owner,
            @@ -1219,8 +1094,6 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Mask specifying which fields to read from each result.
                  * If no mask is specified, will default to all fields except items.owner,
            @@ -1230,7 +1103,8 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) {
                  *
                  * optional .google.protobuf.FieldMask read_mask = 5;
                  */
            -    public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) {
            +    public Builder setReadMask(
            +        com.google.protobuf.FieldMask.Builder builderForValue) {
                   if (readMaskBuilder_ == null) {
                     readMask_ = builderForValue.build();
                   } else {
            @@ -1241,8 +1115,6 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Mask specifying which fields to read from each result.
                  * If no mask is specified, will default to all fields except items.owner,
            @@ -1254,9 +1126,9 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue
                  */
                 public Builder mergeReadMask(com.google.protobuf.FieldMask value) {
                   if (readMaskBuilder_ == null) {
            -        if (((bitField0_ & 0x00000010) != 0)
            -            && readMask_ != null
            -            && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
            +        if (((bitField0_ & 0x00000010) != 0) &&
            +          readMask_ != null &&
            +          readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
                       getReadMaskBuilder().mergeFrom(value);
                     } else {
                       readMask_ = value;
            @@ -1271,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,
            @@ -1293,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,
            @@ -1310,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,
            @@ -1325,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,
            @@ -1341,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);
                 }
             
            @@ -1368,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();
               }
            @@ -1382,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;
            @@ -1417,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 57c83288a6..290e1ecff3 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,61 +1,34 @@
            -/*
            - * Copyright 2024 Google LLC
            - *
            - * Licensed under the Apache License, Version 2.0 (the "License");
            - * you may not use this file except in compliance with the License.
            - * You may obtain a copy of the License at
            - *
            - *     https://www.apache.org/licenses/LICENSE-2.0
            - *
            - * Unless required by applicable law or agreed to in writing, software
            - * distributed under the License is distributed on an "AS IS" BASIS,
            - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            - * See the License for the specific language governing permissions and
            - * limitations under the License.
            - */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
             // Protobuf Java Version: 3.25.3
             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
            @@ -64,66 +37,53 @@ public interface ListBucketsRequestOrBuilder
                * 
            * * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
                * A previously-returned page token representing part of the larger set of
                * results to view.
                * 
            * * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
                * A previously-returned page token representing part of the larger set of
                * results to view.
                * 
            * * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
                * Filter results to buckets whose names begin with this prefix.
                * 
            * * string prefix = 4; - * * @return The prefix. */ java.lang.String getPrefix(); /** - * - * *
                * Filter results to buckets whose names begin with this prefix.
                * 
            * * string prefix = 4; - * * @return The bytes for prefix. */ - com.google.protobuf.ByteString getPrefixBytes(); + com.google.protobuf.ByteString + getPrefixBytes(); /** - * - * *
                * Mask specifying which fields to read from each result.
                * If no mask is specified, will default to all fields except items.owner,
            @@ -132,13 +92,10 @@ public interface ListBucketsRequestOrBuilder
                * 
            * * optional .google.protobuf.FieldMask read_mask = 5; - * * @return Whether the readMask field is set. */ boolean hasReadMask(); /** - * - * *
                * Mask specifying which fields to read from each result.
                * If no mask is specified, will default to all fields except items.owner,
            @@ -147,13 +104,10 @@ public interface ListBucketsRequestOrBuilder
                * 
            * * optional .google.protobuf.FieldMask read_mask = 5; - * * @return The readMask. */ com.google.protobuf.FieldMask getReadMask(); /** - * - * *
                * Mask specifying which fields to read from each result.
                * If no mask is specified, will default to all fields except items.owner,
            diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponse.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponse.java
            similarity index 71%
            rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponse.java
            rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponse.java
            index 9f3b2e621e..ae70de0fa0 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,18 +1,3 @@
            -/*
            - * Copyright 2024 Google LLC
            - *
            - * Licensed under the Apache License, Version 2.0 (the "License");
            - * you may not use this file except in compliance with the License.
            - * You may obtain a copy of the License at
            - *
            - *     https://www.apache.org/licenses/LICENSE-2.0
            - *
            - * Unless required by applicable law or agreed to in writing, software
            - * distributed under the License is distributed on an "AS IS" BASIS,
            - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            - * See the License for the specific language governing permissions and
            - * limitations under the License.
            - */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
            @@ -20,24 +5,21 @@
             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_ = ""; @@ -45,32 +27,28 @@ private ListBucketsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListBucketsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListBucketsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListBucketsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListBucketsResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListBucketsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListBucketsResponse.class, - com.google.storage.v2.ListBucketsResponse.Builder.class); + com.google.storage.v2.ListBucketsResponse.class, com.google.storage.v2.ListBucketsResponse.Builder.class); } public static final int BUCKETS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List buckets_; /** - * - * *
                * The list of items.
                * 
            @@ -82,8 +60,6 @@ public java.util.List getBucketsList() { return buckets_; } /** - * - * *
                * The list of items.
                * 
            @@ -91,12 +67,11 @@ public java.util.List getBucketsList() { * repeated .google.storage.v2.Bucket buckets = 1; */ @java.lang.Override - public java.util.List getBucketsOrBuilderList() { + public java.util.List + getBucketsOrBuilderList() { return buckets_; } /** - * - * *
                * The list of items.
                * 
            @@ -108,8 +83,6 @@ public int getBucketsCount() { return buckets_.size(); } /** - * - * *
                * The list of items.
                * 
            @@ -121,8 +94,6 @@ public com.google.storage.v2.Bucket getBuckets(int index) { return buckets_.get(index); } /** - * - * *
                * The list of items.
                * 
            @@ -130,24 +101,21 @@ public com.google.storage.v2.Bucket getBuckets(int index) { * repeated .google.storage.v2.Bucket buckets = 1; */ @java.lang.Override - public com.google.storage.v2.BucketOrBuilder getBucketsOrBuilder(int index) { + public com.google.storage.v2.BucketOrBuilder getBucketsOrBuilder( + int index) { return buckets_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
                * The continuation token, used to page through large result sets. Provide
                * this value in a subsequent request to return the next page of results.
                * 
            * * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -156,30 +124,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
                * The continuation token, used to page through large result sets. Provide
                * this value in a subsequent request to return the next page of results.
                * 
            * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -188,7 +156,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,7 +167,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < buckets_.size(); i++) { output.writeMessage(1, buckets_.get(i)); } @@ -217,7 +185,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < buckets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, buckets_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, buckets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -230,16 +199,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.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; } @@ -262,136 +232,132 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.ListBucketsResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.ListBucketsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListBucketsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.ListBucketsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListBucketsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.ListBucketsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListBucketsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.ListBucketsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.ListBucketsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.ListBucketsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.ListBucketsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.ListBucketsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.ListBucketsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.ListBucketsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.ListBucketsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * The result of a call to Buckets.ListBuckets
                * 
            * * Protobuf type {@code google.storage.v2.ListBucketsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.ListBucketsResponse) com.google.storage.v2.ListBucketsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListBucketsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListBucketsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListBucketsResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListBucketsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListBucketsResponse.class, - com.google.storage.v2.ListBucketsResponse.Builder.class); + com.google.storage.v2.ListBucketsResponse.class, com.google.storage.v2.ListBucketsResponse.Builder.class); } // Construct using com.google.storage.v2.ListBucketsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -408,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_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 @@ -429,12 +395,9 @@ public com.google.storage.v2.ListBucketsResponse build() { @java.lang.Override public com.google.storage.v2.ListBucketsResponse buildPartial() { - com.google.storage.v2.ListBucketsResponse result = - new com.google.storage.v2.ListBucketsResponse(this); + com.google.storage.v2.ListBucketsResponse result = new com.google.storage.v2.ListBucketsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -462,39 +425,38 @@ private void buildPartial0(com.google.storage.v2.ListBucketsResponse result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.ListBucketsResponse) { - return mergeFrom((com.google.storage.v2.ListBucketsResponse) other); + return mergeFrom((com.google.storage.v2.ListBucketsResponse)other); } else { super.mergeFrom(other); return this; @@ -521,10 +483,9 @@ public Builder mergeFrom(com.google.storage.v2.ListBucketsResponse other) { bucketsBuilder_ = null; buckets_ = other.buckets_; bitField0_ = (bitField0_ & ~0x00000001); - bucketsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getBucketsFieldBuilder() - : null; + bucketsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getBucketsFieldBuilder() : null; } else { bucketsBuilder_.addAllMessages(other.buckets_); } @@ -561,31 +522,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.storage.v2.Bucket m = - input.readMessage(com.google.storage.v2.Bucket.parser(), extensionRegistry); - if (bucketsBuilder_ == null) { - ensureBucketsIsMutable(); - buckets_.add(m); - } else { - bucketsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.storage.v2.Bucket m = + input.readMessage( + com.google.storage.v2.Bucket.parser(), + extensionRegistry); + if (bucketsBuilder_ == null) { + ensureBucketsIsMutable(); + buckets_.add(m); + } else { + bucketsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -595,28 +555,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List buckets_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureBucketsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { buckets_ = new java.util.ArrayList(buckets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.Bucket, - com.google.storage.v2.Bucket.Builder, - com.google.storage.v2.BucketOrBuilder> - bucketsBuilder_; + com.google.storage.v2.Bucket, com.google.storage.v2.Bucket.Builder, com.google.storage.v2.BucketOrBuilder> bucketsBuilder_; /** - * - * *
                  * The list of items.
                  * 
            @@ -631,8 +584,6 @@ public java.util.List getBucketsList() { } } /** - * - * *
                  * The list of items.
                  * 
            @@ -647,8 +598,6 @@ public int getBucketsCount() { } } /** - * - * *
                  * The list of items.
                  * 
            @@ -663,15 +612,14 @@ public com.google.storage.v2.Bucket getBuckets(int index) { } } /** - * - * *
                  * The list of items.
                  * 
            * * repeated .google.storage.v2.Bucket buckets = 1; */ - public Builder setBuckets(int index, com.google.storage.v2.Bucket value) { + public Builder setBuckets( + int index, com.google.storage.v2.Bucket value) { if (bucketsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -685,15 +633,14 @@ public Builder setBuckets(int index, com.google.storage.v2.Bucket value) { return this; } /** - * - * *
                  * The list of items.
                  * 
            * * repeated .google.storage.v2.Bucket buckets = 1; */ - public Builder setBuckets(int index, com.google.storage.v2.Bucket.Builder builderForValue) { + public Builder setBuckets( + int index, com.google.storage.v2.Bucket.Builder builderForValue) { if (bucketsBuilder_ == null) { ensureBucketsIsMutable(); buckets_.set(index, builderForValue.build()); @@ -704,8 +651,6 @@ public Builder setBuckets(int index, com.google.storage.v2.Bucket.Builder builde return this; } /** - * - * *
                  * The list of items.
                  * 
            @@ -726,15 +671,14 @@ public Builder addBuckets(com.google.storage.v2.Bucket value) { return this; } /** - * - * *
                  * The list of items.
                  * 
            * * repeated .google.storage.v2.Bucket buckets = 1; */ - public Builder addBuckets(int index, com.google.storage.v2.Bucket value) { + public Builder addBuckets( + int index, com.google.storage.v2.Bucket value) { if (bucketsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -748,15 +692,14 @@ public Builder addBuckets(int index, com.google.storage.v2.Bucket value) { return this; } /** - * - * *
                  * The list of items.
                  * 
            * * repeated .google.storage.v2.Bucket buckets = 1; */ - public Builder addBuckets(com.google.storage.v2.Bucket.Builder builderForValue) { + public Builder addBuckets( + com.google.storage.v2.Bucket.Builder builderForValue) { if (bucketsBuilder_ == null) { ensureBucketsIsMutable(); buckets_.add(builderForValue.build()); @@ -767,15 +710,14 @@ public Builder addBuckets(com.google.storage.v2.Bucket.Builder builderForValue) return this; } /** - * - * *
                  * The list of items.
                  * 
            * * repeated .google.storage.v2.Bucket buckets = 1; */ - public Builder addBuckets(int index, com.google.storage.v2.Bucket.Builder builderForValue) { + public Builder addBuckets( + int index, com.google.storage.v2.Bucket.Builder builderForValue) { if (bucketsBuilder_ == null) { ensureBucketsIsMutable(); buckets_.add(index, builderForValue.build()); @@ -786,8 +728,6 @@ public Builder addBuckets(int index, com.google.storage.v2.Bucket.Builder builde return this; } /** - * - * *
                  * The list of items.
                  * 
            @@ -798,7 +738,8 @@ public Builder addAllBuckets( java.lang.Iterable values) { if (bucketsBuilder_ == null) { ensureBucketsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, buckets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, buckets_); onChanged(); } else { bucketsBuilder_.addAllMessages(values); @@ -806,8 +747,6 @@ public Builder addAllBuckets( return this; } /** - * - * *
                  * The list of items.
                  * 
            @@ -825,8 +764,6 @@ public Builder clearBuckets() { return this; } /** - * - * *
                  * The list of items.
                  * 
            @@ -844,44 +781,39 @@ public Builder removeBuckets(int index) { return this; } /** - * - * *
                  * The list of items.
                  * 
            * * repeated .google.storage.v2.Bucket buckets = 1; */ - public com.google.storage.v2.Bucket.Builder getBucketsBuilder(int index) { + public com.google.storage.v2.Bucket.Builder getBucketsBuilder( + int index) { return getBucketsFieldBuilder().getBuilder(index); } /** - * - * *
                  * The list of items.
                  * 
            * * repeated .google.storage.v2.Bucket buckets = 1; */ - public com.google.storage.v2.BucketOrBuilder getBucketsOrBuilder(int index) { + public com.google.storage.v2.BucketOrBuilder getBucketsOrBuilder( + int index) { if (bucketsBuilder_ == null) { - return buckets_.get(index); - } else { + return buckets_.get(index); } else { return bucketsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
                  * The list of items.
                  * 
            * * repeated .google.storage.v2.Bucket buckets = 1; */ - public java.util.List - getBucketsOrBuilderList() { + public java.util.List + getBucketsOrBuilderList() { if (bucketsBuilder_ != null) { return bucketsBuilder_.getMessageOrBuilderList(); } else { @@ -889,8 +821,6 @@ public com.google.storage.v2.BucketOrBuilder getBucketsOrBuilder(int index) { } } /** - * - * *
                  * The list of items.
                  * 
            @@ -898,46 +828,42 @@ public com.google.storage.v2.BucketOrBuilder getBucketsOrBuilder(int index) { * repeated .google.storage.v2.Bucket buckets = 1; */ public com.google.storage.v2.Bucket.Builder addBucketsBuilder() { - return getBucketsFieldBuilder().addBuilder(com.google.storage.v2.Bucket.getDefaultInstance()); + return getBucketsFieldBuilder().addBuilder( + com.google.storage.v2.Bucket.getDefaultInstance()); } /** - * - * *
                  * The list of items.
                  * 
            * * repeated .google.storage.v2.Bucket buckets = 1; */ - public com.google.storage.v2.Bucket.Builder addBucketsBuilder(int index) { - return getBucketsFieldBuilder() - .addBuilder(index, com.google.storage.v2.Bucket.getDefaultInstance()); + public com.google.storage.v2.Bucket.Builder addBucketsBuilder( + int index) { + return getBucketsFieldBuilder().addBuilder( + index, com.google.storage.v2.Bucket.getDefaultInstance()); } /** - * - * *
                  * The list of items.
                  * 
            * * repeated .google.storage.v2.Bucket buckets = 1; */ - public java.util.List getBucketsBuilderList() { + public java.util.List + getBucketsBuilderList() { return getBucketsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.Bucket, - com.google.storage.v2.Bucket.Builder, - com.google.storage.v2.BucketOrBuilder> + com.google.storage.v2.Bucket, com.google.storage.v2.Bucket.Builder, com.google.storage.v2.BucketOrBuilder> getBucketsFieldBuilder() { if (bucketsBuilder_ == null) { - bucketsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.Bucket, - com.google.storage.v2.Bucket.Builder, - com.google.storage.v2.BucketOrBuilder>( - buckets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + bucketsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.storage.v2.Bucket, com.google.storage.v2.Bucket.Builder, com.google.storage.v2.BucketOrBuilder>( + buckets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); buckets_ = null; } return bucketsBuilder_; @@ -945,21 +871,19 @@ public java.util.List getBucketsBuilderLis private java.lang.Object nextPageToken_ = ""; /** - * - * *
                  * The continuation token, used to page through large result sets. Provide
                  * this value in a subsequent request to return the next page of results.
                  * 
            * * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -968,22 +892,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
                  * The continuation token, used to page through large result sets. Provide
                  * this value in a subsequent request to return the next page of results.
                  * 
            * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -991,37 +914,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
                  * The continuation token, used to page through large result sets. Provide
                  * this value in a subsequent request to return the next page of results.
                  * 
            * * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                  * The continuation token, used to page through large result sets. Provide
                  * this value in a subsequent request to return the next page of results.
                  * 
            * * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1031,31 +947,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
                  * The continuation token, used to page through large result sets. Provide
                  * this value in a subsequent request to return the next page of results.
                  * 
            * * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1065,12 +977,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.ListBucketsResponse) } // @@protoc_insertion_point(class_scope:google.storage.v2.ListBucketsResponse) private static final com.google.storage.v2.ListBucketsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.ListBucketsResponse(); } @@ -1079,27 +991,27 @@ public static com.google.storage.v2.ListBucketsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBucketsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBucketsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1114,4 +1026,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.ListBucketsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponseOrBuilder.java similarity index 63% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListBucketsResponseOrBuilder.java index d097829222..8f6c1867f0 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,42 +1,23 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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.
                * 
            @@ -45,8 +26,6 @@ public interface ListBucketsResponseOrBuilder */ com.google.storage.v2.Bucket getBuckets(int index); /** - * - * *
                * The list of items.
                * 
            @@ -55,50 +34,43 @@ public interface ListBucketsResponseOrBuilder */ int getBucketsCount(); /** - * - * *
                * The list of items.
                * 
            * * repeated .google.storage.v2.Bucket buckets = 1; */ - java.util.List getBucketsOrBuilderList(); + java.util.List + getBucketsOrBuilderList(); /** - * - * *
                * The list of items.
                * 
            * * repeated .google.storage.v2.Bucket buckets = 1; */ - com.google.storage.v2.BucketOrBuilder getBucketsOrBuilder(int index); + com.google.storage.v2.BucketOrBuilder getBucketsOrBuilder( + int index); /** - * - * *
                * The continuation token, used to page through large result sets. Provide
                * this value in a subsequent request to return the next page of results.
                * 
            * * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
                * The continuation token, used to page through large result sets. Provide
                * this value in a subsequent request to return the next page of results.
                * 
            * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequest.java similarity index 69% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequest.java index 833ed56d45..2deeda73e3 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,24 +5,21 @@ 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_ = ""; @@ -46,42 +28,35 @@ private ListHmacKeysRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListHmacKeysRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListHmacKeysRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListHmacKeysRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListHmacKeysRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListHmacKeysRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListHmacKeysRequest.class, - com.google.storage.v2.ListHmacKeysRequest.Builder.class); + com.google.storage.v2.ListHmacKeysRequest.class, com.google.storage.v2.ListHmacKeysRequest.Builder.class); } public static final int PROJECT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object project_ = ""; /** - * - * *
                * Required. The project to list HMAC keys for, in the format of
                * "projects/{projectIdentifier}".
                * {projectIdentifier} can be the project ID or project number.
                * 
            * - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The project. */ @java.lang.Override @@ -90,33 +65,31 @@ public java.lang.String getProject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; } } /** - * - * *
                * Required. The project to list HMAC keys for, in the format of
                * "projects/{projectIdentifier}".
                * {projectIdentifier} can be the project ID or project number.
                * 
            * - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); project_ = b; return b; } else { @@ -127,14 +100,11 @@ public com.google.protobuf.ByteString getProjectBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
                * The maximum number of keys to return.
                * 
            * * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -143,18 +113,14 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
                * A previously returned token from ListHmacKeysResponse to get the next page.
                * 
            * * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -163,29 +129,29 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
                * A previously returned token from ListHmacKeysResponse to get the next page.
                * 
            * * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -194,18 +160,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object serviceAccountEmail_ = ""; /** - * - * *
                * If set, filters to only return HMAC keys for specified service account.
                * 
            * * string service_account_email = 4; - * * @return The serviceAccountEmail. */ @java.lang.Override @@ -214,29 +176,29 @@ public java.lang.String getServiceAccountEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountEmail_ = s; return s; } } /** - * - * *
                * If set, filters to only return HMAC keys for specified service account.
                * 
            * * string service_account_email = 4; - * * @return The bytes for serviceAccountEmail. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString + getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccountEmail_ = b; return b; } else { @@ -247,14 +209,11 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { public static final int SHOW_DELETED_KEYS_FIELD_NUMBER = 5; private boolean showDeletedKeys_ = false; /** - * - * *
                * If set, return deleted keys that have not yet been wiped out.
                * 
            * * bool show_deleted_keys = 5; - * * @return The showDeletedKeys. */ @java.lang.Override @@ -263,7 +222,6 @@ public boolean getShowDeletedKeys() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -275,7 +233,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); } @@ -304,7 +263,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -313,7 +273,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, serviceAccountEmail_); } if (showDeletedKeys_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, showDeletedKeys_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, showDeletedKeys_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -323,19 +284,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.ListHmacKeysRequest)) { return super.equals(obj); } - com.google.storage.v2.ListHmacKeysRequest other = - (com.google.storage.v2.ListHmacKeysRequest) obj; - - if (!getProject().equals(other.getProject())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; - if (getShowDeletedKeys() != other.getShowDeletedKeys()) return false; + com.google.storage.v2.ListHmacKeysRequest other = (com.google.storage.v2.ListHmacKeysRequest) obj; + + if (!getProject() + .equals(other.getProject())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getServiceAccountEmail() + .equals(other.getServiceAccountEmail())) return false; + if (getShowDeletedKeys() + != other.getShowDeletedKeys()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -356,142 +321,139 @@ public int hashCode() { hash = (37 * hash) + SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER; hash = (53 * hash) + getServiceAccountEmail().hashCode(); hash = (37 * hash) + SHOW_DELETED_KEYS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShowDeletedKeys()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getShowDeletedKeys()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.storage.v2.ListHmacKeysRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.ListHmacKeysRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListHmacKeysRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.ListHmacKeysRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListHmacKeysRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.ListHmacKeysRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListHmacKeysRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.ListHmacKeysRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.ListHmacKeysRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.ListHmacKeysRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.ListHmacKeysRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.ListHmacKeysRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.ListHmacKeysRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.ListHmacKeysRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.ListHmacKeysRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * Request to fetch a list of HMAC keys under a given project.
                * 
            * * Protobuf type {@code google.storage.v2.ListHmacKeysRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.ListHmacKeysRequest) com.google.storage.v2.ListHmacKeysRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListHmacKeysRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListHmacKeysRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListHmacKeysRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListHmacKeysRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListHmacKeysRequest.class, - com.google.storage.v2.ListHmacKeysRequest.Builder.class); + com.google.storage.v2.ListHmacKeysRequest.class, com.google.storage.v2.ListHmacKeysRequest.Builder.class); } // Construct using com.google.storage.v2.ListHmacKeysRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -505,9 +467,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListHmacKeysRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListHmacKeysRequest_descriptor; } @java.lang.Override @@ -526,11 +488,8 @@ public com.google.storage.v2.ListHmacKeysRequest build() { @java.lang.Override public com.google.storage.v2.ListHmacKeysRequest buildPartial() { - com.google.storage.v2.ListHmacKeysRequest result = - new com.google.storage.v2.ListHmacKeysRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.ListHmacKeysRequest result = new com.google.storage.v2.ListHmacKeysRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -558,39 +517,38 @@ private void buildPartial0(com.google.storage.v2.ListHmacKeysRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.ListHmacKeysRequest) { - return mergeFrom((com.google.storage.v2.ListHmacKeysRequest) other); + return mergeFrom((com.google.storage.v2.ListHmacKeysRequest)other); } else { super.mergeFrom(other); return this; @@ -646,43 +604,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - project_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - serviceAccountEmail_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: - { - showDeletedKeys_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + serviceAccountEmail_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + showDeletedKeys_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -692,29 +644,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object project_ = ""; /** - * - * *
                  * Required. The project to list HMAC keys for, in the format of
                  * "projects/{projectIdentifier}".
                  * {projectIdentifier} can be the project ID or project number.
                  * 
            * - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; @@ -723,25 +670,22 @@ public java.lang.String getProject() { } } /** - * - * *
                  * Required. The project to list HMAC keys for, in the format of
                  * "projects/{projectIdentifier}".
                  * {projectIdentifier} can be the project ID or project number.
                  * 
            * - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for project. */ - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); project_ = b; return b; } else { @@ -749,43 +693,32 @@ public com.google.protobuf.ByteString getProjectBytes() { } } /** - * - * *
                  * Required. The project to list HMAC keys for, in the format of
                  * "projects/{projectIdentifier}".
                  * {projectIdentifier} can be the project ID or project number.
                  * 
            * - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProject( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } project_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * Required. The project to list HMAC keys for, in the format of
                  * "projects/{projectIdentifier}".
                  * {projectIdentifier} can be the project ID or project number.
                  * 
            * - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearProject() { @@ -795,25 +728,19 @@ public Builder clearProject() { return this; } /** - * - * *
                  * Required. The project to list HMAC keys for, in the format of
                  * "projects/{projectIdentifier}".
                  * {projectIdentifier} can be the project ID or project number.
                  * 
            * - * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); project_ = value; bitField0_ |= 0x00000001; @@ -821,16 +748,13 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
                  * The maximum number of keys to return.
                  * 
            * * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -838,14 +762,11 @@ public int getPageSize() { return pageSize_; } /** - * - * *
                  * The maximum number of keys to return.
                  * 
            * * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -857,14 +778,11 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
                  * The maximum number of keys to return.
                  * 
            * * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -876,20 +794,18 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
                  * A previously returned token from ListHmacKeysResponse to get the next page.
                  * 
            * * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -898,21 +814,20 @@ public java.lang.String getPageToken() { } } /** - * - * *
                  * A previously returned token from ListHmacKeysResponse to get the next page.
                  * 
            * * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -920,35 +835,28 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
                  * A previously returned token from ListHmacKeysResponse to get the next page.
                  * 
            * * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
                  * A previously returned token from ListHmacKeysResponse to get the next page.
                  * 
            * * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -958,21 +866,17 @@ public Builder clearPageToken() { return this; } /** - * - * *
                  * A previously returned token from ListHmacKeysResponse to get the next page.
                  * 
            * * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -982,20 +886,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object serviceAccountEmail_ = ""; /** - * - * *
                  * If set, filters to only return HMAC keys for specified service account.
                  * 
            * * string service_account_email = 4; - * * @return The serviceAccountEmail. */ public java.lang.String getServiceAccountEmail() { java.lang.Object ref = serviceAccountEmail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountEmail_ = s; return s; @@ -1004,21 +906,20 @@ public java.lang.String getServiceAccountEmail() { } } /** - * - * *
                  * If set, filters to only return HMAC keys for specified service account.
                  * 
            * * string service_account_email = 4; - * * @return The bytes for serviceAccountEmail. */ - public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + public com.google.protobuf.ByteString + getServiceAccountEmailBytes() { java.lang.Object ref = serviceAccountEmail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccountEmail_ = b; return b; } else { @@ -1026,35 +927,28 @@ public com.google.protobuf.ByteString getServiceAccountEmailBytes() { } } /** - * - * *
                  * If set, filters to only return HMAC keys for specified service account.
                  * 
            * * string service_account_email = 4; - * * @param value The serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmail(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAccountEmail( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } serviceAccountEmail_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
                  * If set, filters to only return HMAC keys for specified service account.
                  * 
            * * string service_account_email = 4; - * * @return This builder for chaining. */ public Builder clearServiceAccountEmail() { @@ -1064,21 +958,17 @@ public Builder clearServiceAccountEmail() { return this; } /** - * - * *
                  * If set, filters to only return HMAC keys for specified service account.
                  * 
            * * string service_account_email = 4; - * * @param value The bytes for serviceAccountEmail to set. * @return This builder for chaining. */ - public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAccountEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceAccountEmail_ = value; bitField0_ |= 0x00000008; @@ -1086,16 +976,13 @@ public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) return this; } - private boolean showDeletedKeys_; + private boolean showDeletedKeys_ ; /** - * - * *
                  * If set, return deleted keys that have not yet been wiped out.
                  * 
            * * bool show_deleted_keys = 5; - * * @return The showDeletedKeys. */ @java.lang.Override @@ -1103,14 +990,11 @@ public boolean getShowDeletedKeys() { return showDeletedKeys_; } /** - * - * *
                  * If set, return deleted keys that have not yet been wiped out.
                  * 
            * * bool show_deleted_keys = 5; - * * @param value The showDeletedKeys to set. * @return This builder for chaining. */ @@ -1122,14 +1006,11 @@ public Builder setShowDeletedKeys(boolean value) { return this; } /** - * - * *
                  * If set, return deleted keys that have not yet been wiped out.
                  * 
            * * bool show_deleted_keys = 5; - * * @return This builder for chaining. */ public Builder clearShowDeletedKeys() { @@ -1138,9 +1019,9 @@ public Builder clearShowDeletedKeys() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1150,12 +1031,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.ListHmacKeysRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.ListHmacKeysRequest) private static final com.google.storage.v2.ListHmacKeysRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.ListHmacKeysRequest(); } @@ -1164,27 +1045,27 @@ public static com.google.storage.v2.ListHmacKeysRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListHmacKeysRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListHmacKeysRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1199,4 +1080,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.ListHmacKeysRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysRequestOrBuilder.java index 170f169364..1d24bf9080 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,134 +1,93 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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 54344d68a8..962f9e482c 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,24 +5,21 @@ 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_ = ""; @@ -45,32 +27,28 @@ private ListHmacKeysResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListHmacKeysResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListHmacKeysResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListHmacKeysResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListHmacKeysResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListHmacKeysResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListHmacKeysResponse.class, - com.google.storage.v2.ListHmacKeysResponse.Builder.class); + com.google.storage.v2.ListHmacKeysResponse.class, com.google.storage.v2.ListHmacKeysResponse.Builder.class); } public static final int HMAC_KEYS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List hmacKeys_; /** - * - * *
                * The list of items.
                * 
            @@ -82,8 +60,6 @@ public java.util.List getHmacKeysList() { return hmacKeys_; } /** - * - * *
                * The list of items.
                * 
            @@ -91,13 +67,11 @@ public java.util.List getHmacKeysList() { * repeated .google.storage.v2.HmacKeyMetadata hmac_keys = 1; */ @java.lang.Override - public java.util.List + public java.util.List getHmacKeysOrBuilderList() { return hmacKeys_; } /** - * - * *
                * The list of items.
                * 
            @@ -109,8 +83,6 @@ public int getHmacKeysCount() { return hmacKeys_.size(); } /** - * - * *
                * The list of items.
                * 
            @@ -122,8 +94,6 @@ public com.google.storage.v2.HmacKeyMetadata getHmacKeys(int index) { return hmacKeys_.get(index); } /** - * - * *
                * The list of items.
                * 
            @@ -131,24 +101,21 @@ public com.google.storage.v2.HmacKeyMetadata getHmacKeys(int index) { * repeated .google.storage.v2.HmacKeyMetadata hmac_keys = 1; */ @java.lang.Override - public com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeysOrBuilder(int index) { + public com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeysOrBuilder( + int index) { return hmacKeys_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
                * The continuation token, used to page through large result sets. Provide
                * this value in a subsequent request to return the next page of results.
                * 
            * * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -157,30 +124,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
                * The continuation token, used to page through large result sets. Provide
                * this value in a subsequent request to return the next page of results.
                * 
            * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -189,7 +156,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,7 +167,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < hmacKeys_.size(); i++) { output.writeMessage(1, hmacKeys_.get(i)); } @@ -218,7 +185,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < hmacKeys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, hmacKeys_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, hmacKeys_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -231,16 +199,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.ListHmacKeysResponse)) { return super.equals(obj); } - com.google.storage.v2.ListHmacKeysResponse other = - (com.google.storage.v2.ListHmacKeysResponse) obj; + com.google.storage.v2.ListHmacKeysResponse other = (com.google.storage.v2.ListHmacKeysResponse) obj; - if (!getHmacKeysList().equals(other.getHmacKeysList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getHmacKeysList() + .equals(other.getHmacKeysList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -263,136 +232,132 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.ListHmacKeysResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.ListHmacKeysResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListHmacKeysResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.ListHmacKeysResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListHmacKeysResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.ListHmacKeysResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListHmacKeysResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.ListHmacKeysResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.ListHmacKeysResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.ListHmacKeysResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.ListHmacKeysResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.ListHmacKeysResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.ListHmacKeysResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.ListHmacKeysResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.ListHmacKeysResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * Hmac key list response with next page information.
                * 
            * * Protobuf type {@code google.storage.v2.ListHmacKeysResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.ListHmacKeysResponse) com.google.storage.v2.ListHmacKeysResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListHmacKeysResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListHmacKeysResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListHmacKeysResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListHmacKeysResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListHmacKeysResponse.class, - com.google.storage.v2.ListHmacKeysResponse.Builder.class); + com.google.storage.v2.ListHmacKeysResponse.class, com.google.storage.v2.ListHmacKeysResponse.Builder.class); } // Construct using com.google.storage.v2.ListHmacKeysResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -409,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListHmacKeysResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListHmacKeysResponse_descriptor; } @java.lang.Override @@ -430,12 +395,9 @@ public com.google.storage.v2.ListHmacKeysResponse build() { @java.lang.Override public com.google.storage.v2.ListHmacKeysResponse buildPartial() { - com.google.storage.v2.ListHmacKeysResponse result = - new com.google.storage.v2.ListHmacKeysResponse(this); + com.google.storage.v2.ListHmacKeysResponse result = new com.google.storage.v2.ListHmacKeysResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -463,39 +425,38 @@ private void buildPartial0(com.google.storage.v2.ListHmacKeysResponse result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.ListHmacKeysResponse) { - return mergeFrom((com.google.storage.v2.ListHmacKeysResponse) other); + return mergeFrom((com.google.storage.v2.ListHmacKeysResponse)other); } else { super.mergeFrom(other); return this; @@ -522,10 +483,9 @@ public Builder mergeFrom(com.google.storage.v2.ListHmacKeysResponse other) { hmacKeysBuilder_ = null; hmacKeys_ = other.hmacKeys_; bitField0_ = (bitField0_ & ~0x00000001); - hmacKeysBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getHmacKeysFieldBuilder() - : null; + hmacKeysBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getHmacKeysFieldBuilder() : null; } else { hmacKeysBuilder_.addAllMessages(other.hmacKeys_); } @@ -562,32 +522,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.storage.v2.HmacKeyMetadata m = - input.readMessage( - com.google.storage.v2.HmacKeyMetadata.parser(), extensionRegistry); - if (hmacKeysBuilder_ == null) { - ensureHmacKeysIsMutable(); - hmacKeys_.add(m); - } else { - hmacKeysBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.storage.v2.HmacKeyMetadata m = + input.readMessage( + com.google.storage.v2.HmacKeyMetadata.parser(), + extensionRegistry); + if (hmacKeysBuilder_ == null) { + ensureHmacKeysIsMutable(); + hmacKeys_.add(m); + } else { + hmacKeysBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -597,28 +555,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List hmacKeys_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureHmacKeysIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { hmacKeys_ = new java.util.ArrayList(hmacKeys_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.HmacKeyMetadata, - com.google.storage.v2.HmacKeyMetadata.Builder, - com.google.storage.v2.HmacKeyMetadataOrBuilder> - hmacKeysBuilder_; + com.google.storage.v2.HmacKeyMetadata, com.google.storage.v2.HmacKeyMetadata.Builder, com.google.storage.v2.HmacKeyMetadataOrBuilder> hmacKeysBuilder_; /** - * - * *
                  * The list of items.
                  * 
            @@ -633,8 +584,6 @@ public java.util.List getHmacKeysList() { } } /** - * - * *
                  * The list of items.
                  * 
            @@ -649,8 +598,6 @@ public int getHmacKeysCount() { } } /** - * - * *
                  * The list of items.
                  * 
            @@ -665,15 +612,14 @@ public com.google.storage.v2.HmacKeyMetadata getHmacKeys(int index) { } } /** - * - * *
                  * The list of items.
                  * 
            * * repeated .google.storage.v2.HmacKeyMetadata hmac_keys = 1; */ - public Builder setHmacKeys(int index, com.google.storage.v2.HmacKeyMetadata value) { + public Builder setHmacKeys( + int index, com.google.storage.v2.HmacKeyMetadata value) { if (hmacKeysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -687,8 +633,6 @@ public Builder setHmacKeys(int index, com.google.storage.v2.HmacKeyMetadata valu return this; } /** - * - * *
                  * The list of items.
                  * 
            @@ -707,8 +651,6 @@ public Builder setHmacKeys( return this; } /** - * - * *
                  * The list of items.
                  * 
            @@ -729,15 +671,14 @@ public Builder addHmacKeys(com.google.storage.v2.HmacKeyMetadata value) { return this; } /** - * - * *
                  * The list of items.
                  * 
            * * repeated .google.storage.v2.HmacKeyMetadata hmac_keys = 1; */ - public Builder addHmacKeys(int index, com.google.storage.v2.HmacKeyMetadata value) { + public Builder addHmacKeys( + int index, com.google.storage.v2.HmacKeyMetadata value) { if (hmacKeysBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -751,15 +692,14 @@ public Builder addHmacKeys(int index, com.google.storage.v2.HmacKeyMetadata valu return this; } /** - * - * *
                  * The list of items.
                  * 
            * * repeated .google.storage.v2.HmacKeyMetadata hmac_keys = 1; */ - public Builder addHmacKeys(com.google.storage.v2.HmacKeyMetadata.Builder builderForValue) { + public Builder addHmacKeys( + com.google.storage.v2.HmacKeyMetadata.Builder builderForValue) { if (hmacKeysBuilder_ == null) { ensureHmacKeysIsMutable(); hmacKeys_.add(builderForValue.build()); @@ -770,8 +710,6 @@ public Builder addHmacKeys(com.google.storage.v2.HmacKeyMetadata.Builder builder return this; } /** - * - * *
                  * The list of items.
                  * 
            @@ -790,8 +728,6 @@ public Builder addHmacKeys( return this; } /** - * - * *
                  * The list of items.
                  * 
            @@ -802,7 +738,8 @@ public Builder addAllHmacKeys( java.lang.Iterable values) { if (hmacKeysBuilder_ == null) { ensureHmacKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hmacKeys_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, hmacKeys_); onChanged(); } else { hmacKeysBuilder_.addAllMessages(values); @@ -810,8 +747,6 @@ public Builder addAllHmacKeys( return this; } /** - * - * *
                  * The list of items.
                  * 
            @@ -829,8 +764,6 @@ public Builder clearHmacKeys() { return this; } /** - * - * *
                  * The list of items.
                  * 
            @@ -848,44 +781,39 @@ public Builder removeHmacKeys(int index) { return this; } /** - * - * *
                  * The list of items.
                  * 
            * * repeated .google.storage.v2.HmacKeyMetadata hmac_keys = 1; */ - public com.google.storage.v2.HmacKeyMetadata.Builder getHmacKeysBuilder(int index) { + public com.google.storage.v2.HmacKeyMetadata.Builder getHmacKeysBuilder( + int index) { return getHmacKeysFieldBuilder().getBuilder(index); } /** - * - * *
                  * The list of items.
                  * 
            * * repeated .google.storage.v2.HmacKeyMetadata hmac_keys = 1; */ - public com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeysOrBuilder(int index) { + public com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeysOrBuilder( + int index) { if (hmacKeysBuilder_ == null) { - return hmacKeys_.get(index); - } else { + return hmacKeys_.get(index); } else { return hmacKeysBuilder_.getMessageOrBuilder(index); } } /** - * - * *
                  * The list of items.
                  * 
            * * repeated .google.storage.v2.HmacKeyMetadata hmac_keys = 1; */ - public java.util.List - getHmacKeysOrBuilderList() { + public java.util.List + getHmacKeysOrBuilderList() { if (hmacKeysBuilder_ != null) { return hmacKeysBuilder_.getMessageOrBuilderList(); } else { @@ -893,8 +821,6 @@ public com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeysOrBuilder(int i } } /** - * - * *
                  * The list of items.
                  * 
            @@ -902,47 +828,42 @@ public com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeysOrBuilder(int i * repeated .google.storage.v2.HmacKeyMetadata hmac_keys = 1; */ public com.google.storage.v2.HmacKeyMetadata.Builder addHmacKeysBuilder() { - return getHmacKeysFieldBuilder() - .addBuilder(com.google.storage.v2.HmacKeyMetadata.getDefaultInstance()); + return getHmacKeysFieldBuilder().addBuilder( + com.google.storage.v2.HmacKeyMetadata.getDefaultInstance()); } /** - * - * *
                  * The list of items.
                  * 
            * * repeated .google.storage.v2.HmacKeyMetadata hmac_keys = 1; */ - public com.google.storage.v2.HmacKeyMetadata.Builder addHmacKeysBuilder(int index) { - return getHmacKeysFieldBuilder() - .addBuilder(index, com.google.storage.v2.HmacKeyMetadata.getDefaultInstance()); + public com.google.storage.v2.HmacKeyMetadata.Builder addHmacKeysBuilder( + int index) { + return getHmacKeysFieldBuilder().addBuilder( + index, com.google.storage.v2.HmacKeyMetadata.getDefaultInstance()); } /** - * - * *
                  * The list of items.
                  * 
            * * repeated .google.storage.v2.HmacKeyMetadata hmac_keys = 1; */ - public java.util.List getHmacKeysBuilderList() { + public java.util.List + getHmacKeysBuilderList() { return getHmacKeysFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.HmacKeyMetadata, - com.google.storage.v2.HmacKeyMetadata.Builder, - com.google.storage.v2.HmacKeyMetadataOrBuilder> + com.google.storage.v2.HmacKeyMetadata, com.google.storage.v2.HmacKeyMetadata.Builder, com.google.storage.v2.HmacKeyMetadataOrBuilder> getHmacKeysFieldBuilder() { if (hmacKeysBuilder_ == null) { - hmacKeysBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.HmacKeyMetadata, - com.google.storage.v2.HmacKeyMetadata.Builder, - com.google.storage.v2.HmacKeyMetadataOrBuilder>( - hmacKeys_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + hmacKeysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.storage.v2.HmacKeyMetadata, com.google.storage.v2.HmacKeyMetadata.Builder, com.google.storage.v2.HmacKeyMetadataOrBuilder>( + hmacKeys_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); hmacKeys_ = null; } return hmacKeysBuilder_; @@ -950,21 +871,19 @@ public java.util.List getHmacKeys private java.lang.Object nextPageToken_ = ""; /** - * - * *
                  * The continuation token, used to page through large result sets. Provide
                  * this value in a subsequent request to return the next page of results.
                  * 
            * * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -973,22 +892,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
                  * The continuation token, used to page through large result sets. Provide
                  * this value in a subsequent request to return the next page of results.
                  * 
            * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -996,37 +914,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
                  * The continuation token, used to page through large result sets. Provide
                  * this value in a subsequent request to return the next page of results.
                  * 
            * * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                  * The continuation token, used to page through large result sets. Provide
                  * this value in a subsequent request to return the next page of results.
                  * 
            * * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1036,31 +947,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
                  * The continuation token, used to page through large result sets. Provide
                  * this value in a subsequent request to return the next page of results.
                  * 
            * * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1070,12 +977,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.ListHmacKeysResponse) } // @@protoc_insertion_point(class_scope:google.storage.v2.ListHmacKeysResponse) private static final com.google.storage.v2.ListHmacKeysResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.ListHmacKeysResponse(); } @@ -1084,27 +991,27 @@ public static com.google.storage.v2.ListHmacKeysResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListHmacKeysResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListHmacKeysResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1119,4 +1026,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.ListHmacKeysResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysResponseOrBuilder.java similarity index 67% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListHmacKeysResponseOrBuilder.java index 994e550681..8388b2d630 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,42 +1,23 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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.
                * 
            @@ -45,8 +26,6 @@ public interface ListHmacKeysResponseOrBuilder */ com.google.storage.v2.HmacKeyMetadata getHmacKeys(int index); /** - * - * *
                * The list of items.
                * 
            @@ -55,51 +34,43 @@ public interface ListHmacKeysResponseOrBuilder */ int getHmacKeysCount(); /** - * - * *
                * The list of items.
                * 
            * * repeated .google.storage.v2.HmacKeyMetadata hmac_keys = 1; */ - java.util.List + java.util.List getHmacKeysOrBuilderList(); /** - * - * *
                * The list of items.
                * 
            * * repeated .google.storage.v2.HmacKeyMetadata hmac_keys = 1; */ - com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeysOrBuilder(int index); + com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeysOrBuilder( + int index); /** - * - * *
                * The continuation token, used to page through large result sets. Provide
                * this value in a subsequent request to return the next page of results.
                * 
            * * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
                * The continuation token, used to page through large result sets. Provide
                * this value in a subsequent request to return the next page of results.
                * 
            * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequest.java similarity index 67% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequest.java index 199bc95e08..71eea1415d 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,25 +5,21 @@ 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_ = ""; @@ -46,40 +27,33 @@ private ListNotificationConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListNotificationConfigsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListNotificationConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListNotificationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListNotificationConfigsRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListNotificationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListNotificationConfigsRequest.class, - com.google.storage.v2.ListNotificationConfigsRequest.Builder.class); + com.google.storage.v2.ListNotificationConfigsRequest.class, com.google.storage.v2.ListNotificationConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
                * Required. Name of a Google Cloud Storage bucket.
                * 
            * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -88,31 +62,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
                * Required. Name of a Google Cloud Storage bucket.
                * 
            * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -123,8 +95,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
                * The maximum number of NotificationConfigs to return. The service may
                * return fewer than this value. The default value is 100. Specifying a value
            @@ -132,7 +102,6 @@ public com.google.protobuf.ByteString getParentBytes() {
                * 
            * * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -141,12 +110,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
                * A page token, received from a previous `ListNotificationConfigs` call.
                * Provide this to retrieve the subsequent page.
            @@ -156,7 +122,6 @@ public int getPageSize() {
                * 
            * * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -165,15 +130,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
                * A page token, received from a previous `ListNotificationConfigs` call.
                * Provide this to retrieve the subsequent page.
            @@ -183,15 +147,16 @@ public java.lang.String getPageToken() {
                * 
            * * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -200,7 +165,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,7 +176,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -235,7 +200,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -248,17 +214,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.ListNotificationConfigsRequest)) { return super.equals(obj); } - com.google.storage.v2.ListNotificationConfigsRequest other = - (com.google.storage.v2.ListNotificationConfigsRequest) obj; + com.google.storage.v2.ListNotificationConfigsRequest other = (com.google.storage.v2.ListNotificationConfigsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -282,135 +250,131 @@ public int hashCode() { } public static com.google.storage.v2.ListNotificationConfigsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListNotificationConfigsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.ListNotificationConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListNotificationConfigsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.ListNotificationConfigsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListNotificationConfigsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.v2.ListNotificationConfigsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.v2.ListNotificationConfigsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.ListNotificationConfigsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.ListNotificationConfigsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.ListNotificationConfigsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.ListNotificationConfigsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.ListNotificationConfigsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.ListNotificationConfigsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.ListNotificationConfigsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * Request message for ListNotifications.
                * 
            * * Protobuf type {@code google.storage.v2.ListNotificationConfigsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.ListNotificationConfigsRequest) com.google.storage.v2.ListNotificationConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListNotificationConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListNotificationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListNotificationConfigsRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListNotificationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListNotificationConfigsRequest.class, - com.google.storage.v2.ListNotificationConfigsRequest.Builder.class); + com.google.storage.v2.ListNotificationConfigsRequest.class, com.google.storage.v2.ListNotificationConfigsRequest.Builder.class); } // Construct using com.google.storage.v2.ListNotificationConfigsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -422,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 @@ -443,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; } @@ -469,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; @@ -509,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; @@ -550,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) { @@ -584,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; @@ -613,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 { @@ -637,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() { @@ -679,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; @@ -703,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
            @@ -714,7 +642,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
                  * 
            * * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -722,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
            @@ -731,7 +656,6 @@ public int getPageSize() {
                  * 
            * * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -743,8 +667,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
                  * The maximum number of NotificationConfigs to return. The service may
                  * return fewer than this value. The default value is 100. Specifying a value
            @@ -752,7 +674,6 @@ public Builder setPageSize(int value) {
                  * 
            * * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -764,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.
            @@ -775,13 +694,13 @@ public Builder clearPageSize() {
                  * 
            * * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -790,8 +709,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
                  * A page token, received from a previous `ListNotificationConfigs` call.
                  * Provide this to retrieve the subsequent page.
            @@ -801,14 +718,15 @@ public java.lang.String getPageToken() {
                  * 
            * * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -816,8 +734,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
                  * A page token, received from a previous `ListNotificationConfigs` call.
                  * Provide this to retrieve the subsequent page.
            @@ -827,22 +743,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
                  * 
            * * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
                  * A page token, received from a previous `ListNotificationConfigs` call.
                  * Provide this to retrieve the subsequent page.
            @@ -852,7 +764,6 @@ public Builder setPageToken(java.lang.String value) {
                  * 
            * * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -862,8 +773,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
                  * A page token, received from a previous `ListNotificationConfigs` call.
                  * Provide this to retrieve the subsequent page.
            @@ -873,23 +782,21 @@ public Builder clearPageToken() {
                  * 
            * * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -899,12 +806,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.ListNotificationConfigsRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.ListNotificationConfigsRequest) private static final com.google.storage.v2.ListNotificationConfigsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.ListNotificationConfigsRequest(); } @@ -913,27 +820,27 @@ public static com.google.storage.v2.ListNotificationConfigsRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNotificationConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNotificationConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -948,4 +855,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.storage.v2.ListNotificationConfigsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsRequestOrBuilder.java index 1c08d45143..f2b7416867 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,61 +1,34 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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
            @@ -63,14 +36,11 @@ public interface ListNotificationConfigsRequestOrBuilder
                * 
            * * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
                * A page token, received from a previous `ListNotificationConfigs` call.
                * Provide this to retrieve the subsequent page.
            @@ -80,13 +50,10 @@ public interface ListNotificationConfigsRequestOrBuilder
                * 
            * * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
                * A page token, received from a previous `ListNotificationConfigs` call.
                * Provide this to retrieve the subsequent page.
            @@ -96,8 +63,8 @@ public interface ListNotificationConfigsRequestOrBuilder
                * 
            * * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponse.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponse.java similarity index 72% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponse.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponse.java index 9e0c00e9ae..40b7e632b1 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,25 +5,21 @@ 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_ = ""; @@ -46,32 +27,28 @@ private ListNotificationConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListNotificationConfigsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListNotificationConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListNotificationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListNotificationConfigsResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListNotificationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListNotificationConfigsResponse.class, - com.google.storage.v2.ListNotificationConfigsResponse.Builder.class); + com.google.storage.v2.ListNotificationConfigsResponse.class, com.google.storage.v2.ListNotificationConfigsResponse.Builder.class); } public static final int NOTIFICATION_CONFIGS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List notificationConfigs_; /** - * - * *
                * The list of items.
                * 
            @@ -83,8 +60,6 @@ public java.util.List getNotificationC return notificationConfigs_; } /** - * - * *
                * The list of items.
                * 
            @@ -92,13 +67,11 @@ public java.util.List getNotificationC * repeated .google.storage.v2.NotificationConfig notification_configs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getNotificationConfigsOrBuilderList() { return notificationConfigs_; } /** - * - * *
                * The list of items.
                * 
            @@ -110,8 +83,6 @@ public int getNotificationConfigsCount() { return notificationConfigs_.size(); } /** - * - * *
                * The list of items.
                * 
            @@ -123,8 +94,6 @@ public com.google.storage.v2.NotificationConfig getNotificationConfigs(int index return notificationConfigs_.get(index); } /** - * - * *
                * The list of items.
                * 
            @@ -138,19 +107,15 @@ public com.google.storage.v2.NotificationConfigOrBuilder getNotificationConfigsO } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
                * A token, which can be sent as `page_token` to retrieve the next page.
                * If this field is omitted, there are no subsequent pages.
                * 
            * * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -159,30 +124,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
                * A token, which can be sent as `page_token` to retrieve the next page.
                * If this field is omitted, there are no subsequent pages.
                * 
            * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -191,7 +156,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +167,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < notificationConfigs_.size(); i++) { output.writeMessage(1, notificationConfigs_.get(i)); } @@ -220,8 +185,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < notificationConfigs_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, notificationConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, notificationConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -234,16 +199,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.ListNotificationConfigsResponse)) { return super.equals(obj); } - com.google.storage.v2.ListNotificationConfigsResponse other = - (com.google.storage.v2.ListNotificationConfigsResponse) obj; + com.google.storage.v2.ListNotificationConfigsResponse other = (com.google.storage.v2.ListNotificationConfigsResponse) obj; - if (!getNotificationConfigsList().equals(other.getNotificationConfigsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getNotificationConfigsList() + .equals(other.getNotificationConfigsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -267,136 +233,131 @@ public int hashCode() { } public static com.google.storage.v2.ListNotificationConfigsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListNotificationConfigsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.ListNotificationConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListNotificationConfigsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.ListNotificationConfigsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListNotificationConfigsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.v2.ListNotificationConfigsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.v2.ListNotificationConfigsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.ListNotificationConfigsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.ListNotificationConfigsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.ListNotificationConfigsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.ListNotificationConfigsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.ListNotificationConfigsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.ListNotificationConfigsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.storage.v2.ListNotificationConfigsResponse prototype) { + public static Builder newBuilder(com.google.storage.v2.ListNotificationConfigsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * The result of a call to ListNotificationConfigs
                * 
            * * Protobuf type {@code google.storage.v2.ListNotificationConfigsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.ListNotificationConfigsResponse) com.google.storage.v2.ListNotificationConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListNotificationConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListNotificationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListNotificationConfigsResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListNotificationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListNotificationConfigsResponse.class, - com.google.storage.v2.ListNotificationConfigsResponse.Builder.class); + com.google.storage.v2.ListNotificationConfigsResponse.class, com.google.storage.v2.ListNotificationConfigsResponse.Builder.class); } // Construct using com.google.storage.v2.ListNotificationConfigsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -413,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListNotificationConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListNotificationConfigsResponse_descriptor; } @java.lang.Override @@ -434,18 +395,14 @@ public com.google.storage.v2.ListNotificationConfigsResponse build() { @java.lang.Override public com.google.storage.v2.ListNotificationConfigsResponse buildPartial() { - com.google.storage.v2.ListNotificationConfigsResponse result = - new com.google.storage.v2.ListNotificationConfigsResponse(this); + com.google.storage.v2.ListNotificationConfigsResponse result = new com.google.storage.v2.ListNotificationConfigsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.storage.v2.ListNotificationConfigsResponse result) { + private void buildPartialRepeatedFields(com.google.storage.v2.ListNotificationConfigsResponse result) { if (notificationConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { notificationConfigs_ = java.util.Collections.unmodifiableList(notificationConfigs_); @@ -468,39 +425,38 @@ private void buildPartial0(com.google.storage.v2.ListNotificationConfigsResponse public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.ListNotificationConfigsResponse) { - return mergeFrom((com.google.storage.v2.ListNotificationConfigsResponse) other); + return mergeFrom((com.google.storage.v2.ListNotificationConfigsResponse)other); } else { super.mergeFrom(other); return this; @@ -508,8 +464,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.v2.ListNotificationConfigsResponse other) { - if (other == com.google.storage.v2.ListNotificationConfigsResponse.getDefaultInstance()) - return this; + if (other == com.google.storage.v2.ListNotificationConfigsResponse.getDefaultInstance()) return this; if (notificationConfigsBuilder_ == null) { if (!other.notificationConfigs_.isEmpty()) { if (notificationConfigs_.isEmpty()) { @@ -528,10 +483,9 @@ public Builder mergeFrom(com.google.storage.v2.ListNotificationConfigsResponse o notificationConfigsBuilder_ = null; notificationConfigs_ = other.notificationConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - notificationConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNotificationConfigsFieldBuilder() - : null; + notificationConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNotificationConfigsFieldBuilder() : null; } else { notificationConfigsBuilder_.addAllMessages(other.notificationConfigs_); } @@ -568,32 +522,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.storage.v2.NotificationConfig m = - input.readMessage( - com.google.storage.v2.NotificationConfig.parser(), extensionRegistry); - if (notificationConfigsBuilder_ == null) { - ensureNotificationConfigsIsMutable(); - notificationConfigs_.add(m); - } else { - notificationConfigsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.storage.v2.NotificationConfig m = + input.readMessage( + com.google.storage.v2.NotificationConfig.parser(), + extensionRegistry); + if (notificationConfigsBuilder_ == null) { + ensureNotificationConfigsIsMutable(); + notificationConfigs_.add(m); + } else { + notificationConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -603,29 +555,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List notificationConfigs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureNotificationConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - notificationConfigs_ = - new java.util.ArrayList(notificationConfigs_); + notificationConfigs_ = new java.util.ArrayList(notificationConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.NotificationConfig, - com.google.storage.v2.NotificationConfig.Builder, - com.google.storage.v2.NotificationConfigOrBuilder> - notificationConfigsBuilder_; + com.google.storage.v2.NotificationConfig, com.google.storage.v2.NotificationConfig.Builder, com.google.storage.v2.NotificationConfigOrBuilder> notificationConfigsBuilder_; /** - * - * *
                  * The list of items.
                  * 
            @@ -640,8 +584,6 @@ public java.util.List getNotificationC } } /** - * - * *
                  * The list of items.
                  * 
            @@ -656,8 +598,6 @@ public int getNotificationConfigsCount() { } } /** - * - * *
                  * The list of items.
                  * 
            @@ -672,8 +612,6 @@ public com.google.storage.v2.NotificationConfig getNotificationConfigs(int index } } /** - * - * *
                  * The list of items.
                  * 
            @@ -695,8 +633,6 @@ public Builder setNotificationConfigs( return this; } /** - * - * *
                  * The list of items.
                  * 
            @@ -715,8 +651,6 @@ public Builder setNotificationConfigs( return this; } /** - * - * *
                  * The list of items.
                  * 
            @@ -737,8 +671,6 @@ public Builder addNotificationConfigs(com.google.storage.v2.NotificationConfig v return this; } /** - * - * *
                  * The list of items.
                  * 
            @@ -760,8 +692,6 @@ public Builder addNotificationConfigs( return this; } /** - * - * *
                  * The list of items.
                  * 
            @@ -780,8 +710,6 @@ public Builder addNotificationConfigs( return this; } /** - * - * *
                  * The list of items.
                  * 
            @@ -800,8 +728,6 @@ public Builder addNotificationConfigs( return this; } /** - * - * *
                  * The list of items.
                  * 
            @@ -812,7 +738,8 @@ public Builder addAllNotificationConfigs( java.lang.Iterable values) { if (notificationConfigsBuilder_ == null) { ensureNotificationConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, notificationConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, notificationConfigs_); onChanged(); } else { notificationConfigsBuilder_.addAllMessages(values); @@ -820,8 +747,6 @@ public Builder addAllNotificationConfigs( return this; } /** - * - * *
                  * The list of items.
                  * 
            @@ -839,8 +764,6 @@ public Builder clearNotificationConfigs() { return this; } /** - * - * *
                  * The list of items.
                  * 
            @@ -858,8 +781,6 @@ public Builder removeNotificationConfigs(int index) { return this; } /** - * - * *
                  * The list of items.
                  * 
            @@ -871,8 +792,6 @@ public com.google.storage.v2.NotificationConfig.Builder getNotificationConfigsBu return getNotificationConfigsFieldBuilder().getBuilder(index); } /** - * - * *
                  * The list of items.
                  * 
            @@ -882,22 +801,19 @@ public com.google.storage.v2.NotificationConfig.Builder getNotificationConfigsBu public com.google.storage.v2.NotificationConfigOrBuilder getNotificationConfigsOrBuilder( int index) { if (notificationConfigsBuilder_ == null) { - return notificationConfigs_.get(index); - } else { + return notificationConfigs_.get(index); } else { return notificationConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
                  * The list of items.
                  * 
            * * repeated .google.storage.v2.NotificationConfig notification_configs = 1; */ - public java.util.List - getNotificationConfigsOrBuilderList() { + public java.util.List + getNotificationConfigsOrBuilderList() { if (notificationConfigsBuilder_ != null) { return notificationConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -905,8 +821,6 @@ public com.google.storage.v2.NotificationConfigOrBuilder getNotificationConfigsO } } /** - * - * *
                  * The list of items.
                  * 
            @@ -914,12 +828,10 @@ public com.google.storage.v2.NotificationConfigOrBuilder getNotificationConfigsO * repeated .google.storage.v2.NotificationConfig notification_configs = 1; */ public com.google.storage.v2.NotificationConfig.Builder addNotificationConfigsBuilder() { - return getNotificationConfigsFieldBuilder() - .addBuilder(com.google.storage.v2.NotificationConfig.getDefaultInstance()); + return getNotificationConfigsFieldBuilder().addBuilder( + com.google.storage.v2.NotificationConfig.getDefaultInstance()); } /** - * - * *
                  * The list of items.
                  * 
            @@ -928,34 +840,26 @@ public com.google.storage.v2.NotificationConfig.Builder addNotificationConfigsBu */ public com.google.storage.v2.NotificationConfig.Builder addNotificationConfigsBuilder( int index) { - return getNotificationConfigsFieldBuilder() - .addBuilder(index, com.google.storage.v2.NotificationConfig.getDefaultInstance()); + return getNotificationConfigsFieldBuilder().addBuilder( + index, com.google.storage.v2.NotificationConfig.getDefaultInstance()); } /** - * - * *
                  * The list of items.
                  * 
            * * repeated .google.storage.v2.NotificationConfig notification_configs = 1; */ - public java.util.List - getNotificationConfigsBuilderList() { + public java.util.List + getNotificationConfigsBuilderList() { return getNotificationConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.NotificationConfig, - com.google.storage.v2.NotificationConfig.Builder, - com.google.storage.v2.NotificationConfigOrBuilder> + com.google.storage.v2.NotificationConfig, com.google.storage.v2.NotificationConfig.Builder, com.google.storage.v2.NotificationConfigOrBuilder> getNotificationConfigsFieldBuilder() { if (notificationConfigsBuilder_ == null) { - notificationConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.NotificationConfig, - com.google.storage.v2.NotificationConfig.Builder, - com.google.storage.v2.NotificationConfigOrBuilder>( + notificationConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.storage.v2.NotificationConfig, com.google.storage.v2.NotificationConfig.Builder, com.google.storage.v2.NotificationConfigOrBuilder>( notificationConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -967,21 +871,19 @@ public com.google.storage.v2.NotificationConfig.Builder addNotificationConfigsBu private java.lang.Object nextPageToken_ = ""; /** - * - * *
                  * A token, which can be sent as `page_token` to retrieve the next page.
                  * If this field is omitted, there are no subsequent pages.
                  * 
            * * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -990,22 +892,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
                  * A token, which can be sent as `page_token` to retrieve the next page.
                  * If this field is omitted, there are no subsequent pages.
                  * 
            * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1013,37 +914,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
                  * A token, which can be sent as `page_token` to retrieve the next page.
                  * If this field is omitted, there are no subsequent pages.
                  * 
            * * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                  * A token, which can be sent as `page_token` to retrieve the next page.
                  * If this field is omitted, there are no subsequent pages.
                  * 
            * * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1053,31 +947,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
                  * A token, which can be sent as `page_token` to retrieve the next page.
                  * If this field is omitted, there are no subsequent pages.
                  * 
            * * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1087,12 +977,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.ListNotificationConfigsResponse) } // @@protoc_insertion_point(class_scope:google.storage.v2.ListNotificationConfigsResponse) private static final com.google.storage.v2.ListNotificationConfigsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.ListNotificationConfigsResponse(); } @@ -1101,27 +991,27 @@ public static com.google.storage.v2.ListNotificationConfigsResponse getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNotificationConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNotificationConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1136,4 +1026,6 @@ public com.google.protobuf.Parser getParserForT public com.google.storage.v2.ListNotificationConfigsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponseOrBuilder.java similarity index 67% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListNotificationConfigsResponseOrBuilder.java index ee7634c0bc..bd5f536dfc 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,42 +1,23 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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.
                * 
            @@ -45,8 +26,6 @@ public interface ListNotificationConfigsResponseOrBuilder */ com.google.storage.v2.NotificationConfig getNotificationConfigs(int index); /** - * - * *
                * The list of items.
                * 
            @@ -55,51 +34,43 @@ public interface ListNotificationConfigsResponseOrBuilder */ int getNotificationConfigsCount(); /** - * - * *
                * The list of items.
                * 
            * * repeated .google.storage.v2.NotificationConfig notification_configs = 1; */ - java.util.List + java.util.List getNotificationConfigsOrBuilderList(); /** - * - * *
                * The list of items.
                * 
            * * repeated .google.storage.v2.NotificationConfig notification_configs = 1; */ - com.google.storage.v2.NotificationConfigOrBuilder getNotificationConfigsOrBuilder(int index); + com.google.storage.v2.NotificationConfigOrBuilder getNotificationConfigsOrBuilder( + int index); /** - * - * *
                * A token, which can be sent as `page_token` to retrieve the next page.
                * If this field is omitted, there are no subsequent pages.
                * 
            * * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
                * A token, which can be sent as `page_token` to retrieve the next page.
                * If this field is omitted, there are no subsequent pages.
                * 
            * * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsRequest.java similarity index 76% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsRequest.java index ddb575f2ac..65fdf83254 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,24 +5,21 @@ 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_ = ""; @@ -50,41 +32,34 @@ private ListObjectsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListObjectsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListObjectsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListObjectsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListObjectsRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListObjectsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListObjectsRequest.class, - com.google.storage.v2.ListObjectsRequest.Builder.class); + com.google.storage.v2.ListObjectsRequest.class, com.google.storage.v2.ListObjectsRequest.Builder.class); } private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
                * Required. Name of the bucket in which to look for objects.
                * 
            * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -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. 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 { @@ -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 `items` plus `prefixes` to return
                * in a single page of responses. As duplicate `prefixes` are
            @@ -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,12 +166,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int DELIMITER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object delimiter_ = ""; /** - * - * *
                * If set, returns results in a directory-like mode. `items` will contain
                * only objects whose names, aside from the `prefix`, do not
            @@ -216,7 +179,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
                * 
            * * string delimiter = 4; - * * @return The delimiter. */ @java.lang.Override @@ -225,15 +187,14 @@ public java.lang.String getDelimiter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); delimiter_ = s; return s; } } /** - * - * *
                * If set, returns results in a directory-like mode. `items` will contain
                * only objects whose names, aside from the `prefix`, do not
            @@ -244,15 +205,16 @@ public java.lang.String getDelimiter() {
                * 
            * * string delimiter = 4; - * * @return The bytes for delimiter. */ @java.lang.Override - public com.google.protobuf.ByteString getDelimiterBytes() { + public com.google.protobuf.ByteString + getDelimiterBytes() { java.lang.Object ref = delimiter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); delimiter_ = b; return b; } else { @@ -263,8 +225,6 @@ public com.google.protobuf.ByteString getDelimiterBytes() { public static final int INCLUDE_TRAILING_DELIMITER_FIELD_NUMBER = 5; private boolean includeTrailingDelimiter_ = false; /** - * - * *
                * If true, objects that end in exactly one instance of `delimiter`
                * will have their metadata included in `items` in addition to
            @@ -272,7 +232,6 @@ public com.google.protobuf.ByteString getDelimiterBytes() {
                * 
            * * bool include_trailing_delimiter = 5; - * * @return The includeTrailingDelimiter. */ @java.lang.Override @@ -281,18 +240,14 @@ public boolean getIncludeTrailingDelimiter() { } public static final int PREFIX_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object prefix_ = ""; /** - * - * *
                * Filter results to objects whose names begin with this prefix.
                * 
            * * string prefix = 6; - * * @return The prefix. */ @java.lang.Override @@ -301,29 +256,29 @@ public java.lang.String getPrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); prefix_ = s; return s; } } /** - * - * *
                * Filter results to objects whose names begin with this prefix.
                * 
            * * string prefix = 6; - * * @return The bytes for prefix. */ @java.lang.Override - public com.google.protobuf.ByteString getPrefixBytes() { + public com.google.protobuf.ByteString + getPrefixBytes() { java.lang.Object ref = prefix_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); prefix_ = b; return b; } else { @@ -334,8 +289,6 @@ public com.google.protobuf.ByteString getPrefixBytes() { public static final int VERSIONS_FIELD_NUMBER = 7; private boolean versions_ = false; /** - * - * *
                * If `true`, lists all versions of an object as distinct results.
                * For more information, see
            @@ -344,7 +297,6 @@ public com.google.protobuf.ByteString getPrefixBytes() {
                * 
            * * bool versions = 7; - * * @return The versions. */ @java.lang.Override @@ -355,8 +307,6 @@ public boolean getVersions() { public static final int READ_MASK_FIELD_NUMBER = 8; private com.google.protobuf.FieldMask readMask_; /** - * - * *
                * Mask specifying which fields to read from each result.
                * If no mask is specified, will default to all fields except items.acl and
            @@ -365,7 +315,6 @@ public boolean getVersions() {
                * 
            * * optional .google.protobuf.FieldMask read_mask = 8; - * * @return Whether the readMask field is set. */ @java.lang.Override @@ -373,8 +322,6 @@ public boolean hasReadMask() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * Mask specifying which fields to read from each result.
                * If no mask is specified, will default to all fields except items.acl and
            @@ -383,7 +330,6 @@ public boolean hasReadMask() {
                * 
            * * optional .google.protobuf.FieldMask read_mask = 8; - * * @return The readMask. */ @java.lang.Override @@ -391,8 +337,6 @@ public com.google.protobuf.FieldMask getReadMask() { return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } /** - * - * *
                * Mask specifying which fields to read from each result.
                * If no mask is specified, will default to all fields except items.acl and
            @@ -408,12 +352,9 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
               }
             
               public static final int LEXICOGRAPHIC_START_FIELD_NUMBER = 10;
            -
               @SuppressWarnings("serial")
               private volatile java.lang.Object lexicographicStart_ = "";
               /**
            -   *
            -   *
                * 
                * Optional. Filter results to objects whose names are lexicographically equal
                * to or after lexicographic_start. If lexicographic_end is also set, the
            @@ -422,7 +363,6 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
                * 
            * * string lexicographic_start = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The lexicographicStart. */ @java.lang.Override @@ -431,15 +371,14 @@ public java.lang.String getLexicographicStart() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lexicographicStart_ = s; return s; } } /** - * - * *
                * Optional. Filter results to objects whose names are lexicographically equal
                * to or after lexicographic_start. If lexicographic_end is also set, the
            @@ -448,15 +387,16 @@ public java.lang.String getLexicographicStart() {
                * 
            * * string lexicographic_start = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for lexicographicStart. */ @java.lang.Override - public com.google.protobuf.ByteString getLexicographicStartBytes() { + public com.google.protobuf.ByteString + getLexicographicStartBytes() { java.lang.Object ref = lexicographicStart_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); lexicographicStart_ = b; return b; } else { @@ -465,12 +405,9 @@ public com.google.protobuf.ByteString getLexicographicStartBytes() { } public static final int LEXICOGRAPHIC_END_FIELD_NUMBER = 11; - @SuppressWarnings("serial") private volatile java.lang.Object lexicographicEnd_ = ""; /** - * - * *
                * Optional. Filter results to objects whose names are lexicographically
                * before lexicographic_end. If lexicographic_start is also set, the objects
            @@ -479,7 +416,6 @@ public com.google.protobuf.ByteString getLexicographicStartBytes() {
                * 
            * * string lexicographic_end = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The lexicographicEnd. */ @java.lang.Override @@ -488,15 +424,14 @@ public java.lang.String getLexicographicEnd() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lexicographicEnd_ = s; return s; } } /** - * - * *
                * Optional. Filter results to objects whose names are lexicographically
                * before lexicographic_end. If lexicographic_start is also set, the objects
            @@ -505,15 +440,16 @@ public java.lang.String getLexicographicEnd() {
                * 
            * * string lexicographic_end = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for lexicographicEnd. */ @java.lang.Override - public com.google.protobuf.ByteString getLexicographicEndBytes() { + public com.google.protobuf.ByteString + getLexicographicEndBytes() { java.lang.Object ref = lexicographicEnd_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); lexicographicEnd_ = b; return b; } else { @@ -524,15 +460,12 @@ public com.google.protobuf.ByteString getLexicographicEndBytes() { public static final int SOFT_DELETED_FIELD_NUMBER = 12; private boolean softDeleted_ = false; /** - * - * *
                * Optional. If true, only list all soft-deleted versions of the object.
                * Soft delete policy is required to set this option.
                * 
            * * bool soft_deleted = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The softDeleted. */ @java.lang.Override @@ -543,15 +476,12 @@ public boolean getSoftDeleted() { public static final int INCLUDE_FOLDERS_AS_PREFIXES_FIELD_NUMBER = 13; private boolean includeFoldersAsPrefixes_ = false; /** - * - * *
                * Optional. If true, will also include folders and managed folders (besides
                * objects) in the returned `prefixes`. Requires `delimiter` to be set to '/'.
                * 
            * * bool include_folders_as_prefixes = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The includeFoldersAsPrefixes. */ @java.lang.Override @@ -560,12 +490,9 @@ public boolean getIncludeFoldersAsPrefixes() { } public static final int MATCH_GLOB_FIELD_NUMBER = 14; - @SuppressWarnings("serial") private volatile java.lang.Object matchGlob_ = ""; /** - * - * *
                * Optional. Filter results to objects and prefixes that match this glob
                * pattern. See [List Objects Using
            @@ -574,7 +501,6 @@ public boolean getIncludeFoldersAsPrefixes() {
                * 
            * * string match_glob = 14 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The matchGlob. */ @java.lang.Override @@ -583,15 +509,14 @@ public java.lang.String getMatchGlob() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); matchGlob_ = s; return s; } } /** - * - * *
                * Optional. Filter results to objects and prefixes that match this glob
                * pattern. See [List Objects Using
            @@ -600,15 +525,16 @@ public java.lang.String getMatchGlob() {
                * 
            * * string match_glob = 14 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for matchGlob. */ @java.lang.Override - public com.google.protobuf.ByteString getMatchGlobBytes() { + public com.google.protobuf.ByteString + getMatchGlobBytes() { java.lang.Object ref = matchGlob_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); matchGlob_ = b; return b; } else { @@ -617,7 +543,6 @@ public com.google.protobuf.ByteString getMatchGlobBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -629,7 +554,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_); } @@ -682,7 +608,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_); @@ -691,16 +618,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_); @@ -709,10 +639,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, lexicographicEnd_); } if (softDeleted_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, softDeleted_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(12, softDeleted_); } if (includeFoldersAsPrefixes_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, includeFoldersAsPrefixes_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(13, includeFoldersAsPrefixes_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(matchGlob_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, matchGlob_); @@ -725,29 +657,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.ListObjectsRequest)) { return super.equals(obj); } com.google.storage.v2.ListObjectsRequest other = (com.google.storage.v2.ListObjectsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getDelimiter().equals(other.getDelimiter())) return false; - if (getIncludeTrailingDelimiter() != other.getIncludeTrailingDelimiter()) return false; - if (!getPrefix().equals(other.getPrefix())) return false; - if (getVersions() != other.getVersions()) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getDelimiter() + .equals(other.getDelimiter())) return false; + if (getIncludeTrailingDelimiter() + != other.getIncludeTrailingDelimiter()) return false; + if (!getPrefix() + .equals(other.getPrefix())) return false; + if (getVersions() + != other.getVersions()) return false; if (hasReadMask() != other.hasReadMask()) return false; if (hasReadMask()) { - if (!getReadMask().equals(other.getReadMask())) return false; - } - if (!getLexicographicStart().equals(other.getLexicographicStart())) return false; - if (!getLexicographicEnd().equals(other.getLexicographicEnd())) return false; - if (getSoftDeleted() != other.getSoftDeleted()) return false; - if (getIncludeFoldersAsPrefixes() != other.getIncludeFoldersAsPrefixes()) return false; - if (!getMatchGlob().equals(other.getMatchGlob())) return false; + if (!getReadMask() + .equals(other.getReadMask())) return false; + } + if (!getLexicographicStart() + .equals(other.getLexicographicStart())) return false; + if (!getLexicographicEnd() + .equals(other.getLexicographicEnd())) return false; + if (getSoftDeleted() + != other.getSoftDeleted()) return false; + if (getIncludeFoldersAsPrefixes() + != other.getIncludeFoldersAsPrefixes()) return false; + if (!getMatchGlob() + .equals(other.getMatchGlob())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -768,11 +713,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(); @@ -782,9 +729,11 @@ public int hashCode() { hash = (37 * hash) + LEXICOGRAPHIC_END_FIELD_NUMBER; hash = (53 * hash) + getLexicographicEnd().hashCode(); hash = (37 * hash) + SOFT_DELETED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSoftDeleted()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSoftDeleted()); hash = (37 * hash) + INCLUDE_FOLDERS_AS_PREFIXES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeFoldersAsPrefixes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIncludeFoldersAsPrefixes()); hash = (37 * hash) + MATCH_GLOB_FIELD_NUMBER; hash = (53 * hash) + getMatchGlob().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -792,127 +741,120 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.ListObjectsRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.ListObjectsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListObjectsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.ListObjectsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListObjectsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.ListObjectsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListObjectsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.ListObjectsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.ListObjectsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.ListObjectsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.ListObjectsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.ListObjectsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.ListObjectsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.ListObjectsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.ListObjectsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * Request message for ListObjects.
                * 
            * * Protobuf type {@code google.storage.v2.ListObjectsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.ListObjectsRequest) com.google.storage.v2.ListObjectsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListObjectsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListObjectsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListObjectsRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListObjectsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListObjectsRequest.class, - com.google.storage.v2.ListObjectsRequest.Builder.class); + com.google.storage.v2.ListObjectsRequest.class, com.google.storage.v2.ListObjectsRequest.Builder.class); } // Construct using com.google.storage.v2.ListObjectsRequest.newBuilder() @@ -920,17 +862,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(); @@ -956,9 +898,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 @@ -977,11 +919,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; } @@ -1011,7 +950,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)) { @@ -1036,39 +977,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; @@ -1156,91 +1096,79 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - delimiter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: - { - includeTrailingDelimiter_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 50: - { - prefix_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 56: - { - versions_ = input.readBool(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 66: - { - input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 82: - { - lexicographicStart_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 82 - case 90: - { - lexicographicEnd_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; - break; - } // case 90 - case 96: - { - softDeleted_ = input.readBool(); - bitField0_ |= 0x00000400; - break; - } // case 96 - case 104: - { - includeFoldersAsPrefixes_ = input.readBool(); - bitField0_ |= 0x00000800; - break; - } // case 104 - case 114: - { - matchGlob_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; - break; - } // case 114 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + delimiter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + includeTrailingDelimiter_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: { + prefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: { + versions_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 66: { + input.readMessage( + getReadMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 82: { + lexicographicStart_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 82 + case 90: { + lexicographicEnd_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 90 + case 96: { + softDeleted_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 96 + case 104: { + includeFoldersAsPrefixes_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 104 + case 114: { + matchGlob_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 114 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1250,27 +1178,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; @@ -1279,23 +1202,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 { @@ -1303,39 +1223,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() { @@ -1345,23 +1254,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; @@ -1369,10 +1272,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
            @@ -1381,7 +1282,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
                  * 
            * * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -1389,8 +1289,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
                  * Maximum number of `items` plus `prefixes` to return
                  * in a single page of responses. As duplicate `prefixes` are
            @@ -1399,7 +1297,6 @@ public int getPageSize() {
                  * 
            * * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1411,8 +1308,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
                  * Maximum number of `items` plus `prefixes` to return
                  * in a single page of responses. As duplicate `prefixes` are
            @@ -1421,7 +1316,6 @@ public Builder setPageSize(int value) {
                  * 
            * * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1433,21 +1327,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; @@ -1456,22 +1348,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 { @@ -1479,37 +1370,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() { @@ -1519,22 +1403,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; @@ -1544,8 +1424,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
            @@ -1556,13 +1434,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; @@ -1571,8 +1449,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
            @@ -1583,14 +1459,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 { @@ -1598,8 +1475,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
            @@ -1610,22 +1485,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
            @@ -1636,7 +1507,6 @@ public Builder setDelimiter(java.lang.String value) {
                  * 
            * * string delimiter = 4; - * * @return This builder for chaining. */ public Builder clearDelimiter() { @@ -1646,8 +1516,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
            @@ -1658,14 +1526,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; @@ -1673,10 +1539,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
            @@ -1684,7 +1548,6 @@ public Builder setDelimiterBytes(com.google.protobuf.ByteString value) {
                  * 
            * * bool include_trailing_delimiter = 5; - * * @return The includeTrailingDelimiter. */ @java.lang.Override @@ -1692,8 +1555,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
            @@ -1701,7 +1562,6 @@ public boolean getIncludeTrailingDelimiter() {
                  * 
            * * bool include_trailing_delimiter = 5; - * * @param value The includeTrailingDelimiter to set. * @return This builder for chaining. */ @@ -1713,8 +1573,6 @@ public Builder setIncludeTrailingDelimiter(boolean value) { return this; } /** - * - * *
                  * If true, objects that end in exactly one instance of `delimiter`
                  * will have their metadata included in `items` in addition to
            @@ -1722,7 +1580,6 @@ public Builder setIncludeTrailingDelimiter(boolean value) {
                  * 
            * * bool include_trailing_delimiter = 5; - * * @return This builder for chaining. */ public Builder clearIncludeTrailingDelimiter() { @@ -1734,20 +1591,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; @@ -1756,21 +1611,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 { @@ -1778,35 +1632,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() { @@ -1816,21 +1663,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; @@ -1838,10 +1681,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
            @@ -1850,7 +1691,6 @@ public Builder setPrefixBytes(com.google.protobuf.ByteString value) {
                  * 
            * * bool versions = 7; - * * @return The versions. */ @java.lang.Override @@ -1858,8 +1698,6 @@ public boolean getVersions() { return versions_; } /** - * - * *
                  * If `true`, lists all versions of an object as distinct results.
                  * For more information, see
            @@ -1868,7 +1706,6 @@ public boolean getVersions() {
                  * 
            * * bool versions = 7; - * * @param value The versions to set. * @return This builder for chaining. */ @@ -1880,8 +1717,6 @@ public Builder setVersions(boolean value) { return this; } /** - * - * *
                  * If `true`, lists all versions of an object as distinct results.
                  * For more information, see
            @@ -1890,7 +1725,6 @@ public Builder setVersions(boolean value) {
                  * 
            * * bool versions = 7; - * * @return This builder for chaining. */ public Builder clearVersions() { @@ -1902,13 +1736,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
            @@ -1917,15 +1746,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
            @@ -1934,7 +1760,6 @@ public boolean hasReadMask() {
                  * 
            * * optional .google.protobuf.FieldMask read_mask = 8; - * * @return The readMask. */ public com.google.protobuf.FieldMask getReadMask() { @@ -1945,8 +1770,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
            @@ -1970,8 +1793,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
            @@ -1981,7 +1802,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 {
            @@ -1992,8 +1814,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
            @@ -2005,9 +1825,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;
            @@ -2022,8 +1842,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
            @@ -2044,8 +1862,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
            @@ -2061,8 +1877,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
            @@ -2076,12 +1890,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
            @@ -2092,17 +1905,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_;
            @@ -2110,8 +1920,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
            @@ -2120,13 +1928,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; @@ -2135,8 +1943,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
            @@ -2145,14 +1951,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 { @@ -2160,8 +1967,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
            @@ -2170,22 +1975,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
            @@ -2194,7 +1995,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() { @@ -2204,8 +2004,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
            @@ -2214,14 +2012,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; @@ -2231,8 +2027,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
            @@ -2241,13 +2035,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; @@ -2256,8 +2050,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
            @@ -2266,14 +2058,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 { @@ -2281,8 +2074,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
            @@ -2291,22 +2082,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
            @@ -2315,7 +2102,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() { @@ -2325,8 +2111,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
            @@ -2335,14 +2119,12 @@ public Builder clearLexicographicEnd() {
                  * 
            * * string lexicographic_end = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for lexicographicEnd to set. * @return This builder for chaining. */ - public Builder setLexicographicEndBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLexicographicEndBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); lexicographicEnd_ = value; bitField0_ |= 0x00000200; @@ -2350,17 +2132,14 @@ public Builder setLexicographicEndBytes(com.google.protobuf.ByteString value) { return this; } - private boolean softDeleted_; + private boolean softDeleted_ ; /** - * - * *
                  * Optional. If true, only list all soft-deleted versions of the object.
                  * Soft delete policy is required to set this option.
                  * 
            * * bool soft_deleted = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The softDeleted. */ @java.lang.Override @@ -2368,15 +2147,12 @@ public boolean getSoftDeleted() { return softDeleted_; } /** - * - * *
                  * Optional. If true, only list all soft-deleted versions of the object.
                  * Soft delete policy is required to set this option.
                  * 
            * * bool soft_deleted = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The softDeleted to set. * @return This builder for chaining. */ @@ -2388,15 +2164,12 @@ public Builder setSoftDeleted(boolean value) { return this; } /** - * - * *
                  * Optional. If true, only list all soft-deleted versions of the object.
                  * Soft delete policy is required to set this option.
                  * 
            * * bool soft_deleted = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSoftDeleted() { @@ -2406,17 +2179,14 @@ public Builder clearSoftDeleted() { return this; } - private boolean includeFoldersAsPrefixes_; + private boolean includeFoldersAsPrefixes_ ; /** - * - * *
                  * Optional. If true, will also include folders and managed folders (besides
                  * objects) in the returned `prefixes`. Requires `delimiter` to be set to '/'.
                  * 
            * * bool include_folders_as_prefixes = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The includeFoldersAsPrefixes. */ @java.lang.Override @@ -2424,15 +2194,12 @@ public boolean getIncludeFoldersAsPrefixes() { return includeFoldersAsPrefixes_; } /** - * - * *
                  * Optional. If true, will also include folders and managed folders (besides
                  * objects) in the returned `prefixes`. Requires `delimiter` to be set to '/'.
                  * 
            * * bool include_folders_as_prefixes = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The includeFoldersAsPrefixes to set. * @return This builder for chaining. */ @@ -2444,15 +2211,12 @@ public Builder setIncludeFoldersAsPrefixes(boolean value) { return this; } /** - * - * *
                  * Optional. If true, will also include folders and managed folders (besides
                  * objects) in the returned `prefixes`. Requires `delimiter` to be set to '/'.
                  * 
            * * bool include_folders_as_prefixes = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearIncludeFoldersAsPrefixes() { @@ -2464,8 +2228,6 @@ public Builder clearIncludeFoldersAsPrefixes() { private java.lang.Object matchGlob_ = ""; /** - * - * *
                  * Optional. Filter results to objects and prefixes that match this glob
                  * pattern. See [List Objects Using
            @@ -2474,13 +2236,13 @@ public Builder clearIncludeFoldersAsPrefixes() {
                  * 
            * * string match_glob = 14 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The matchGlob. */ public java.lang.String getMatchGlob() { java.lang.Object ref = matchGlob_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); matchGlob_ = s; return s; @@ -2489,8 +2251,6 @@ public java.lang.String getMatchGlob() { } } /** - * - * *
                  * Optional. Filter results to objects and prefixes that match this glob
                  * pattern. See [List Objects Using
            @@ -2499,14 +2259,15 @@ public java.lang.String getMatchGlob() {
                  * 
            * * string match_glob = 14 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for matchGlob. */ - public com.google.protobuf.ByteString getMatchGlobBytes() { + public com.google.protobuf.ByteString + getMatchGlobBytes() { java.lang.Object ref = matchGlob_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); matchGlob_ = b; return b; } else { @@ -2514,8 +2275,6 @@ public com.google.protobuf.ByteString getMatchGlobBytes() { } } /** - * - * *
                  * Optional. Filter results to objects and prefixes that match this glob
                  * pattern. See [List Objects Using
            @@ -2524,22 +2283,18 @@ public com.google.protobuf.ByteString getMatchGlobBytes() {
                  * 
            * * string match_glob = 14 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The matchGlob to set. * @return This builder for chaining. */ - public Builder setMatchGlob(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMatchGlob( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } matchGlob_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** - * - * *
                  * Optional. Filter results to objects and prefixes that match this glob
                  * pattern. See [List Objects Using
            @@ -2548,7 +2303,6 @@ public Builder setMatchGlob(java.lang.String value) {
                  * 
            * * string match_glob = 14 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMatchGlob() { @@ -2558,8 +2312,6 @@ public Builder clearMatchGlob() { return this; } /** - * - * *
                  * Optional. Filter results to objects and prefixes that match this glob
                  * pattern. See [List Objects Using
            @@ -2568,23 +2320,21 @@ public Builder clearMatchGlob() {
                  * 
            * * string match_glob = 14 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for matchGlob to set. * @return This builder for chaining. */ - public Builder setMatchGlobBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMatchGlobBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); matchGlob_ = value; bitField0_ |= 0x00001000; 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); } @@ -2594,12 +2344,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(); } @@ -2608,27 +2358,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; @@ -2643,4 +2393,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 83% 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 6abda60794..63015e56d3 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,61 +1,34 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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
            @@ -64,41 +37,33 @@ public interface ListObjectsRequestOrBuilder
                * 
            * * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
                * A previously-returned page token representing part of the larger set of
                * results to view.
                * 
            * * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
                * A previously-returned page token representing part of the larger set of
                * results to view.
                * 
            * * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
                * If set, returns results in a directory-like mode. `items` will contain
                * only objects whose names, aside from the `prefix`, do not
            @@ -109,13 +74,10 @@ public interface ListObjectsRequestOrBuilder
                * 
            * * string delimiter = 4; - * * @return The delimiter. */ java.lang.String getDelimiter(); /** - * - * *
                * If set, returns results in a directory-like mode. `items` will contain
                * only objects whose names, aside from the `prefix`, do not
            @@ -126,14 +88,12 @@ public interface ListObjectsRequestOrBuilder
                * 
            * * string delimiter = 4; - * * @return The bytes for delimiter. */ - com.google.protobuf.ByteString getDelimiterBytes(); + com.google.protobuf.ByteString + getDelimiterBytes(); /** - * - * *
                * If true, objects that end in exactly one instance of `delimiter`
                * will have their metadata included in `items` in addition to
            @@ -141,39 +101,31 @@ public interface ListObjectsRequestOrBuilder
                * 
            * * bool include_trailing_delimiter = 5; - * * @return The includeTrailingDelimiter. */ boolean getIncludeTrailingDelimiter(); /** - * - * *
                * Filter results to objects whose names begin with this prefix.
                * 
            * * string prefix = 6; - * * @return The prefix. */ java.lang.String getPrefix(); /** - * - * *
                * Filter results to objects whose names begin with this prefix.
                * 
            * * string prefix = 6; - * * @return The bytes for prefix. */ - com.google.protobuf.ByteString getPrefixBytes(); + com.google.protobuf.ByteString + getPrefixBytes(); /** - * - * *
                * If `true`, lists all versions of an object as distinct results.
                * For more information, see
            @@ -182,14 +134,11 @@ public interface ListObjectsRequestOrBuilder
                * 
            * * bool versions = 7; - * * @return The versions. */ boolean getVersions(); /** - * - * *
                * Mask specifying which fields to read from each result.
                * If no mask is specified, will default to all fields except items.acl and
            @@ -198,13 +147,10 @@ public interface ListObjectsRequestOrBuilder
                * 
            * * optional .google.protobuf.FieldMask read_mask = 8; - * * @return Whether the readMask field is set. */ boolean hasReadMask(); /** - * - * *
                * Mask specifying which fields to read from each result.
                * If no mask is specified, will default to all fields except items.acl and
            @@ -213,13 +159,10 @@ public interface ListObjectsRequestOrBuilder
                * 
            * * optional .google.protobuf.FieldMask read_mask = 8; - * * @return The readMask. */ com.google.protobuf.FieldMask getReadMask(); /** - * - * *
                * Mask specifying which fields to read from each result.
                * If no mask is specified, will default to all fields except items.acl and
            @@ -232,8 +175,6 @@ public interface ListObjectsRequestOrBuilder
               com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder();
             
               /**
            -   *
            -   *
                * 
                * Optional. Filter results to objects whose names are lexicographically equal
                * to or after lexicographic_start. If lexicographic_end is also set, the
            @@ -242,13 +183,10 @@ public interface ListObjectsRequestOrBuilder
                * 
            * * string lexicographic_start = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The lexicographicStart. */ java.lang.String getLexicographicStart(); /** - * - * *
                * Optional. Filter results to objects whose names are lexicographically equal
                * to or after lexicographic_start. If lexicographic_end is also set, the
            @@ -257,14 +195,12 @@ public interface ListObjectsRequestOrBuilder
                * 
            * * string lexicographic_start = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for lexicographicStart. */ - com.google.protobuf.ByteString getLexicographicStartBytes(); + com.google.protobuf.ByteString + getLexicographicStartBytes(); /** - * - * *
                * Optional. Filter results to objects whose names are lexicographically
                * before lexicographic_end. If lexicographic_start is also set, the objects
            @@ -273,13 +209,10 @@ public interface ListObjectsRequestOrBuilder
                * 
            * * string lexicographic_end = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The lexicographicEnd. */ java.lang.String getLexicographicEnd(); /** - * - * *
                * Optional. Filter results to objects whose names are lexicographically
                * before lexicographic_end. If lexicographic_start is also set, the objects
            @@ -288,42 +221,34 @@ public interface ListObjectsRequestOrBuilder
                * 
            * * string lexicographic_end = 11 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for lexicographicEnd. */ - com.google.protobuf.ByteString getLexicographicEndBytes(); + com.google.protobuf.ByteString + getLexicographicEndBytes(); /** - * - * *
                * Optional. If true, only list all soft-deleted versions of the object.
                * Soft delete policy is required to set this option.
                * 
            * * bool soft_deleted = 12 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The softDeleted. */ boolean getSoftDeleted(); /** - * - * *
                * Optional. If true, will also include folders and managed folders (besides
                * objects) in the returned `prefixes`. Requires `delimiter` to be set to '/'.
                * 
            * * bool include_folders_as_prefixes = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The includeFoldersAsPrefixes. */ boolean getIncludeFoldersAsPrefixes(); /** - * - * *
                * Optional. Filter results to objects and prefixes that match this glob
                * pattern. See [List Objects Using
            @@ -332,13 +257,10 @@ public interface ListObjectsRequestOrBuilder
                * 
            * * string match_glob = 14 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The matchGlob. */ java.lang.String getMatchGlob(); /** - * - * *
                * Optional. Filter results to objects and prefixes that match this glob
                * pattern. See [List Objects Using
            @@ -347,8 +269,8 @@ public interface ListObjectsRequestOrBuilder
                * 
            * * string match_glob = 14 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for matchGlob. */ - com.google.protobuf.ByteString getMatchGlobBytes(); + com.google.protobuf.ByteString + getMatchGlobBytes(); } diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponse.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponse.java similarity index 72% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponse.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponse.java index 392f5c5cc9..fd0243b297 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,58 +5,52 @@ package com.google.storage.v2; /** - * - * *
              * The result of a call to Objects.ListObjects
              * 
            * * Protobuf type {@code google.storage.v2.ListObjectsResponse} */ -public final class ListObjectsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListObjectsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.ListObjectsResponse) ListObjectsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListObjectsResponse.newBuilder() to construct. private ListObjectsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListObjectsResponse() { objects_ = java.util.Collections.emptyList(); - prefixes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + prefixes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListObjectsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListObjectsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListObjectsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListObjectsResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListObjectsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListObjectsResponse.class, - com.google.storage.v2.ListObjectsResponse.Builder.class); + com.google.storage.v2.ListObjectsResponse.class, com.google.storage.v2.ListObjectsResponse.Builder.class); } public static final int OBJECTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List objects_; /** - * - * *
                * The list of items.
                * 
            @@ -83,8 +62,6 @@ public java.util.List getObjectsList() { return objects_; } /** - * - * *
                * The list of items.
                * 
            @@ -92,12 +69,11 @@ public java.util.List getObjectsList() { * repeated .google.storage.v2.Object objects = 1; */ @java.lang.Override - public java.util.List getObjectsOrBuilderList() { + public java.util.List + getObjectsOrBuilderList() { return objects_; } /** - * - * *
                * The list of items.
                * 
            @@ -109,8 +85,6 @@ public int getObjectsCount() { return objects_.size(); } /** - * - * *
                * The list of items.
                * 
            @@ -122,8 +96,6 @@ public com.google.storage.v2.Object getObjects(int index) { return objects_.get(index); } /** - * - * *
                * The list of items.
                * 
            @@ -131,55 +103,47 @@ public com.google.storage.v2.Object getObjects(int index) { * repeated .google.storage.v2.Object objects = 1; */ @java.lang.Override - public com.google.storage.v2.ObjectOrBuilder getObjectsOrBuilder(int index) { + public com.google.storage.v2.ObjectOrBuilder getObjectsOrBuilder( + int index) { return objects_.get(index); } public static final int PREFIXES_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList prefixes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
                * The list of prefixes of objects matching-but-not-listed up to and including
                * the requested delimiter.
                * 
            * * repeated string prefixes = 2; - * * @return A list containing the prefixes. */ - public com.google.protobuf.ProtocolStringList getPrefixesList() { + public com.google.protobuf.ProtocolStringList + getPrefixesList() { return prefixes_; } /** - * - * *
                * The list of prefixes of objects matching-but-not-listed up to and including
                * the requested delimiter.
                * 
            * * repeated string prefixes = 2; - * * @return The count of prefixes. */ public int getPrefixesCount() { return prefixes_.size(); } /** - * - * *
                * The list of prefixes of objects matching-but-not-listed up to and including
                * the requested delimiter.
                * 
            * * repeated string prefixes = 2; - * * @param index The index of the element to return. * @return The prefixes at the given index. */ @@ -187,36 +151,30 @@ public java.lang.String getPrefixes(int index) { return prefixes_.get(index); } /** - * - * *
                * The list of prefixes of objects matching-but-not-listed up to and including
                * the requested delimiter.
                * 
            * * repeated string prefixes = 2; - * * @param index The index of the value to return. * @return The bytes of the prefixes at the given index. */ - public com.google.protobuf.ByteString getPrefixesBytes(int index) { + public com.google.protobuf.ByteString + getPrefixesBytes(int index) { return prefixes_.getByteString(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
                * The continuation token, used to page through large result sets. Provide
                * this value in a subsequent request to return the next page of results.
                * 
            * * string next_page_token = 3; - * * @return The nextPageToken. */ @java.lang.Override @@ -225,30 +183,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
                * The continuation token, used to page through large result sets. Provide
                * this value in a subsequent request to return the next page of results.
                * 
            * * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -257,7 +215,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -269,7 +226,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < objects_.size(); i++) { output.writeMessage(1, objects_.get(i)); } @@ -289,7 +247,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < objects_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, objects_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, objects_.get(i)); } { int dataSize = 0; @@ -310,17 +269,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.ListObjectsResponse)) { return super.equals(obj); } - com.google.storage.v2.ListObjectsResponse other = - (com.google.storage.v2.ListObjectsResponse) obj; + com.google.storage.v2.ListObjectsResponse other = (com.google.storage.v2.ListObjectsResponse) obj; - if (!getObjectsList().equals(other.getObjectsList())) return false; - if (!getPrefixesList().equals(other.getPrefixesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getObjectsList() + .equals(other.getObjectsList())) return false; + if (!getPrefixesList() + .equals(other.getPrefixesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -347,136 +308,132 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.ListObjectsResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.ListObjectsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListObjectsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.ListObjectsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListObjectsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.ListObjectsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ListObjectsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.ListObjectsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.ListObjectsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.ListObjectsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.ListObjectsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.ListObjectsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.ListObjectsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.ListObjectsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.ListObjectsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * The result of a call to Objects.ListObjects
                * 
            * * Protobuf type {@code google.storage.v2.ListObjectsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.ListObjectsResponse) com.google.storage.v2.ListObjectsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListObjectsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListObjectsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListObjectsResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListObjectsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListObjectsResponse.class, - com.google.storage.v2.ListObjectsResponse.Builder.class); + com.google.storage.v2.ListObjectsResponse.class, com.google.storage.v2.ListObjectsResponse.Builder.class); } // Construct using com.google.storage.v2.ListObjectsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -488,15 +445,16 @@ public Builder clear() { objectsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); - prefixes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + prefixes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); nextPageToken_ = ""; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ListObjectsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListObjectsResponse_descriptor; } @java.lang.Override @@ -515,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; } @@ -552,39 +507,38 @@ private void buildPartial0(com.google.storage.v2.ListObjectsResponse result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.ListObjectsResponse) { - return mergeFrom((com.google.storage.v2.ListObjectsResponse) other); + return mergeFrom((com.google.storage.v2.ListObjectsResponse)other); } else { super.mergeFrom(other); return this; @@ -611,10 +565,9 @@ public Builder mergeFrom(com.google.storage.v2.ListObjectsResponse other) { objectsBuilder_ = null; objects_ = other.objects_; bitField0_ = (bitField0_ & ~0x00000001); - objectsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getObjectsFieldBuilder() - : null; + objectsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getObjectsFieldBuilder() : null; } else { objectsBuilder_.addAllMessages(other.objects_); } @@ -661,38 +614,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.storage.v2.Object m = - input.readMessage(com.google.storage.v2.Object.parser(), extensionRegistry); - if (objectsBuilder_ == null) { - ensureObjectsIsMutable(); - objects_.add(m); - } else { - objectsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensurePrefixesIsMutable(); - prefixes_.add(s); - break; - } // case 18 - case 26: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.storage.v2.Object m = + input.readMessage( + com.google.storage.v2.Object.parser(), + extensionRegistry); + if (objectsBuilder_ == null) { + ensureObjectsIsMutable(); + objects_.add(m); + } else { + objectsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensurePrefixesIsMutable(); + prefixes_.add(s); + break; + } // case 18 + case 26: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -702,28 +653,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List objects_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureObjectsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { objects_ = new java.util.ArrayList(objects_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.Object, - com.google.storage.v2.Object.Builder, - com.google.storage.v2.ObjectOrBuilder> - objectsBuilder_; + com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> objectsBuilder_; /** - * - * *
                  * The list of items.
                  * 
            @@ -738,8 +682,6 @@ public java.util.List getObjectsList() { } } /** - * - * *
                  * The list of items.
                  * 
            @@ -754,8 +696,6 @@ public int getObjectsCount() { } } /** - * - * *
                  * The list of items.
                  * 
            @@ -770,15 +710,14 @@ public com.google.storage.v2.Object getObjects(int index) { } } /** - * - * *
                  * The list of items.
                  * 
            * * repeated .google.storage.v2.Object objects = 1; */ - public Builder setObjects(int index, com.google.storage.v2.Object value) { + public Builder setObjects( + int index, com.google.storage.v2.Object value) { if (objectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -792,15 +731,14 @@ public Builder setObjects(int index, com.google.storage.v2.Object value) { return this; } /** - * - * *
                  * The list of items.
                  * 
            * * repeated .google.storage.v2.Object objects = 1; */ - public Builder setObjects(int index, com.google.storage.v2.Object.Builder builderForValue) { + public Builder setObjects( + int index, com.google.storage.v2.Object.Builder builderForValue) { if (objectsBuilder_ == null) { ensureObjectsIsMutable(); objects_.set(index, builderForValue.build()); @@ -811,8 +749,6 @@ public Builder setObjects(int index, com.google.storage.v2.Object.Builder builde return this; } /** - * - * *
                  * The list of items.
                  * 
            @@ -833,15 +769,14 @@ public Builder addObjects(com.google.storage.v2.Object value) { return this; } /** - * - * *
                  * The list of items.
                  * 
            * * repeated .google.storage.v2.Object objects = 1; */ - public Builder addObjects(int index, com.google.storage.v2.Object value) { + public Builder addObjects( + int index, com.google.storage.v2.Object value) { if (objectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -855,15 +790,14 @@ public Builder addObjects(int index, com.google.storage.v2.Object value) { return this; } /** - * - * *
                  * The list of items.
                  * 
            * * repeated .google.storage.v2.Object objects = 1; */ - public Builder addObjects(com.google.storage.v2.Object.Builder builderForValue) { + public Builder addObjects( + com.google.storage.v2.Object.Builder builderForValue) { if (objectsBuilder_ == null) { ensureObjectsIsMutable(); objects_.add(builderForValue.build()); @@ -874,15 +808,14 @@ public Builder addObjects(com.google.storage.v2.Object.Builder builderForValue) return this; } /** - * - * *
                  * The list of items.
                  * 
            * * repeated .google.storage.v2.Object objects = 1; */ - public Builder addObjects(int index, com.google.storage.v2.Object.Builder builderForValue) { + public Builder addObjects( + int index, com.google.storage.v2.Object.Builder builderForValue) { if (objectsBuilder_ == null) { ensureObjectsIsMutable(); objects_.add(index, builderForValue.build()); @@ -893,8 +826,6 @@ public Builder addObjects(int index, com.google.storage.v2.Object.Builder builde return this; } /** - * - * *
                  * The list of items.
                  * 
            @@ -905,7 +836,8 @@ public Builder addAllObjects( java.lang.Iterable values) { if (objectsBuilder_ == null) { ensureObjectsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, objects_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, objects_); onChanged(); } else { objectsBuilder_.addAllMessages(values); @@ -913,8 +845,6 @@ public Builder addAllObjects( return this; } /** - * - * *
                  * The list of items.
                  * 
            @@ -932,8 +862,6 @@ public Builder clearObjects() { return this; } /** - * - * *
                  * The list of items.
                  * 
            @@ -951,44 +879,39 @@ public Builder removeObjects(int index) { return this; } /** - * - * *
                  * The list of items.
                  * 
            * * repeated .google.storage.v2.Object objects = 1; */ - public com.google.storage.v2.Object.Builder getObjectsBuilder(int index) { + public com.google.storage.v2.Object.Builder getObjectsBuilder( + int index) { return getObjectsFieldBuilder().getBuilder(index); } /** - * - * *
                  * The list of items.
                  * 
            * * repeated .google.storage.v2.Object objects = 1; */ - public com.google.storage.v2.ObjectOrBuilder getObjectsOrBuilder(int index) { + public com.google.storage.v2.ObjectOrBuilder getObjectsOrBuilder( + int index) { if (objectsBuilder_ == null) { - return objects_.get(index); - } else { + return objects_.get(index); } else { return objectsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
                  * The list of items.
                  * 
            * * repeated .google.storage.v2.Object objects = 1; */ - public java.util.List - getObjectsOrBuilderList() { + public java.util.List + getObjectsOrBuilderList() { if (objectsBuilder_ != null) { return objectsBuilder_.getMessageOrBuilderList(); } else { @@ -996,8 +919,6 @@ public com.google.storage.v2.ObjectOrBuilder getObjectsOrBuilder(int index) { } } /** - * - * *
                  * The list of items.
                  * 
            @@ -1005,46 +926,42 @@ public com.google.storage.v2.ObjectOrBuilder getObjectsOrBuilder(int index) { * repeated .google.storage.v2.Object objects = 1; */ public com.google.storage.v2.Object.Builder addObjectsBuilder() { - return getObjectsFieldBuilder().addBuilder(com.google.storage.v2.Object.getDefaultInstance()); + return getObjectsFieldBuilder().addBuilder( + com.google.storage.v2.Object.getDefaultInstance()); } /** - * - * *
                  * The list of items.
                  * 
            * * repeated .google.storage.v2.Object objects = 1; */ - public com.google.storage.v2.Object.Builder addObjectsBuilder(int index) { - return getObjectsFieldBuilder() - .addBuilder(index, com.google.storage.v2.Object.getDefaultInstance()); + public com.google.storage.v2.Object.Builder addObjectsBuilder( + int index) { + return getObjectsFieldBuilder().addBuilder( + index, com.google.storage.v2.Object.getDefaultInstance()); } /** - * - * *
                  * The list of items.
                  * 
            * * repeated .google.storage.v2.Object objects = 1; */ - public java.util.List getObjectsBuilderList() { + public java.util.List + getObjectsBuilderList() { return getObjectsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.Object, - com.google.storage.v2.Object.Builder, - com.google.storage.v2.ObjectOrBuilder> + com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> getObjectsFieldBuilder() { if (objectsBuilder_ == null) { - objectsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.Object, - com.google.storage.v2.Object.Builder, - com.google.storage.v2.ObjectOrBuilder>( - objects_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + objectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder>( + objects_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); objects_ = null; } return objectsBuilder_; @@ -1052,7 +969,6 @@ public java.util.List getObjectsBuilderLis private com.google.protobuf.LazyStringArrayList prefixes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensurePrefixesIsMutable() { if (!prefixes_.isModifiable()) { prefixes_ = new com.google.protobuf.LazyStringArrayList(prefixes_); @@ -1060,46 +976,38 @@ private void ensurePrefixesIsMutable() { bitField0_ |= 0x00000002; } /** - * - * *
                  * The list of prefixes of objects matching-but-not-listed up to and including
                  * the requested delimiter.
                  * 
            * * repeated string prefixes = 2; - * * @return A list containing the prefixes. */ - public com.google.protobuf.ProtocolStringList getPrefixesList() { + public com.google.protobuf.ProtocolStringList + getPrefixesList() { prefixes_.makeImmutable(); return prefixes_; } /** - * - * *
                  * The list of prefixes of objects matching-but-not-listed up to and including
                  * the requested delimiter.
                  * 
            * * repeated string prefixes = 2; - * * @return The count of prefixes. */ public int getPrefixesCount() { return prefixes_.size(); } /** - * - * *
                  * The list of prefixes of objects matching-but-not-listed up to and including
                  * the requested delimiter.
                  * 
            * * repeated string prefixes = 2; - * * @param index The index of the element to return. * @return The prefixes at the given index. */ @@ -1107,39 +1015,33 @@ public java.lang.String getPrefixes(int index) { return prefixes_.get(index); } /** - * - * *
                  * The list of prefixes of objects matching-but-not-listed up to and including
                  * the requested delimiter.
                  * 
            * * repeated string prefixes = 2; - * * @param index The index of the value to return. * @return The bytes of the prefixes at the given index. */ - public com.google.protobuf.ByteString getPrefixesBytes(int index) { + public com.google.protobuf.ByteString + getPrefixesBytes(int index) { return prefixes_.getByteString(index); } /** - * - * *
                  * The list of prefixes of objects matching-but-not-listed up to and including
                  * the requested delimiter.
                  * 
            * * repeated string prefixes = 2; - * * @param index The index to set the value at. * @param value The prefixes to set. * @return This builder for chaining. */ - public Builder setPrefixes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPrefixes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensurePrefixesIsMutable(); prefixes_.set(index, value); bitField0_ |= 0x00000002; @@ -1147,22 +1049,18 @@ public Builder setPrefixes(int index, java.lang.String value) { return this; } /** - * - * *
                  * The list of prefixes of objects matching-but-not-listed up to and including
                  * the requested delimiter.
                  * 
            * * repeated string prefixes = 2; - * * @param value The prefixes to add. * @return This builder for chaining. */ - public Builder addPrefixes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPrefixes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensurePrefixesIsMutable(); prefixes_.add(value); bitField0_ |= 0x00000002; @@ -1170,61 +1068,53 @@ public Builder addPrefixes(java.lang.String value) { return this; } /** - * - * *
                  * The list of prefixes of objects matching-but-not-listed up to and including
                  * the requested delimiter.
                  * 
            * * repeated string prefixes = 2; - * * @param values The prefixes to add. * @return This builder for chaining. */ - public Builder addAllPrefixes(java.lang.Iterable values) { + public Builder addAllPrefixes( + java.lang.Iterable values) { ensurePrefixesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, prefixes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, prefixes_); bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                  * The list of prefixes of objects matching-but-not-listed up to and including
                  * the requested delimiter.
                  * 
            * * repeated string prefixes = 2; - * * @return This builder for chaining. */ public Builder clearPrefixes() { - prefixes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + prefixes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** - * - * *
                  * The list of prefixes of objects matching-but-not-listed up to and including
                  * the requested delimiter.
                  * 
            * * repeated string prefixes = 2; - * * @param value The bytes of the prefixes to add. * @return This builder for chaining. */ - public Builder addPrefixesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addPrefixesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePrefixesIsMutable(); prefixes_.add(value); @@ -1235,21 +1125,19 @@ public Builder addPrefixesBytes(com.google.protobuf.ByteString value) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
                  * The continuation token, used to page through large result sets. Provide
                  * this value in a subsequent request to return the next page of results.
                  * 
            * * string next_page_token = 3; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1258,22 +1146,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
                  * The continuation token, used to page through large result sets. Provide
                  * this value in a subsequent request to return the next page of results.
                  * 
            * * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1281,37 +1168,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
                  * The continuation token, used to page through large result sets. Provide
                  * this value in a subsequent request to return the next page of results.
                  * 
            * * string next_page_token = 3; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
                  * The continuation token, used to page through large result sets. Provide
                  * this value in a subsequent request to return the next page of results.
                  * 
            * * string next_page_token = 3; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1321,31 +1201,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
                  * The continuation token, used to page through large result sets. Provide
                  * this value in a subsequent request to return the next page of results.
                  * 
            * * string next_page_token = 3; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1355,12 +1231,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.ListObjectsResponse) } // @@protoc_insertion_point(class_scope:google.storage.v2.ListObjectsResponse) private static final com.google.storage.v2.ListObjectsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.ListObjectsResponse(); } @@ -1369,27 +1245,27 @@ public static com.google.storage.v2.ListObjectsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListObjectsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListObjectsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1404,4 +1280,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.ListObjectsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponseOrBuilder.java similarity index 71% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ListObjectsResponseOrBuilder.java index ef5e82b8a3..0175326037 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,42 +1,23 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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.
                * 
            @@ -45,8 +26,6 @@ public interface ListObjectsResponseOrBuilder */ com.google.storage.v2.Object getObjects(int index); /** - * - * *
                * The list of items.
                * 
            @@ -55,105 +34,88 @@ public interface ListObjectsResponseOrBuilder */ int getObjectsCount(); /** - * - * *
                * The list of items.
                * 
            * * repeated .google.storage.v2.Object objects = 1; */ - java.util.List getObjectsOrBuilderList(); + java.util.List + getObjectsOrBuilderList(); /** - * - * *
                * The list of items.
                * 
            * * repeated .google.storage.v2.Object objects = 1; */ - com.google.storage.v2.ObjectOrBuilder getObjectsOrBuilder(int index); + com.google.storage.v2.ObjectOrBuilder getObjectsOrBuilder( + int index); /** - * - * *
                * The list of prefixes of objects matching-but-not-listed up to and including
                * the requested delimiter.
                * 
            * * repeated string prefixes = 2; - * * @return A list containing the prefixes. */ - java.util.List getPrefixesList(); + java.util.List + getPrefixesList(); /** - * - * *
                * The list of prefixes of objects matching-but-not-listed up to and including
                * the requested delimiter.
                * 
            * * repeated string prefixes = 2; - * * @return The count of prefixes. */ int getPrefixesCount(); /** - * - * *
                * The list of prefixes of objects matching-but-not-listed up to and including
                * the requested delimiter.
                * 
            * * repeated string prefixes = 2; - * * @param index The index of the element to return. * @return The prefixes at the given index. */ java.lang.String getPrefixes(int index); /** - * - * *
                * The list of prefixes of objects matching-but-not-listed up to and including
                * the requested delimiter.
                * 
            * * repeated string prefixes = 2; - * * @param index The index of the value to return. * @return The bytes of the prefixes at the given index. */ - com.google.protobuf.ByteString getPrefixesBytes(int index); + com.google.protobuf.ByteString + getPrefixesBytes(int index); /** - * - * *
                * The continuation token, used to page through large result sets. Provide
                * this value in a subsequent request to return the next page of results.
                * 
            * * string next_page_token = 3; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
                * The continuation token, used to page through large result sets. Provide
                * this value in a subsequent request to return the next page of results.
                * 
            * * string next_page_token = 3; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequest.java similarity index 63% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequest.java index f866fcaa34..c5f19698c6 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,65 +5,54 @@ package com.google.storage.v2; /** - * - * *
              * Request message for LockBucketRetentionPolicyRequest.
              * 
            * * Protobuf type {@code google.storage.v2.LockBucketRetentionPolicyRequest} */ -public final class LockBucketRetentionPolicyRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LockBucketRetentionPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.LockBucketRetentionPolicyRequest) LockBucketRetentionPolicyRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LockBucketRetentionPolicyRequest.newBuilder() to construct. - private LockBucketRetentionPolicyRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private LockBucketRetentionPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LockBucketRetentionPolicyRequest() { bucket_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LockBucketRetentionPolicyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.LockBucketRetentionPolicyRequest.class, - com.google.storage.v2.LockBucketRetentionPolicyRequest.Builder.class); + com.google.storage.v2.LockBucketRetentionPolicyRequest.class, com.google.storage.v2.LockBucketRetentionPolicyRequest.Builder.class); } public static final int BUCKET_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object bucket_ = ""; /** - * - * *
                * Required. Name of a bucket.
                * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bucket. */ @java.lang.Override @@ -87,31 +61,29 @@ public java.lang.String getBucket() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucket_ = s; return s; } } /** - * - * *
                * Required. Name of a bucket.
                * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for bucket. */ @java.lang.Override - public com.google.protobuf.ByteString getBucketBytes() { + public com.google.protobuf.ByteString + getBucketBytes() { java.lang.Object ref = bucket_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); bucket_ = b; return b; } else { @@ -122,15 +94,12 @@ public com.google.protobuf.ByteString getBucketBytes() { public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER = 2; private long ifMetagenerationMatch_ = 0L; /** - * - * *
                * Required. Makes the operation conditional on whether bucket's current
                * metageneration matches the given value. Must be positive.
                * 
            * * int64 if_metageneration_match = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -139,7 +108,6 @@ public long getIfMetagenerationMatch() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,7 +119,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_); } @@ -171,7 +140,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, bucket_); } if (ifMetagenerationMatch_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, ifMetagenerationMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, ifMetagenerationMatch_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -181,16 +151,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.LockBucketRetentionPolicyRequest)) { return super.equals(obj); } - com.google.storage.v2.LockBucketRetentionPolicyRequest other = - (com.google.storage.v2.LockBucketRetentionPolicyRequest) obj; + com.google.storage.v2.LockBucketRetentionPolicyRequest other = (com.google.storage.v2.LockBucketRetentionPolicyRequest) obj; - if (!getBucket().equals(other.getBucket())) return false; - if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false; + if (!getBucket() + .equals(other.getBucket())) return false; + if (getIfMetagenerationMatch() + != other.getIfMetagenerationMatch()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -205,143 +176,139 @@ public int hashCode() { hash = (37 * hash) + BUCKET_FIELD_NUMBER; hash = (53 * hash) + getBucket().hashCode(); hash = (37 * hash) + IF_METAGENERATION_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationMatch()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.storage.v2.LockBucketRetentionPolicyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.LockBucketRetentionPolicyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.LockBucketRetentionPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.LockBucketRetentionPolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.LockBucketRetentionPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.LockBucketRetentionPolicyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.v2.LockBucketRetentionPolicyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.v2.LockBucketRetentionPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.LockBucketRetentionPolicyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.LockBucketRetentionPolicyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.LockBucketRetentionPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.LockBucketRetentionPolicyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.LockBucketRetentionPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.LockBucketRetentionPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.storage.v2.LockBucketRetentionPolicyRequest prototype) { + public static Builder newBuilder(com.google.storage.v2.LockBucketRetentionPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * Request message for LockBucketRetentionPolicyRequest.
                * 
            * * Protobuf type {@code google.storage.v2.LockBucketRetentionPolicyRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.LockBucketRetentionPolicyRequest) com.google.storage.v2.LockBucketRetentionPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.LockBucketRetentionPolicyRequest.class, - com.google.storage.v2.LockBucketRetentionPolicyRequest.Builder.class); + com.google.storage.v2.LockBucketRetentionPolicyRequest.class, com.google.storage.v2.LockBucketRetentionPolicyRequest.Builder.class); } // Construct using com.google.storage.v2.LockBucketRetentionPolicyRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -352,9 +319,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_descriptor; } @java.lang.Override @@ -373,11 +340,8 @@ public com.google.storage.v2.LockBucketRetentionPolicyRequest build() { @java.lang.Override public com.google.storage.v2.LockBucketRetentionPolicyRequest buildPartial() { - com.google.storage.v2.LockBucketRetentionPolicyRequest result = - new com.google.storage.v2.LockBucketRetentionPolicyRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.LockBucketRetentionPolicyRequest result = new com.google.storage.v2.LockBucketRetentionPolicyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -396,39 +360,38 @@ private void buildPartial0(com.google.storage.v2.LockBucketRetentionPolicyReques public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.LockBucketRetentionPolicyRequest) { - return mergeFrom((com.google.storage.v2.LockBucketRetentionPolicyRequest) other); + return mergeFrom((com.google.storage.v2.LockBucketRetentionPolicyRequest)other); } else { super.mergeFrom(other); return this; @@ -436,8 +399,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.v2.LockBucketRetentionPolicyRequest other) { - if (other == com.google.storage.v2.LockBucketRetentionPolicyRequest.getDefaultInstance()) - return this; + if (other == com.google.storage.v2.LockBucketRetentionPolicyRequest.getDefaultInstance()) return this; if (!other.getBucket().isEmpty()) { bucket_ = other.bucket_; bitField0_ |= 0x00000001; @@ -472,25 +434,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - bucket_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - ifMetagenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + bucket_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + ifMetagenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -500,27 +459,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object bucket_ = ""; /** - * - * *
                  * Required. Name of a bucket.
                  * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bucket. */ public java.lang.String getBucket() { java.lang.Object ref = bucket_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucket_ = s; return s; @@ -529,23 +483,20 @@ public java.lang.String getBucket() { } } /** - * - * *
                  * Required. Name of a bucket.
                  * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for bucket. */ - public com.google.protobuf.ByteString getBucketBytes() { + public com.google.protobuf.ByteString + getBucketBytes() { java.lang.Object ref = bucket_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); bucket_ = b; return b; } else { @@ -553,39 +504,28 @@ public com.google.protobuf.ByteString getBucketBytes() { } } /** - * - * *
                  * Required. Name of a bucket.
                  * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bucket to set. * @return This builder for chaining. */ - public Builder setBucket(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBucket( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } bucket_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * Required. Name of a bucket.
                  * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearBucket() { @@ -595,23 +535,17 @@ public Builder clearBucket() { return this; } /** - * - * *
                  * Required. Name of a bucket.
                  * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for bucket to set. * @return This builder for chaining. */ - public Builder setBucketBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBucketBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bucket_ = value; bitField0_ |= 0x00000001; @@ -619,17 +553,14 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) { return this; } - private long ifMetagenerationMatch_; + private long ifMetagenerationMatch_ ; /** - * - * *
                  * Required. Makes the operation conditional on whether bucket's current
                  * metageneration matches the given value. Must be positive.
                  * 
            * * int64 if_metageneration_match = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -637,15 +568,12 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** - * - * *
                  * Required. Makes the operation conditional on whether bucket's current
                  * metageneration matches the given value. Must be positive.
                  * 
            * * int64 if_metageneration_match = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -657,15 +585,12 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** - * - * *
                  * Required. Makes the operation conditional on whether bucket's current
                  * metageneration matches the given value. Must be positive.
                  * 
            * * int64 if_metageneration_match = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -674,9 +599,9 @@ public Builder clearIfMetagenerationMatch() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -686,12 +611,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.LockBucketRetentionPolicyRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.LockBucketRetentionPolicyRequest) private static final com.google.storage.v2.LockBucketRetentionPolicyRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.LockBucketRetentionPolicyRequest(); } @@ -700,27 +625,27 @@ public static com.google.storage.v2.LockBucketRetentionPolicyRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LockBucketRetentionPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LockBucketRetentionPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -735,4 +660,6 @@ public com.google.protobuf.Parser getParserFor public com.google.storage.v2.LockBucketRetentionPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequestOrBuilder.java new file mode 100644 index 0000000000..5307b3d67c --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequestOrBuilder.java @@ -0,0 +1,41 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/storage/v2/storage.proto + +// Protobuf Java Version: 3.25.3 +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 479b8ffb2b..a2184a4bcf 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,42 +5,41 @@ package com.google.storage.v2; /** - * - * *
              * A directive to publish Pub/Sub notifications upon changes to a bucket.
              * 
            * * Protobuf type {@code google.storage.v2.NotificationConfig} */ -public final class NotificationConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class NotificationConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.NotificationConfig) NotificationConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use NotificationConfig.newBuilder() to construct. private NotificationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NotificationConfig() { name_ = ""; topic_ = ""; etag_ = ""; - eventTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + eventTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); objectNamePrefix_ = ""; payloadFormat_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new NotificationConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_NotificationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_NotificationConfig_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -66,27 +50,22 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl 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:
            @@ -95,7 +74,6 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
                * 
            * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -104,15 +82,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
                * Required. The resource name of this NotificationConfig.
                * Format:
            @@ -121,15 +98,16 @@ public java.lang.String getName() {
                * 
            * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -138,12 +116,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int TOPIC_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object topic_ = ""; /** - * - * *
                * Required. The Pub/Sub topic to which this subscription publishes. Formatted
                * as:
            @@ -151,7 +126,6 @@ public com.google.protobuf.ByteString getNameBytes() {
                * 
            * * string topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The topic. */ @java.lang.Override @@ -160,15 +134,14 @@ public java.lang.String getTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; } } /** - * - * *
                * Required. The Pub/Sub topic to which this subscription publishes. Formatted
                * as:
            @@ -176,15 +149,16 @@ public java.lang.String getTopic() {
                * 
            * * string topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for topic. */ @java.lang.Override - public com.google.protobuf.ByteString getTopicBytes() { + public com.google.protobuf.ByteString + getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); topic_ = b; return b; } else { @@ -193,12 +167,9 @@ public com.google.protobuf.ByteString getTopicBytes() { } public static final int ETAG_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
                * The etag of the NotificationConfig.
                * If included in the metadata of GetNotificationConfigRequest, the operation
            @@ -206,7 +177,6 @@ public com.google.protobuf.ByteString getTopicBytes() {
                * 
            * * string etag = 7; - * * @return The etag. */ @java.lang.Override @@ -215,15 +185,14 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
                * The etag of the NotificationConfig.
                * If included in the metadata of GetNotificationConfigRequest, the operation
            @@ -231,15 +200,16 @@ public java.lang.String getEtag() {
                * 
            * * string etag = 7; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -248,50 +218,41 @@ public com.google.protobuf.ByteString getEtagBytes() { } public static final int EVENT_TYPES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList eventTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
                * If present, only send notifications about listed event types. If
                * empty, sent notifications for all event types.
                * 
            * * repeated string event_types = 3; - * * @return A list containing the eventTypes. */ - public com.google.protobuf.ProtocolStringList getEventTypesList() { + public com.google.protobuf.ProtocolStringList + getEventTypesList() { return eventTypes_; } /** - * - * *
                * If present, only send notifications about listed event types. If
                * empty, sent notifications for all event types.
                * 
            * * repeated string event_types = 3; - * * @return The count of eventTypes. */ public int getEventTypesCount() { return eventTypes_.size(); } /** - * - * *
                * If present, only send notifications about listed event types. If
                * empty, sent notifications for all event types.
                * 
            * * repeated string event_types = 3; - * * @param index The index of the element to return. * @return The eventTypes at the given index. */ @@ -299,53 +260,47 @@ public java.lang.String getEventTypes(int index) { return eventTypes_.get(index); } /** - * - * *
                * If present, only send notifications about listed event types. If
                * empty, sent notifications for all event types.
                * 
            * * repeated string event_types = 3; - * * @param index The index of the value to return. * @return The bytes of the eventTypes at the given index. */ - public com.google.protobuf.ByteString getEventTypesBytes(int index) { + public com.google.protobuf.ByteString + getEventTypesBytes(int index) { return eventTypes_.getByteString(index); } public static final int CUSTOM_ATTRIBUTES_FIELD_NUMBER = 4; - private static final class CustomAttributesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_NotificationConfig_CustomAttributesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.storage.v2.StorageProto.internal_static_google_storage_v2_NotificationConfig_CustomAttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField customAttributes_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> customAttributes_; private com.google.protobuf.MapField - internalGetCustomAttributes() { + internalGetCustomAttributes() { if (customAttributes_ == null) { return com.google.protobuf.MapField.emptyMapField( CustomAttributesDefaultEntryHolder.defaultEntry); } return customAttributes_; } - public int getCustomAttributesCount() { return internalGetCustomAttributes().getMap().size(); } /** - * - * *
                * A list of additional attributes to attach to each Pub/Sub
                * message published for this NotificationConfig.
            @@ -354,21 +309,20 @@ public int getCustomAttributesCount() {
                * map<string, string> custom_attributes = 4;
                */
               @java.lang.Override
            -  public boolean containsCustomAttributes(java.lang.String key) {
            -    if (key == null) {
            -      throw new NullPointerException("map key");
            -    }
            +  public boolean containsCustomAttributes(
            +      java.lang.String key) {
            +    if (key == null) { throw new NullPointerException("map key"); }
                 return internalGetCustomAttributes().getMap().containsKey(key);
               }
            -  /** Use {@link #getCustomAttributesMap()} instead. */
            +  /**
            +   * Use {@link #getCustomAttributesMap()} instead.
            +   */
               @java.lang.Override
               @java.lang.Deprecated
               public java.util.Map getCustomAttributes() {
                 return getCustomAttributesMap();
               }
               /**
            -   *
            -   *
                * 
                * A list of additional attributes to attach to each Pub/Sub
                * message published for this NotificationConfig.
            @@ -381,8 +335,6 @@ public java.util.Map getCustomAttributesMap(
                 return internalGetCustomAttributes().getMap();
               }
               /**
            -   *
            -   *
                * 
                * A list of additional attributes to attach to each Pub/Sub
                * message published for this NotificationConfig.
            @@ -391,19 +343,17 @@ public java.util.Map getCustomAttributesMap(
                * map<string, string> custom_attributes = 4;
                */
               @java.lang.Override
            -  public /* nullable */ java.lang.String getCustomAttributesOrDefault(
            +  public /* nullable */
            +java.lang.String getCustomAttributesOrDefault(
                   java.lang.String key,
                   /* nullable */
            -      java.lang.String defaultValue) {
            -    if (key == null) {
            -      throw new NullPointerException("map key");
            -    }
            -    java.util.Map map = internalGetCustomAttributes().getMap();
            +java.lang.String defaultValue) {
            +    if (key == null) { throw new NullPointerException("map key"); }
            +    java.util.Map map =
            +        internalGetCustomAttributes().getMap();
                 return map.containsKey(key) ? map.get(key) : defaultValue;
               }
               /**
            -   *
            -   *
                * 
                * A list of additional attributes to attach to each Pub/Sub
                * message published for this NotificationConfig.
            @@ -412,11 +362,11 @@ public java.util.Map getCustomAttributesMap(
                * map<string, string> custom_attributes = 4;
                */
               @java.lang.Override
            -  public java.lang.String getCustomAttributesOrThrow(java.lang.String key) {
            -    if (key == null) {
            -      throw new NullPointerException("map key");
            -    }
            -    java.util.Map map = internalGetCustomAttributes().getMap();
            +  public java.lang.String getCustomAttributesOrThrow(
            +      java.lang.String key) {
            +    if (key == null) { throw new NullPointerException("map key"); }
            +    java.util.Map map =
            +        internalGetCustomAttributes().getMap();
                 if (!map.containsKey(key)) {
                   throw new java.lang.IllegalArgumentException();
                 }
            @@ -424,19 +374,15 @@ public java.lang.String getCustomAttributesOrThrow(java.lang.String key) {
               }
             
               public static final int OBJECT_NAME_PREFIX_FIELD_NUMBER = 5;
            -
               @SuppressWarnings("serial")
               private volatile java.lang.Object objectNamePrefix_ = "";
               /**
            -   *
            -   *
                * 
                * If present, only apply this NotificationConfig to object names that
                * begin with this prefix.
                * 
            * * string object_name_prefix = 5; - * * @return The objectNamePrefix. */ @java.lang.Override @@ -445,30 +391,30 @@ public java.lang.String getObjectNamePrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); objectNamePrefix_ = s; return s; } } /** - * - * *
                * If present, only apply this NotificationConfig to object names that
                * begin with this prefix.
                * 
            * * string object_name_prefix = 5; - * * @return The bytes for objectNamePrefix. */ @java.lang.Override - public com.google.protobuf.ByteString getObjectNamePrefixBytes() { + public com.google.protobuf.ByteString + getObjectNamePrefixBytes() { java.lang.Object ref = objectNamePrefix_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); objectNamePrefix_ = b; return b; } else { @@ -477,18 +423,14 @@ public com.google.protobuf.ByteString getObjectNamePrefixBytes() { } public static final int PAYLOAD_FORMAT_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object payloadFormat_ = ""; /** - * - * *
                * Required. The desired content of the Payload.
                * 
            * * string payload_format = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The payloadFormat. */ @java.lang.Override @@ -497,29 +439,29 @@ public java.lang.String getPayloadFormat() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); payloadFormat_ = s; return s; } } /** - * - * *
                * Required. The desired content of the Payload.
                * 
            * * string payload_format = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for payloadFormat. */ @java.lang.Override - public com.google.protobuf.ByteString getPayloadFormatBytes() { + public com.google.protobuf.ByteString + getPayloadFormatBytes() { java.lang.Object ref = payloadFormat_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); payloadFormat_ = b; return b; } else { @@ -528,7 +470,6 @@ public com.google.protobuf.ByteString getPayloadFormatBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -540,7 +481,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -550,8 +492,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < eventTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, eventTypes_.getRaw(i)); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetCustomAttributes(), CustomAttributesDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetCustomAttributes(), + CustomAttributesDefaultEntryHolder.defaultEntry, + 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(objectNamePrefix_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, objectNamePrefix_); } @@ -584,15 +530,15 @@ public int getSerializedSize() { size += dataSize; size += 1 * getEventTypesList().size(); } - for (java.util.Map.Entry entry : - internalGetCustomAttributes().getMap().entrySet()) { - com.google.protobuf.MapEntry customAttributes__ = - CustomAttributesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, customAttributes__); + for (java.util.Map.Entry entry + : internalGetCustomAttributes().getMap().entrySet()) { + com.google.protobuf.MapEntry + customAttributes__ = CustomAttributesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, customAttributes__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(objectNamePrefix_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, objectNamePrefix_); @@ -611,20 +557,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.NotificationConfig)) { return super.equals(obj); } com.google.storage.v2.NotificationConfig other = (com.google.storage.v2.NotificationConfig) obj; - if (!getName().equals(other.getName())) return false; - if (!getTopic().equals(other.getTopic())) return false; - if (!getEtag().equals(other.getEtag())) return false; - if (!getEventTypesList().equals(other.getEventTypesList())) return false; - if (!internalGetCustomAttributes().equals(other.internalGetCustomAttributes())) return false; - if (!getObjectNamePrefix().equals(other.getObjectNamePrefix())) return false; - if (!getPayloadFormat().equals(other.getPayloadFormat())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getTopic() + .equals(other.getTopic())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (!getEventTypesList() + .equals(other.getEventTypesList())) return false; + if (!internalGetCustomAttributes().equals( + other.internalGetCustomAttributes())) return false; + if (!getObjectNamePrefix() + .equals(other.getObjectNamePrefix())) return false; + if (!getPayloadFormat() + .equals(other.getPayloadFormat())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -659,117 +612,112 @@ 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"}) @@ -779,10 +727,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl 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.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { @@ -790,27 +738,28 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi 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(); @@ -818,7 +767,8 @@ public Builder clear() { name_ = ""; topic_ = ""; etag_ = ""; - eventTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + eventTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); internalGetMutableCustomAttributes().clear(); objectNamePrefix_ = ""; payloadFormat_ = ""; @@ -826,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 @@ -847,11 +797,8 @@ public com.google.storage.v2.NotificationConfig build() { @java.lang.Override public com.google.storage.v2.NotificationConfig buildPartial() { - com.google.storage.v2.NotificationConfig result = - new com.google.storage.v2.NotificationConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.NotificationConfig result = new com.google.storage.v2.NotificationConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -887,39 +834,38 @@ private void buildPartial0(com.google.storage.v2.NotificationConfig result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.NotificationConfig) { - return mergeFrom((com.google.storage.v2.NotificationConfig) other); + return mergeFrom((com.google.storage.v2.NotificationConfig)other); } else { super.mergeFrom(other); return this; @@ -953,7 +899,8 @@ public Builder mergeFrom(com.google.storage.v2.NotificationConfig other) { } onChanged(); } - internalGetMutableCustomAttributes().mergeFrom(other.internalGetCustomAttributes()); + internalGetMutableCustomAttributes().mergeFrom( + other.internalGetCustomAttributes()); bitField0_ |= 0x00000010; if (!other.getObjectNamePrefix().isEmpty()) { objectNamePrefix_ = other.objectNamePrefix_; @@ -991,63 +938,52 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - topic_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureEventTypesIsMutable(); - eventTypes_.add(s); - break; - } // case 26 - case 34: - { - com.google.protobuf.MapEntry - customAttributes__ = - input.readMessage( - CustomAttributesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableCustomAttributes() - .getMutableMap() - .put(customAttributes__.getKey(), customAttributes__.getValue()); - bitField0_ |= 0x00000010; - break; - } // case 34 - case 42: - { - objectNamePrefix_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 42 - case 50: - { - payloadFormat_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 58: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + topic_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureEventTypesIsMutable(); + eventTypes_.add(s); + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry + customAttributes__ = input.readMessage( + CustomAttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableCustomAttributes().getMutableMap().put( + customAttributes__.getKey(), customAttributes__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: { + objectNamePrefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 50: { + payloadFormat_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1057,13 +993,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
                  * Required. The resource name of this NotificationConfig.
                  * Format:
            @@ -1072,13 +1005,13 @@ public Builder mergeFrom(
                  * 
            * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1087,8 +1020,6 @@ public java.lang.String getName() { } } /** - * - * *
                  * Required. The resource name of this NotificationConfig.
                  * Format:
            @@ -1097,14 +1028,15 @@ public java.lang.String getName() {
                  * 
            * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1112,8 +1044,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
                  * Required. The resource name of this NotificationConfig.
                  * Format:
            @@ -1122,22 +1052,18 @@ public com.google.protobuf.ByteString getNameBytes() {
                  * 
            * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * Required. The resource name of this NotificationConfig.
                  * Format:
            @@ -1146,7 +1072,6 @@ public Builder setName(java.lang.String value) {
                  * 
            * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1156,8 +1081,6 @@ public Builder clearName() { return this; } /** - * - * *
                  * Required. The resource name of this NotificationConfig.
                  * Format:
            @@ -1166,14 +1089,12 @@ public Builder clearName() {
                  * 
            * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1183,8 +1104,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object topic_ = ""; /** - * - * *
                  * Required. The Pub/Sub topic to which this subscription publishes. Formatted
                  * as:
            @@ -1192,13 +1111,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
                  * 
            * * string topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); topic_ = s; return s; @@ -1207,8 +1126,6 @@ public java.lang.String getTopic() { } } /** - * - * *
                  * Required. The Pub/Sub topic to which this subscription publishes. Formatted
                  * as:
            @@ -1216,14 +1133,15 @@ public java.lang.String getTopic() {
                  * 
            * * string topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for topic. */ - public com.google.protobuf.ByteString getTopicBytes() { + public com.google.protobuf.ByteString + getTopicBytes() { java.lang.Object ref = topic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); topic_ = b; return b; } else { @@ -1231,8 +1149,6 @@ public com.google.protobuf.ByteString getTopicBytes() { } } /** - * - * *
                  * Required. The Pub/Sub topic to which this subscription publishes. Formatted
                  * as:
            @@ -1240,22 +1156,18 @@ public com.google.protobuf.ByteString getTopicBytes() {
                  * 
            * * string topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The topic to set. * @return This builder for chaining. */ - public Builder setTopic(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTopic( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } topic_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                  * Required. The Pub/Sub topic to which this subscription publishes. Formatted
                  * as:
            @@ -1263,7 +1175,6 @@ public Builder setTopic(java.lang.String value) {
                  * 
            * * string topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTopic() { @@ -1273,8 +1184,6 @@ public Builder clearTopic() { return this; } /** - * - * *
                  * Required. The Pub/Sub topic to which this subscription publishes. Formatted
                  * as:
            @@ -1282,14 +1191,12 @@ public Builder clearTopic() {
                  * 
            * * string topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for topic to set. * @return This builder for chaining. */ - public Builder setTopicBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTopicBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); topic_ = value; bitField0_ |= 0x00000002; @@ -1299,8 +1206,6 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) { private java.lang.Object etag_ = ""; /** - * - * *
                  * The etag of the NotificationConfig.
                  * If included in the metadata of GetNotificationConfigRequest, the operation
            @@ -1308,13 +1213,13 @@ public Builder setTopicBytes(com.google.protobuf.ByteString value) {
                  * 
            * * string etag = 7; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -1323,8 +1228,6 @@ public java.lang.String getEtag() { } } /** - * - * *
                  * The etag of the NotificationConfig.
                  * If included in the metadata of GetNotificationConfigRequest, the operation
            @@ -1332,14 +1235,15 @@ public java.lang.String getEtag() {
                  * 
            * * string etag = 7; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -1347,8 +1251,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
                  * The etag of the NotificationConfig.
                  * If included in the metadata of GetNotificationConfigRequest, the operation
            @@ -1356,22 +1258,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
                  * 
            * * string etag = 7; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
                  * The etag of the NotificationConfig.
                  * If included in the metadata of GetNotificationConfigRequest, the operation
            @@ -1379,7 +1277,6 @@ public Builder setEtag(java.lang.String value) {
                  * 
            * * string etag = 7; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -1389,8 +1286,6 @@ public Builder clearEtag() { return this; } /** - * - * *
                  * The etag of the NotificationConfig.
                  * If included in the metadata of GetNotificationConfigRequest, the operation
            @@ -1398,14 +1293,12 @@ public Builder clearEtag() {
                  * 
            * * string etag = 7; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; @@ -1415,7 +1308,6 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList eventTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureEventTypesIsMutable() { if (!eventTypes_.isModifiable()) { eventTypes_ = new com.google.protobuf.LazyStringArrayList(eventTypes_); @@ -1423,46 +1315,38 @@ private void ensureEventTypesIsMutable() { bitField0_ |= 0x00000008; } /** - * - * *
                  * If present, only send notifications about listed event types. If
                  * empty, sent notifications for all event types.
                  * 
            * * repeated string event_types = 3; - * * @return A list containing the eventTypes. */ - public com.google.protobuf.ProtocolStringList getEventTypesList() { + public com.google.protobuf.ProtocolStringList + getEventTypesList() { eventTypes_.makeImmutable(); return eventTypes_; } /** - * - * *
                  * If present, only send notifications about listed event types. If
                  * empty, sent notifications for all event types.
                  * 
            * * repeated string event_types = 3; - * * @return The count of eventTypes. */ public int getEventTypesCount() { return eventTypes_.size(); } /** - * - * *
                  * If present, only send notifications about listed event types. If
                  * empty, sent notifications for all event types.
                  * 
            * * repeated string event_types = 3; - * * @param index The index of the element to return. * @return The eventTypes at the given index. */ @@ -1470,39 +1354,33 @@ public java.lang.String getEventTypes(int index) { return eventTypes_.get(index); } /** - * - * *
                  * If present, only send notifications about listed event types. If
                  * empty, sent notifications for all event types.
                  * 
            * * repeated string event_types = 3; - * * @param index The index of the value to return. * @return The bytes of the eventTypes at the given index. */ - public com.google.protobuf.ByteString getEventTypesBytes(int index) { + public com.google.protobuf.ByteString + getEventTypesBytes(int index) { return eventTypes_.getByteString(index); } /** - * - * *
                  * If present, only send notifications about listed event types. If
                  * empty, sent notifications for all event types.
                  * 
            * * repeated string event_types = 3; - * * @param index The index to set the value at. * @param value The eventTypes to set. * @return This builder for chaining. */ - public Builder setEventTypes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEventTypes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureEventTypesIsMutable(); eventTypes_.set(index, value); bitField0_ |= 0x00000008; @@ -1510,22 +1388,18 @@ public Builder setEventTypes(int index, java.lang.String value) { return this; } /** - * - * *
                  * If present, only send notifications about listed event types. If
                  * empty, sent notifications for all event types.
                  * 
            * * repeated string event_types = 3; - * * @param value The eventTypes to add. * @return This builder for chaining. */ - public Builder addEventTypes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addEventTypes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureEventTypesIsMutable(); eventTypes_.add(value); bitField0_ |= 0x00000008; @@ -1533,61 +1407,53 @@ public Builder addEventTypes(java.lang.String value) { return this; } /** - * - * *
                  * If present, only send notifications about listed event types. If
                  * empty, sent notifications for all event types.
                  * 
            * * repeated string event_types = 3; - * * @param values The eventTypes to add. * @return This builder for chaining. */ - public Builder addAllEventTypes(java.lang.Iterable values) { + public Builder addAllEventTypes( + java.lang.Iterable values) { ensureEventTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, eventTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, eventTypes_); bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
                  * If present, only send notifications about listed event types. If
                  * empty, sent notifications for all event types.
                  * 
            * * repeated string event_types = 3; - * * @return This builder for chaining. */ public Builder clearEventTypes() { - eventTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; + eventTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); return this; } /** - * - * *
                  * If present, only send notifications about listed event types. If
                  * empty, sent notifications for all event types.
                  * 
            * * repeated string event_types = 3; - * * @param value The bytes of the eventTypes to add. * @return This builder for chaining. */ - public Builder addEventTypesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addEventTypesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureEventTypesIsMutable(); eventTypes_.add(value); @@ -1596,8 +1462,8 @@ public Builder addEventTypesBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.MapField customAttributes_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> customAttributes_; private com.google.protobuf.MapField internalGetCustomAttributes() { if (customAttributes_ == null) { @@ -1606,13 +1472,11 @@ public Builder addEventTypesBytes(com.google.protobuf.ByteString value) { } return customAttributes_; } - private com.google.protobuf.MapField internalGetMutableCustomAttributes() { if (customAttributes_ == null) { - customAttributes_ = - com.google.protobuf.MapField.newMapField( - CustomAttributesDefaultEntryHolder.defaultEntry); + customAttributes_ = com.google.protobuf.MapField.newMapField( + CustomAttributesDefaultEntryHolder.defaultEntry); } if (!customAttributes_.isMutable()) { customAttributes_ = customAttributes_.copy(); @@ -1621,13 +1485,10 @@ public Builder addEventTypesBytes(com.google.protobuf.ByteString value) { onChanged(); return customAttributes_; } - public int getCustomAttributesCount() { return internalGetCustomAttributes().getMap().size(); } /** - * - * *
                  * A list of additional attributes to attach to each Pub/Sub
                  * message published for this NotificationConfig.
            @@ -1636,21 +1497,20 @@ public int getCustomAttributesCount() {
                  * map<string, string> custom_attributes = 4;
                  */
                 @java.lang.Override
            -    public boolean containsCustomAttributes(java.lang.String key) {
            -      if (key == null) {
            -        throw new NullPointerException("map key");
            -      }
            +    public boolean containsCustomAttributes(
            +        java.lang.String key) {
            +      if (key == null) { throw new NullPointerException("map key"); }
                   return internalGetCustomAttributes().getMap().containsKey(key);
                 }
            -    /** Use {@link #getCustomAttributesMap()} instead. */
            +    /**
            +     * Use {@link #getCustomAttributesMap()} instead.
            +     */
                 @java.lang.Override
                 @java.lang.Deprecated
                 public java.util.Map getCustomAttributes() {
                   return getCustomAttributesMap();
                 }
                 /**
            -     *
            -     *
                  * 
                  * A list of additional attributes to attach to each Pub/Sub
                  * message published for this NotificationConfig.
            @@ -1663,8 +1523,6 @@ public java.util.Map getCustomAttributesMap(
                   return internalGetCustomAttributes().getMap();
                 }
                 /**
            -     *
            -     *
                  * 
                  * A list of additional attributes to attach to each Pub/Sub
                  * message published for this NotificationConfig.
            @@ -1673,20 +1531,17 @@ public java.util.Map getCustomAttributesMap(
                  * map<string, string> custom_attributes = 4;
                  */
                 @java.lang.Override
            -    public /* nullable */ java.lang.String getCustomAttributesOrDefault(
            +    public /* nullable */
            +java.lang.String getCustomAttributesOrDefault(
                     java.lang.String key,
                     /* nullable */
            -        java.lang.String defaultValue) {
            -      if (key == null) {
            -        throw new NullPointerException("map key");
            -      }
            +java.lang.String defaultValue) {
            +      if (key == null) { throw new NullPointerException("map key"); }
                   java.util.Map map =
                       internalGetCustomAttributes().getMap();
                   return map.containsKey(key) ? map.get(key) : defaultValue;
                 }
                 /**
            -     *
            -     *
                  * 
                  * A list of additional attributes to attach to each Pub/Sub
                  * message published for this NotificationConfig.
            @@ -1695,10 +1550,9 @@ public java.util.Map getCustomAttributesMap(
                  * map<string, string> custom_attributes = 4;
                  */
                 @java.lang.Override
            -    public java.lang.String getCustomAttributesOrThrow(java.lang.String key) {
            -      if (key == null) {
            -        throw new NullPointerException("map key");
            -      }
            +    public java.lang.String getCustomAttributesOrThrow(
            +        java.lang.String key) {
            +      if (key == null) { throw new NullPointerException("map key"); }
                   java.util.Map map =
                       internalGetCustomAttributes().getMap();
                   if (!map.containsKey(key)) {
            @@ -1706,15 +1560,13 @@ public java.lang.String getCustomAttributesOrThrow(java.lang.String key) {
                   }
                   return map.get(key);
                 }
            -
                 public Builder clearCustomAttributes() {
                   bitField0_ = (bitField0_ & ~0x00000010);
            -      internalGetMutableCustomAttributes().getMutableMap().clear();
            +      internalGetMutableCustomAttributes().getMutableMap()
            +          .clear();
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * A list of additional attributes to attach to each Pub/Sub
                  * message published for this NotificationConfig.
            @@ -1722,22 +1574,23 @@ public Builder clearCustomAttributes() {
                  *
                  * map<string, string> custom_attributes = 4;
                  */
            -    public Builder removeCustomAttributes(java.lang.String key) {
            -      if (key == null) {
            -        throw new NullPointerException("map key");
            -      }
            -      internalGetMutableCustomAttributes().getMutableMap().remove(key);
            +    public Builder removeCustomAttributes(
            +        java.lang.String key) {
            +      if (key == null) { throw new NullPointerException("map key"); }
            +      internalGetMutableCustomAttributes().getMutableMap()
            +          .remove(key);
                   return this;
                 }
            -    /** Use alternate mutation accessors instead. */
            +    /**
            +     * Use alternate mutation accessors instead.
            +     */
                 @java.lang.Deprecated
            -    public java.util.Map getMutableCustomAttributes() {
            +    public java.util.Map
            +        getMutableCustomAttributes() {
                   bitField0_ |= 0x00000010;
                   return internalGetMutableCustomAttributes().getMutableMap();
                 }
                 /**
            -     *
            -     *
                  * 
                  * A list of additional attributes to attach to each Pub/Sub
                  * message published for this NotificationConfig.
            @@ -1745,20 +1598,17 @@ public java.util.Map getMutableCustomAttribu
                  *
                  * map<string, string> custom_attributes = 4;
                  */
            -    public Builder putCustomAttributes(java.lang.String key, java.lang.String value) {
            -      if (key == null) {
            -        throw new NullPointerException("map key");
            -      }
            -      if (value == null) {
            -        throw new NullPointerException("map value");
            -      }
            -      internalGetMutableCustomAttributes().getMutableMap().put(key, value);
            +    public Builder putCustomAttributes(
            +        java.lang.String key,
            +        java.lang.String value) {
            +      if (key == null) { throw new NullPointerException("map key"); }
            +      if (value == null) { throw new NullPointerException("map value"); }
            +      internalGetMutableCustomAttributes().getMutableMap()
            +          .put(key, value);
                   bitField0_ |= 0x00000010;
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * A list of additional attributes to attach to each Pub/Sub
                  * message published for this NotificationConfig.
            @@ -1768,28 +1618,27 @@ public Builder putCustomAttributes(java.lang.String key, java.lang.String value)
                  */
                 public Builder putAllCustomAttributes(
                     java.util.Map values) {
            -      internalGetMutableCustomAttributes().getMutableMap().putAll(values);
            +      internalGetMutableCustomAttributes().getMutableMap()
            +          .putAll(values);
                   bitField0_ |= 0x00000010;
                   return this;
                 }
             
                 private java.lang.Object objectNamePrefix_ = "";
                 /**
            -     *
            -     *
                  * 
                  * If present, only apply this NotificationConfig to object names that
                  * begin with this prefix.
                  * 
            * * string object_name_prefix = 5; - * * @return The objectNamePrefix. */ public java.lang.String getObjectNamePrefix() { java.lang.Object ref = objectNamePrefix_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); objectNamePrefix_ = s; return s; @@ -1798,22 +1647,21 @@ public java.lang.String getObjectNamePrefix() { } } /** - * - * *
                  * If present, only apply this NotificationConfig to object names that
                  * begin with this prefix.
                  * 
            * * string object_name_prefix = 5; - * * @return The bytes for objectNamePrefix. */ - public com.google.protobuf.ByteString getObjectNamePrefixBytes() { + public com.google.protobuf.ByteString + getObjectNamePrefixBytes() { java.lang.Object ref = objectNamePrefix_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); objectNamePrefix_ = b; return b; } else { @@ -1821,37 +1669,30 @@ public com.google.protobuf.ByteString getObjectNamePrefixBytes() { } } /** - * - * *
                  * If present, only apply this NotificationConfig to object names that
                  * begin with this prefix.
                  * 
            * * string object_name_prefix = 5; - * * @param value The objectNamePrefix to set. * @return This builder for chaining. */ - public Builder setObjectNamePrefix(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setObjectNamePrefix( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } objectNamePrefix_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
                  * If present, only apply this NotificationConfig to object names that
                  * begin with this prefix.
                  * 
            * * string object_name_prefix = 5; - * * @return This builder for chaining. */ public Builder clearObjectNamePrefix() { @@ -1861,22 +1702,18 @@ public Builder clearObjectNamePrefix() { return this; } /** - * - * *
                  * If present, only apply this NotificationConfig to object names that
                  * begin with this prefix.
                  * 
            * * string object_name_prefix = 5; - * * @param value The bytes for objectNamePrefix to set. * @return This builder for chaining. */ - public Builder setObjectNamePrefixBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setObjectNamePrefixBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); objectNamePrefix_ = value; bitField0_ |= 0x00000020; @@ -1886,20 +1723,18 @@ public Builder setObjectNamePrefixBytes(com.google.protobuf.ByteString value) { private java.lang.Object payloadFormat_ = ""; /** - * - * *
                  * Required. The desired content of the Payload.
                  * 
            * * string payload_format = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The payloadFormat. */ public java.lang.String getPayloadFormat() { java.lang.Object ref = payloadFormat_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); payloadFormat_ = s; return s; @@ -1908,21 +1743,20 @@ public java.lang.String getPayloadFormat() { } } /** - * - * *
                  * Required. The desired content of the Payload.
                  * 
            * * string payload_format = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for payloadFormat. */ - public com.google.protobuf.ByteString getPayloadFormatBytes() { + public com.google.protobuf.ByteString + getPayloadFormatBytes() { java.lang.Object ref = payloadFormat_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); payloadFormat_ = b; return b; } else { @@ -1930,35 +1764,28 @@ public com.google.protobuf.ByteString getPayloadFormatBytes() { } } /** - * - * *
                  * Required. The desired content of the Payload.
                  * 
            * * string payload_format = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The payloadFormat to set. * @return This builder for chaining. */ - public Builder setPayloadFormat(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPayloadFormat( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } payloadFormat_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
                  * Required. The desired content of the Payload.
                  * 
            * * string payload_format = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPayloadFormat() { @@ -1968,30 +1795,26 @@ public Builder clearPayloadFormat() { return this; } /** - * - * *
                  * Required. The desired content of the Payload.
                  * 
            * * string payload_format = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for payloadFormat to set. * @return This builder for chaining. */ - public Builder setPayloadFormatBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPayloadFormatBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); payloadFormat_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2001,12 +1824,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.NotificationConfig) } // @@protoc_insertion_point(class_scope:google.storage.v2.NotificationConfig) private static final com.google.storage.v2.NotificationConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.NotificationConfig(); } @@ -2015,27 +1838,27 @@ public static com.google.storage.v2.NotificationConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NotificationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NotificationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2050,4 +1873,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.NotificationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfigName.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfigName.java similarity index 100% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfigName.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfigName.java diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfigOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfigOrBuilder.java similarity index 77% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfigOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/NotificationConfigOrBuilder.java index 56cb9e6c3b..ba0b8ea9a3 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,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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:
            @@ -35,13 +17,10 @@ public interface NotificationConfigOrBuilder
                * 
            * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
                * Required. The resource name of this NotificationConfig.
                * Format:
            @@ -50,14 +29,12 @@ public interface NotificationConfigOrBuilder
                * 
            * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
                * Required. The Pub/Sub topic to which this subscription publishes. Formatted
                * as:
            @@ -65,13 +42,10 @@ public interface NotificationConfigOrBuilder
                * 
            * * string topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The topic. */ java.lang.String getTopic(); /** - * - * *
                * Required. The Pub/Sub topic to which this subscription publishes. Formatted
                * as:
            @@ -79,14 +53,12 @@ public interface NotificationConfigOrBuilder
                * 
            * * string topic = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for topic. */ - com.google.protobuf.ByteString getTopicBytes(); + com.google.protobuf.ByteString + getTopicBytes(); /** - * - * *
                * The etag of the NotificationConfig.
                * If included in the metadata of GetNotificationConfigRequest, the operation
            @@ -94,13 +66,10 @@ public interface NotificationConfigOrBuilder
                * 
            * * string etag = 7; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
                * The etag of the NotificationConfig.
                * If included in the metadata of GetNotificationConfigRequest, the operation
            @@ -108,69 +77,57 @@ public interface NotificationConfigOrBuilder
                * 
            * * string etag = 7; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
                * If present, only send notifications about listed event types. If
                * empty, sent notifications for all event types.
                * 
            * * repeated string event_types = 3; - * * @return A list containing the eventTypes. */ - java.util.List getEventTypesList(); + java.util.List + getEventTypesList(); /** - * - * *
                * If present, only send notifications about listed event types. If
                * empty, sent notifications for all event types.
                * 
            * * repeated string event_types = 3; - * * @return The count of eventTypes. */ int getEventTypesCount(); /** - * - * *
                * If present, only send notifications about listed event types. If
                * empty, sent notifications for all event types.
                * 
            * * repeated string event_types = 3; - * * @param index The index of the element to return. * @return The eventTypes at the given index. */ java.lang.String getEventTypes(int index); /** - * - * *
                * If present, only send notifications about listed event types. If
                * empty, sent notifications for all event types.
                * 
            * * repeated string event_types = 3; - * * @param index The index of the value to return. * @return The bytes of the eventTypes at the given index. */ - com.google.protobuf.ByteString getEventTypesBytes(int index); + com.google.protobuf.ByteString + getEventTypesBytes(int index); /** - * - * *
                * A list of additional attributes to attach to each Pub/Sub
                * message published for this NotificationConfig.
            @@ -180,8 +137,6 @@ public interface NotificationConfigOrBuilder
                */
               int getCustomAttributesCount();
               /**
            -   *
            -   *
                * 
                * A list of additional attributes to attach to each Pub/Sub
                * message published for this NotificationConfig.
            @@ -189,13 +144,15 @@ public interface NotificationConfigOrBuilder
                *
                * map<string, string> custom_attributes = 4;
                */
            -  boolean containsCustomAttributes(java.lang.String key);
            -  /** Use {@link #getCustomAttributesMap()} instead. */
            +  boolean containsCustomAttributes(
            +      java.lang.String key);
            +  /**
            +   * Use {@link #getCustomAttributesMap()} instead.
            +   */
               @java.lang.Deprecated
            -  java.util.Map getCustomAttributes();
            +  java.util.Map
            +  getCustomAttributes();
               /**
            -   *
            -   *
                * 
                * A list of additional attributes to attach to each Pub/Sub
                * message published for this NotificationConfig.
            @@ -203,10 +160,9 @@ public interface NotificationConfigOrBuilder
                *
                * map<string, string> custom_attributes = 4;
                */
            -  java.util.Map getCustomAttributesMap();
            +  java.util.Map
            +  getCustomAttributesMap();
               /**
            -   *
            -   *
                * 
                * A list of additional attributes to attach to each Pub/Sub
                * message published for this NotificationConfig.
            @@ -215,13 +171,11 @@ public interface NotificationConfigOrBuilder
                * map<string, string> custom_attributes = 4;
                */
               /* nullable */
            -  java.lang.String getCustomAttributesOrDefault(
            +java.lang.String getCustomAttributesOrDefault(
                   java.lang.String key,
                   /* nullable */
            -      java.lang.String defaultValue);
            +java.lang.String defaultValue);
               /**
            -   *
            -   *
                * 
                * A list of additional attributes to attach to each Pub/Sub
                * message published for this NotificationConfig.
            @@ -229,57 +183,48 @@ java.lang.String getCustomAttributesOrDefault(
                *
                * map<string, string> custom_attributes = 4;
                */
            -  java.lang.String getCustomAttributesOrThrow(java.lang.String key);
            +  java.lang.String getCustomAttributesOrThrow(
            +      java.lang.String key);
             
               /**
            -   *
            -   *
                * 
                * If present, only apply this NotificationConfig to object names that
                * begin with this prefix.
                * 
            * * string object_name_prefix = 5; - * * @return The objectNamePrefix. */ java.lang.String getObjectNamePrefix(); /** - * - * *
                * If present, only apply this NotificationConfig to object names that
                * begin with this prefix.
                * 
            * * string object_name_prefix = 5; - * * @return The bytes for objectNamePrefix. */ - com.google.protobuf.ByteString getObjectNamePrefixBytes(); + com.google.protobuf.ByteString + getObjectNamePrefixBytes(); /** - * - * *
                * Required. The desired content of the Payload.
                * 
            * * string payload_format = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The payloadFormat. */ java.lang.String getPayloadFormat(); /** - * - * *
                * Required. The desired content of the Payload.
                * 
            * * string payload_format = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for payloadFormat. */ - com.google.protobuf.ByteString getPayloadFormatBytes(); + com.google.protobuf.ByteString + getPayloadFormatBytes(); } diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Object.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Object.java similarity index 73% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Object.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/Object.java index 7e4d6f90d4..c9d2d20e6a 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,24 +5,21 @@ 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_ = ""; @@ -54,11 +36,13 @@ private Object() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Object(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Object_descriptor; } @@ -70,27 +54,23 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl 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
            @@ -102,7 +82,6 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
                * 
            * * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ @java.lang.Override @@ -111,15 +90,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
                * Immutable. The name of this object. Nearly any sequence of unicode
                * characters is valid. See
            @@ -131,15 +109,16 @@ public java.lang.String getName() {
                * 
            * * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -148,20 +127,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int BUCKET_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object bucket_ = ""; /** - * - * *
                * Immutable. The name of the bucket containing this object.
                * 
            * - * - * string bucket = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bucket. */ @java.lang.Override @@ -170,31 +143,29 @@ public java.lang.String getBucket() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucket_ = s; return s; } } /** - * - * *
                * Immutable. The name of the bucket containing this object.
                * 
            * - * - * string bucket = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for bucket. */ @java.lang.Override - public com.google.protobuf.ByteString getBucketBytes() { + public com.google.protobuf.ByteString + getBucketBytes() { java.lang.Object ref = bucket_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); bucket_ = b; return b; } else { @@ -203,12 +174,9 @@ public com.google.protobuf.ByteString getBucketBytes() { } public static final int ETAG_FIELD_NUMBER = 27; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
                * The etag of the object.
                * If included in the metadata of an update or delete request message, the
            @@ -217,7 +185,6 @@ public com.google.protobuf.ByteString getBucketBytes() {
                * 
            * * string etag = 27; - * * @return The etag. */ @java.lang.Override @@ -226,15 +193,14 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
                * The etag of the object.
                * If included in the metadata of an update or delete request message, the
            @@ -243,15 +209,16 @@ public java.lang.String getEtag() {
                * 
            * * string etag = 27; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -262,15 +229,12 @@ public com.google.protobuf.ByteString getEtagBytes() { public static final int GENERATION_FIELD_NUMBER = 3; private long generation_ = 0L; /** - * - * *
                * Immutable. The content generation of this object. Used for object
                * versioning.
                * 
            * * int64 generation = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The generation. */ @java.lang.Override @@ -281,8 +245,6 @@ public long getGeneration() { public static final int METAGENERATION_FIELD_NUMBER = 4; private long metageneration_ = 0L; /** - * - * *
                * Output only. The version of the metadata for this generation of this
                * object. Used for preconditions and for detecting changes in metadata. A
            @@ -291,7 +253,6 @@ public long getGeneration() {
                * 
            * * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The metageneration. */ @java.lang.Override @@ -300,18 +261,14 @@ public long getMetageneration() { } public static final int STORAGE_CLASS_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object storageClass_ = ""; /** - * - * *
                * Storage class of the object.
                * 
            * * string storage_class = 5; - * * @return The storageClass. */ @java.lang.Override @@ -320,29 +277,29 @@ public java.lang.String getStorageClass() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); storageClass_ = s; return s; } } /** - * - * *
                * Storage class of the object.
                * 
            * * string storage_class = 5; - * * @return The bytes for storageClass. */ @java.lang.Override - public com.google.protobuf.ByteString getStorageClassBytes() { + public com.google.protobuf.ByteString + getStorageClassBytes() { java.lang.Object ref = storageClass_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); storageClass_ = b; return b; } else { @@ -353,15 +310,12 @@ public com.google.protobuf.ByteString getStorageClassBytes() { public static final int SIZE_FIELD_NUMBER = 6; private long size_ = 0L; /** - * - * *
                * Output only. Content-Length of the object data in bytes, matching
                * [https://tools.ietf.org/html/rfc7230#section-3.3.2][RFC 7230 §3.3.2].
                * 
            * * int64 size = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The size. */ @java.lang.Override @@ -370,19 +324,15 @@ public long getSize() { } public static final int CONTENT_ENCODING_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object contentEncoding_ = ""; /** - * - * *
                * Content-Encoding of the object data, matching
                * [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2]
                * 
            * * string content_encoding = 7; - * * @return The contentEncoding. */ @java.lang.Override @@ -391,30 +341,30 @@ public java.lang.String getContentEncoding() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contentEncoding_ = s; return s; } } /** - * - * *
                * Content-Encoding of the object data, matching
                * [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2]
                * 
            * * string content_encoding = 7; - * * @return The bytes for contentEncoding. */ @java.lang.Override - public com.google.protobuf.ByteString getContentEncodingBytes() { + public com.google.protobuf.ByteString + getContentEncodingBytes() { java.lang.Object ref = contentEncoding_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); contentEncoding_ = b; return b; } else { @@ -423,19 +373,15 @@ public com.google.protobuf.ByteString getContentEncodingBytes() { } public static final int CONTENT_DISPOSITION_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object contentDisposition_ = ""; /** - * - * *
                * Content-Disposition of the object data, matching
                * [https://tools.ietf.org/html/rfc6266][RFC 6266].
                * 
            * * string content_disposition = 8; - * * @return The contentDisposition. */ @java.lang.Override @@ -444,30 +390,30 @@ public java.lang.String getContentDisposition() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contentDisposition_ = s; return s; } } /** - * - * *
                * Content-Disposition of the object data, matching
                * [https://tools.ietf.org/html/rfc6266][RFC 6266].
                * 
            * * string content_disposition = 8; - * * @return The bytes for contentDisposition. */ @java.lang.Override - public com.google.protobuf.ByteString getContentDispositionBytes() { + public com.google.protobuf.ByteString + getContentDispositionBytes() { java.lang.Object ref = contentDisposition_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); contentDisposition_ = b; return b; } else { @@ -476,12 +422,9 @@ public com.google.protobuf.ByteString getContentDispositionBytes() { } public static final int CACHE_CONTROL_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private volatile java.lang.Object cacheControl_ = ""; /** - * - * *
                * Cache-Control directive for the object data, matching
                * [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2].
            @@ -490,7 +433,6 @@ public com.google.protobuf.ByteString getContentDispositionBytes() {
                * 
            * * string cache_control = 9; - * * @return The cacheControl. */ @java.lang.Override @@ -499,15 +441,14 @@ public java.lang.String getCacheControl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cacheControl_ = s; return s; } } /** - * - * *
                * Cache-Control directive for the object data, matching
                * [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2].
            @@ -516,15 +457,16 @@ public java.lang.String getCacheControl() {
                * 
            * * string cache_control = 9; - * * @return The bytes for cacheControl. */ @java.lang.Override - public com.google.protobuf.ByteString getCacheControlBytes() { + public com.google.protobuf.ByteString + getCacheControlBytes() { java.lang.Object ref = cacheControl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cacheControl_ = b; return b; } else { @@ -533,12 +475,9 @@ public com.google.protobuf.ByteString getCacheControlBytes() { } public static final int ACL_FIELD_NUMBER = 10; - @SuppressWarnings("serial") private java.util.List acl_; /** - * - * *
                * Access controls on the object.
                * If iam_config.uniform_bucket_level_access is enabled on the parent
            @@ -552,8 +491,6 @@ public java.util.List getAclList() {
                 return acl_;
               }
               /**
            -   *
            -   *
                * 
                * Access controls on the object.
                * If iam_config.uniform_bucket_level_access is enabled on the parent
            @@ -563,13 +500,11 @@ public java.util.List getAclList() {
                * repeated .google.storage.v2.ObjectAccessControl acl = 10;
                */
               @java.lang.Override
            -  public java.util.List
            +  public java.util.List 
                   getAclOrBuilderList() {
                 return acl_;
               }
               /**
            -   *
            -   *
                * 
                * Access controls on the object.
                * If iam_config.uniform_bucket_level_access is enabled on the parent
            @@ -583,8 +518,6 @@ public int getAclCount() {
                 return acl_.size();
               }
               /**
            -   *
            -   *
                * 
                * Access controls on the object.
                * If iam_config.uniform_bucket_level_access is enabled on the parent
            @@ -598,8 +531,6 @@ public com.google.storage.v2.ObjectAccessControl getAcl(int index) {
                 return acl_.get(index);
               }
               /**
            -   *
            -   *
                * 
                * Access controls on the object.
                * If iam_config.uniform_bucket_level_access is enabled on the parent
            @@ -609,24 +540,21 @@ public com.google.storage.v2.ObjectAccessControl getAcl(int index) {
                * repeated .google.storage.v2.ObjectAccessControl acl = 10;
                */
               @java.lang.Override
            -  public com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder(int index) {
            +  public com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder(
            +      int index) {
                 return acl_.get(index);
               }
             
               public static final int CONTENT_LANGUAGE_FIELD_NUMBER = 11;
            -
               @SuppressWarnings("serial")
               private volatile java.lang.Object contentLanguage_ = "";
               /**
            -   *
            -   *
                * 
                * Content-Language of the object data, matching
                * [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2].
                * 
            * * string content_language = 11; - * * @return The contentLanguage. */ @java.lang.Override @@ -635,30 +563,30 @@ public java.lang.String getContentLanguage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contentLanguage_ = s; return s; } } /** - * - * *
                * Content-Language of the object data, matching
                * [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2].
                * 
            * * string content_language = 11; - * * @return The bytes for contentLanguage. */ @java.lang.Override - public com.google.protobuf.ByteString getContentLanguageBytes() { + public com.google.protobuf.ByteString + getContentLanguageBytes() { java.lang.Object ref = contentLanguage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); contentLanguage_ = b; return b; } else { @@ -669,16 +597,12 @@ public com.google.protobuf.ByteString getContentLanguageBytes() { public static final int DELETE_TIME_FIELD_NUMBER = 12; private com.google.protobuf.Timestamp deleteTime_; /** - * - * *
                * Output only. If this object is noncurrent, this is the time when the object
                * became noncurrent.
                * 
            * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -686,16 +610,12 @@ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * Output only. If this object is noncurrent, this is the time when the object
                * became noncurrent.
                * 
            * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ @java.lang.Override @@ -703,15 +623,12 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** - * - * *
                * Output only. If this object is noncurrent, this is the time when the object
                * became noncurrent.
                * 
            * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -719,12 +636,9 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { } public static final int CONTENT_TYPE_FIELD_NUMBER = 13; - @SuppressWarnings("serial") private volatile java.lang.Object contentType_ = ""; /** - * - * *
                * Content-Type of the object data, matching
                * [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5].
            @@ -733,7 +647,6 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
                * 
            * * string content_type = 13; - * * @return The contentType. */ @java.lang.Override @@ -742,15 +655,14 @@ public java.lang.String getContentType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contentType_ = s; return s; } } /** - * - * *
                * Content-Type of the object data, matching
                * [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5].
            @@ -759,15 +671,16 @@ public java.lang.String getContentType() {
                * 
            * * string content_type = 13; - * * @return The bytes for contentType. */ @java.lang.Override - public com.google.protobuf.ByteString getContentTypeBytes() { + public com.google.protobuf.ByteString + getContentTypeBytes() { java.lang.Object ref = contentType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); contentType_ = b; return b; } else { @@ -778,15 +691,11 @@ public com.google.protobuf.ByteString getContentTypeBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 14; private com.google.protobuf.Timestamp createTime_; /** - * - * *
                * Output only. The creation time of the object.
                * 
            * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -794,15 +703,11 @@ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                * Output only. The creation time of the object.
                * 
            * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -810,14 +715,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
                * Output only. The creation time of the object.
                * 
            * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -827,15 +729,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int COMPONENT_COUNT_FIELD_NUMBER = 15; private int componentCount_ = 0; /** - * - * *
                * Output only. Number of underlying components that make up this object.
                * Components are accumulated by compose operations.
                * 
            * * int32 component_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The componentCount. */ @java.lang.Override @@ -846,17 +745,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 @@ -864,49 +758,34 @@ public boolean hasChecksums() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
                * Output only. Hashes for the data part of this object. This field is used
                * for output only and will be silently ignored if provided in requests.
                * 
            * - * - * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The checksums. */ @java.lang.Override public com.google.storage.v2.ObjectChecksums getChecksums() { - return checksums_ == null - ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() - : checksums_; + return checksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : checksums_; } /** - * - * *
                * Output only. Hashes for the data part of this object. This field is used
                * for output only and will be silently ignored if provided in requests.
                * 
            * - * - * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.storage.v2.ObjectChecksumsOrBuilder getChecksumsOrBuilder() { - return checksums_ == null - ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() - : checksums_; + return checksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : checksums_; } public static final int UPDATE_TIME_FIELD_NUMBER = 17; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
                * Output only. The modification time of the object metadata.
                * Set initially to object creation time and then updated whenever any
            @@ -916,9 +795,7 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getChecksumsOrBuilder() {
                * Object Lifecycle Configuration.
                * 
            * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -926,8 +803,6 @@ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
                * Output only. The modification time of the object metadata.
                * Set initially to object creation time and then updated whenever any
            @@ -937,9 +812,7 @@ public boolean hasUpdateTime() {
                * Object Lifecycle Configuration.
                * 
            * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -947,8 +820,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
                * Output only. The modification time of the object metadata.
                * Set initially to object creation time and then updated whenever any
            @@ -958,8 +829,7 @@ public com.google.protobuf.Timestamp getUpdateTime() {
                * Object Lifecycle Configuration.
                * 
            * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -967,19 +837,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int KMS_KEY_FIELD_NUMBER = 18; - @SuppressWarnings("serial") private volatile java.lang.Object kmsKey_ = ""; /** - * - * *
                * Cloud KMS Key used to encrypt this object, if the object is encrypted by
                * such a key.
                * 
            * * string kms_key = 18 [(.google.api.resource_reference) = { ... } - * * @return The kmsKey. */ @java.lang.Override @@ -988,30 +854,30 @@ public java.lang.String getKmsKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKey_ = s; return s; } } /** - * - * *
                * Cloud KMS Key used to encrypt this object, if the object is encrypted by
                * such a key.
                * 
            * * string kms_key = 18 [(.google.api.resource_reference) = { ... } - * * @return The bytes for kmsKey. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyBytes() { + public com.google.protobuf.ByteString + getKmsKeyBytes() { java.lang.Object ref = kmsKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKey_ = b; return b; } else { @@ -1022,17 +888,12 @@ public com.google.protobuf.ByteString getKmsKeyBytes() { public static final int UPDATE_STORAGE_CLASS_TIME_FIELD_NUMBER = 19; private com.google.protobuf.Timestamp updateStorageClassTime_; /** - * - * *
                * Output only. The time at which the object's storage class was last changed.
                * When the object is initially created, it will be set to time_created.
                * 
            * - * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateStorageClassTime field is set. */ @java.lang.Override @@ -1040,49 +901,34 @@ public boolean hasUpdateStorageClassTime() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
                * Output only. The time at which the object's storage class was last changed.
                * When the object is initially created, it will be set to time_created.
                * 
            * - * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateStorageClassTime. */ @java.lang.Override public com.google.protobuf.Timestamp getUpdateStorageClassTime() { - return updateStorageClassTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateStorageClassTime_; + return updateStorageClassTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateStorageClassTime_; } /** - * - * *
                * Output only. The time at which the object's storage class was last changed.
                * When the object is initially created, it will be set to time_created.
                * 
            * - * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateStorageClassTimeOrBuilder() { - return updateStorageClassTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateStorageClassTime_; + return updateStorageClassTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateStorageClassTime_; } public static final int TEMPORARY_HOLD_FIELD_NUMBER = 20; private boolean temporaryHold_ = false; /** - * - * *
                * Whether an object is under temporary hold. While this flag is set to true,
                * the object is protected against deletion and overwrites.  A common use case
            @@ -1092,7 +938,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateStorageClassTimeOrBuilder
                * 
            * * bool temporary_hold = 20; - * * @return The temporaryHold. */ @java.lang.Override @@ -1103,8 +948,6 @@ public boolean getTemporaryHold() { public static final int RETENTION_EXPIRE_TIME_FIELD_NUMBER = 21; private com.google.protobuf.Timestamp retentionExpireTime_; /** - * - * *
                * A server-determined value that specifies the earliest time that the
                * object's retention period expires.
            @@ -1116,7 +959,6 @@ public boolean getTemporaryHold() {
                * 
            * * .google.protobuf.Timestamp retention_expire_time = 21; - * * @return Whether the retentionExpireTime field is set. */ @java.lang.Override @@ -1124,8 +966,6 @@ public boolean hasRetentionExpireTime() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
                * A server-determined value that specifies the earliest time that the
                * object's retention period expires.
            @@ -1137,18 +977,13 @@ public boolean hasRetentionExpireTime() {
                * 
            * * .google.protobuf.Timestamp retention_expire_time = 21; - * * @return The retentionExpireTime. */ @java.lang.Override public com.google.protobuf.Timestamp getRetentionExpireTime() { - return retentionExpireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : retentionExpireTime_; + return retentionExpireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : retentionExpireTime_; } /** - * - * *
                * A server-determined value that specifies the earliest time that the
                * object's retention period expires.
            @@ -1163,40 +998,36 @@ public com.google.protobuf.Timestamp getRetentionExpireTime() {
                */
               @java.lang.Override
               public com.google.protobuf.TimestampOrBuilder getRetentionExpireTimeOrBuilder() {
            -    return retentionExpireTime_ == null
            -        ? com.google.protobuf.Timestamp.getDefaultInstance()
            -        : retentionExpireTime_;
            +    return retentionExpireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : retentionExpireTime_;
               }
             
               public static final int METADATA_FIELD_NUMBER = 22;
            -
               private static final class MetadataDefaultEntryHolder {
            -    static final com.google.protobuf.MapEntry defaultEntry =
            -        com.google.protobuf.MapEntry.newDefaultInstance(
            -            com.google.storage.v2.StorageProto
            -                .internal_static_google_storage_v2_Object_MetadataEntry_descriptor,
            -            com.google.protobuf.WireFormat.FieldType.STRING,
            -            "",
            -            com.google.protobuf.WireFormat.FieldType.STRING,
            -            "");
            +    static final com.google.protobuf.MapEntry<
            +        java.lang.String, java.lang.String> defaultEntry =
            +            com.google.protobuf.MapEntry
            +            .newDefaultInstance(
            +                com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Object_MetadataEntry_descriptor, 
            +                com.google.protobuf.WireFormat.FieldType.STRING,
            +                "",
            +                com.google.protobuf.WireFormat.FieldType.STRING,
            +                "");
               }
            -
               @SuppressWarnings("serial")
            -  private com.google.protobuf.MapField metadata_;
            -
            -  private com.google.protobuf.MapField internalGetMetadata() {
            +  private com.google.protobuf.MapField<
            +      java.lang.String, java.lang.String> metadata_;
            +  private com.google.protobuf.MapField
            +  internalGetMetadata() {
                 if (metadata_ == null) {
            -      return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry);
            +      return com.google.protobuf.MapField.emptyMapField(
            +          MetadataDefaultEntryHolder.defaultEntry);
                 }
                 return metadata_;
               }
            -
               public int getMetadataCount() {
                 return internalGetMetadata().getMap().size();
               }
               /**
            -   *
            -   *
                * 
                * User-provided metadata, in key/value pairs.
                * 
            @@ -1204,21 +1035,20 @@ public int getMetadataCount() { * map<string, string> metadata = 22; */ @java.lang.Override - public boolean containsMetadata(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsMetadata( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetMetadata().getMap().containsKey(key); } - /** Use {@link #getMetadataMap()} instead. */ + /** + * Use {@link #getMetadataMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMetadata() { return getMetadataMap(); } /** - * - * *
                * User-provided metadata, in key/value pairs.
                * 
            @@ -1230,8 +1060,6 @@ public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** - * - * *
                * User-provided metadata, in key/value pairs.
                * 
            @@ -1239,19 +1067,17 @@ public java.util.Map getMetadataMap() { * map<string, string> metadata = 22; */ @java.lang.Override - public /* nullable */ java.lang.String getMetadataOrDefault( + public /* nullable */ +java.lang.String getMetadataOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetMetadata().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
                * User-provided metadata, in key/value pairs.
                * 
            @@ -1259,11 +1085,11 @@ public java.util.Map getMetadataMap() { * map<string, string> metadata = 22; */ @java.lang.Override - public java.lang.String getMetadataOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetMetadata().getMap(); + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1273,8 +1099,6 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) { public static final int EVENT_BASED_HOLD_FIELD_NUMBER = 23; private boolean eventBasedHold_ = false; /** - * - * *
                * Whether an object is under event-based hold.
                * An event-based hold is a way to force the retention of an object until
            @@ -1290,7 +1114,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 @@ -1298,8 +1121,6 @@ public boolean hasEventBasedHold() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
                * Whether an object is under event-based hold.
                * An event-based hold is a way to force the retention of an object until
            @@ -1315,7 +1136,6 @@ public boolean hasEventBasedHold() {
                * 
            * * optional bool event_based_hold = 23; - * * @return The eventBasedHold. */ @java.lang.Override @@ -1326,15 +1146,12 @@ public boolean getEventBasedHold() { public static final int OWNER_FIELD_NUMBER = 24; private com.google.storage.v2.Owner owner_; /** - * - * *
                * Output only. The owner of the object. This will always be the uploader of
                * the object.
                * 
            * * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the owner field is set. */ @java.lang.Override @@ -1342,15 +1159,12 @@ public boolean hasOwner() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
                * Output only. The owner of the object. This will always be the uploader of
                * the object.
                * 
            * * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The owner. */ @java.lang.Override @@ -1358,8 +1172,6 @@ public com.google.storage.v2.Owner getOwner() { return owner_ == null ? com.google.storage.v2.Owner.getDefaultInstance() : owner_; } /** - * - * *
                * Output only. The owner of the object. This will always be the uploader of
                * the object.
            @@ -1375,15 +1187,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 @@ -1391,26 +1200,19 @@ public boolean hasCustomerEncryption() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
                * Metadata of Customer-Supplied Encryption Key, if the object is encrypted by
                * such a key.
                * 
            * * .google.storage.v2.CustomerEncryption customer_encryption = 25; - * * @return The customerEncryption. */ @java.lang.Override public com.google.storage.v2.CustomerEncryption getCustomerEncryption() { - return customerEncryption_ == null - ? com.google.storage.v2.CustomerEncryption.getDefaultInstance() - : customerEncryption_; + return customerEncryption_ == null ? com.google.storage.v2.CustomerEncryption.getDefaultInstance() : customerEncryption_; } /** - * - * *
                * Metadata of Customer-Supplied Encryption Key, if the object is encrypted by
                * such a key.
            @@ -1420,22 +1222,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 @@ -1443,14 +1240,11 @@ public boolean hasCustomTime() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
                * A user-specified timestamp set on an object.
                * 
            * * .google.protobuf.Timestamp custom_time = 26; - * * @return The customTime. */ @java.lang.Override @@ -1458,8 +1252,6 @@ public com.google.protobuf.Timestamp getCustomTime() { return customTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : customTime_; } /** - * - * *
                * A user-specified timestamp set on an object.
                * 
            @@ -1474,8 +1266,6 @@ public com.google.protobuf.TimestampOrBuilder getCustomTimeOrBuilder() { public static final int SOFT_DELETE_TIME_FIELD_NUMBER = 28; private com.google.protobuf.Timestamp softDeleteTime_; /** - * - * *
                * Output only. This is the time when the object became soft-deleted.
                *
            @@ -1483,10 +1273,7 @@ public com.google.protobuf.TimestampOrBuilder getCustomTimeOrBuilder() {
                * enabled. Also see hard_delete_time.
                * 
            * - * - * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the softDeleteTime field is set. */ @java.lang.Override @@ -1494,8 +1281,6 @@ public boolean hasSoftDeleteTime() { return ((bitField0_ & 0x00000400) != 0); } /** - * - * *
                * Output only. This is the time when the object became soft-deleted.
                *
            @@ -1503,21 +1288,14 @@ public boolean hasSoftDeleteTime() {
                * enabled. Also see hard_delete_time.
                * 
            * - * - * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The softDeleteTime. */ @java.lang.Override public com.google.protobuf.Timestamp getSoftDeleteTime() { - return softDeleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : softDeleteTime_; + return softDeleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : softDeleteTime_; } /** - * - * *
                * Output only. This is the time when the object became soft-deleted.
                *
            @@ -1525,22 +1303,16 @@ public com.google.protobuf.Timestamp getSoftDeleteTime() {
                * enabled. Also see hard_delete_time.
                * 
            * - * - * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getSoftDeleteTimeOrBuilder() { - return softDeleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : softDeleteTime_; + return softDeleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : softDeleteTime_; } public static final int HARD_DELETE_TIME_FIELD_NUMBER = 29; private com.google.protobuf.Timestamp hardDeleteTime_; /** - * - * *
                * Output only. The time when the object will be permanently deleted.
                *
            @@ -1548,10 +1320,7 @@ public com.google.protobuf.TimestampOrBuilder getSoftDeleteTimeOrBuilder() {
                * Otherwise, the object will not be accessible.
                * 
            * - * - * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the hardDeleteTime field is set. */ @java.lang.Override @@ -1559,8 +1328,6 @@ public boolean hasHardDeleteTime() { return ((bitField0_ & 0x00000800) != 0); } /** - * - * *
                * Output only. The time when the object will be permanently deleted.
                *
            @@ -1568,21 +1335,14 @@ public boolean hasHardDeleteTime() {
                * Otherwise, the object will not be accessible.
                * 
            * - * - * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The hardDeleteTime. */ @java.lang.Override public com.google.protobuf.Timestamp getHardDeleteTime() { - return hardDeleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : hardDeleteTime_; + return hardDeleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : hardDeleteTime_; } /** - * - * *
                * Output only. The time when the object will be permanently deleted.
                *
            @@ -1590,19 +1350,14 @@ public com.google.protobuf.Timestamp getHardDeleteTime() {
                * Otherwise, the object will not be accessible.
                * 
            * - * - * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getHardDeleteTimeOrBuilder() { - return hardDeleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : hardDeleteTime_; + return hardDeleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : hardDeleteTime_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1614,7 +1369,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_); } @@ -1678,8 +1434,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000020) != 0)) { 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_ & 0x00000040) != 0)) { output.writeBool(23, eventBasedHold_); } @@ -1717,16 +1477,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_); @@ -1738,73 +1501,86 @@ 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 (((bitField0_ & 0x00000001) != 0)) { - 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 (((bitField0_ & 0x00000002) != 0)) { - 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 (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getChecksums()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getChecksums()); } if (((bitField0_ & 0x00000008) != 0)) { - 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 (((bitField0_ & 0x00000010) != 0)) { - 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 (((bitField0_ & 0x00000020) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(21, getRetentionExpireTime()); - } - for (java.util.Map.Entry entry : - internalGetMetadata().getMap().entrySet()) { - com.google.protobuf.MapEntry metadata__ = - MetadataDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, metadata__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, getRetentionExpireTime()); + } + for (java.util.Map.Entry entry + : internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry + metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, metadata__); } if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(23, eventBasedHold_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(23, eventBasedHold_); } if (((bitField0_ & 0x00000080) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getOwner()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(24, getOwner()); } if (((bitField0_ & 0x00000100) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getCustomerEncryption()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(25, getCustomerEncryption()); } if (((bitField0_ & 0x00000200) != 0)) { - 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_); } if (((bitField0_ & 0x00000400) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getSoftDeleteTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(28, getSoftDeleteTime()); } if (((bitField0_ & 0x00000800) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getHardDeleteTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(29, getHardDeleteTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1814,77 +1590,106 @@ public int 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 (hasSoftDeleteTime() != other.hasSoftDeleteTime()) return false; if (hasSoftDeleteTime()) { - if (!getSoftDeleteTime().equals(other.getSoftDeleteTime())) return false; + if (!getSoftDeleteTime() + .equals(other.getSoftDeleteTime())) return false; } if (hasHardDeleteTime() != other.hasHardDeleteTime()) return false; if (hasHardDeleteTime()) { - if (!getHardDeleteTime().equals(other.getHardDeleteTime())) return false; + if (!getHardDeleteTime() + .equals(other.getHardDeleteTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1904,13 +1709,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; @@ -1950,7 +1758,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(); @@ -1961,7 +1770,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; @@ -1988,114 +1798,111 @@ 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; } @@ -2106,10 +1913,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl 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.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { @@ -2117,15 +1924,14 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi 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); } @@ -2135,13 +1941,14 @@ 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) { getAclFieldBuilder(); getDeleteTimeFieldBuilder(); getCreateTimeFieldBuilder(); @@ -2156,7 +1963,6 @@ private void maybeForceBuilderInitialization() { getHardDeleteTimeFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -2244,7 +2050,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; } @@ -2266,9 +2073,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; } @@ -2322,45 +2127,51 @@ private void buildPartial0(com.google.storage.v2.Object result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00001000) != 0)) { - result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); + result.deleteTime_ = deleteTimeBuilder_ == null + ? deleteTime_ + : deleteTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00002000) != 0)) { result.contentType_ = contentType_; } if (((from_bitField0_ & 0x00004000) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00008000) != 0)) { result.componentCount_ = componentCount_; } if (((from_bitField0_ & 0x00010000) != 0)) { - result.checksums_ = checksumsBuilder_ == null ? checksums_ : checksumsBuilder_.build(); + result.checksums_ = checksumsBuilder_ == null + ? checksums_ + : checksumsBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00020000) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00040000) != 0)) { result.kmsKey_ = kmsKey_; } if (((from_bitField0_ & 0x00080000) != 0)) { - result.updateStorageClassTime_ = - updateStorageClassTimeBuilder_ == null - ? updateStorageClassTime_ - : updateStorageClassTimeBuilder_.build(); + result.updateStorageClassTime_ = updateStorageClassTimeBuilder_ == null + ? updateStorageClassTime_ + : updateStorageClassTimeBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00100000) != 0)) { result.temporaryHold_ = temporaryHold_; } if (((from_bitField0_ & 0x00200000) != 0)) { - result.retentionExpireTime_ = - retentionExpireTimeBuilder_ == null - ? retentionExpireTime_ - : retentionExpireTimeBuilder_.build(); + result.retentionExpireTime_ = retentionExpireTimeBuilder_ == null + ? retentionExpireTime_ + : retentionExpireTimeBuilder_.build(); to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00400000) != 0)) { @@ -2372,28 +2183,33 @@ private void buildPartial0(com.google.storage.v2.Object result) { to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x01000000) != 0)) { - result.owner_ = ownerBuilder_ == null ? owner_ : ownerBuilder_.build(); + result.owner_ = ownerBuilder_ == null + ? owner_ + : ownerBuilder_.build(); to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x02000000) != 0)) { - result.customerEncryption_ = - customerEncryptionBuilder_ == null - ? customerEncryption_ - : customerEncryptionBuilder_.build(); + result.customerEncryption_ = customerEncryptionBuilder_ == null + ? customerEncryption_ + : customerEncryptionBuilder_.build(); to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x04000000) != 0)) { - result.customTime_ = customTimeBuilder_ == null ? customTime_ : customTimeBuilder_.build(); + result.customTime_ = customTimeBuilder_ == null + ? customTime_ + : customTimeBuilder_.build(); to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x08000000) != 0)) { - result.softDeleteTime_ = - softDeleteTimeBuilder_ == null ? softDeleteTime_ : softDeleteTimeBuilder_.build(); + result.softDeleteTime_ = softDeleteTimeBuilder_ == null + ? softDeleteTime_ + : softDeleteTimeBuilder_.build(); to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x10000000) != 0)) { - result.hardDeleteTime_ = - hardDeleteTimeBuilder_ == null ? hardDeleteTime_ : hardDeleteTimeBuilder_.build(); + result.hardDeleteTime_ = hardDeleteTimeBuilder_ == null + ? hardDeleteTime_ + : hardDeleteTimeBuilder_.build(); to_bitField0_ |= 0x00000800; } result.bitField0_ |= to_bitField0_; @@ -2403,39 +2219,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; @@ -2506,10 +2321,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_); } @@ -2554,7 +2368,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()); @@ -2600,219 +2415,204 @@ 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 - case 226: - { - input.readMessage(getSoftDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x08000000; - break; - } // case 226 - case 234: - { - input.readMessage(getHardDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x10000000; - break; - } // case 234 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); + 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 + case 226: { + input.readMessage( + getSoftDeleteTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x08000000; + break; + } // case 226 + case 234: { + input.readMessage( + getHardDeleteTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x10000000; + break; + } // case 234 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
                  * Immutable. The name of this object. Nearly any sequence of unicode
                  * characters is valid. See
            @@ -2824,13 +2624,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; @@ -2839,8 +2639,6 @@ public java.lang.String getName() { } } /** - * - * *
                  * Immutable. The name of this object. Nearly any sequence of unicode
                  * characters is valid. See
            @@ -2852,14 +2650,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 { @@ -2867,8 +2666,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
                  * Immutable. The name of this object. Nearly any sequence of unicode
                  * characters is valid. See
            @@ -2880,22 +2677,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
            @@ -2907,7 +2700,6 @@ public Builder setName(java.lang.String value) {
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -2917,8 +2709,6 @@ public Builder clearName() { return this; } /** - * - * *
                  * Immutable. The name of this object. Nearly any sequence of unicode
                  * characters is valid. See
            @@ -2930,14 +2720,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; @@ -2947,22 +2735,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; @@ -2971,23 +2755,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 { @@ -2995,39 +2776,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() { @@ -3037,23 +2807,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; @@ -3063,8 +2827,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
            @@ -3073,13 +2835,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; @@ -3088,8 +2850,6 @@ public java.lang.String getEtag() { } } /** - * - * *
                  * The etag of the object.
                  * If included in the metadata of an update or delete request message, the
            @@ -3098,14 +2858,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 { @@ -3113,8 +2874,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
            @@ -3123,22 +2882,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
            @@ -3147,7 +2902,6 @@ public Builder setEtag(java.lang.String value) {
                  * 
            * * string etag = 27; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -3157,8 +2911,6 @@ public Builder clearEtag() { return this; } /** - * - * *
                  * The etag of the object.
                  * If included in the metadata of an update or delete request message, the
            @@ -3167,14 +2919,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; @@ -3182,17 +2932,14 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { return this; } - private long generation_; + private long generation_ ; /** - * - * *
                  * Immutable. The content generation of this object. Used for object
                  * versioning.
                  * 
            * * int64 generation = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The generation. */ @java.lang.Override @@ -3200,15 +2947,12 @@ public long getGeneration() { return generation_; } /** - * - * *
                  * Immutable. The content generation of this object. Used for object
                  * versioning.
                  * 
            * * int64 generation = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The generation to set. * @return This builder for chaining. */ @@ -3220,15 +2964,12 @@ public Builder setGeneration(long value) { return this; } /** - * - * *
                  * Immutable. The content generation of this object. Used for object
                  * versioning.
                  * 
            * * int64 generation = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearGeneration() { @@ -3238,10 +2979,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
            @@ -3250,7 +2989,6 @@ public Builder clearGeneration() {
                  * 
            * * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The metageneration. */ @java.lang.Override @@ -3258,8 +2996,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
            @@ -3268,7 +3004,6 @@ public long getMetageneration() {
                  * 
            * * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The metageneration to set. * @return This builder for chaining. */ @@ -3280,8 +3015,6 @@ public Builder setMetageneration(long value) { return this; } /** - * - * *
                  * Output only. The version of the metadata for this generation of this
                  * object. Used for preconditions and for detecting changes in metadata. A
            @@ -3290,7 +3023,6 @@ public Builder setMetageneration(long value) {
                  * 
            * * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearMetageneration() { @@ -3302,20 +3034,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; @@ -3324,21 +3054,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 { @@ -3346,35 +3075,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() { @@ -3384,21 +3106,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; @@ -3406,17 +3124,14 @@ public Builder setStorageClassBytes(com.google.protobuf.ByteString value) { return this; } - private long size_; + private long size_ ; /** - * - * *
                  * Output only. Content-Length of the object data in bytes, matching
                  * [https://tools.ietf.org/html/rfc7230#section-3.3.2][RFC 7230 §3.3.2].
                  * 
            * * int64 size = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The size. */ @java.lang.Override @@ -3424,15 +3139,12 @@ public long getSize() { return size_; } /** - * - * *
                  * Output only. Content-Length of the object data in bytes, matching
                  * [https://tools.ietf.org/html/rfc7230#section-3.3.2][RFC 7230 §3.3.2].
                  * 
            * * int64 size = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The size to set. * @return This builder for chaining. */ @@ -3444,15 +3156,12 @@ public Builder setSize(long value) { return this; } /** - * - * *
                  * Output only. Content-Length of the object data in bytes, matching
                  * [https://tools.ietf.org/html/rfc7230#section-3.3.2][RFC 7230 §3.3.2].
                  * 
            * * int64 size = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearSize() { @@ -3464,21 +3173,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; @@ -3487,22 +3194,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 { @@ -3510,37 +3216,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() { @@ -3550,22 +3249,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; @@ -3575,21 +3270,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; @@ -3598,22 +3291,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 { @@ -3621,37 +3313,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() { @@ -3661,22 +3346,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; @@ -3686,8 +3367,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].
            @@ -3696,13 +3375,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; @@ -3711,8 +3390,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].
            @@ -3721,14 +3398,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 { @@ -3736,8 +3414,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].
            @@ -3746,22 +3422,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].
            @@ -3770,7 +3442,6 @@ public Builder setCacheControl(java.lang.String value) {
                  * 
            * * string cache_control = 9; - * * @return This builder for chaining. */ public Builder clearCacheControl() { @@ -3780,8 +3451,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].
            @@ -3790,14 +3459,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; @@ -3806,24 +3473,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
            @@ -3840,8 +3501,6 @@ public java.util.List getAclList() {
                   }
                 }
                 /**
            -     *
            -     *
                  * 
                  * Access controls on the object.
                  * If iam_config.uniform_bucket_level_access is enabled on the parent
            @@ -3858,8 +3517,6 @@ public int getAclCount() {
                   }
                 }
                 /**
            -     *
            -     *
                  * 
                  * Access controls on the object.
                  * If iam_config.uniform_bucket_level_access is enabled on the parent
            @@ -3876,8 +3533,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
            @@ -3886,7 +3541,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();
            @@ -3900,8 +3556,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
            @@ -3922,8 +3576,6 @@ public Builder setAcl(
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Access controls on the object.
                  * If iam_config.uniform_bucket_level_access is enabled on the parent
            @@ -3946,8 +3598,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
            @@ -3956,7 +3606,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();
            @@ -3970,8 +3621,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
            @@ -3980,7 +3629,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());
            @@ -3991,8 +3641,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
            @@ -4013,8 +3661,6 @@ public Builder addAcl(
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Access controls on the object.
                  * If iam_config.uniform_bucket_level_access is enabled on the parent
            @@ -4027,7 +3673,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);
            @@ -4035,8 +3682,6 @@ public Builder addAllAcl(
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Access controls on the object.
                  * If iam_config.uniform_bucket_level_access is enabled on the parent
            @@ -4056,8 +3701,6 @@ public Builder clearAcl() {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Access controls on the object.
                  * If iam_config.uniform_bucket_level_access is enabled on the parent
            @@ -4077,8 +3720,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
            @@ -4087,12 +3728,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
            @@ -4101,16 +3741,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
            @@ -4119,8 +3757,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 {
            @@ -4128,8 +3766,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
            @@ -4139,12 +3775,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
            @@ -4153,13 +3787,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
            @@ -4168,22 +3801,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_;
            @@ -4191,21 +3822,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; @@ -4214,22 +3843,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 { @@ -4237,37 +3865,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() { @@ -4277,22 +3898,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; @@ -4302,61 +3919,42 @@ public Builder setContentLanguageBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; /** - * - * *
                  * Output only. If this object is noncurrent, this is the time when the object
                  * became noncurrent.
                  * 
            * - * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00001000) != 0); } /** - * - * *
                  * Output only. If this object is noncurrent, this is the time when the object
                  * became noncurrent.
                  * 
            * - * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** - * - * *
                  * Output only. If this object is noncurrent, this is the time when the object
                  * became noncurrent.
                  * 
            * - * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -4372,18 +3970,15 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                  * Output only. If this object is noncurrent, this is the time when the object
                  * became noncurrent.
                  * 
            * - * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -4394,22 +3989,18 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
                  * Output only. If this object is noncurrent, this is the time when the object
                  * became noncurrent.
                  * 
            * - * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) - && deleteTime_ != null - && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) && + deleteTime_ != null && + deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -4424,16 +4015,12 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                  * Output only. If this object is noncurrent, this is the time when the object
                  * became noncurrent.
                  * 
            * - * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00001000); @@ -4446,16 +4033,12 @@ public Builder clearDeleteTime() { return this; } /** - * - * *
                  * Output only. If this object is noncurrent, this is the time when the object
                  * became noncurrent.
                  * 
            * - * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00001000; @@ -4463,50 +4046,38 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** - * - * *
                  * Output only. If this object is noncurrent, this is the time when the object
                  * became noncurrent.
                  * 
            * - * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } } /** - * - * *
                  * Output only. If this object is noncurrent, this is the time when the object
                  * became noncurrent.
                  * 
            * - * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), getParentForChildren(), isClean()); + deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), + getParentForChildren(), + isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -4514,8 +4085,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].
            @@ -4524,13 +4093,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; @@ -4539,8 +4108,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].
            @@ -4549,14 +4116,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 { @@ -4564,8 +4132,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].
            @@ -4574,22 +4140,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].
            @@ -4598,7 +4160,6 @@ public Builder setContentType(java.lang.String value) {
                  * 
            * * string content_type = 13; - * * @return This builder for chaining. */ public Builder clearContentType() { @@ -4608,8 +4169,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].
            @@ -4618,14 +4177,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; @@ -4635,58 +4192,39 @@ public Builder setContentTypeBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
                  * Output only. The creation time of the object.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00004000) != 0); } /** - * - * *
                  * Output only. The creation time of the object.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
                  * Output only. The creation time of the object.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -4702,17 +4240,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                  * Output only. The creation time of the object.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -4723,21 +4258,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
                  * Output only. The creation time of the object.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00004000) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -4752,15 +4283,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                  * Output only. The creation time of the object.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00004000); @@ -4773,15 +4300,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
                  * Output only. The creation time of the object.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00004000; @@ -4789,64 +4312,49 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
                  * Output only. The creation time of the object.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
                  * Output only. The creation time of the object.
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; } - private int componentCount_; + private int componentCount_ ; /** - * - * *
                  * Output only. Number of underlying components that make up this object.
                  * Components are accumulated by compose operations.
                  * 
            * * int32 component_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The componentCount. */ @java.lang.Override @@ -4854,15 +4362,12 @@ public int getComponentCount() { return componentCount_; } /** - * - * *
                  * Output only. Number of underlying components that make up this object.
                  * Components are accumulated by compose operations.
                  * 
            * * int32 component_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The componentCount to set. * @return This builder for chaining. */ @@ -4874,15 +4379,12 @@ public Builder setComponentCount(int value) { return this; } /** - * - * *
                  * Output only. Number of underlying components that make up this object.
                  * Components are accumulated by compose operations.
                  * 
            * * int32 component_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearComponentCount() { @@ -4894,61 +4396,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) { @@ -4964,18 +4447,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 { @@ -4986,22 +4466,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; @@ -5015,17 +4491,13 @@ 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); @@ -5038,16 +4510,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; @@ -5055,50 +4523,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_; @@ -5106,13 +4562,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
            @@ -5122,18 +4573,13 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getChecksumsOrBuilder() {
                  * Object Lifecycle Configuration.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00020000) != 0); } /** - * - * *
                  * Output only. The modification time of the object metadata.
                  * Set initially to object creation time and then updated whenever any
            @@ -5143,24 +4589,17 @@ public boolean hasUpdateTime() {
                  * Object Lifecycle Configuration.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
                  * Output only. The modification time of the object metadata.
                  * Set initially to object creation time and then updated whenever any
            @@ -5170,9 +4609,7 @@ public com.google.protobuf.Timestamp getUpdateTime() {
                  * Object Lifecycle Configuration.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -5188,8 +4625,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
            @@ -5199,11 +4634,10 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
                  * Object Lifecycle Configuration.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -5214,8 +4648,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
            @@ -5225,15 +4657,13 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal
                  * Object Lifecycle Configuration.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00020000) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -5248,8 +4678,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
            @@ -5259,9 +4687,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
                  * Object Lifecycle Configuration.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00020000); @@ -5274,8 +4700,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
            @@ -5285,9 +4709,7 @@ public Builder clearUpdateTime() {
                  * Object Lifecycle Configuration.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00020000; @@ -5295,8 +4717,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
            @@ -5306,22 +4726,17 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
                  * Object Lifecycle Configuration.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
                  * Output only. The modification time of the object metadata.
                  * Set initially to object creation time and then updated whenever any
            @@ -5331,22 +4746,17 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
                  * Object Lifecycle Configuration.
                  * 
            * - * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -5354,21 +4764,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; @@ -5377,22 +4785,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 { @@ -5400,37 +4807,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() { @@ -5440,22 +4840,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; @@ -5465,61 +4861,42 @@ public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp updateStorageClassTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateStorageClassTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateStorageClassTimeBuilder_; /** - * - * *
                  * Output only. The time at which the object's storage class was last changed.
                  * When the object is initially created, it will be set to time_created.
                  * 
            * - * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateStorageClassTime field is set. */ public boolean hasUpdateStorageClassTime() { return ((bitField0_ & 0x00080000) != 0); } /** - * - * *
                  * Output only. The time at which the object's storage class was last changed.
                  * When the object is initially created, it will be set to time_created.
                  * 
            * - * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateStorageClassTime. */ public com.google.protobuf.Timestamp getUpdateStorageClassTime() { if (updateStorageClassTimeBuilder_ == null) { - return updateStorageClassTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateStorageClassTime_; + return updateStorageClassTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateStorageClassTime_; } else { return updateStorageClassTimeBuilder_.getMessage(); } } /** - * - * *
                  * Output only. The time at which the object's storage class was last changed.
                  * When the object is initially created, it will be set to time_created.
                  * 
            * - * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateStorageClassTime(com.google.protobuf.Timestamp value) { if (updateStorageClassTimeBuilder_ == null) { @@ -5535,16 +4912,12 @@ public Builder setUpdateStorageClassTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                  * Output only. The time at which the object's storage class was last changed.
                  * When the object is initially created, it will be set to time_created.
                  * 
            * - * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateStorageClassTime( com.google.protobuf.Timestamp.Builder builderForValue) { @@ -5558,22 +4931,18 @@ public Builder setUpdateStorageClassTime( return this; } /** - * - * *
                  * Output only. The time at which the object's storage class was last changed.
                  * When the object is initially created, it will be set to time_created.
                  * 
            * - * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateStorageClassTime(com.google.protobuf.Timestamp value) { if (updateStorageClassTimeBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0) - && updateStorageClassTime_ != null - && updateStorageClassTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00080000) != 0) && + updateStorageClassTime_ != null && + updateStorageClassTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateStorageClassTimeBuilder().mergeFrom(value); } else { updateStorageClassTime_ = value; @@ -5588,16 +4957,12 @@ 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.
                  * 
            * - * - * .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); @@ -5610,16 +4975,12 @@ public Builder clearUpdateStorageClassTime() { return this; } /** - * - * *
                  * Output only. The time at which the object's storage class was last changed.
                  * When the object is initially created, it will be set to time_created.
                  * 
            * - * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateStorageClassTimeBuilder() { bitField0_ |= 0x00080000; @@ -5627,59 +4988,45 @@ public com.google.protobuf.Timestamp.Builder getUpdateStorageClassTimeBuilder() return getUpdateStorageClassTimeFieldBuilder().getBuilder(); } /** - * - * *
                  * Output only. The time at which the object's storage class was last changed.
                  * When the object is initially created, it will be set to time_created.
                  * 
            * - * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateStorageClassTimeOrBuilder() { if (updateStorageClassTimeBuilder_ != null) { return updateStorageClassTimeBuilder_.getMessageOrBuilder(); } else { - return updateStorageClassTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateStorageClassTime_; + return updateStorageClassTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateStorageClassTime_; } } /** - * - * *
                  * Output only. The time at which the object's storage class was last changed.
                  * When the object is initially created, it will be set to time_created.
                  * 
            * - * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateStorageClassTimeFieldBuilder() { if (updateStorageClassTimeBuilder_ == null) { - updateStorageClassTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateStorageClassTime(), getParentForChildren(), isClean()); + updateStorageClassTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateStorageClassTime(), + getParentForChildren(), + isClean()); updateStorageClassTime_ = null; } return updateStorageClassTimeBuilder_; } - private boolean temporaryHold_; + private boolean temporaryHold_ ; /** - * - * *
                  * Whether an object is under temporary hold. While this flag is set to true,
                  * the object is protected against deletion and overwrites.  A common use case
            @@ -5689,7 +5036,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateStorageClassTimeOrBuilder
                  * 
            * * bool temporary_hold = 20; - * * @return The temporaryHold. */ @java.lang.Override @@ -5697,8 +5043,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
            @@ -5708,7 +5052,6 @@ public boolean getTemporaryHold() {
                  * 
            * * bool temporary_hold = 20; - * * @param value The temporaryHold to set. * @return This builder for chaining. */ @@ -5720,8 +5063,6 @@ public Builder setTemporaryHold(boolean value) { return this; } /** - * - * *
                  * Whether an object is under temporary hold. While this flag is set to true,
                  * the object is protected against deletion and overwrites.  A common use case
            @@ -5731,7 +5072,6 @@ public Builder setTemporaryHold(boolean value) {
                  * 
            * * bool temporary_hold = 20; - * * @return This builder for chaining. */ public Builder clearTemporaryHold() { @@ -5743,13 +5083,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.
            @@ -5761,15 +5096,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.
            @@ -5781,21 +5113,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.
            @@ -5822,8 +5149,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.
            @@ -5836,7 +5161,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 {
            @@ -5847,8 +5173,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.
            @@ -5863,9 +5187,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;
            @@ -5880,8 +5204,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.
            @@ -5905,8 +5227,6 @@ public Builder clearRetentionExpireTime() {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * A server-determined value that specifies the earliest time that the
                  * object's retention period expires.
            @@ -5925,8 +5245,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.
            @@ -5943,14 +5261,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.
            @@ -5964,36 +5279,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();
            @@ -6002,13 +5315,10 @@ private com.google.protobuf.MapField interna
                   onChanged();
                   return metadata_;
                 }
            -
                 public int getMetadataCount() {
                   return internalGetMetadata().getMap().size();
                 }
                 /**
            -     *
            -     *
                  * 
                  * User-provided metadata, in key/value pairs.
                  * 
            @@ -6016,21 +5326,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.
                  * 
            @@ -6042,8 +5351,6 @@ public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** - * - * *
                  * User-provided metadata, in key/value pairs.
                  * 
            @@ -6051,19 +5358,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.
                  * 
            @@ -6071,83 +5376,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
            @@ -6163,7 +5464,6 @@ public Builder putAllMetadata(java.util.Map
                  * 
            * * optional bool event_based_hold = 23; - * * @return Whether the eventBasedHold field is set. */ @java.lang.Override @@ -6171,8 +5471,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
            @@ -6188,7 +5486,6 @@ public boolean hasEventBasedHold() {
                  * 
            * * optional bool event_based_hold = 23; - * * @return The eventBasedHold. */ @java.lang.Override @@ -6196,8 +5493,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
            @@ -6213,7 +5508,6 @@ public boolean getEventBasedHold() {
                  * 
            * * optional bool event_based_hold = 23; - * * @param value The eventBasedHold to set. * @return This builder for chaining. */ @@ -6225,8 +5519,6 @@ public Builder setEventBasedHold(boolean value) { return this; } /** - * - * *
                  * Whether an object is under event-based hold.
                  * An event-based hold is a way to force the retention of an object until
            @@ -6242,7 +5534,6 @@ public Builder setEventBasedHold(boolean value) {
                  * 
            * * optional bool event_based_hold = 23; - * * @return This builder for chaining. */ public Builder clearEventBasedHold() { @@ -6254,37 +5545,26 @@ public Builder clearEventBasedHold() { private com.google.storage.v2.Owner owner_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Owner, - com.google.storage.v2.Owner.Builder, - com.google.storage.v2.OwnerOrBuilder> - ownerBuilder_; + com.google.storage.v2.Owner, com.google.storage.v2.Owner.Builder, com.google.storage.v2.OwnerOrBuilder> ownerBuilder_; /** - * - * *
                  * Output only. The owner of the object. This will always be the uploader of
                  * the object.
                  * 
            * - * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the owner field is set. */ public boolean hasOwner() { return ((bitField0_ & 0x01000000) != 0); } /** - * - * *
                  * Output only. The owner of the object. This will always be the uploader of
                  * the object.
                  * 
            * - * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The owner. */ public com.google.storage.v2.Owner getOwner() { @@ -6295,15 +5575,12 @@ public com.google.storage.v2.Owner getOwner() { } } /** - * - * *
                  * Output only. The owner of the object. This will always be the uploader of
                  * the object.
                  * 
            * - * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setOwner(com.google.storage.v2.Owner value) { if (ownerBuilder_ == null) { @@ -6319,17 +5596,15 @@ public Builder setOwner(com.google.storage.v2.Owner value) { return this; } /** - * - * *
                  * Output only. The owner of the object. This will always be the uploader of
                  * the object.
                  * 
            * - * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setOwner(com.google.storage.v2.Owner.Builder builderForValue) { + public Builder setOwner( + com.google.storage.v2.Owner.Builder builderForValue) { if (ownerBuilder_ == null) { owner_ = builderForValue.build(); } else { @@ -6340,21 +5615,18 @@ public Builder setOwner(com.google.storage.v2.Owner.Builder builderForValue) { return this; } /** - * - * *
                  * Output only. The owner of the object. This will always be the uploader of
                  * the object.
                  * 
            * - * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeOwner(com.google.storage.v2.Owner value) { if (ownerBuilder_ == null) { - if (((bitField0_ & 0x01000000) != 0) - && owner_ != null - && owner_ != com.google.storage.v2.Owner.getDefaultInstance()) { + if (((bitField0_ & 0x01000000) != 0) && + owner_ != null && + owner_ != com.google.storage.v2.Owner.getDefaultInstance()) { getOwnerBuilder().mergeFrom(value); } else { owner_ = value; @@ -6369,15 +5641,12 @@ 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.
                  * 
            * - * .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); @@ -6390,15 +5659,12 @@ public Builder clearOwner() { return this; } /** - * - * *
                  * Output only. The owner of the object. This will always be the uploader of
                  * the object.
                  * 
            * - * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.storage.v2.Owner.Builder getOwnerBuilder() { bitField0_ |= 0x01000000; @@ -6406,46 +5672,38 @@ public com.google.storage.v2.Owner.Builder getOwnerBuilder() { return getOwnerFieldBuilder().getBuilder(); } /** - * - * *
                  * Output only. The owner of the object. This will always be the uploader of
                  * the object.
                  * 
            * - * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.storage.v2.OwnerOrBuilder getOwnerOrBuilder() { if (ownerBuilder_ != null) { return ownerBuilder_.getMessageOrBuilder(); } else { - return owner_ == null ? com.google.storage.v2.Owner.getDefaultInstance() : owner_; + return owner_ == null ? + com.google.storage.v2.Owner.getDefaultInstance() : owner_; } } /** - * - * *
                  * Output only. The owner of the object. This will always be the uploader of
                  * the object.
                  * 
            * - * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Owner, - com.google.storage.v2.Owner.Builder, - com.google.storage.v2.OwnerOrBuilder> + com.google.storage.v2.Owner, com.google.storage.v2.Owner.Builder, com.google.storage.v2.OwnerOrBuilder> getOwnerFieldBuilder() { if (ownerBuilder_ == null) { - ownerBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Owner, - com.google.storage.v2.Owner.Builder, - com.google.storage.v2.OwnerOrBuilder>( - getOwner(), getParentForChildren(), isClean()); + ownerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.Owner, com.google.storage.v2.Owner.Builder, com.google.storage.v2.OwnerOrBuilder>( + getOwner(), + getParentForChildren(), + isClean()); owner_ = null; } return ownerBuilder_; @@ -6453,49 +5711,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.
            @@ -6517,8 +5762,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.
            @@ -6538,8 +5781,6 @@ public Builder setCustomerEncryption(
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Metadata of Customer-Supplied Encryption Key, if the object is encrypted by
                  * such a key.
            @@ -6549,10 +5790,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;
            @@ -6567,8 +5807,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.
            @@ -6587,8 +5825,6 @@ public Builder clearCustomerEncryption() {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Metadata of Customer-Supplied Encryption Key, if the object is encrypted by
                  * such a key.
            @@ -6602,8 +5838,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.
            @@ -6615,14 +5849,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.
            @@ -6631,17 +5862,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_;
            @@ -6649,47 +5877,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.
                  * 
            @@ -6710,15 +5925,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 { @@ -6729,8 +5943,6 @@ public Builder setCustomTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
                  * A user-specified timestamp set on an object.
                  * 
            @@ -6739,9 +5951,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; @@ -6756,8 +5968,6 @@ public Builder mergeCustomTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                  * A user-specified timestamp set on an object.
                  * 
            @@ -6775,8 +5985,6 @@ public Builder clearCustomTime() { return this; } /** - * - * *
                  * A user-specified timestamp set on an object.
                  * 
            @@ -6789,8 +5997,6 @@ public com.google.protobuf.Timestamp.Builder getCustomTimeBuilder() { return getCustomTimeFieldBuilder().getBuilder(); } /** - * - * *
                  * A user-specified timestamp set on an object.
                  * 
            @@ -6801,14 +6007,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.
                  * 
            @@ -6816,17 +6019,14 @@ 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_; @@ -6834,13 +6034,8 @@ public com.google.protobuf.TimestampOrBuilder getCustomTimeOrBuilder() { private com.google.protobuf.Timestamp softDeleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - softDeleteTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> softDeleteTimeBuilder_; /** - * - * *
                  * Output only. This is the time when the object became soft-deleted.
                  *
            @@ -6848,18 +6043,13 @@ public com.google.protobuf.TimestampOrBuilder getCustomTimeOrBuilder() {
                  * enabled. Also see hard_delete_time.
                  * 
            * - * - * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the softDeleteTime field is set. */ public boolean hasSoftDeleteTime() { return ((bitField0_ & 0x08000000) != 0); } /** - * - * *
                  * Output only. This is the time when the object became soft-deleted.
                  *
            @@ -6867,24 +6057,17 @@ public boolean hasSoftDeleteTime() {
                  * enabled. Also see hard_delete_time.
                  * 
            * - * - * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The softDeleteTime. */ public com.google.protobuf.Timestamp getSoftDeleteTime() { if (softDeleteTimeBuilder_ == null) { - return softDeleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : softDeleteTime_; + return softDeleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : softDeleteTime_; } else { return softDeleteTimeBuilder_.getMessage(); } } /** - * - * *
                  * Output only. This is the time when the object became soft-deleted.
                  *
            @@ -6892,9 +6075,7 @@ public com.google.protobuf.Timestamp getSoftDeleteTime() {
                  * enabled. Also see hard_delete_time.
                  * 
            * - * - * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setSoftDeleteTime(com.google.protobuf.Timestamp value) { if (softDeleteTimeBuilder_ == null) { @@ -6910,8 +6091,6 @@ public Builder setSoftDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                  * Output only. This is the time when the object became soft-deleted.
                  *
            @@ -6919,11 +6098,10 @@ public Builder setSoftDeleteTime(com.google.protobuf.Timestamp value) {
                  * enabled. Also see hard_delete_time.
                  * 
            * - * - * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setSoftDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSoftDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (softDeleteTimeBuilder_ == null) { softDeleteTime_ = builderForValue.build(); } else { @@ -6934,8 +6112,6 @@ public Builder setSoftDeleteTime(com.google.protobuf.Timestamp.Builder builderFo return this; } /** - * - * *
                  * Output only. This is the time when the object became soft-deleted.
                  *
            @@ -6943,15 +6119,13 @@ public Builder setSoftDeleteTime(com.google.protobuf.Timestamp.Builder builderFo
                  * enabled. Also see hard_delete_time.
                  * 
            * - * - * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeSoftDeleteTime(com.google.protobuf.Timestamp value) { if (softDeleteTimeBuilder_ == null) { - if (((bitField0_ & 0x08000000) != 0) - && softDeleteTime_ != null - && softDeleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x08000000) != 0) && + softDeleteTime_ != null && + softDeleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSoftDeleteTimeBuilder().mergeFrom(value); } else { softDeleteTime_ = value; @@ -6966,8 +6140,6 @@ public Builder mergeSoftDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                  * Output only. This is the time when the object became soft-deleted.
                  *
            @@ -6975,9 +6147,7 @@ public Builder mergeSoftDeleteTime(com.google.protobuf.Timestamp value) {
                  * enabled. Also see hard_delete_time.
                  * 
            * - * - * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearSoftDeleteTime() { bitField0_ = (bitField0_ & ~0x08000000); @@ -6990,8 +6160,6 @@ public Builder clearSoftDeleteTime() { return this; } /** - * - * *
                  * Output only. This is the time when the object became soft-deleted.
                  *
            @@ -6999,9 +6167,7 @@ public Builder clearSoftDeleteTime() {
                  * enabled. Also see hard_delete_time.
                  * 
            * - * - * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getSoftDeleteTimeBuilder() { bitField0_ |= 0x08000000; @@ -7009,8 +6175,6 @@ public com.google.protobuf.Timestamp.Builder getSoftDeleteTimeBuilder() { return getSoftDeleteTimeFieldBuilder().getBuilder(); } /** - * - * *
                  * Output only. This is the time when the object became soft-deleted.
                  *
            @@ -7018,22 +6182,17 @@ public com.google.protobuf.Timestamp.Builder getSoftDeleteTimeBuilder() {
                  * enabled. Also see hard_delete_time.
                  * 
            * - * - * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getSoftDeleteTimeOrBuilder() { if (softDeleteTimeBuilder_ != null) { return softDeleteTimeBuilder_.getMessageOrBuilder(); } else { - return softDeleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : softDeleteTime_; + return softDeleteTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : softDeleteTime_; } } /** - * - * *
                  * Output only. This is the time when the object became soft-deleted.
                  *
            @@ -7041,22 +6200,17 @@ public com.google.protobuf.TimestampOrBuilder getSoftDeleteTimeOrBuilder() {
                  * enabled. Also see hard_delete_time.
                  * 
            * - * - * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.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> getSoftDeleteTimeFieldBuilder() { if (softDeleteTimeBuilder_ == null) { - softDeleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSoftDeleteTime(), getParentForChildren(), isClean()); + softDeleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSoftDeleteTime(), + getParentForChildren(), + isClean()); softDeleteTime_ = null; } return softDeleteTimeBuilder_; @@ -7064,13 +6218,8 @@ public com.google.protobuf.TimestampOrBuilder getSoftDeleteTimeOrBuilder() { private com.google.protobuf.Timestamp hardDeleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - hardDeleteTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> hardDeleteTimeBuilder_; /** - * - * *
                  * Output only. The time when the object will be permanently deleted.
                  *
            @@ -7078,18 +6227,13 @@ public com.google.protobuf.TimestampOrBuilder getSoftDeleteTimeOrBuilder() {
                  * Otherwise, the object will not be accessible.
                  * 
            * - * - * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the hardDeleteTime field is set. */ public boolean hasHardDeleteTime() { return ((bitField0_ & 0x10000000) != 0); } /** - * - * *
                  * Output only. The time when the object will be permanently deleted.
                  *
            @@ -7097,24 +6241,17 @@ public boolean hasHardDeleteTime() {
                  * Otherwise, the object will not be accessible.
                  * 
            * - * - * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The hardDeleteTime. */ public com.google.protobuf.Timestamp getHardDeleteTime() { if (hardDeleteTimeBuilder_ == null) { - return hardDeleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : hardDeleteTime_; + return hardDeleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : hardDeleteTime_; } else { return hardDeleteTimeBuilder_.getMessage(); } } /** - * - * *
                  * Output only. The time when the object will be permanently deleted.
                  *
            @@ -7122,9 +6259,7 @@ public com.google.protobuf.Timestamp getHardDeleteTime() {
                  * Otherwise, the object will not be accessible.
                  * 
            * - * - * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setHardDeleteTime(com.google.protobuf.Timestamp value) { if (hardDeleteTimeBuilder_ == null) { @@ -7140,8 +6275,6 @@ public Builder setHardDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                  * Output only. The time when the object will be permanently deleted.
                  *
            @@ -7149,11 +6282,10 @@ public Builder setHardDeleteTime(com.google.protobuf.Timestamp value) {
                  * Otherwise, the object will not be accessible.
                  * 
            * - * - * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setHardDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setHardDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (hardDeleteTimeBuilder_ == null) { hardDeleteTime_ = builderForValue.build(); } else { @@ -7164,8 +6296,6 @@ public Builder setHardDeleteTime(com.google.protobuf.Timestamp.Builder builderFo return this; } /** - * - * *
                  * Output only. The time when the object will be permanently deleted.
                  *
            @@ -7173,15 +6303,13 @@ public Builder setHardDeleteTime(com.google.protobuf.Timestamp.Builder builderFo
                  * Otherwise, the object will not be accessible.
                  * 
            * - * - * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeHardDeleteTime(com.google.protobuf.Timestamp value) { if (hardDeleteTimeBuilder_ == null) { - if (((bitField0_ & 0x10000000) != 0) - && hardDeleteTime_ != null - && hardDeleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x10000000) != 0) && + hardDeleteTime_ != null && + hardDeleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getHardDeleteTimeBuilder().mergeFrom(value); } else { hardDeleteTime_ = value; @@ -7196,8 +6324,6 @@ public Builder mergeHardDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
                  * Output only. The time when the object will be permanently deleted.
                  *
            @@ -7205,9 +6331,7 @@ public Builder mergeHardDeleteTime(com.google.protobuf.Timestamp value) {
                  * Otherwise, the object will not be accessible.
                  * 
            * - * - * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearHardDeleteTime() { bitField0_ = (bitField0_ & ~0x10000000); @@ -7220,8 +6344,6 @@ public Builder clearHardDeleteTime() { return this; } /** - * - * *
                  * Output only. The time when the object will be permanently deleted.
                  *
            @@ -7229,9 +6351,7 @@ public Builder clearHardDeleteTime() {
                  * Otherwise, the object will not be accessible.
                  * 
            * - * - * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getHardDeleteTimeBuilder() { bitField0_ |= 0x10000000; @@ -7239,8 +6359,6 @@ public com.google.protobuf.Timestamp.Builder getHardDeleteTimeBuilder() { return getHardDeleteTimeFieldBuilder().getBuilder(); } /** - * - * *
                  * Output only. The time when the object will be permanently deleted.
                  *
            @@ -7248,22 +6366,17 @@ public com.google.protobuf.Timestamp.Builder getHardDeleteTimeBuilder() {
                  * Otherwise, the object will not be accessible.
                  * 
            * - * - * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getHardDeleteTimeOrBuilder() { if (hardDeleteTimeBuilder_ != null) { return hardDeleteTimeBuilder_.getMessageOrBuilder(); } else { - return hardDeleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : hardDeleteTime_; + return hardDeleteTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : hardDeleteTime_; } } /** - * - * *
                  * Output only. The time when the object will be permanently deleted.
                  *
            @@ -7271,29 +6384,24 @@ public com.google.protobuf.TimestampOrBuilder getHardDeleteTimeOrBuilder() {
                  * Otherwise, the object will not be accessible.
                  * 
            * - * - * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.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> getHardDeleteTimeFieldBuilder() { if (hardDeleteTimeBuilder_ == null) { - hardDeleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getHardDeleteTime(), getParentForChildren(), isClean()); + hardDeleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getHardDeleteTime(), + getParentForChildren(), + isClean()); hardDeleteTime_ = null; } return hardDeleteTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -7303,12 +6411,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(); } @@ -7317,27 +6425,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; @@ -7352,4 +6460,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 6a56338b5a..fb19ace693 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,24 +5,21 @@ 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_ = ""; @@ -51,39 +33,34 @@ private ObjectAccessControl() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ObjectAccessControl(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ObjectAccessControl_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ObjectAccessControl_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ObjectAccessControl_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ObjectAccessControl_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ObjectAccessControl.class, - com.google.storage.v2.ObjectAccessControl.Builder.class); + com.google.storage.v2.ObjectAccessControl.class, com.google.storage.v2.ObjectAccessControl.Builder.class); } private int bitField0_; public static final int ROLE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object role_ = ""; /** - * - * *
                * The access permission for the entity.
                * 
            * * string role = 1; - * * @return The role. */ @java.lang.Override @@ -92,29 +69,29 @@ public java.lang.String getRole() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; } } /** - * - * *
                * The access permission for the entity.
                * 
            * * string role = 1; - * * @return The bytes for role. */ @java.lang.Override - public com.google.protobuf.ByteString getRoleBytes() { + public com.google.protobuf.ByteString + getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); role_ = b; return b; } else { @@ -123,18 +100,14 @@ public com.google.protobuf.ByteString getRoleBytes() { } public static final int ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** - * - * *
                * The ID of the access-control entry.
                * 
            * * string id = 2; - * * @return The id. */ @java.lang.Override @@ -143,29 +116,29 @@ public java.lang.String getId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** - * - * *
                * The ID of the access-control entry.
                * 
            * * string id = 2; - * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); id_ = b; return b; } else { @@ -174,12 +147,9 @@ public com.google.protobuf.ByteString getIdBytes() { } public static final int ENTITY_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object entity_ = ""; /** - * - * *
                * The entity holding the permission, in one of the following forms:
                * * `user-{userid}`
            @@ -202,7 +172,6 @@ public com.google.protobuf.ByteString getIdBytes() {
                * 
            * * string entity = 3; - * * @return The entity. */ @java.lang.Override @@ -211,15 +180,14 @@ public java.lang.String getEntity() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entity_ = s; return s; } } /** - * - * *
                * The entity holding the permission, in one of the following forms:
                * * `user-{userid}`
            @@ -242,15 +210,16 @@ public java.lang.String getEntity() {
                * 
            * * string entity = 3; - * * @return The bytes for entity. */ @java.lang.Override - public com.google.protobuf.ByteString getEntityBytes() { + public com.google.protobuf.ByteString + getEntityBytes() { java.lang.Object ref = entity_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entity_ = b; return b; } else { @@ -259,19 +228,15 @@ public com.google.protobuf.ByteString getEntityBytes() { } public static final int ENTITY_ALT_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private volatile java.lang.Object entityAlt_ = ""; /** - * - * *
                * Output only. The alternative entity format, if exists. For project
                * entities, `project-{team}-{projectid}` format will be returned on response.
                * 
            * * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The entityAlt. */ @java.lang.Override @@ -280,30 +245,30 @@ public java.lang.String getEntityAlt() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityAlt_ = s; return s; } } /** - * - * *
                * Output only. The alternative entity format, if exists. For project
                * entities, `project-{team}-{projectid}` format will be returned on response.
                * 
            * * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for entityAlt. */ @java.lang.Override - public com.google.protobuf.ByteString getEntityAltBytes() { + public com.google.protobuf.ByteString + getEntityAltBytes() { java.lang.Object ref = entityAlt_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entityAlt_ = b; return b; } else { @@ -312,18 +277,14 @@ public com.google.protobuf.ByteString getEntityAltBytes() { } public static final int ENTITY_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object entityId_ = ""; /** - * - * *
                * The ID for the entity, if any.
                * 
            * * string entity_id = 4; - * * @return The entityId. */ @java.lang.Override @@ -332,29 +293,29 @@ public java.lang.String getEntityId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityId_ = s; return s; } } /** - * - * *
                * The ID for the entity, if any.
                * 
            * * string entity_id = 4; - * * @return The bytes for entityId. */ @java.lang.Override - public com.google.protobuf.ByteString getEntityIdBytes() { + public com.google.protobuf.ByteString + getEntityIdBytes() { java.lang.Object ref = entityId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entityId_ = b; return b; } else { @@ -363,12 +324,9 @@ public com.google.protobuf.ByteString getEntityIdBytes() { } public static final int ETAG_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
                * The etag of the ObjectAccessControl.
                * If included in the metadata of an update or delete request message, the
            @@ -377,7 +335,6 @@ public com.google.protobuf.ByteString getEntityIdBytes() {
                * 
            * * string etag = 8; - * * @return The etag. */ @java.lang.Override @@ -386,15 +343,14 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
                * The etag of the ObjectAccessControl.
                * If included in the metadata of an update or delete request message, the
            @@ -403,15 +359,16 @@ public java.lang.String getEtag() {
                * 
            * * string etag = 8; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -420,18 +377,14 @@ public com.google.protobuf.ByteString getEtagBytes() { } public static final int EMAIL_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object email_ = ""; /** - * - * *
                * The email address associated with the entity, if any.
                * 
            * * string email = 5; - * * @return The email. */ @java.lang.Override @@ -440,29 +393,29 @@ public java.lang.String getEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; } } /** - * - * *
                * The email address associated with the entity, if any.
                * 
            * * string email = 5; - * * @return The bytes for email. */ @java.lang.Override - public com.google.protobuf.ByteString getEmailBytes() { + public com.google.protobuf.ByteString + getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); email_ = b; return b; } else { @@ -471,18 +424,14 @@ public com.google.protobuf.ByteString getEmailBytes() { } public static final int DOMAIN_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object domain_ = ""; /** - * - * *
                * The domain associated with the entity, if any.
                * 
            * * string domain = 6; - * * @return The domain. */ @java.lang.Override @@ -491,29 +440,29 @@ public java.lang.String getDomain() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); domain_ = s; return s; } } /** - * - * *
                * The domain associated with the entity, if any.
                * 
            * * string domain = 6; - * * @return The bytes for domain. */ @java.lang.Override - public com.google.protobuf.ByteString getDomainBytes() { + public com.google.protobuf.ByteString + getDomainBytes() { java.lang.Object ref = domain_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); domain_ = b; return b; } else { @@ -524,14 +473,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 @@ -539,25 +485,18 @@ public boolean hasProjectTeam() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * The project team associated with the entity, if any.
                * 
            * * .google.storage.v2.ProjectTeam project_team = 7; - * * @return The projectTeam. */ @java.lang.Override public com.google.storage.v2.ProjectTeam getProjectTeam() { - return projectTeam_ == null - ? com.google.storage.v2.ProjectTeam.getDefaultInstance() - : projectTeam_; + return projectTeam_ == null ? com.google.storage.v2.ProjectTeam.getDefaultInstance() : projectTeam_; } /** - * - * *
                * The project team associated with the entity, if any.
                * 
            @@ -566,13 +505,10 @@ public com.google.storage.v2.ProjectTeam getProjectTeam() { */ @java.lang.Override public com.google.storage.v2.ProjectTeamOrBuilder getProjectTeamOrBuilder() { - return projectTeam_ == null - ? com.google.storage.v2.ProjectTeam.getDefaultInstance() - : projectTeam_; + return projectTeam_ == null ? com.google.storage.v2.ProjectTeam.getDefaultInstance() : projectTeam_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -584,7 +520,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(role_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, role_); } @@ -640,7 +577,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, domain_); } if (((bitField0_ & 0x00000001) != 0)) { - 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_); @@ -656,25 +594,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.ObjectAccessControl)) { return super.equals(obj); } - com.google.storage.v2.ObjectAccessControl other = - (com.google.storage.v2.ObjectAccessControl) obj; - - if (!getRole().equals(other.getRole())) return false; - if (!getId().equals(other.getId())) return false; - if (!getEntity().equals(other.getEntity())) return false; - if (!getEntityAlt().equals(other.getEntityAlt())) return false; - if (!getEntityId().equals(other.getEntityId())) return false; - if (!getEtag().equals(other.getEtag())) return false; - if (!getEmail().equals(other.getEmail())) return false; - if (!getDomain().equals(other.getDomain())) return false; + com.google.storage.v2.ObjectAccessControl other = (com.google.storage.v2.ObjectAccessControl) obj; + + if (!getRole() + .equals(other.getRole())) return false; + if (!getId() + .equals(other.getId())) return false; + if (!getEntity() + .equals(other.getEntity())) return false; + if (!getEntityAlt() + .equals(other.getEntityAlt())) return false; + if (!getEntityId() + .equals(other.getEntityId())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (!getEmail() + .equals(other.getEmail())) return false; + if (!getDomain() + .equals(other.getDomain())) return false; if (hasProjectTeam() != other.hasProjectTeam()) return false; if (hasProjectTeam()) { - if (!getProjectTeam().equals(other.getProjectTeam())) return false; + if (!getProjectTeam() + .equals(other.getProjectTeam())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -712,127 +658,120 @@ 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() @@ -840,17 +779,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) { getProjectTeamFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -872,9 +811,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ObjectAccessControl_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ObjectAccessControl_descriptor; } @java.lang.Override @@ -893,11 +832,8 @@ public com.google.storage.v2.ObjectAccessControl build() { @java.lang.Override public com.google.storage.v2.ObjectAccessControl buildPartial() { - com.google.storage.v2.ObjectAccessControl result = - new com.google.storage.v2.ObjectAccessControl(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.ObjectAccessControl result = new com.google.storage.v2.ObjectAccessControl(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -930,8 +866,9 @@ private void buildPartial0(com.google.storage.v2.ObjectAccessControl result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000100) != 0)) { - result.projectTeam_ = - projectTeamBuilder_ == null ? projectTeam_ : projectTeamBuilder_.build(); + result.projectTeam_ = projectTeamBuilder_ == null + ? projectTeam_ + : projectTeamBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -941,39 +878,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; @@ -1051,67 +987,59 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - role_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - id_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - entity_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - entityId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 34 - case 42: - { - email_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 42 - case 50: - { - domain_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 50 - case 58: - { - input.readMessage(getProjectTeamFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 58 - case 66: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 66 - case 74: - { - entityAlt_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 74 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + role_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + entity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + entityId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: { + email_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 42 + case 50: { + domain_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 50 + case 58: { + input.readMessage( + getProjectTeamFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 58 + case 66: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 66 + case 74: { + entityAlt_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 74 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1121,25 +1049,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object role_ = ""; /** - * - * *
                  * The access permission for the entity.
                  * 
            * * string role = 1; - * * @return The role. */ public java.lang.String getRole() { java.lang.Object ref = role_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); role_ = s; return s; @@ -1148,21 +1073,20 @@ public java.lang.String getRole() { } } /** - * - * *
                  * The access permission for the entity.
                  * 
            * * string role = 1; - * * @return The bytes for role. */ - public com.google.protobuf.ByteString getRoleBytes() { + public com.google.protobuf.ByteString + getRoleBytes() { java.lang.Object ref = role_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); role_ = b; return b; } else { @@ -1170,35 +1094,28 @@ public com.google.protobuf.ByteString getRoleBytes() { } } /** - * - * *
                  * The access permission for the entity.
                  * 
            * * string role = 1; - * * @param value The role to set. * @return This builder for chaining. */ - public Builder setRole(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRole( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } role_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * The access permission for the entity.
                  * 
            * * string role = 1; - * * @return This builder for chaining. */ public Builder clearRole() { @@ -1208,21 +1125,17 @@ public Builder clearRole() { return this; } /** - * - * *
                  * The access permission for the entity.
                  * 
            * * string role = 1; - * * @param value The bytes for role to set. * @return This builder for chaining. */ - public Builder setRoleBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRoleBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); role_ = value; bitField0_ |= 0x00000001; @@ -1232,20 +1145,18 @@ public Builder setRoleBytes(com.google.protobuf.ByteString value) { private java.lang.Object id_ = ""; /** - * - * *
                  * The ID of the access-control entry.
                  * 
            * * string id = 2; - * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; @@ -1254,21 +1165,20 @@ public java.lang.String getId() { } } /** - * - * *
                  * The ID of the access-control entry.
                  * 
            * * string id = 2; - * * @return The bytes for id. */ - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); id_ = b; return b; } else { @@ -1276,35 +1186,28 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
                  * The ID of the access-control entry.
                  * 
            * * string id = 2; - * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } id_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                  * The ID of the access-control entry.
                  * 
            * * string id = 2; - * * @return This builder for chaining. */ public Builder clearId() { @@ -1314,21 +1217,17 @@ public Builder clearId() { return this; } /** - * - * *
                  * The ID of the access-control entry.
                  * 
            * * string id = 2; - * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00000002; @@ -1338,8 +1237,6 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object entity_ = ""; /** - * - * *
                  * The entity holding the permission, in one of the following forms:
                  * * `user-{userid}`
            @@ -1362,13 +1259,13 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) {
                  * 
            * * string entity = 3; - * * @return The entity. */ public java.lang.String getEntity() { java.lang.Object ref = entity_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entity_ = s; return s; @@ -1377,8 +1274,6 @@ public java.lang.String getEntity() { } } /** - * - * *
                  * The entity holding the permission, in one of the following forms:
                  * * `user-{userid}`
            @@ -1401,14 +1296,15 @@ public java.lang.String getEntity() {
                  * 
            * * string entity = 3; - * * @return The bytes for entity. */ - public com.google.protobuf.ByteString getEntityBytes() { + public com.google.protobuf.ByteString + getEntityBytes() { java.lang.Object ref = entity_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entity_ = b; return b; } else { @@ -1416,8 +1312,6 @@ public com.google.protobuf.ByteString getEntityBytes() { } } /** - * - * *
                  * The entity holding the permission, in one of the following forms:
                  * * `user-{userid}`
            @@ -1440,22 +1334,18 @@ public com.google.protobuf.ByteString getEntityBytes() {
                  * 
            * * string entity = 3; - * * @param value The entity to set. * @return This builder for chaining. */ - public Builder setEntity(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEntity( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } entity_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
                  * The entity holding the permission, in one of the following forms:
                  * * `user-{userid}`
            @@ -1478,7 +1368,6 @@ public Builder setEntity(java.lang.String value) {
                  * 
            * * string entity = 3; - * * @return This builder for chaining. */ public Builder clearEntity() { @@ -1488,8 +1377,6 @@ public Builder clearEntity() { return this; } /** - * - * *
                  * The entity holding the permission, in one of the following forms:
                  * * `user-{userid}`
            @@ -1512,14 +1399,12 @@ public Builder clearEntity() {
                  * 
            * * string entity = 3; - * * @param value The bytes for entity to set. * @return This builder for chaining. */ - public Builder setEntityBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEntityBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); entity_ = value; bitField0_ |= 0x00000004; @@ -1529,21 +1414,19 @@ public Builder setEntityBytes(com.google.protobuf.ByteString value) { private java.lang.Object entityAlt_ = ""; /** - * - * *
                  * Output only. The alternative entity format, if exists. For project
                  * entities, `project-{team}-{projectid}` format will be returned on response.
                  * 
            * * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The entityAlt. */ public java.lang.String getEntityAlt() { java.lang.Object ref = entityAlt_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityAlt_ = s; return s; @@ -1552,22 +1435,21 @@ public java.lang.String getEntityAlt() { } } /** - * - * *
                  * Output only. The alternative entity format, if exists. For project
                  * entities, `project-{team}-{projectid}` format will be returned on response.
                  * 
            * * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for entityAlt. */ - public com.google.protobuf.ByteString getEntityAltBytes() { + public com.google.protobuf.ByteString + getEntityAltBytes() { java.lang.Object ref = entityAlt_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entityAlt_ = b; return b; } else { @@ -1575,37 +1457,30 @@ public com.google.protobuf.ByteString getEntityAltBytes() { } } /** - * - * *
                  * Output only. The alternative entity format, if exists. For project
                  * entities, `project-{team}-{projectid}` format will be returned on response.
                  * 
            * * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The entityAlt to set. * @return This builder for chaining. */ - public Builder setEntityAlt(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEntityAlt( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } entityAlt_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
                  * Output only. The alternative entity format, if exists. For project
                  * entities, `project-{team}-{projectid}` format will be returned on response.
                  * 
            * * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearEntityAlt() { @@ -1615,22 +1490,18 @@ public Builder clearEntityAlt() { return this; } /** - * - * *
                  * Output only. The alternative entity format, if exists. For project
                  * entities, `project-{team}-{projectid}` format will be returned on response.
                  * 
            * * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for entityAlt to set. * @return This builder for chaining. */ - public Builder setEntityAltBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEntityAltBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); entityAlt_ = value; bitField0_ |= 0x00000008; @@ -1640,20 +1511,18 @@ public Builder setEntityAltBytes(com.google.protobuf.ByteString value) { private java.lang.Object entityId_ = ""; /** - * - * *
                  * The ID for the entity, if any.
                  * 
            * * string entity_id = 4; - * * @return The entityId. */ public java.lang.String getEntityId() { java.lang.Object ref = entityId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityId_ = s; return s; @@ -1662,21 +1531,20 @@ public java.lang.String getEntityId() { } } /** - * - * *
                  * The ID for the entity, if any.
                  * 
            * * string entity_id = 4; - * * @return The bytes for entityId. */ - public com.google.protobuf.ByteString getEntityIdBytes() { + public com.google.protobuf.ByteString + getEntityIdBytes() { java.lang.Object ref = entityId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entityId_ = b; return b; } else { @@ -1684,35 +1552,28 @@ public com.google.protobuf.ByteString getEntityIdBytes() { } } /** - * - * *
                  * The ID for the entity, if any.
                  * 
            * * string entity_id = 4; - * * @param value The entityId to set. * @return This builder for chaining. */ - public Builder setEntityId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEntityId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } entityId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
                  * The ID for the entity, if any.
                  * 
            * * string entity_id = 4; - * * @return This builder for chaining. */ public Builder clearEntityId() { @@ -1722,21 +1583,17 @@ public Builder clearEntityId() { return this; } /** - * - * *
                  * The ID for the entity, if any.
                  * 
            * * string entity_id = 4; - * * @param value The bytes for entityId to set. * @return This builder for chaining. */ - public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEntityIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); entityId_ = value; bitField0_ |= 0x00000010; @@ -1746,8 +1603,6 @@ public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object etag_ = ""; /** - * - * *
                  * The etag of the ObjectAccessControl.
                  * If included in the metadata of an update or delete request message, the
            @@ -1756,13 +1611,13 @@ public Builder setEntityIdBytes(com.google.protobuf.ByteString value) {
                  * 
            * * string etag = 8; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -1771,8 +1626,6 @@ public java.lang.String getEtag() { } } /** - * - * *
                  * The etag of the ObjectAccessControl.
                  * If included in the metadata of an update or delete request message, the
            @@ -1781,14 +1634,15 @@ public java.lang.String getEtag() {
                  * 
            * * string etag = 8; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -1796,8 +1650,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
                  * The etag of the ObjectAccessControl.
                  * If included in the metadata of an update or delete request message, the
            @@ -1806,22 +1658,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
                  * 
            * * string etag = 8; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
                  * The etag of the ObjectAccessControl.
                  * If included in the metadata of an update or delete request message, the
            @@ -1830,7 +1678,6 @@ public Builder setEtag(java.lang.String value) {
                  * 
            * * string etag = 8; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -1840,8 +1687,6 @@ public Builder clearEtag() { return this; } /** - * - * *
                  * The etag of the ObjectAccessControl.
                  * If included in the metadata of an update or delete request message, the
            @@ -1850,14 +1695,12 @@ public Builder clearEtag() {
                  * 
            * * string etag = 8; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000020; @@ -1867,20 +1710,18 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { private java.lang.Object email_ = ""; /** - * - * *
                  * The email address associated with the entity, if any.
                  * 
            * * string email = 5; - * * @return The email. */ public java.lang.String getEmail() { java.lang.Object ref = email_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; @@ -1889,21 +1730,20 @@ public java.lang.String getEmail() { } } /** - * - * *
                  * The email address associated with the entity, if any.
                  * 
            * * string email = 5; - * * @return The bytes for email. */ - public com.google.protobuf.ByteString getEmailBytes() { + public com.google.protobuf.ByteString + getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); email_ = b; return b; } else { @@ -1911,35 +1751,28 @@ public com.google.protobuf.ByteString getEmailBytes() { } } /** - * - * *
                  * The email address associated with the entity, if any.
                  * 
            * * string email = 5; - * * @param value The email to set. * @return This builder for chaining. */ - public Builder setEmail(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEmail( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } email_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
                  * The email address associated with the entity, if any.
                  * 
            * * string email = 5; - * * @return This builder for chaining. */ public Builder clearEmail() { @@ -1949,21 +1782,17 @@ public Builder clearEmail() { return this; } /** - * - * *
                  * The email address associated with the entity, if any.
                  * 
            * * string email = 5; - * * @param value The bytes for email to set. * @return This builder for chaining. */ - public Builder setEmailBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); email_ = value; bitField0_ |= 0x00000040; @@ -1973,20 +1802,18 @@ public Builder setEmailBytes(com.google.protobuf.ByteString value) { private java.lang.Object domain_ = ""; /** - * - * *
                  * The domain associated with the entity, if any.
                  * 
            * * string domain = 6; - * * @return The domain. */ public java.lang.String getDomain() { java.lang.Object ref = domain_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); domain_ = s; return s; @@ -1995,21 +1822,20 @@ public java.lang.String getDomain() { } } /** - * - * *
                  * The domain associated with the entity, if any.
                  * 
            * * string domain = 6; - * * @return The bytes for domain. */ - public com.google.protobuf.ByteString getDomainBytes() { + public com.google.protobuf.ByteString + getDomainBytes() { java.lang.Object ref = domain_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); domain_ = b; return b; } else { @@ -2017,35 +1843,28 @@ public com.google.protobuf.ByteString getDomainBytes() { } } /** - * - * *
                  * The domain associated with the entity, if any.
                  * 
            * * string domain = 6; - * * @param value The domain to set. * @return This builder for chaining. */ - public Builder setDomain(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDomain( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } domain_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * *
                  * The domain associated with the entity, if any.
                  * 
            * * string domain = 6; - * * @return This builder for chaining. */ public Builder clearDomain() { @@ -2055,21 +1874,17 @@ public Builder clearDomain() { return this; } /** - * - * *
                  * The domain associated with the entity, if any.
                  * 
            * * string domain = 6; - * * @param value The bytes for domain to set. * @return This builder for chaining. */ - public Builder setDomainBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDomainBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); domain_ = value; bitField0_ |= 0x00000080; @@ -2079,47 +1894,34 @@ public Builder setDomainBytes(com.google.protobuf.ByteString value) { private com.google.storage.v2.ProjectTeam projectTeam_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.ProjectTeam, - com.google.storage.v2.ProjectTeam.Builder, - com.google.storage.v2.ProjectTeamOrBuilder> - projectTeamBuilder_; + com.google.storage.v2.ProjectTeam, com.google.storage.v2.ProjectTeam.Builder, com.google.storage.v2.ProjectTeamOrBuilder> projectTeamBuilder_; /** - * - * *
                  * The project team associated with the entity, if any.
                  * 
            * * .google.storage.v2.ProjectTeam project_team = 7; - * * @return Whether the projectTeam field is set. */ public boolean hasProjectTeam() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
                  * The project team associated with the entity, if any.
                  * 
            * * .google.storage.v2.ProjectTeam project_team = 7; - * * @return The projectTeam. */ public com.google.storage.v2.ProjectTeam getProjectTeam() { if (projectTeamBuilder_ == null) { - return projectTeam_ == null - ? com.google.storage.v2.ProjectTeam.getDefaultInstance() - : projectTeam_; + return projectTeam_ == null ? com.google.storage.v2.ProjectTeam.getDefaultInstance() : projectTeam_; } else { return projectTeamBuilder_.getMessage(); } } /** - * - * *
                  * The project team associated with the entity, if any.
                  * 
            @@ -2140,15 +1942,14 @@ public Builder setProjectTeam(com.google.storage.v2.ProjectTeam value) { return this; } /** - * - * *
                  * The project team associated with the entity, if any.
                  * 
            * * .google.storage.v2.ProjectTeam project_team = 7; */ - public Builder setProjectTeam(com.google.storage.v2.ProjectTeam.Builder builderForValue) { + public Builder setProjectTeam( + com.google.storage.v2.ProjectTeam.Builder builderForValue) { if (projectTeamBuilder_ == null) { projectTeam_ = builderForValue.build(); } else { @@ -2159,8 +1960,6 @@ public Builder setProjectTeam(com.google.storage.v2.ProjectTeam.Builder builderF return this; } /** - * - * *
                  * The project team associated with the entity, if any.
                  * 
            @@ -2169,9 +1968,9 @@ public Builder setProjectTeam(com.google.storage.v2.ProjectTeam.Builder builderF */ public Builder mergeProjectTeam(com.google.storage.v2.ProjectTeam value) { if (projectTeamBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && projectTeam_ != null - && projectTeam_ != com.google.storage.v2.ProjectTeam.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + projectTeam_ != null && + projectTeam_ != com.google.storage.v2.ProjectTeam.getDefaultInstance()) { getProjectTeamBuilder().mergeFrom(value); } else { projectTeam_ = value; @@ -2186,8 +1985,6 @@ public Builder mergeProjectTeam(com.google.storage.v2.ProjectTeam value) { return this; } /** - * - * *
                  * The project team associated with the entity, if any.
                  * 
            @@ -2205,8 +2002,6 @@ public Builder clearProjectTeam() { return this; } /** - * - * *
                  * The project team associated with the entity, if any.
                  * 
            @@ -2219,8 +2014,6 @@ public com.google.storage.v2.ProjectTeam.Builder getProjectTeamBuilder() { return getProjectTeamFieldBuilder().getBuilder(); } /** - * - * *
                  * The project team associated with the entity, if any.
                  * 
            @@ -2231,14 +2024,11 @@ public com.google.storage.v2.ProjectTeamOrBuilder getProjectTeamOrBuilder() { if (projectTeamBuilder_ != null) { return projectTeamBuilder_.getMessageOrBuilder(); } else { - return projectTeam_ == null - ? com.google.storage.v2.ProjectTeam.getDefaultInstance() - : projectTeam_; + return projectTeam_ == null ? + com.google.storage.v2.ProjectTeam.getDefaultInstance() : projectTeam_; } } /** - * - * *
                  * The project team associated with the entity, if any.
                  * 
            @@ -2246,24 +2036,21 @@ public com.google.storage.v2.ProjectTeamOrBuilder getProjectTeamOrBuilder() { * .google.storage.v2.ProjectTeam project_team = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.ProjectTeam, - com.google.storage.v2.ProjectTeam.Builder, - com.google.storage.v2.ProjectTeamOrBuilder> + com.google.storage.v2.ProjectTeam, com.google.storage.v2.ProjectTeam.Builder, com.google.storage.v2.ProjectTeamOrBuilder> getProjectTeamFieldBuilder() { if (projectTeamBuilder_ == null) { - projectTeamBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.ProjectTeam, - com.google.storage.v2.ProjectTeam.Builder, - com.google.storage.v2.ProjectTeamOrBuilder>( - getProjectTeam(), getParentForChildren(), isClean()); + projectTeamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.ProjectTeam, com.google.storage.v2.ProjectTeam.Builder, com.google.storage.v2.ProjectTeamOrBuilder>( + getProjectTeam(), + getParentForChildren(), + isClean()); projectTeam_ = null; } return projectTeamBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2273,12 +2060,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.ObjectAccessControl) } // @@protoc_insertion_point(class_scope:google.storage.v2.ObjectAccessControl) private static final com.google.storage.v2.ObjectAccessControl DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.ObjectAccessControl(); } @@ -2287,27 +2074,27 @@ public static com.google.storage.v2.ObjectAccessControl getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObjectAccessControl parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObjectAccessControl parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2322,4 +2109,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.ObjectAccessControl getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectAccessControlOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectAccessControlOrBuilder.java similarity index 81% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectAccessControlOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectAccessControlOrBuilder.java index 11e3909aa4..89db297074 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,82 +1,54 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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}`
            @@ -99,13 +71,10 @@ public interface ObjectAccessControlOrBuilder
                * 
            * * string entity = 3; - * * @return The entity. */ java.lang.String getEntity(); /** - * - * *
                * The entity holding the permission, in one of the following forms:
                * * `user-{userid}`
            @@ -128,66 +97,54 @@ public interface ObjectAccessControlOrBuilder
                * 
            * * string entity = 3; - * * @return The bytes for entity. */ - com.google.protobuf.ByteString getEntityBytes(); + com.google.protobuf.ByteString + getEntityBytes(); /** - * - * *
                * Output only. The alternative entity format, if exists. For project
                * entities, `project-{team}-{projectid}` format will be returned on response.
                * 
            * * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The entityAlt. */ java.lang.String getEntityAlt(); /** - * - * *
                * Output only. The alternative entity format, if exists. For project
                * entities, `project-{team}-{projectid}` format will be returned on response.
                * 
            * * string entity_alt = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for entityAlt. */ - com.google.protobuf.ByteString getEntityAltBytes(); + com.google.protobuf.ByteString + getEntityAltBytes(); /** - * - * *
                * The ID for the entity, if any.
                * 
            * * string entity_id = 4; - * * @return The entityId. */ java.lang.String getEntityId(); /** - * - * *
                * The ID for the entity, if any.
                * 
            * * string entity_id = 4; - * * @return The bytes for entityId. */ - com.google.protobuf.ByteString getEntityIdBytes(); + com.google.protobuf.ByteString + getEntityIdBytes(); /** - * - * *
                * The etag of the ObjectAccessControl.
                * If included in the metadata of an update or delete request message, the
            @@ -196,13 +153,10 @@ public interface ObjectAccessControlOrBuilder
                * 
            * * string etag = 8; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
                * The etag of the ObjectAccessControl.
                * If included in the metadata of an update or delete request message, the
            @@ -211,88 +165,70 @@ public interface ObjectAccessControlOrBuilder
                * 
            * * string etag = 8; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
                * The email address associated with the entity, if any.
                * 
            * * string email = 5; - * * @return The email. */ java.lang.String getEmail(); /** - * - * *
                * The email address associated with the entity, if any.
                * 
            * * string email = 5; - * * @return The bytes for email. */ - com.google.protobuf.ByteString getEmailBytes(); + com.google.protobuf.ByteString + getEmailBytes(); /** - * - * *
                * The domain associated with the entity, if any.
                * 
            * * string domain = 6; - * * @return The domain. */ java.lang.String getDomain(); /** - * - * *
                * The domain associated with the entity, if any.
                * 
            * * string domain = 6; - * * @return The bytes for domain. */ - com.google.protobuf.ByteString getDomainBytes(); + com.google.protobuf.ByteString + getDomainBytes(); /** - * - * *
                * The project team associated with the entity, if any.
                * 
            * * .google.storage.v2.ProjectTeam project_team = 7; - * * @return Whether the projectTeam field is set. */ boolean hasProjectTeam(); /** - * - * *
                * The project team associated with the entity, if any.
                * 
            * * .google.storage.v2.ProjectTeam project_team = 7; - * * @return The projectTeam. */ com.google.storage.v2.ProjectTeam getProjectTeam(); /** - * - * *
                * The project team associated with the entity, if any.
                * 
            diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksums.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksums.java similarity index 72% 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 6a515e0597..03c07acf58 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,55 +5,49 @@ package com.google.storage.v2; /** - * - * *
              * Message used for storing full (not subrange) object checksums.
              * 
            * * Protobuf type {@code google.storage.v2.ObjectChecksums} */ -public final class ObjectChecksums extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ObjectChecksums extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.ObjectChecksums) ObjectChecksumsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ObjectChecksums.newBuilder() to construct. private ObjectChecksums(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ObjectChecksums() { md5Hash_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ObjectChecksums(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ObjectChecksums_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ObjectChecksums_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ObjectChecksums_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ObjectChecksums_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ObjectChecksums.class, - com.google.storage.v2.ObjectChecksums.Builder.class); + com.google.storage.v2.ObjectChecksums.class, com.google.storage.v2.ObjectChecksums.Builder.class); } private int bitField0_; public static final int CRC32C_FIELD_NUMBER = 1; private int crc32C_ = 0; /** - * - * *
                * CRC32C digest of the object data. Computed by the Cloud Storage service for
                * all written objects.
            @@ -77,7 +56,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                * 
            * * optional fixed32 crc32c = 1; - * * @return Whether the crc32c field is set. */ @java.lang.Override @@ -85,8 +63,6 @@ public boolean hasCrc32C() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * CRC32C digest of the object data. Computed by the Cloud Storage service for
                * all written objects.
            @@ -95,7 +71,6 @@ public boolean hasCrc32C() {
                * 
            * * optional fixed32 crc32c = 1; - * * @return The crc32c. */ @java.lang.Override @@ -106,8 +81,6 @@ public int getCrc32C() { public static final int MD5_HASH_FIELD_NUMBER = 2; private com.google.protobuf.ByteString md5Hash_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
                * 128 bit MD5 hash of the object data.
                * For more information about using the MD5 hash, see
            @@ -119,7 +92,6 @@ public int getCrc32C() {
                * 
            * * bytes md5_hash = 2; - * * @return The md5Hash. */ @java.lang.Override @@ -128,7 +100,6 @@ public com.google.protobuf.ByteString getMd5Hash() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -140,7 +111,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeFixed32(1, crc32C_); } @@ -157,10 +129,12 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeFixed32Size(1, crc32C_); + size += com.google.protobuf.CodedOutputStream + .computeFixed32Size(1, crc32C_); } if (!md5Hash_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, md5Hash_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, md5Hash_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -170,7 +144,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.ObjectChecksums)) { return super.equals(obj); @@ -179,9 +153,11 @@ public boolean equals(final java.lang.Object obj) { if (hasCrc32C() != other.hasCrc32C()) return false; if (hasCrc32C()) { - if (getCrc32C() != other.getCrc32C()) return false; + if (getCrc32C() + != other.getCrc32C()) return false; } - if (!getMd5Hash().equals(other.getMd5Hash())) return false; + if (!getMd5Hash() + .equals(other.getMd5Hash())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -204,135 +180,132 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.ObjectChecksums parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.ObjectChecksums parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ObjectChecksums parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.v2.ObjectChecksums parseFrom(com.google.protobuf.ByteString data) + public static com.google.storage.v2.ObjectChecksums parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ObjectChecksums parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.ObjectChecksums parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ObjectChecksums parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.ObjectChecksums parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.ObjectChecksums parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.storage.v2.ObjectChecksums parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.ObjectChecksums parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.ObjectChecksums parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.ObjectChecksums parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.ObjectChecksums prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * Message used for storing full (not subrange) object checksums.
                * 
            * * Protobuf type {@code google.storage.v2.ObjectChecksums} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.ObjectChecksums) com.google.storage.v2.ObjectChecksumsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ObjectChecksums_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ObjectChecksums_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ObjectChecksums_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ObjectChecksums_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ObjectChecksums.class, - com.google.storage.v2.ObjectChecksums.Builder.class); + com.google.storage.v2.ObjectChecksums.class, com.google.storage.v2.ObjectChecksums.Builder.class); } // Construct using com.google.storage.v2.ObjectChecksums.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +316,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ObjectChecksums_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ObjectChecksums_descriptor; } @java.lang.Override @@ -364,11 +337,8 @@ public com.google.storage.v2.ObjectChecksums build() { @java.lang.Override public com.google.storage.v2.ObjectChecksums buildPartial() { - com.google.storage.v2.ObjectChecksums result = - new com.google.storage.v2.ObjectChecksums(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.ObjectChecksums result = new com.google.storage.v2.ObjectChecksums(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -390,39 +360,38 @@ private void buildPartial0(com.google.storage.v2.ObjectChecksums result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.ObjectChecksums) { - return mergeFrom((com.google.storage.v2.ObjectChecksums) other); + return mergeFrom((com.google.storage.v2.ObjectChecksums)other); } else { super.mergeFrom(other); return this; @@ -463,25 +432,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 13: - { - crc32C_ = input.readFixed32(); - bitField0_ |= 0x00000001; - break; - } // case 13 - case 18: - { - md5Hash_ = input.readBytes(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 13: { + crc32C_ = input.readFixed32(); + bitField0_ |= 0x00000001; + break; + } // case 13 + case 18: { + md5Hash_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -491,13 +457,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private int crc32C_; + private int crc32C_ ; /** - * - * *
                  * CRC32C digest of the object data. Computed by the Cloud Storage service for
                  * all written objects.
            @@ -506,7 +469,6 @@ public Builder mergeFrom(
                  * 
            * * optional fixed32 crc32c = 1; - * * @return Whether the crc32c field is set. */ @java.lang.Override @@ -514,8 +476,6 @@ public boolean hasCrc32C() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                  * CRC32C digest of the object data. Computed by the Cloud Storage service for
                  * all written objects.
            @@ -524,7 +484,6 @@ public boolean hasCrc32C() {
                  * 
            * * optional fixed32 crc32c = 1; - * * @return The crc32c. */ @java.lang.Override @@ -532,8 +491,6 @@ public int getCrc32C() { return crc32C_; } /** - * - * *
                  * CRC32C digest of the object data. Computed by the Cloud Storage service for
                  * all written objects.
            @@ -542,7 +499,6 @@ public int getCrc32C() {
                  * 
            * * optional fixed32 crc32c = 1; - * * @param value The crc32c to set. * @return This builder for chaining. */ @@ -554,8 +510,6 @@ public Builder setCrc32C(int value) { return this; } /** - * - * *
                  * CRC32C digest of the object data. Computed by the Cloud Storage service for
                  * all written objects.
            @@ -564,7 +518,6 @@ public Builder setCrc32C(int value) {
                  * 
            * * optional fixed32 crc32c = 1; - * * @return This builder for chaining. */ public Builder clearCrc32C() { @@ -576,8 +529,6 @@ public Builder clearCrc32C() { private com.google.protobuf.ByteString md5Hash_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
                  * 128 bit MD5 hash of the object data.
                  * For more information about using the MD5 hash, see
            @@ -589,7 +540,6 @@ public Builder clearCrc32C() {
                  * 
            * * bytes md5_hash = 2; - * * @return The md5Hash. */ @java.lang.Override @@ -597,8 +547,6 @@ public com.google.protobuf.ByteString getMd5Hash() { return md5Hash_; } /** - * - * *
                  * 128 bit MD5 hash of the object data.
                  * For more information about using the MD5 hash, see
            @@ -610,22 +558,17 @@ public com.google.protobuf.ByteString getMd5Hash() {
                  * 
            * * bytes md5_hash = 2; - * * @param value The md5Hash to set. * @return This builder for chaining. */ public Builder setMd5Hash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } md5Hash_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                  * 128 bit MD5 hash of the object data.
                  * For more information about using the MD5 hash, see
            @@ -637,7 +580,6 @@ public Builder setMd5Hash(com.google.protobuf.ByteString value) {
                  * 
            * * bytes md5_hash = 2; - * * @return This builder for chaining. */ public Builder clearMd5Hash() { @@ -646,9 +588,9 @@ public Builder clearMd5Hash() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -658,12 +600,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.ObjectChecksums) } // @@protoc_insertion_point(class_scope:google.storage.v2.ObjectChecksums) private static final com.google.storage.v2.ObjectChecksums DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.ObjectChecksums(); } @@ -672,27 +614,27 @@ public static com.google.storage.v2.ObjectChecksums getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObjectChecksums parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObjectChecksums parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -707,4 +649,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.ObjectChecksums getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksumsOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectChecksumsOrBuilder.java similarity index 69% 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 f58e290a93..2885c1f0f5 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,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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.
            @@ -35,13 +17,10 @@ public interface ObjectChecksumsOrBuilder
                * 
            * * optional fixed32 crc32c = 1; - * * @return Whether the crc32c field is set. */ boolean hasCrc32C(); /** - * - * *
                * CRC32C digest of the object data. Computed by the Cloud Storage service for
                * all written objects.
            @@ -50,14 +29,11 @@ public interface ObjectChecksumsOrBuilder
                * 
            * * optional fixed32 crc32c = 1; - * * @return The crc32c. */ int getCrc32C(); /** - * - * *
                * 128 bit MD5 hash of the object data.
                * For more information about using the MD5 hash, see
            @@ -69,7 +45,6 @@ public interface ObjectChecksumsOrBuilder
                * 
            * * bytes md5_hash = 2; - * * @return The md5Hash. */ com.google.protobuf.ByteString getMd5Hash(); diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ObjectOrBuilder.java similarity index 82% 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 62f72c138e..e05581785d 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,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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
            @@ -38,13 +20,10 @@ public interface ObjectOrBuilder
                * 
            * * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
                * Immutable. The name of this object. Nearly any sequence of unicode
                * characters is valid. See
            @@ -56,43 +35,32 @@ public interface ObjectOrBuilder
                * 
            * * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
                * Immutable. The name of the bucket containing this object.
                * 
            * - * - * string bucket = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bucket. */ java.lang.String getBucket(); /** - * - * *
                * Immutable. The name of the bucket containing this object.
                * 
            * - * - * string bucket = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for bucket. */ - com.google.protobuf.ByteString getBucketBytes(); + com.google.protobuf.ByteString + getBucketBytes(); /** - * - * *
                * The etag of the object.
                * If included in the metadata of an update or delete request message, the
            @@ -101,13 +69,10 @@ public interface ObjectOrBuilder
                * 
            * * string etag = 27; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
                * The etag of the object.
                * If included in the metadata of an update or delete request message, the
            @@ -116,28 +81,23 @@ public interface ObjectOrBuilder
                * 
            * * string etag = 27; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
                * Immutable. The content generation of this object. Used for object
                * versioning.
                * 
            * * int64 generation = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The generation. */ long getGeneration(); /** - * - * *
                * Output only. The version of the metadata for this generation of this
                * object. Used for preconditions and for detecting changes in metadata. A
            @@ -146,107 +106,86 @@ public interface ObjectOrBuilder
                * 
            * * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The metageneration. */ long getMetageneration(); /** - * - * *
                * Storage class of the object.
                * 
            * * string storage_class = 5; - * * @return The storageClass. */ java.lang.String getStorageClass(); /** - * - * *
                * Storage class of the object.
                * 
            * * string storage_class = 5; - * * @return The bytes for storageClass. */ - com.google.protobuf.ByteString getStorageClassBytes(); + com.google.protobuf.ByteString + getStorageClassBytes(); /** - * - * *
                * Output only. Content-Length of the object data in bytes, matching
                * [https://tools.ietf.org/html/rfc7230#section-3.3.2][RFC 7230 §3.3.2].
                * 
            * * int64 size = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The size. */ long getSize(); /** - * - * *
                * Content-Encoding of the object data, matching
                * [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2]
                * 
            * * string content_encoding = 7; - * * @return The contentEncoding. */ java.lang.String getContentEncoding(); /** - * - * *
                * Content-Encoding of the object data, matching
                * [https://tools.ietf.org/html/rfc7231#section-3.1.2.2][RFC 7231 §3.1.2.2]
                * 
            * * string content_encoding = 7; - * * @return The bytes for contentEncoding. */ - com.google.protobuf.ByteString getContentEncodingBytes(); + com.google.protobuf.ByteString + getContentEncodingBytes(); /** - * - * *
                * Content-Disposition of the object data, matching
                * [https://tools.ietf.org/html/rfc6266][RFC 6266].
                * 
            * * string content_disposition = 8; - * * @return The contentDisposition. */ java.lang.String getContentDisposition(); /** - * - * *
                * Content-Disposition of the object data, matching
                * [https://tools.ietf.org/html/rfc6266][RFC 6266].
                * 
            * * string content_disposition = 8; - * * @return The bytes for contentDisposition. */ - com.google.protobuf.ByteString getContentDispositionBytes(); + com.google.protobuf.ByteString + getContentDispositionBytes(); /** - * - * *
                * Cache-Control directive for the object data, matching
                * [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2].
            @@ -255,13 +194,10 @@ public interface ObjectOrBuilder
                * 
            * * string cache_control = 9; - * * @return The cacheControl. */ java.lang.String getCacheControl(); /** - * - * *
                * Cache-Control directive for the object data, matching
                * [https://tools.ietf.org/html/rfc7234#section-5.2"][RFC 7234 §5.2].
            @@ -270,14 +206,12 @@ public interface ObjectOrBuilder
                * 
            * * string cache_control = 9; - * * @return The bytes for cacheControl. */ - com.google.protobuf.ByteString getCacheControlBytes(); + com.google.protobuf.ByteString + getCacheControlBytes(); /** - * - * *
                * Access controls on the object.
                * If iam_config.uniform_bucket_level_access is enabled on the parent
            @@ -286,10 +220,9 @@ public interface ObjectOrBuilder
                *
                * repeated .google.storage.v2.ObjectAccessControl acl = 10;
                */
            -  java.util.List getAclList();
            +  java.util.List 
            +      getAclList();
               /**
            -   *
            -   *
                * 
                * Access controls on the object.
                * If iam_config.uniform_bucket_level_access is enabled on the parent
            @@ -300,8 +233,6 @@ public interface ObjectOrBuilder
                */
               com.google.storage.v2.ObjectAccessControl getAcl(int index);
               /**
            -   *
            -   *
                * 
                * Access controls on the object.
                * If iam_config.uniform_bucket_level_access is enabled on the parent
            @@ -312,8 +243,6 @@ public interface ObjectOrBuilder
                */
               int getAclCount();
               /**
            -   *
            -   *
                * 
                * Access controls on the object.
                * If iam_config.uniform_bucket_level_access is enabled on the parent
            @@ -322,11 +251,9 @@ public interface ObjectOrBuilder
                *
                * repeated .google.storage.v2.ObjectAccessControl acl = 10;
                */
            -  java.util.List
            +  java.util.List 
                   getAclOrBuilderList();
               /**
            -   *
            -   *
                * 
                * Access controls on the object.
                * If iam_config.uniform_bucket_level_access is enabled on the parent
            @@ -335,79 +262,62 @@ public interface ObjectOrBuilder
                *
                * repeated .google.storage.v2.ObjectAccessControl acl = 10;
                */
            -  com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder(int index);
            +  com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder(
            +      int index);
             
               /**
            -   *
            -   *
                * 
                * Content-Language of the object data, matching
                * [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2].
                * 
            * * string content_language = 11; - * * @return The contentLanguage. */ java.lang.String getContentLanguage(); /** - * - * *
                * Content-Language of the object data, matching
                * [https://tools.ietf.org/html/rfc7231#section-3.1.3.2][RFC 7231 §3.1.3.2].
                * 
            * * string content_language = 11; - * * @return The bytes for contentLanguage. */ - com.google.protobuf.ByteString getContentLanguageBytes(); + com.google.protobuf.ByteString + getContentLanguageBytes(); /** - * - * *
                * Output only. If this object is noncurrent, this is the time when the object
                * became noncurrent.
                * 
            * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** - * - * *
                * Output only. If this object is noncurrent, this is the time when the object
                * became noncurrent.
                * 
            * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** - * - * *
                * Output only. If this object is noncurrent, this is the time when the object
                * became noncurrent.
                * 
            * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** - * - * *
                * Content-Type of the object data, matching
                * [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5].
            @@ -416,13 +326,10 @@ public interface ObjectOrBuilder
                * 
            * * string content_type = 13; - * * @return The contentType. */ java.lang.String getContentType(); /** - * - * *
                * Content-Type of the object data, matching
                * [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5].
            @@ -431,110 +338,80 @@ public interface ObjectOrBuilder
                * 
            * * string content_type = 13; - * * @return The bytes for contentType. */ - com.google.protobuf.ByteString getContentTypeBytes(); + com.google.protobuf.ByteString + getContentTypeBytes(); /** - * - * *
                * Output only. The creation time of the object.
                * 
            * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
                * Output only. The creation time of the object.
                * 
            * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
                * Output only. The creation time of the object.
                * 
            * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
                * Output only. Number of underlying components that make up this object.
                * Components are accumulated by compose operations.
                * 
            * * int32 component_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The componentCount. */ int getComponentCount(); /** - * - * *
                * Output only. Hashes for the data part of this object. This field is used
                * for output only and will be silently ignored if provided in requests.
                * 
            * - * - * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the checksums field is set. */ boolean hasChecksums(); /** - * - * *
                * Output only. Hashes for the data part of this object. This field is used
                * for output only and will be silently ignored if provided in requests.
                * 
            * - * - * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The checksums. */ com.google.storage.v2.ObjectChecksums getChecksums(); /** - * - * *
                * Output only. Hashes for the data part of this object. This field is used
                * for output only and will be silently ignored if provided in requests.
                * 
            * - * - * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.storage.v2.ObjectChecksumsOrBuilder getChecksumsOrBuilder(); /** - * - * *
                * Output only. The modification time of the object metadata.
                * Set initially to object creation time and then updated whenever any
            @@ -544,15 +421,11 @@ public interface ObjectOrBuilder
                * Object Lifecycle Configuration.
                * 
            * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
                * Output only. The modification time of the object metadata.
                * Set initially to object creation time and then updated whenever any
            @@ -562,15 +435,11 @@ public interface ObjectOrBuilder
                * Object Lifecycle Configuration.
                * 
            * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
                * Output only. The modification time of the object metadata.
                * Set initially to object creation time and then updated whenever any
            @@ -580,85 +449,63 @@ public interface ObjectOrBuilder
                * Object Lifecycle Configuration.
                * 
            * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
                * Cloud KMS Key used to encrypt this object, if the object is encrypted by
                * such a key.
                * 
            * * string kms_key = 18 [(.google.api.resource_reference) = { ... } - * * @return The kmsKey. */ java.lang.String getKmsKey(); /** - * - * *
                * Cloud KMS Key used to encrypt this object, if the object is encrypted by
                * such a key.
                * 
            * * string kms_key = 18 [(.google.api.resource_reference) = { ... } - * * @return The bytes for kmsKey. */ - com.google.protobuf.ByteString getKmsKeyBytes(); + com.google.protobuf.ByteString + getKmsKeyBytes(); /** - * - * *
                * Output only. The time at which the object's storage class was last changed.
                * When the object is initially created, it will be set to time_created.
                * 
            * - * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateStorageClassTime field is set. */ boolean hasUpdateStorageClassTime(); /** - * - * *
                * Output only. The time at which the object's storage class was last changed.
                * When the object is initially created, it will be set to time_created.
                * 
            * - * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateStorageClassTime. */ com.google.protobuf.Timestamp getUpdateStorageClassTime(); /** - * - * *
                * Output only. The time at which the object's storage class was last changed.
                * When the object is initially created, it will be set to time_created.
                * 
            * - * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateStorageClassTimeOrBuilder(); /** - * - * *
                * Whether an object is under temporary hold. While this flag is set to true,
                * the object is protected against deletion and overwrites.  A common use case
            @@ -668,14 +515,11 @@ public interface ObjectOrBuilder
                * 
            * * bool temporary_hold = 20; - * * @return The temporaryHold. */ boolean getTemporaryHold(); /** - * - * *
                * A server-determined value that specifies the earliest time that the
                * object's retention period expires.
            @@ -687,13 +531,10 @@ public interface ObjectOrBuilder
                * 
            * * .google.protobuf.Timestamp retention_expire_time = 21; - * * @return Whether the retentionExpireTime field is set. */ boolean hasRetentionExpireTime(); /** - * - * *
                * A server-determined value that specifies the earliest time that the
                * object's retention period expires.
            @@ -705,13 +546,10 @@ public interface ObjectOrBuilder
                * 
            * * .google.protobuf.Timestamp retention_expire_time = 21; - * * @return The retentionExpireTime. */ com.google.protobuf.Timestamp getRetentionExpireTime(); /** - * - * *
                * A server-determined value that specifies the earliest time that the
                * object's retention period expires.
            @@ -727,8 +565,6 @@ public interface ObjectOrBuilder
               com.google.protobuf.TimestampOrBuilder getRetentionExpireTimeOrBuilder();
             
               /**
            -   *
            -   *
                * 
                * User-provided metadata, in key/value pairs.
                * 
            @@ -737,31 +573,30 @@ public interface ObjectOrBuilder */ int getMetadataCount(); /** - * - * *
                * User-provided metadata, in key/value pairs.
                * 
            * * map<string, string> metadata = 22; */ - boolean containsMetadata(java.lang.String key); - /** Use {@link #getMetadataMap()} instead. */ + boolean containsMetadata( + java.lang.String key); + /** + * Use {@link #getMetadataMap()} instead. + */ @java.lang.Deprecated - java.util.Map getMetadata(); + java.util.Map + getMetadata(); /** - * - * *
                * User-provided metadata, in key/value pairs.
                * 
            * * map<string, string> metadata = 22; */ - java.util.Map getMetadataMap(); + java.util.Map + getMetadataMap(); /** - * - * *
                * User-provided metadata, in key/value pairs.
                * 
            @@ -769,24 +604,21 @@ public interface ObjectOrBuilder * map<string, string> metadata = 22; */ /* nullable */ - java.lang.String getMetadataOrDefault( +java.lang.String getMetadataOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
                * User-provided metadata, in key/value pairs.
                * 
            * * map<string, string> metadata = 22; */ - java.lang.String getMetadataOrThrow(java.lang.String key); + java.lang.String getMetadataOrThrow( + java.lang.String key); /** - * - * *
                * Whether an object is under event-based hold.
                * An event-based hold is a way to force the retention of an object until
            @@ -802,13 +634,10 @@ java.lang.String getMetadataOrDefault(
                * 
            * * optional bool event_based_hold = 23; - * * @return Whether the eventBasedHold field is set. */ boolean hasEventBasedHold(); /** - * - * *
                * Whether an object is under event-based hold.
                * An event-based hold is a way to force the retention of an object until
            @@ -824,40 +653,31 @@ java.lang.String getMetadataOrDefault(
                * 
            * * optional bool event_based_hold = 23; - * * @return The eventBasedHold. */ boolean getEventBasedHold(); /** - * - * *
                * Output only. The owner of the object. This will always be the uploader of
                * the object.
                * 
            * * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return Whether the owner field is set. */ boolean hasOwner(); /** - * - * *
                * Output only. The owner of the object. This will always be the uploader of
                * the object.
                * 
            * * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The owner. */ com.google.storage.v2.Owner getOwner(); /** - * - * *
                * Output only. The owner of the object. This will always be the uploader of
                * the object.
            @@ -868,34 +688,26 @@ java.lang.String getMetadataOrDefault(
               com.google.storage.v2.OwnerOrBuilder getOwnerOrBuilder();
             
               /**
            -   *
            -   *
                * 
                * Metadata of Customer-Supplied Encryption Key, if the object is encrypted by
                * such a key.
                * 
            * * .google.storage.v2.CustomerEncryption customer_encryption = 25; - * * @return Whether the customerEncryption field is set. */ boolean hasCustomerEncryption(); /** - * - * *
                * Metadata of Customer-Supplied Encryption Key, if the object is encrypted by
                * such a key.
                * 
            * * .google.storage.v2.CustomerEncryption customer_encryption = 25; - * * @return The customerEncryption. */ com.google.storage.v2.CustomerEncryption getCustomerEncryption(); /** - * - * *
                * Metadata of Customer-Supplied Encryption Key, if the object is encrypted by
                * such a key.
            @@ -906,32 +718,24 @@ java.lang.String getMetadataOrDefault(
               com.google.storage.v2.CustomerEncryptionOrBuilder getCustomerEncryptionOrBuilder();
             
               /**
            -   *
            -   *
                * 
                * A user-specified timestamp set on an object.
                * 
            * * .google.protobuf.Timestamp custom_time = 26; - * * @return Whether the customTime field is set. */ boolean hasCustomTime(); /** - * - * *
                * A user-specified timestamp set on an object.
                * 
            * * .google.protobuf.Timestamp custom_time = 26; - * * @return The customTime. */ com.google.protobuf.Timestamp getCustomTime(); /** - * - * *
                * A user-specified timestamp set on an object.
                * 
            @@ -941,8 +745,6 @@ java.lang.String getMetadataOrDefault( com.google.protobuf.TimestampOrBuilder getCustomTimeOrBuilder(); /** - * - * *
                * Output only. This is the time when the object became soft-deleted.
                *
            @@ -950,16 +752,11 @@ java.lang.String getMetadataOrDefault(
                * enabled. Also see hard_delete_time.
                * 
            * - * - * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the softDeleteTime field is set. */ boolean hasSoftDeleteTime(); /** - * - * *
                * Output only. This is the time when the object became soft-deleted.
                *
            @@ -967,16 +764,11 @@ java.lang.String getMetadataOrDefault(
                * enabled. Also see hard_delete_time.
                * 
            * - * - * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The softDeleteTime. */ com.google.protobuf.Timestamp getSoftDeleteTime(); /** - * - * *
                * Output only. This is the time when the object became soft-deleted.
                *
            @@ -984,15 +776,11 @@ java.lang.String getMetadataOrDefault(
                * enabled. Also see hard_delete_time.
                * 
            * - * - * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getSoftDeleteTimeOrBuilder(); /** - * - * *
                * Output only. The time when the object will be permanently deleted.
                *
            @@ -1000,16 +788,11 @@ java.lang.String getMetadataOrDefault(
                * Otherwise, the object will not be accessible.
                * 
            * - * - * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the hardDeleteTime field is set. */ boolean hasHardDeleteTime(); /** - * - * *
                * Output only. The time when the object will be permanently deleted.
                *
            @@ -1017,16 +800,11 @@ java.lang.String getMetadataOrDefault(
                * Otherwise, the object will not be accessible.
                * 
            * - * - * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The hardDeleteTime. */ com.google.protobuf.Timestamp getHardDeleteTime(); /** - * - * *
                * Output only. The time when the object will be permanently deleted.
                *
            @@ -1034,9 +812,7 @@ java.lang.String getMetadataOrDefault(
                * Otherwise, the object will not be accessible.
                * 
            * - * - * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getHardDeleteTimeOrBuilder(); } 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 9a6afaf97e..aae392a3e6 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,24 +5,21 @@ 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_ = ""; @@ -45,36 +27,33 @@ private Owner() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Owner(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Owner_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Owner_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Owner_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.storage.v2.Owner.class, com.google.storage.v2.Owner.Builder.class); } public static final int ENTITY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object entity_ = ""; /** - * - * *
                * The entity, in the form `user-`*userId*.
                * 
            * * string entity = 1; - * * @return The entity. */ @java.lang.Override @@ -83,29 +62,29 @@ public java.lang.String getEntity() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entity_ = s; return s; } } /** - * - * *
                * The entity, in the form `user-`*userId*.
                * 
            * * string entity = 1; - * * @return The bytes for entity. */ @java.lang.Override - public com.google.protobuf.ByteString getEntityBytes() { + public com.google.protobuf.ByteString + getEntityBytes() { java.lang.Object ref = entity_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entity_ = b; return b; } else { @@ -114,18 +93,14 @@ public com.google.protobuf.ByteString getEntityBytes() { } public static final int ENTITY_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object entityId_ = ""; /** - * - * *
                * The ID for the entity.
                * 
            * * string entity_id = 2; - * * @return The entityId. */ @java.lang.Override @@ -134,29 +109,29 @@ public java.lang.String getEntityId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityId_ = s; return s; } } /** - * - * *
                * The ID for the entity.
                * 
            * * string entity_id = 2; - * * @return The bytes for entityId. */ @java.lang.Override - public com.google.protobuf.ByteString getEntityIdBytes() { + public com.google.protobuf.ByteString + getEntityIdBytes() { java.lang.Object ref = entityId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entityId_ = b; return b; } else { @@ -165,7 +140,6 @@ public com.google.protobuf.ByteString getEntityIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entity_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entity_); } @@ -207,15 +182,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.Owner)) { return super.equals(obj); } com.google.storage.v2.Owner other = (com.google.storage.v2.Owner) obj; - if (!getEntity().equals(other.getEntity())) return false; - if (!getEntityId().equals(other.getEntityId())) return false; + if (!getEntity() + .equals(other.getEntity())) return false; + if (!getEntityId() + .equals(other.getEntityId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -236,133 +213,132 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.Owner parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.Owner parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Owner parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.v2.Owner parseFrom(com.google.protobuf.ByteString data) + public static com.google.storage.v2.Owner parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Owner parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Owner parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.Owner parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Owner parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.Owner parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.storage.v2.Owner parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.Owner parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.storage.v2.Owner parseFrom(com.google.protobuf.CodedInputStream input) + public static com.google.storage.v2.Owner parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.Owner parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.Owner prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * The owner of a specific resource.
                * 
            * * Protobuf type {@code google.storage.v2.Owner} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.Owner) com.google.storage.v2.OwnerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Owner_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_Owner_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Owner_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.storage.v2.Owner.class, com.google.storage.v2.Owner.Builder.class); } // Construct using com.google.storage.v2.Owner.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -373,7 +349,8 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Owner_descriptor; } @@ -394,9 +371,7 @@ public com.google.storage.v2.Owner build() { @java.lang.Override public com.google.storage.v2.Owner buildPartial() { com.google.storage.v2.Owner result = new com.google.storage.v2.Owner(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -415,39 +390,38 @@ private void buildPartial0(com.google.storage.v2.Owner result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.Owner) { - return mergeFrom((com.google.storage.v2.Owner) other); + return mergeFrom((com.google.storage.v2.Owner)other); } else { super.mergeFrom(other); return this; @@ -492,25 +466,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - entity_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - entityId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + entity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + entityId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -520,25 +491,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object entity_ = ""; /** - * - * *
                  * The entity, in the form `user-`*userId*.
                  * 
            * * string entity = 1; - * * @return The entity. */ public java.lang.String getEntity() { java.lang.Object ref = entity_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entity_ = s; return s; @@ -547,21 +515,20 @@ public java.lang.String getEntity() { } } /** - * - * *
                  * The entity, in the form `user-`*userId*.
                  * 
            * * string entity = 1; - * * @return The bytes for entity. */ - public com.google.protobuf.ByteString getEntityBytes() { + public com.google.protobuf.ByteString + getEntityBytes() { java.lang.Object ref = entity_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entity_ = b; return b; } else { @@ -569,35 +536,28 @@ public com.google.protobuf.ByteString getEntityBytes() { } } /** - * - * *
                  * The entity, in the form `user-`*userId*.
                  * 
            * * string entity = 1; - * * @param value The entity to set. * @return This builder for chaining. */ - public Builder setEntity(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEntity( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } entity_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * The entity, in the form `user-`*userId*.
                  * 
            * * string entity = 1; - * * @return This builder for chaining. */ public Builder clearEntity() { @@ -607,21 +567,17 @@ public Builder clearEntity() { return this; } /** - * - * *
                  * The entity, in the form `user-`*userId*.
                  * 
            * * string entity = 1; - * * @param value The bytes for entity to set. * @return This builder for chaining. */ - public Builder setEntityBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEntityBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); entity_ = value; bitField0_ |= 0x00000001; @@ -631,20 +587,18 @@ public Builder setEntityBytes(com.google.protobuf.ByteString value) { private java.lang.Object entityId_ = ""; /** - * - * *
                  * The ID for the entity.
                  * 
            * * string entity_id = 2; - * * @return The entityId. */ public java.lang.String getEntityId() { java.lang.Object ref = entityId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entityId_ = s; return s; @@ -653,21 +607,20 @@ public java.lang.String getEntityId() { } } /** - * - * *
                  * The ID for the entity.
                  * 
            * * string entity_id = 2; - * * @return The bytes for entityId. */ - public com.google.protobuf.ByteString getEntityIdBytes() { + public com.google.protobuf.ByteString + getEntityIdBytes() { java.lang.Object ref = entityId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entityId_ = b; return b; } else { @@ -675,35 +628,28 @@ public com.google.protobuf.ByteString getEntityIdBytes() { } } /** - * - * *
                  * The ID for the entity.
                  * 
            * * string entity_id = 2; - * * @param value The entityId to set. * @return This builder for chaining. */ - public Builder setEntityId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEntityId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } entityId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                  * The ID for the entity.
                  * 
            * * string entity_id = 2; - * * @return This builder for chaining. */ public Builder clearEntityId() { @@ -713,30 +659,26 @@ public Builder clearEntityId() { return this; } /** - * - * *
                  * The ID for the entity.
                  * 
            * * string entity_id = 2; - * * @param value The bytes for entityId to set. * @return This builder for chaining. */ - public Builder setEntityIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEntityIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); entityId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -746,12 +688,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.Owner) } // @@protoc_insertion_point(class_scope:google.storage.v2.Owner) private static final com.google.storage.v2.Owner DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.Owner(); } @@ -760,27 +702,27 @@ public static com.google.storage.v2.Owner getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Owner parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Owner parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -795,4 +737,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Owner getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/OwnerOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/OwnerOrBuilder.java similarity index 54% 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 d9a742fd5f..b776a65d4c 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,76 +1,50 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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 0f512e2c72..40a7a955a3 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,24 +5,21 @@ 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_ = ""; @@ -45,38 +27,33 @@ private ProjectTeam() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ProjectTeam(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ProjectTeam_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ProjectTeam_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ProjectTeam_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ProjectTeam_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ProjectTeam.class, - com.google.storage.v2.ProjectTeam.Builder.class); + com.google.storage.v2.ProjectTeam.class, com.google.storage.v2.ProjectTeam.Builder.class); } public static final int PROJECT_NUMBER_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object projectNumber_ = ""; /** - * - * *
                * The project number.
                * 
            * * string project_number = 1; - * * @return The projectNumber. */ @java.lang.Override @@ -85,29 +62,29 @@ public java.lang.String getProjectNumber() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectNumber_ = s; return s; } } /** - * - * *
                * The project number.
                * 
            * * string project_number = 1; - * * @return The bytes for projectNumber. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectNumberBytes() { + public com.google.protobuf.ByteString + getProjectNumberBytes() { java.lang.Object ref = projectNumber_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectNumber_ = b; return b; } else { @@ -116,18 +93,14 @@ public com.google.protobuf.ByteString getProjectNumberBytes() { } public static final int TEAM_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object team_ = ""; /** - * - * *
                * The team.
                * 
            * * string team = 2; - * * @return The team. */ @java.lang.Override @@ -136,29 +109,29 @@ public java.lang.String getTeam() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); team_ = s; return s; } } /** - * - * *
                * The team.
                * 
            * * string team = 2; - * * @return The bytes for team. */ @java.lang.Override - public com.google.protobuf.ByteString getTeamBytes() { + public com.google.protobuf.ByteString + getTeamBytes() { java.lang.Object ref = team_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); team_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getTeamBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectNumber_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectNumber_); } @@ -209,15 +182,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.ProjectTeam)) { return super.equals(obj); } com.google.storage.v2.ProjectTeam other = (com.google.storage.v2.ProjectTeam) obj; - if (!getProjectNumber().equals(other.getProjectNumber())) return false; - if (!getTeam().equals(other.getTeam())) return false; + if (!getProjectNumber() + .equals(other.getProjectNumber())) return false; + if (!getTeam() + .equals(other.getTeam())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -238,135 +213,132 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.ProjectTeam parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.ProjectTeam parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ProjectTeam parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.v2.ProjectTeam parseFrom(com.google.protobuf.ByteString data) + public static com.google.storage.v2.ProjectTeam parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ProjectTeam parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.ProjectTeam parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ProjectTeam parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.ProjectTeam parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.ProjectTeam parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.storage.v2.ProjectTeam parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.ProjectTeam parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.ProjectTeam parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.ProjectTeam parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.ProjectTeam prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * Represents the Viewers, Editors, or Owners of a given project.
                * 
            * * Protobuf type {@code google.storage.v2.ProjectTeam} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.ProjectTeam) com.google.storage.v2.ProjectTeamOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ProjectTeam_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ProjectTeam_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ProjectTeam_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ProjectTeam_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ProjectTeam.class, - com.google.storage.v2.ProjectTeam.Builder.class); + com.google.storage.v2.ProjectTeam.class, com.google.storage.v2.ProjectTeam.Builder.class); } // Construct using com.google.storage.v2.ProjectTeam.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ProjectTeam_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ProjectTeam_descriptor; } @java.lang.Override @@ -399,9 +371,7 @@ public com.google.storage.v2.ProjectTeam build() { @java.lang.Override public com.google.storage.v2.ProjectTeam buildPartial() { com.google.storage.v2.ProjectTeam result = new com.google.storage.v2.ProjectTeam(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -420,39 +390,38 @@ private void buildPartial0(com.google.storage.v2.ProjectTeam result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.ProjectTeam) { - return mergeFrom((com.google.storage.v2.ProjectTeam) other); + return mergeFrom((com.google.storage.v2.ProjectTeam)other); } else { super.mergeFrom(other); return this; @@ -497,25 +466,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - projectNumber_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - team_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + projectNumber_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + team_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -525,25 +491,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object projectNumber_ = ""; /** - * - * *
                  * The project number.
                  * 
            * * string project_number = 1; - * * @return The projectNumber. */ public java.lang.String getProjectNumber() { java.lang.Object ref = projectNumber_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectNumber_ = s; return s; @@ -552,21 +515,20 @@ public java.lang.String getProjectNumber() { } } /** - * - * *
                  * The project number.
                  * 
            * * string project_number = 1; - * * @return The bytes for projectNumber. */ - public com.google.protobuf.ByteString getProjectNumberBytes() { + public com.google.protobuf.ByteString + getProjectNumberBytes() { java.lang.Object ref = projectNumber_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectNumber_ = b; return b; } else { @@ -574,35 +536,28 @@ public com.google.protobuf.ByteString getProjectNumberBytes() { } } /** - * - * *
                  * The project number.
                  * 
            * * string project_number = 1; - * * @param value The projectNumber to set. * @return This builder for chaining. */ - public Builder setProjectNumber(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectNumber( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } projectNumber_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * The project number.
                  * 
            * * string project_number = 1; - * * @return This builder for chaining. */ public Builder clearProjectNumber() { @@ -612,21 +567,17 @@ public Builder clearProjectNumber() { return this; } /** - * - * *
                  * The project number.
                  * 
            * * string project_number = 1; - * * @param value The bytes for projectNumber to set. * @return This builder for chaining. */ - public Builder setProjectNumberBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectNumberBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectNumber_ = value; bitField0_ |= 0x00000001; @@ -636,20 +587,18 @@ public Builder setProjectNumberBytes(com.google.protobuf.ByteString value) { private java.lang.Object team_ = ""; /** - * - * *
                  * The team.
                  * 
            * * string team = 2; - * * @return The team. */ public java.lang.String getTeam() { java.lang.Object ref = team_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); team_ = s; return s; @@ -658,21 +607,20 @@ public java.lang.String getTeam() { } } /** - * - * *
                  * The team.
                  * 
            * * string team = 2; - * * @return The bytes for team. */ - public com.google.protobuf.ByteString getTeamBytes() { + public com.google.protobuf.ByteString + getTeamBytes() { java.lang.Object ref = team_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); team_ = b; return b; } else { @@ -680,35 +628,28 @@ public com.google.protobuf.ByteString getTeamBytes() { } } /** - * - * *
                  * The team.
                  * 
            * * string team = 2; - * * @param value The team to set. * @return This builder for chaining. */ - public Builder setTeam(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTeam( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } team_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                  * The team.
                  * 
            * * string team = 2; - * * @return This builder for chaining. */ public Builder clearTeam() { @@ -718,30 +659,26 @@ public Builder clearTeam() { return this; } /** - * - * *
                  * The team.
                  * 
            * * string team = 2; - * * @param value The bytes for team to set. * @return This builder for chaining. */ - public Builder setTeamBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTeamBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); team_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -751,12 +688,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.ProjectTeam) } // @@protoc_insertion_point(class_scope:google.storage.v2.ProjectTeam) private static final com.google.storage.v2.ProjectTeam DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.ProjectTeam(); } @@ -765,27 +702,27 @@ public static com.google.storage.v2.ProjectTeam getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectTeam parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectTeam parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -800,4 +737,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.ProjectTeam getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeamOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ProjectTeamOrBuilder.java similarity index 52% 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 39317d44ea..08fc84878b 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,76 +1,50 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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 68% 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 bed16901c3..0589c3465c 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,64 +5,56 @@ package com.google.storage.v2; /** - * - * *
              * Request object for `QueryWriteStatus`.
              * 
            * * Protobuf type {@code google.storage.v2.QueryWriteStatusRequest} */ -public final class QueryWriteStatusRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class QueryWriteStatusRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.QueryWriteStatusRequest) QueryWriteStatusRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use QueryWriteStatusRequest.newBuilder() to construct. private QueryWriteStatusRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private QueryWriteStatusRequest() { uploadId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new QueryWriteStatusRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_QueryWriteStatusRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_QueryWriteStatusRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_QueryWriteStatusRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_QueryWriteStatusRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.QueryWriteStatusRequest.class, - com.google.storage.v2.QueryWriteStatusRequest.Builder.class); + com.google.storage.v2.QueryWriteStatusRequest.class, com.google.storage.v2.QueryWriteStatusRequest.Builder.class); } private int bitField0_; public static final int UPLOAD_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object uploadId_ = ""; /** - * - * *
                * Required. The name of the resume token for the object whose write status is
                * being requested.
                * 
            * * string upload_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uploadId. */ @java.lang.Override @@ -86,30 +63,30 @@ public java.lang.String getUploadId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uploadId_ = s; return s; } } /** - * - * *
                * Required. The name of the resume token for the object whose write status is
                * being requested.
                * 
            * * string upload_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uploadId. */ @java.lang.Override - public com.google.protobuf.ByteString getUploadIdBytes() { + public com.google.protobuf.ByteString + getUploadIdBytes() { java.lang.Object ref = uploadId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uploadId_ = b; return b; } else { @@ -120,14 +97,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 @@ -135,25 +109,18 @@ public boolean hasCommonObjectRequestParams() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 2; - * * @return The commonObjectRequestParams. */ @java.lang.Override public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            @@ -161,15 +128,11 @@ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestPar * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 2; */ @java.lang.Override - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +144,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uploadId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uploadId_); } @@ -201,9 +165,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uploadId_); } if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, getCommonObjectRequestParams()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCommonObjectRequestParams()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -213,19 +176,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.QueryWriteStatusRequest)) { return super.equals(obj); } - com.google.storage.v2.QueryWriteStatusRequest other = - (com.google.storage.v2.QueryWriteStatusRequest) obj; + com.google.storage.v2.QueryWriteStatusRequest other = (com.google.storage.v2.QueryWriteStatusRequest) obj; - if (!getUploadId().equals(other.getUploadId())) return false; + if (!getUploadId() + .equals(other.getUploadId())) return false; if (hasCommonObjectRequestParams() != other.hasCommonObjectRequestParams()) return false; if (hasCommonObjectRequestParams()) { - if (!getCommonObjectRequestParams().equals(other.getCommonObjectRequestParams())) - return false; + if (!getCommonObjectRequestParams() + .equals(other.getCommonObjectRequestParams())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -249,127 +212,120 @@ 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() @@ -377,17 +333,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) { getCommonObjectRequestParamsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -402,9 +358,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_QueryWriteStatusRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_QueryWriteStatusRequest_descriptor; } @java.lang.Override @@ -423,11 +379,8 @@ public com.google.storage.v2.QueryWriteStatusRequest build() { @java.lang.Override public com.google.storage.v2.QueryWriteStatusRequest buildPartial() { - com.google.storage.v2.QueryWriteStatusRequest result = - new com.google.storage.v2.QueryWriteStatusRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.QueryWriteStatusRequest result = new com.google.storage.v2.QueryWriteStatusRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -439,10 +392,9 @@ private void buildPartial0(com.google.storage.v2.QueryWriteStatusRequest result) } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.commonObjectRequestParams_ = - commonObjectRequestParamsBuilder_ == null - ? commonObjectRequestParams_ - : commonObjectRequestParamsBuilder_.build(); + result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null + ? commonObjectRequestParams_ + : commonObjectRequestParamsBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -452,39 +404,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; @@ -527,26 +478,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - uploadId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getCommonObjectRequestParamsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + uploadId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getCommonObjectRequestParamsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -556,26 +505,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object uploadId_ = ""; /** - * - * *
                  * Required. The name of the resume token for the object whose write status is
                  * being requested.
                  * 
            * * string upload_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The uploadId. */ public java.lang.String getUploadId() { java.lang.Object ref = uploadId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uploadId_ = s; return s; @@ -584,22 +530,21 @@ public java.lang.String getUploadId() { } } /** - * - * *
                  * Required. The name of the resume token for the object whose write status is
                  * being requested.
                  * 
            * * string upload_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for uploadId. */ - public com.google.protobuf.ByteString getUploadIdBytes() { + public com.google.protobuf.ByteString + getUploadIdBytes() { java.lang.Object ref = uploadId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uploadId_ = b; return b; } else { @@ -607,37 +552,30 @@ public com.google.protobuf.ByteString getUploadIdBytes() { } } /** - * - * *
                  * Required. The name of the resume token for the object whose write status is
                  * being requested.
                  * 
            * * string upload_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The uploadId to set. * @return This builder for chaining. */ - public Builder setUploadId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUploadId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uploadId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * Required. The name of the resume token for the object whose write status is
                  * being requested.
                  * 
            * * string upload_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUploadId() { @@ -647,22 +585,18 @@ public Builder clearUploadId() { return this; } /** - * - * *
                  * Required. The name of the resume token for the object whose write status is
                  * being requested.
                  * 
            * * string upload_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for uploadId to set. * @return This builder for chaining. */ - public Builder setUploadIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUploadIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uploadId_ = value; bitField0_ |= 0x00000001; @@ -672,55 +606,41 @@ public Builder setUploadIdBytes(com.google.protobuf.ByteString value) { private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> - commonObjectRequestParamsBuilder_; + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> commonObjectRequestParamsBuilder_; /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 2; - * * @return Whether the commonObjectRequestParams field is set. */ public boolean hasCommonObjectRequestParams() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 2; - * * @return The commonObjectRequestParams. */ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { if (commonObjectRequestParamsBuilder_ == null) { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } else { return commonObjectRequestParamsBuilder_.getMessage(); } } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 2; */ - public Builder setCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -734,8 +654,6 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -754,21 +672,17 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 2; */ - public Builder mergeCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && commonObjectRequestParams_ != null - && commonObjectRequestParams_ - != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + commonObjectRequestParams_ != null && + commonObjectRequestParams_ != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { getCommonObjectRequestParamsBuilder().mergeFrom(value); } else { commonObjectRequestParams_ = value; @@ -783,8 +697,6 @@ public Builder mergeCommonObjectRequestParams( return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -802,42 +714,33 @@ public Builder clearCommonObjectRequestParams() { return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 2; */ - public com.google.storage.v2.CommonObjectRequestParams.Builder - getCommonObjectRequestParamsBuilder() { + public com.google.storage.v2.CommonObjectRequestParams.Builder getCommonObjectRequestParamsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCommonObjectRequestParamsFieldBuilder().getBuilder(); } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 2; */ - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { if (commonObjectRequestParamsBuilder_ != null) { return commonObjectRequestParamsBuilder_.getMessageOrBuilder(); } else { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? + com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -845,24 +748,21 @@ public Builder clearCommonObjectRequestParams() { * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> getCommonObjectRequestParamsFieldBuilder() { if (commonObjectRequestParamsBuilder_ == null) { - commonObjectRequestParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( - getCommonObjectRequestParams(), getParentForChildren(), isClean()); + commonObjectRequestParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( + getCommonObjectRequestParams(), + getParentForChildren(), + isClean()); commonObjectRequestParams_ = null; } return commonObjectRequestParamsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -872,12 +772,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.QueryWriteStatusRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.QueryWriteStatusRequest) private static final com.google.storage.v2.QueryWriteStatusRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.QueryWriteStatusRequest(); } @@ -886,27 +786,27 @@ public static com.google.storage.v2.QueryWriteStatusRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryWriteStatusRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryWriteStatusRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -921,4 +821,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.QueryWriteStatusRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusRequestOrBuilder.java similarity index 70% 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 055478ae9f..65c2eb4501 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,83 +1,54 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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 b71c9d45ac..ecd694bbab 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,61 +5,54 @@ package com.google.storage.v2; /** - * - * *
              * Response object for `QueryWriteStatus`.
              * 
            * * Protobuf type {@code google.storage.v2.QueryWriteStatusResponse} */ -public final class QueryWriteStatusResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class QueryWriteStatusResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.QueryWriteStatusResponse) QueryWriteStatusResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use QueryWriteStatusResponse.newBuilder() to construct. private QueryWriteStatusResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private QueryWriteStatusResponse() {} + private QueryWriteStatusResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new QueryWriteStatusResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_QueryWriteStatusResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_QueryWriteStatusResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_QueryWriteStatusResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_QueryWriteStatusResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.QueryWriteStatusResponse.class, - com.google.storage.v2.QueryWriteStatusResponse.Builder.class); + com.google.storage.v2.QueryWriteStatusResponse.class, com.google.storage.v2.QueryWriteStatusResponse.Builder.class); } private int writeStatusCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object writeStatus_; - public enum WriteStatusCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PERSISTED_SIZE(1), RESOURCE(2), WRITESTATUS_NOT_SET(0); private final int value; - private WriteStatusCase(int value) { this.value = value; } @@ -90,30 +68,25 @@ public static WriteStatusCase valueOf(int value) { public static WriteStatusCase forNumber(int value) { switch (value) { - case 1: - return PERSISTED_SIZE; - case 2: - return RESOURCE; - case 0: - return WRITESTATUS_NOT_SET; - default: - return null; + case 1: return PERSISTED_SIZE; + case 2: return RESOURCE; + case 0: return WRITESTATUS_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public WriteStatusCase getWriteStatusCase() { - return WriteStatusCase.forNumber(writeStatusCase_); + public WriteStatusCase + getWriteStatusCase() { + return WriteStatusCase.forNumber( + writeStatusCase_); } public static final int PERSISTED_SIZE_FIELD_NUMBER = 1; /** - * - * *
                * The total number of bytes that have been processed for the given object
                * from all `WriteObject` calls. This is the correct value for the
            @@ -122,7 +95,6 @@ public WriteStatusCase getWriteStatusCase() {
                * 
            * * int64 persisted_size = 1; - * * @return Whether the persistedSize field is set. */ @java.lang.Override @@ -130,8 +102,6 @@ public boolean hasPersistedSize() { return writeStatusCase_ == 1; } /** - * - * *
                * The total number of bytes that have been processed for the given object
                * from all `WriteObject` calls. This is the correct value for the
            @@ -140,7 +110,6 @@ public boolean hasPersistedSize() {
                * 
            * * int64 persisted_size = 1; - * * @return The persistedSize. */ @java.lang.Override @@ -153,15 +122,12 @@ public long getPersistedSize() { public static final int RESOURCE_FIELD_NUMBER = 2; /** - * - * *
                * A resource containing the metadata for the uploaded object. Only set if
                * the upload has finalized.
                * 
            * * .google.storage.v2.Object resource = 2; - * * @return Whether the resource field is set. */ @java.lang.Override @@ -169,27 +135,22 @@ public boolean hasResource() { return writeStatusCase_ == 2; } /** - * - * *
                * A resource containing the metadata for the uploaded object. Only set if
                * the upload has finalized.
                * 
            * * .google.storage.v2.Object resource = 2; - * * @return The resource. */ @java.lang.Override public com.google.storage.v2.Object getResource() { if (writeStatusCase_ == 2) { - return (com.google.storage.v2.Object) writeStatus_; + return (com.google.storage.v2.Object) writeStatus_; } return com.google.storage.v2.Object.getDefaultInstance(); } /** - * - * *
                * A resource containing the metadata for the uploaded object. Only set if
                * the upload has finalized.
            @@ -200,13 +161,12 @@ public com.google.storage.v2.Object getResource() {
               @java.lang.Override
               public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
                 if (writeStatusCase_ == 2) {
            -      return (com.google.storage.v2.Object) writeStatus_;
            +       return (com.google.storage.v2.Object) writeStatus_;
                 }
                 return com.google.storage.v2.Object.getDefaultInstance();
               }
             
               private byte memoizedIsInitialized = -1;
            -
               @java.lang.Override
               public final boolean isInitialized() {
                 byte isInitialized = memoizedIsInitialized;
            @@ -218,9 +178,11 @@ public final boolean isInitialized() {
               }
             
               @java.lang.Override
            -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
            +  public void writeTo(com.google.protobuf.CodedOutputStream output)
            +                      throws java.io.IOException {
                 if (writeStatusCase_ == 1) {
            -      output.writeInt64(1, (long) ((java.lang.Long) writeStatus_));
            +      output.writeInt64(
            +          1, (long)((java.lang.Long) writeStatus_));
                 }
                 if (writeStatusCase_ == 2) {
                   output.writeMessage(2, (com.google.storage.v2.Object) writeStatus_);
            @@ -235,14 +197,13 @@ public int getSerializedSize() {
             
                 size = 0;
                 if (writeStatusCase_ == 1) {
            -      size +=
            -          com.google.protobuf.CodedOutputStream.computeInt64Size(
            -              1, (long) ((java.lang.Long) writeStatus_));
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeInt64Size(
            +            1, (long)((java.lang.Long) writeStatus_));
                 }
                 if (writeStatusCase_ == 2) {
            -      size +=
            -          com.google.protobuf.CodedOutputStream.computeMessageSize(
            -              2, (com.google.storage.v2.Object) writeStatus_);
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeMessageSize(2, (com.google.storage.v2.Object) writeStatus_);
                 }
                 size += getUnknownFields().getSerializedSize();
                 memoizedSize = size;
            @@ -252,21 +213,22 @@ public int getSerializedSize() {
               @java.lang.Override
               public boolean equals(final java.lang.Object obj) {
                 if (obj == this) {
            -      return true;
            +     return true;
                 }
                 if (!(obj instanceof com.google.storage.v2.QueryWriteStatusResponse)) {
                   return super.equals(obj);
                 }
            -    com.google.storage.v2.QueryWriteStatusResponse other =
            -        (com.google.storage.v2.QueryWriteStatusResponse) obj;
            +    com.google.storage.v2.QueryWriteStatusResponse other = (com.google.storage.v2.QueryWriteStatusResponse) obj;
             
                 if (!getWriteStatusCase().equals(other.getWriteStatusCase())) return false;
                 switch (writeStatusCase_) {
                   case 1:
            -        if (getPersistedSize() != other.getPersistedSize()) return false;
            +        if (getPersistedSize()
            +            != other.getPersistedSize()) return false;
                     break;
                   case 2:
            -        if (!getResource().equals(other.getResource())) return false;
            +        if (!getResource()
            +            .equals(other.getResource())) return false;
                     break;
                   case 0:
                   default:
            @@ -285,7 +247,8 @@ public int hashCode() {
                 switch (writeStatusCase_) {
                   case 1:
                     hash = (37 * hash) + PERSISTED_SIZE_FIELD_NUMBER;
            -        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPersistedSize());
            +        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            +            getPersistedSize());
                     break;
                   case 2:
                     hash = (37 * hash) + RESOURCE_FIELD_NUMBER;
            @@ -299,136 +262,132 @@ public int hashCode() {
                 return hash;
               }
             
            -  public static com.google.storage.v2.QueryWriteStatusResponse parseFrom(java.nio.ByteBuffer data)
            +  public static com.google.storage.v2.QueryWriteStatusResponse parseFrom(
            +      java.nio.ByteBuffer data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
            -
               public static com.google.storage.v2.QueryWriteStatusResponse parseFrom(
            -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      java.nio.ByteBuffer data,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
            -
               public static com.google.storage.v2.QueryWriteStatusResponse parseFrom(
                   com.google.protobuf.ByteString data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
            -
               public static com.google.storage.v2.QueryWriteStatusResponse parseFrom(
                   com.google.protobuf.ByteString data,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
            -
               public static com.google.storage.v2.QueryWriteStatusResponse parseFrom(byte[] data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
            -
               public static com.google.storage.v2.QueryWriteStatusResponse parseFrom(
            -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      byte[] data,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
            -
               public static com.google.storage.v2.QueryWriteStatusResponse parseFrom(java.io.InputStream input)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input);
               }
            -
               public static com.google.storage.v2.QueryWriteStatusResponse parseFrom(
            -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      java.io.InputStream input,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            -        PARSER, input, extensionRegistry);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input, extensionRegistry);
               }
             
            -  public static com.google.storage.v2.QueryWriteStatusResponse parseDelimitedFrom(
            -      java.io.InputStream input) throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
            +  public static com.google.storage.v2.QueryWriteStatusResponse parseDelimitedFrom(java.io.InputStream input)
            +      throws java.io.IOException {
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseDelimitedWithIOException(PARSER, input);
               }
             
               public static com.google.storage.v2.QueryWriteStatusResponse parseDelimitedFrom(
            -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      java.io.InputStream input,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            -        PARSER, input, extensionRegistry);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
               }
            -
               public static com.google.storage.v2.QueryWriteStatusResponse parseFrom(
            -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
            +      com.google.protobuf.CodedInputStream input)
            +      throws java.io.IOException {
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input);
               }
            -
               public static com.google.storage.v2.QueryWriteStatusResponse parseFrom(
                   com.google.protobuf.CodedInputStream input,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            -        PARSER, input, extensionRegistry);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input, extensionRegistry);
               }
             
               @java.lang.Override
            -  public Builder newBuilderForType() {
            -    return newBuilder();
            -  }
            -
            +  public Builder newBuilderForType() { return newBuilder(); }
               public static Builder newBuilder() {
                 return DEFAULT_INSTANCE.toBuilder();
               }
            -
               public static Builder newBuilder(com.google.storage.v2.QueryWriteStatusResponse prototype) {
                 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
               }
            -
               @java.lang.Override
               public Builder toBuilder() {
            -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
            +    return this == DEFAULT_INSTANCE
            +        ? new Builder() : new Builder().mergeFrom(this);
               }
             
               @java.lang.Override
            -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            +  protected Builder newBuilderForType(
            +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 Builder builder = new Builder(parent);
                 return builder;
               }
               /**
            -   *
            -   *
                * 
                * Response object for `QueryWriteStatus`.
                * 
            * * Protobuf type {@code google.storage.v2.QueryWriteStatusResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.QueryWriteStatusResponse) com.google.storage.v2.QueryWriteStatusResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_QueryWriteStatusResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_QueryWriteStatusResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_QueryWriteStatusResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_QueryWriteStatusResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.QueryWriteStatusResponse.class, - com.google.storage.v2.QueryWriteStatusResponse.Builder.class); + com.google.storage.v2.QueryWriteStatusResponse.class, com.google.storage.v2.QueryWriteStatusResponse.Builder.class); } // Construct using com.google.storage.v2.QueryWriteStatusResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -442,9 +401,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_QueryWriteStatusResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_QueryWriteStatusResponse_descriptor; } @java.lang.Override @@ -463,11 +422,8 @@ public com.google.storage.v2.QueryWriteStatusResponse build() { @java.lang.Override public com.google.storage.v2.QueryWriteStatusResponse buildPartial() { - com.google.storage.v2.QueryWriteStatusResponse result = - new com.google.storage.v2.QueryWriteStatusResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.QueryWriteStatusResponse result = new com.google.storage.v2.QueryWriteStatusResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -480,7 +436,8 @@ private void buildPartial0(com.google.storage.v2.QueryWriteStatusResponse result private void buildPartialOneofs(com.google.storage.v2.QueryWriteStatusResponse result) { result.writeStatusCase_ = writeStatusCase_; result.writeStatus_ = this.writeStatus_; - if (writeStatusCase_ == 2 && resourceBuilder_ != null) { + if (writeStatusCase_ == 2 && + resourceBuilder_ != null) { result.writeStatus_ = resourceBuilder_.build(); } } @@ -489,39 +446,38 @@ private void buildPartialOneofs(com.google.storage.v2.QueryWriteStatusResponse r public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.QueryWriteStatusResponse) { - return mergeFrom((com.google.storage.v2.QueryWriteStatusResponse) other); + return mergeFrom((com.google.storage.v2.QueryWriteStatusResponse)other); } else { super.mergeFrom(other); return this; @@ -531,20 +487,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.storage.v2.QueryWriteStatusResponse other) { if (other == com.google.storage.v2.QueryWriteStatusResponse.getDefaultInstance()) return this; switch (other.getWriteStatusCase()) { - case PERSISTED_SIZE: - { - setPersistedSize(other.getPersistedSize()); - break; - } - case RESOURCE: - { - mergeResource(other.getResource()); - break; - } - case WRITESTATUS_NOT_SET: - { - break; - } + case PERSISTED_SIZE: { + setPersistedSize(other.getPersistedSize()); + break; + } + case RESOURCE: { + mergeResource(other.getResource()); + break; + } + case WRITESTATUS_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -572,25 +525,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - writeStatus_ = input.readInt64(); - writeStatusCase_ = 1; - break; - } // case 8 - case 18: - { - input.readMessage(getResourceFieldBuilder().getBuilder(), extensionRegistry); - writeStatusCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + writeStatus_ = input.readInt64(); + writeStatusCase_ = 1; + break; + } // case 8 + case 18: { + input.readMessage( + getResourceFieldBuilder().getBuilder(), + extensionRegistry); + writeStatusCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -600,12 +552,12 @@ public Builder mergeFrom( } // finally return this; } - private int writeStatusCase_ = 0; private java.lang.Object writeStatus_; - - public WriteStatusCase getWriteStatusCase() { - return WriteStatusCase.forNumber(writeStatusCase_); + public WriteStatusCase + getWriteStatusCase() { + return WriteStatusCase.forNumber( + writeStatusCase_); } public Builder clearWriteStatus() { @@ -618,8 +570,6 @@ public Builder clearWriteStatus() { private int bitField0_; /** - * - * *
                  * The total number of bytes that have been processed for the given object
                  * from all `WriteObject` calls. This is the correct value for the
            @@ -628,15 +578,12 @@ public Builder clearWriteStatus() {
                  * 
            * * int64 persisted_size = 1; - * * @return Whether the persistedSize field is set. */ public boolean hasPersistedSize() { return writeStatusCase_ == 1; } /** - * - * *
                  * The total number of bytes that have been processed for the given object
                  * from all `WriteObject` calls. This is the correct value for the
            @@ -645,7 +592,6 @@ public boolean hasPersistedSize() {
                  * 
            * * int64 persisted_size = 1; - * * @return The persistedSize. */ public long getPersistedSize() { @@ -655,8 +601,6 @@ public long getPersistedSize() { return 0L; } /** - * - * *
                  * The total number of bytes that have been processed for the given object
                  * from all `WriteObject` calls. This is the correct value for the
            @@ -665,7 +609,6 @@ public long getPersistedSize() {
                  * 
            * * int64 persisted_size = 1; - * * @param value The persistedSize to set. * @return This builder for chaining. */ @@ -677,8 +620,6 @@ public Builder setPersistedSize(long value) { return this; } /** - * - * *
                  * The total number of bytes that have been processed for the given object
                  * from all `WriteObject` calls. This is the correct value for the
            @@ -687,7 +628,6 @@ public Builder setPersistedSize(long value) {
                  * 
            * * int64 persisted_size = 1; - * * @return This builder for chaining. */ public Builder clearPersistedSize() { @@ -700,20 +640,14 @@ public Builder clearPersistedSize() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Object, - com.google.storage.v2.Object.Builder, - com.google.storage.v2.ObjectOrBuilder> - resourceBuilder_; + com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> resourceBuilder_; /** - * - * *
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
                  * 
            * * .google.storage.v2.Object resource = 2; - * * @return Whether the resource field is set. */ @java.lang.Override @@ -721,15 +655,12 @@ public boolean hasResource() { return writeStatusCase_ == 2; } /** - * - * *
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
                  * 
            * * .google.storage.v2.Object resource = 2; - * * @return The resource. */ @java.lang.Override @@ -747,8 +678,6 @@ public com.google.storage.v2.Object getResource() { } } /** - * - * *
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
            @@ -770,8 +699,6 @@ public Builder setResource(com.google.storage.v2.Object value) {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
            @@ -779,7 +706,8 @@ public Builder setResource(com.google.storage.v2.Object value) {
                  *
                  * .google.storage.v2.Object resource = 2;
                  */
            -    public Builder setResource(com.google.storage.v2.Object.Builder builderForValue) {
            +    public Builder setResource(
            +        com.google.storage.v2.Object.Builder builderForValue) {
                   if (resourceBuilder_ == null) {
                     writeStatus_ = builderForValue.build();
                     onChanged();
            @@ -790,8 +718,6 @@ public Builder setResource(com.google.storage.v2.Object.Builder builderForValue)
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
            @@ -801,12 +727,10 @@ public Builder setResource(com.google.storage.v2.Object.Builder builderForValue)
                  */
                 public Builder mergeResource(com.google.storage.v2.Object value) {
                   if (resourceBuilder_ == null) {
            -        if (writeStatusCase_ == 2
            -            && writeStatus_ != com.google.storage.v2.Object.getDefaultInstance()) {
            -          writeStatus_ =
            -              com.google.storage.v2.Object.newBuilder((com.google.storage.v2.Object) writeStatus_)
            -                  .mergeFrom(value)
            -                  .buildPartial();
            +        if (writeStatusCase_ == 2 &&
            +            writeStatus_ != com.google.storage.v2.Object.getDefaultInstance()) {
            +          writeStatus_ = com.google.storage.v2.Object.newBuilder((com.google.storage.v2.Object) writeStatus_)
            +              .mergeFrom(value).buildPartial();
                     } else {
                       writeStatus_ = value;
                     }
            @@ -822,8 +746,6 @@ public Builder mergeResource(com.google.storage.v2.Object value) {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
            @@ -848,8 +770,6 @@ public Builder clearResource() {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
            @@ -861,8 +781,6 @@ public com.google.storage.v2.Object.Builder getResourceBuilder() {
                   return getResourceFieldBuilder().getBuilder();
                 }
                 /**
            -     *
            -     *
                  * 
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
            @@ -882,8 +800,6 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
                   }
                 }
                 /**
            -     *
            -     *
                  * 
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
            @@ -892,29 +808,26 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
                  * .google.storage.v2.Object resource = 2;
                  */
                 private com.google.protobuf.SingleFieldBuilderV3<
            -            com.google.storage.v2.Object,
            -            com.google.storage.v2.Object.Builder,
            -            com.google.storage.v2.ObjectOrBuilder>
            +        com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> 
                     getResourceFieldBuilder() {
                   if (resourceBuilder_ == null) {
                     if (!(writeStatusCase_ == 2)) {
                       writeStatus_ = com.google.storage.v2.Object.getDefaultInstance();
                     }
            -        resourceBuilder_ =
            -            new com.google.protobuf.SingleFieldBuilderV3<
            -                com.google.storage.v2.Object,
            -                com.google.storage.v2.Object.Builder,
            -                com.google.storage.v2.ObjectOrBuilder>(
            -                (com.google.storage.v2.Object) writeStatus_, getParentForChildren(), isClean());
            +        resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            +            com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder>(
            +                (com.google.storage.v2.Object) writeStatus_,
            +                getParentForChildren(),
            +                isClean());
                     writeStatus_ = null;
                   }
                   writeStatusCase_ = 2;
                   onChanged();
                   return resourceBuilder_;
                 }
            -
                 @java.lang.Override
            -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
            +    public final Builder setUnknownFields(
            +        final com.google.protobuf.UnknownFieldSet unknownFields) {
                   return super.setUnknownFields(unknownFields);
                 }
             
            @@ -924,12 +837,12 @@ public final Builder mergeUnknownFields(
                   return super.mergeUnknownFields(unknownFields);
                 }
             
            +
                 // @@protoc_insertion_point(builder_scope:google.storage.v2.QueryWriteStatusResponse)
               }
             
               // @@protoc_insertion_point(class_scope:google.storage.v2.QueryWriteStatusResponse)
               private static final com.google.storage.v2.QueryWriteStatusResponse DEFAULT_INSTANCE;
            -
               static {
                 DEFAULT_INSTANCE = new com.google.storage.v2.QueryWriteStatusResponse();
               }
            @@ -938,27 +851,27 @@ public static com.google.storage.v2.QueryWriteStatusResponse getDefaultInstance(
                 return DEFAULT_INSTANCE;
               }
             
            -  private static final com.google.protobuf.Parser PARSER =
            -      new com.google.protobuf.AbstractParser() {
            -        @java.lang.Override
            -        public QueryWriteStatusResponse parsePartialFrom(
            -            com.google.protobuf.CodedInputStream input,
            -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            -            throws com.google.protobuf.InvalidProtocolBufferException {
            -          Builder builder = newBuilder();
            -          try {
            -            builder.mergeFrom(input, extensionRegistry);
            -          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            -            throw e.setUnfinishedMessage(builder.buildPartial());
            -          } catch (com.google.protobuf.UninitializedMessageException e) {
            -            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
            -          } catch (java.io.IOException e) {
            -            throw new com.google.protobuf.InvalidProtocolBufferException(e)
            -                .setUnfinishedMessage(builder.buildPartial());
            -          }
            -          return builder.buildPartial();
            -        }
            -      };
            +  private static final com.google.protobuf.Parser
            +      PARSER = new com.google.protobuf.AbstractParser() {
            +    @java.lang.Override
            +    public QueryWriteStatusResponse parsePartialFrom(
            +        com.google.protobuf.CodedInputStream input,
            +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +        throws com.google.protobuf.InvalidProtocolBufferException {
            +      Builder builder = newBuilder();
            +      try {
            +        builder.mergeFrom(input, extensionRegistry);
            +      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            +        throw e.setUnfinishedMessage(builder.buildPartial());
            +      } catch (com.google.protobuf.UninitializedMessageException e) {
            +        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
            +      } catch (java.io.IOException e) {
            +        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            +            .setUnfinishedMessage(builder.buildPartial());
            +      }
            +      return builder.buildPartial();
            +    }
            +  };
             
               public static com.google.protobuf.Parser parser() {
                 return PARSER;
            @@ -973,4 +886,6 @@ public com.google.protobuf.Parser getParserForType() {
               public com.google.storage.v2.QueryWriteStatusResponse getDefaultInstanceForType() {
                 return DEFAULT_INSTANCE;
               }
            +
             }
            +
            diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/QueryWriteStatusResponseOrBuilder.java
            similarity index 74%
            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 f3a139e588..7e14f87886 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,32 +1,14 @@
            -/*
            - * Copyright 2024 Google LLC
            - *
            - * Licensed under the Apache License, Version 2.0 (the "License");
            - * you may not use this file except in compliance with the License.
            - * You may obtain a copy of the License at
            - *
            - *     https://www.apache.org/licenses/LICENSE-2.0
            - *
            - * Unless required by applicable law or agreed to in writing, software
            - * distributed under the License is distributed on an "AS IS" BASIS,
            - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            - * See the License for the specific language governing permissions and
            - * limitations under the License.
            - */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
             // Protobuf Java Version: 3.25.3
             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
            @@ -35,13 +17,10 @@ public interface QueryWriteStatusResponseOrBuilder
                * 
            * * int64 persisted_size = 1; - * * @return Whether the persistedSize field is set. */ boolean hasPersistedSize(); /** - * - * *
                * The total number of bytes that have been processed for the given object
                * from all `WriteObject` calls. This is the correct value for the
            @@ -50,40 +29,31 @@ public interface QueryWriteStatusResponseOrBuilder
                * 
            * * int64 persisted_size = 1; - * * @return The persistedSize. */ long getPersistedSize(); /** - * - * *
                * A resource containing the metadata for the uploaded object. Only set if
                * the upload has finalized.
                * 
            * * .google.storage.v2.Object resource = 2; - * * @return Whether the resource field is set. */ boolean hasResource(); /** - * - * *
                * A resource containing the metadata for the uploaded object. Only set if
                * the upload has finalized.
                * 
            * * .google.storage.v2.Object resource = 2; - * * @return The resource. */ com.google.storage.v2.Object getResource(); /** - * - * *
                * A resource containing the metadata for the uploaded object. Only set if
                * the upload has finalized.
            diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequest.java
            similarity index 76%
            rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequest.java
            rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequest.java
            index 55778a11fd..a7315fb5b8 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,18 +1,3 @@
            -/*
            - * Copyright 2024 Google LLC
            - *
            - * Licensed under the Apache License, Version 2.0 (the "License");
            - * you may not use this file except in compliance with the License.
            - * You may obtain a copy of the License at
            - *
            - *     https://www.apache.org/licenses/LICENSE-2.0
            - *
            - * Unless required by applicable law or agreed to in writing, software
            - * distributed under the License is distributed on an "AS IS" BASIS,
            - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            - * See the License for the specific language governing permissions and
            - * limitations under the License.
            - */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
            @@ -20,24 +5,21 @@
             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_ = ""; @@ -45,41 +27,34 @@ private ReadObjectRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ReadObjectRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ReadObjectRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ReadObjectRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ReadObjectRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ReadObjectRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ReadObjectRequest.class, - com.google.storage.v2.ReadObjectRequest.Builder.class); + com.google.storage.v2.ReadObjectRequest.class, com.google.storage.v2.ReadObjectRequest.Builder.class); } private int bitField0_; public static final int BUCKET_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object bucket_ = ""; /** - * - * *
                * Required. The name of the bucket containing the object to read.
                * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bucket. */ @java.lang.Override @@ -88,31 +63,29 @@ public java.lang.String getBucket() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucket_ = s; return s; } } /** - * - * *
                * Required. The name of the bucket containing the object to read.
                * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for bucket. */ @java.lang.Override - public com.google.protobuf.ByteString getBucketBytes() { + public com.google.protobuf.ByteString + getBucketBytes() { java.lang.Object ref = bucket_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); bucket_ = b; return b; } else { @@ -121,18 +94,14 @@ public com.google.protobuf.ByteString getBucketBytes() { } public static final int OBJECT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object object_ = ""; /** - * - * *
                * Required. The name of the object to read.
                * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The object. */ @java.lang.Override @@ -141,29 +110,29 @@ public java.lang.String getObject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); object_ = s; return s; } } /** - * - * *
                * Required. The name of the object to read.
                * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for object. */ @java.lang.Override - public com.google.protobuf.ByteString getObjectBytes() { + public com.google.protobuf.ByteString + getObjectBytes() { java.lang.Object ref = object_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); object_ = b; return b; } else { @@ -174,15 +143,12 @@ public com.google.protobuf.ByteString getObjectBytes() { public static final int GENERATION_FIELD_NUMBER = 3; private long generation_ = 0L; /** - * - * *
                * If present, selects a specific revision of this object (as opposed
                * to the latest version, the default).
                * 
            * * int64 generation = 3; - * * @return The generation. */ @java.lang.Override @@ -193,8 +159,6 @@ public long getGeneration() { public static final int READ_OFFSET_FIELD_NUMBER = 4; private long readOffset_ = 0L; /** - * - * *
                * The offset for the first byte to return in the read, relative to the start
                * of the object.
            @@ -208,7 +172,6 @@ public long getGeneration() {
                * 
            * * int64 read_offset = 4; - * * @return The readOffset. */ @java.lang.Override @@ -219,8 +182,6 @@ public long getReadOffset() { public static final int READ_LIMIT_FIELD_NUMBER = 5; private long readLimit_ = 0L; /** - * - * *
                * The maximum number of `data` bytes the server is allowed to return in the
                * sum of all `Object` messages. A `read_limit` of zero indicates that there
            @@ -232,7 +193,6 @@ public long getReadOffset() {
                * 
            * * int64 read_limit = 5; - * * @return The readLimit. */ @java.lang.Override @@ -243,8 +203,6 @@ public long getReadLimit() { public static final int IF_GENERATION_MATCH_FIELD_NUMBER = 6; private long ifGenerationMatch_ = 0L; /** - * - * *
                * Makes the operation conditional on whether the object's current generation
                * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -252,7 +210,6 @@ public long getReadLimit() {
                * 
            * * optional int64 if_generation_match = 6; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -260,8 +217,6 @@ public boolean hasIfGenerationMatch() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * Makes the operation conditional on whether the object's current generation
                * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -269,7 +224,6 @@ public boolean hasIfGenerationMatch() {
                * 
            * * optional int64 if_generation_match = 6; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -280,8 +234,6 @@ public long getIfGenerationMatch() { public static final int IF_GENERATION_NOT_MATCH_FIELD_NUMBER = 7; private long ifGenerationNotMatch_ = 0L; /** - * - * *
                * Makes the operation conditional on whether the object's live generation
                * does not match the given value. If no live object exists, the precondition
            @@ -290,7 +242,6 @@ public long getIfGenerationMatch() {
                * 
            * * optional int64 if_generation_not_match = 7; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -298,8 +249,6 @@ public boolean hasIfGenerationNotMatch() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                * Makes the operation conditional on whether the object's live generation
                * does not match the given value. If no live object exists, the precondition
            @@ -308,7 +257,6 @@ public boolean hasIfGenerationNotMatch() {
                * 
            * * optional int64 if_generation_not_match = 7; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -319,15 +267,12 @@ public long getIfGenerationNotMatch() { public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER = 8; private long ifMetagenerationMatch_ = 0L; /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 8; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -335,15 +280,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 8; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -354,15 +296,12 @@ public long getIfMetagenerationMatch() { public static final int IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER = 9; private long ifMetagenerationNotMatch_ = 0L; /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 9; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -370,15 +309,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 9; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -389,14 +325,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 @@ -404,25 +337,18 @@ public boolean hasCommonObjectRequestParams() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; - * * @return The commonObjectRequestParams. */ @java.lang.Override public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            @@ -430,18 +356,13 @@ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestPar * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ @java.lang.Override - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } public static final int READ_MASK_FIELD_NUMBER = 12; private com.google.protobuf.FieldMask readMask_; /** - * - * *
                * Mask specifying which fields to read.
                * The checksummed_data field and its children will always be present.
            @@ -451,7 +372,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 @@ -459,8 +379,6 @@ public boolean hasReadMask() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
                * Mask specifying which fields to read.
                * The checksummed_data field and its children will always be present.
            @@ -470,7 +388,6 @@ public boolean hasReadMask() {
                * 
            * * optional .google.protobuf.FieldMask read_mask = 12; - * * @return The readMask. */ @java.lang.Override @@ -478,8 +395,6 @@ public com.google.protobuf.FieldMask getReadMask() { return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; } /** - * - * *
                * Mask specifying which fields to read.
                * The checksummed_data field and its children will always be present.
            @@ -496,7 +411,6 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
               }
             
               private byte memoizedIsInitialized = -1;
            -
               @java.lang.Override
               public final boolean isInitialized() {
                 byte isInitialized = memoizedIsInitialized;
            @@ -508,7 +422,8 @@ public final boolean isInitialized() {
               }
             
               @java.lang.Override
            -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
            +  public void writeTo(com.google.protobuf.CodedOutputStream output)
            +                      throws java.io.IOException {
                 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) {
                   com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_);
                 }
            @@ -558,33 +473,40 @@ public int getSerializedSize() {
                   size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, object_);
                 }
                 if (generation_ != 0L) {
            -      size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, generation_);
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeInt64Size(3, generation_);
                 }
                 if (readOffset_ != 0L) {
            -      size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, readOffset_);
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeInt64Size(4, readOffset_);
                 }
                 if (readLimit_ != 0L) {
            -      size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, readLimit_);
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeInt64Size(5, readLimit_);
                 }
                 if (((bitField0_ & 0x00000001) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, ifGenerationMatch_);
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeInt64Size(6, ifGenerationMatch_);
                 }
                 if (((bitField0_ & 0x00000002) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, ifGenerationNotMatch_);
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeInt64Size(7, ifGenerationNotMatch_);
                 }
                 if (((bitField0_ & 0x00000004) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, ifMetagenerationMatch_);
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeInt64Size(8, ifMetagenerationMatch_);
                 }
                 if (((bitField0_ & 0x00000008) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, ifMetagenerationNotMatch_);
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeInt64Size(9, ifMetagenerationNotMatch_);
                 }
                 if (((bitField0_ & 0x00000010) != 0)) {
            -      size +=
            -          com.google.protobuf.CodedOutputStream.computeMessageSize(
            -              10, getCommonObjectRequestParams());
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeMessageSize(10, getCommonObjectRequestParams());
                 }
                 if (((bitField0_ & 0x00000020) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getReadMask());
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeMessageSize(12, getReadMask());
                 }
                 size += getUnknownFields().getSerializedSize();
                 memoizedSize = size;
            @@ -594,42 +516,52 @@ public int getSerializedSize() {
               @java.lang.Override
               public boolean equals(final java.lang.Object obj) {
                 if (obj == this) {
            -      return true;
            +     return true;
                 }
                 if (!(obj instanceof com.google.storage.v2.ReadObjectRequest)) {
                   return super.equals(obj);
                 }
                 com.google.storage.v2.ReadObjectRequest other = (com.google.storage.v2.ReadObjectRequest) obj;
             
            -    if (!getBucket().equals(other.getBucket())) return false;
            -    if (!getObject().equals(other.getObject())) return false;
            -    if (getGeneration() != other.getGeneration()) return false;
            -    if (getReadOffset() != other.getReadOffset()) return false;
            -    if (getReadLimit() != other.getReadLimit()) return false;
            +    if (!getBucket()
            +        .equals(other.getBucket())) return false;
            +    if (!getObject()
            +        .equals(other.getObject())) return false;
            +    if (getGeneration()
            +        != other.getGeneration()) return false;
            +    if (getReadOffset()
            +        != other.getReadOffset()) return false;
            +    if (getReadLimit()
            +        != other.getReadLimit()) return false;
                 if (hasIfGenerationMatch() != other.hasIfGenerationMatch()) return false;
                 if (hasIfGenerationMatch()) {
            -      if (getIfGenerationMatch() != other.getIfGenerationMatch()) return false;
            +      if (getIfGenerationMatch()
            +          != other.getIfGenerationMatch()) return false;
                 }
                 if (hasIfGenerationNotMatch() != other.hasIfGenerationNotMatch()) return false;
                 if (hasIfGenerationNotMatch()) {
            -      if (getIfGenerationNotMatch() != other.getIfGenerationNotMatch()) return false;
            +      if (getIfGenerationNotMatch()
            +          != other.getIfGenerationNotMatch()) return false;
                 }
                 if (hasIfMetagenerationMatch() != other.hasIfMetagenerationMatch()) return false;
                 if (hasIfMetagenerationMatch()) {
            -      if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false;
            +      if (getIfMetagenerationMatch()
            +          != other.getIfMetagenerationMatch()) return false;
                 }
                 if (hasIfMetagenerationNotMatch() != other.hasIfMetagenerationNotMatch()) return false;
                 if (hasIfMetagenerationNotMatch()) {
            -      if (getIfMetagenerationNotMatch() != other.getIfMetagenerationNotMatch()) return false;
            +      if (getIfMetagenerationNotMatch()
            +          != other.getIfMetagenerationNotMatch()) return false;
                 }
                 if (hasCommonObjectRequestParams() != other.hasCommonObjectRequestParams()) return false;
                 if (hasCommonObjectRequestParams()) {
            -      if (!getCommonObjectRequestParams().equals(other.getCommonObjectRequestParams()))
            -        return false;
            +      if (!getCommonObjectRequestParams()
            +          .equals(other.getCommonObjectRequestParams())) return false;
                 }
                 if (hasReadMask() != other.hasReadMask()) return false;
                 if (hasReadMask()) {
            -      if (!getReadMask().equals(other.getReadMask())) return false;
            +      if (!getReadMask()
            +          .equals(other.getReadMask())) return false;
                 }
                 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
                 return true;
            @@ -647,26 +579,33 @@ public int hashCode() {
                 hash = (37 * hash) + OBJECT_FIELD_NUMBER;
                 hash = (53 * hash) + getObject().hashCode();
                 hash = (37 * hash) + GENERATION_FIELD_NUMBER;
            -    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getGeneration());
            +    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            +        getGeneration());
                 hash = (37 * hash) + READ_OFFSET_FIELD_NUMBER;
            -    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getReadOffset());
            +    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            +        getReadOffset());
                 hash = (37 * hash) + READ_LIMIT_FIELD_NUMBER;
            -    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getReadLimit());
            +    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            +        getReadLimit());
                 if (hasIfGenerationMatch()) {
                   hash = (37 * hash) + IF_GENERATION_MATCH_FIELD_NUMBER;
            -      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfGenerationMatch());
            +      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            +          getIfGenerationMatch());
                 }
                 if (hasIfGenerationNotMatch()) {
                   hash = (37 * hash) + IF_GENERATION_NOT_MATCH_FIELD_NUMBER;
            -      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfGenerationNotMatch());
            +      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            +          getIfGenerationNotMatch());
                 }
                 if (hasIfMetagenerationMatch()) {
                   hash = (37 * hash) + IF_METAGENERATION_MATCH_FIELD_NUMBER;
            -      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationMatch());
            +      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            +          getIfMetagenerationMatch());
                 }
                 if (hasIfMetagenerationNotMatch()) {
                   hash = (37 * hash) + IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER;
            -      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationNotMatch());
            +      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            +          getIfMetagenerationNotMatch());
                 }
                 if (hasCommonObjectRequestParams()) {
                   hash = (37 * hash) + COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER;
            @@ -681,127 +620,120 @@ public int hashCode() {
                 return hash;
               }
             
            -  public static com.google.storage.v2.ReadObjectRequest parseFrom(java.nio.ByteBuffer data)
            +  public static com.google.storage.v2.ReadObjectRequest parseFrom(
            +      java.nio.ByteBuffer data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
            -
               public static com.google.storage.v2.ReadObjectRequest parseFrom(
            -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      java.nio.ByteBuffer data,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
            -
               public static com.google.storage.v2.ReadObjectRequest parseFrom(
                   com.google.protobuf.ByteString data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
            -
               public static com.google.storage.v2.ReadObjectRequest parseFrom(
                   com.google.protobuf.ByteString data,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
            -
               public static com.google.storage.v2.ReadObjectRequest parseFrom(byte[] data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
            -
               public static com.google.storage.v2.ReadObjectRequest parseFrom(
            -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      byte[] data,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
            -
               public static com.google.storage.v2.ReadObjectRequest parseFrom(java.io.InputStream input)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input);
               }
            -
               public static com.google.storage.v2.ReadObjectRequest parseFrom(
            -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      java.io.InputStream input,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            -        PARSER, input, extensionRegistry);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input, extensionRegistry);
               }
             
            -  public static com.google.storage.v2.ReadObjectRequest parseDelimitedFrom(
            -      java.io.InputStream input) throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
            +  public static com.google.storage.v2.ReadObjectRequest parseDelimitedFrom(java.io.InputStream input)
            +      throws java.io.IOException {
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseDelimitedWithIOException(PARSER, input);
               }
             
               public static com.google.storage.v2.ReadObjectRequest parseDelimitedFrom(
            -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      java.io.InputStream input,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            -        PARSER, input, extensionRegistry);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
               }
            -
               public static com.google.storage.v2.ReadObjectRequest parseFrom(
            -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
            +      com.google.protobuf.CodedInputStream input)
            +      throws java.io.IOException {
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input);
               }
            -
               public static com.google.storage.v2.ReadObjectRequest parseFrom(
                   com.google.protobuf.CodedInputStream input,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            -        PARSER, input, extensionRegistry);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input, extensionRegistry);
               }
             
               @java.lang.Override
            -  public Builder newBuilderForType() {
            -    return newBuilder();
            -  }
            -
            +  public Builder newBuilderForType() { return newBuilder(); }
               public static Builder newBuilder() {
                 return DEFAULT_INSTANCE.toBuilder();
               }
            -
               public static Builder newBuilder(com.google.storage.v2.ReadObjectRequest prototype) {
                 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
               }
            -
               @java.lang.Override
               public Builder toBuilder() {
            -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
            +    return this == DEFAULT_INSTANCE
            +        ? new Builder() : new Builder().mergeFrom(this);
               }
             
               @java.lang.Override
            -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            +  protected Builder newBuilderForType(
            +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 Builder builder = new Builder(parent);
                 return builder;
               }
               /**
            -   *
            -   *
                * 
                * Request message for ReadObject.
                * 
            * * Protobuf type {@code google.storage.v2.ReadObjectRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.ReadObjectRequest) com.google.storage.v2.ReadObjectRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ReadObjectRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ReadObjectRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ReadObjectRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ReadObjectRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ReadObjectRequest.class, - com.google.storage.v2.ReadObjectRequest.Builder.class); + com.google.storage.v2.ReadObjectRequest.class, com.google.storage.v2.ReadObjectRequest.Builder.class); } // Construct using com.google.storage.v2.ReadObjectRequest.newBuilder() @@ -809,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(); @@ -848,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 @@ -869,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; } @@ -913,14 +842,15 @@ private void buildPartial0(com.google.storage.v2.ReadObjectRequest result) { to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.commonObjectRequestParams_ = - commonObjectRequestParamsBuilder_ == null - ? commonObjectRequestParams_ - : commonObjectRequestParamsBuilder_.build(); + result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null + ? commonObjectRequestParams_ + : commonObjectRequestParamsBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000400) != 0)) { - result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); + result.readMask_ = readMaskBuilder_ == null + ? readMask_ + : readMaskBuilder_.build(); to_bitField0_ |= 0x00000020; } result.bitField0_ |= to_bitField0_; @@ -930,39 +860,38 @@ private void buildPartial0(com.google.storage.v2.ReadObjectRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.ReadObjectRequest) { - return mergeFrom((com.google.storage.v2.ReadObjectRequest) other); + return mergeFrom((com.google.storage.v2.ReadObjectRequest)other); } else { super.mergeFrom(other); return this; @@ -1034,80 +963,71 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - bucket_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - object_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - generation_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - readOffset_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: - { - readLimit_ = input.readInt64(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: - { - ifGenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 56: - { - ifGenerationNotMatch_ = input.readInt64(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 64: - { - ifMetagenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 72: - { - ifMetagenerationNotMatch_ = input.readInt64(); - bitField0_ |= 0x00000100; - break; - } // case 72 - case 82: - { - input.readMessage( - getCommonObjectRequestParamsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 98: - { - input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; - break; - } // case 98 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + bucket_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + object_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + generation_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + readOffset_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + readLimit_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + ifGenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: { + ifGenerationNotMatch_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: { + ifMetagenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: { + ifMetagenerationNotMatch_ = input.readInt64(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: { + input.readMessage( + getCommonObjectRequestParamsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 98: { + input.readMessage( + getReadMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 98 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1117,27 +1037,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object bucket_ = ""; /** - * - * *
                  * Required. The name of the bucket containing the object to read.
                  * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bucket. */ public java.lang.String getBucket() { java.lang.Object ref = bucket_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucket_ = s; return s; @@ -1146,23 +1061,20 @@ public java.lang.String getBucket() { } } /** - * - * *
                  * Required. The name of the bucket containing the object to read.
                  * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for bucket. */ - public com.google.protobuf.ByteString getBucketBytes() { + public com.google.protobuf.ByteString + getBucketBytes() { java.lang.Object ref = bucket_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); bucket_ = b; return b; } else { @@ -1170,39 +1082,28 @@ public com.google.protobuf.ByteString getBucketBytes() { } } /** - * - * *
                  * Required. The name of the bucket containing the object to read.
                  * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bucket to set. * @return This builder for chaining. */ - public Builder setBucket(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBucket( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } bucket_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * Required. The name of the bucket containing the object to read.
                  * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearBucket() { @@ -1212,23 +1113,17 @@ public Builder clearBucket() { return this; } /** - * - * *
                  * Required. The name of the bucket containing the object to read.
                  * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for bucket to set. * @return This builder for chaining. */ - public Builder setBucketBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBucketBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bucket_ = value; bitField0_ |= 0x00000001; @@ -1238,20 +1133,18 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) { private java.lang.Object object_ = ""; /** - * - * *
                  * Required. The name of the object to read.
                  * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The object. */ public java.lang.String getObject() { java.lang.Object ref = object_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); object_ = s; return s; @@ -1260,21 +1153,20 @@ public java.lang.String getObject() { } } /** - * - * *
                  * Required. The name of the object to read.
                  * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for object. */ - public com.google.protobuf.ByteString getObjectBytes() { + public com.google.protobuf.ByteString + getObjectBytes() { java.lang.Object ref = object_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); object_ = b; return b; } else { @@ -1282,35 +1174,28 @@ public com.google.protobuf.ByteString getObjectBytes() { } } /** - * - * *
                  * Required. The name of the object to read.
                  * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The object to set. * @return This builder for chaining. */ - public Builder setObject(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setObject( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } object_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                  * Required. The name of the object to read.
                  * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearObject() { @@ -1320,21 +1205,17 @@ public Builder clearObject() { return this; } /** - * - * *
                  * Required. The name of the object to read.
                  * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for object to set. * @return This builder for chaining. */ - public Builder setObjectBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setObjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); object_ = value; bitField0_ |= 0x00000002; @@ -1342,17 +1223,14 @@ public Builder setObjectBytes(com.google.protobuf.ByteString value) { return this; } - private long generation_; + private long generation_ ; /** - * - * *
                  * If present, selects a specific revision of this object (as opposed
                  * to the latest version, the default).
                  * 
            * * int64 generation = 3; - * * @return The generation. */ @java.lang.Override @@ -1360,15 +1238,12 @@ public long getGeneration() { return generation_; } /** - * - * *
                  * If present, selects a specific revision of this object (as opposed
                  * to the latest version, the default).
                  * 
            * * int64 generation = 3; - * * @param value The generation to set. * @return This builder for chaining. */ @@ -1380,15 +1255,12 @@ public Builder setGeneration(long value) { return this; } /** - * - * *
                  * If present, selects a specific revision of this object (as opposed
                  * to the latest version, the default).
                  * 
            * * int64 generation = 3; - * * @return This builder for chaining. */ public Builder clearGeneration() { @@ -1398,10 +1270,8 @@ public Builder clearGeneration() { return this; } - private long readOffset_; + private long readOffset_ ; /** - * - * *
                  * The offset for the first byte to return in the read, relative to the start
                  * of the object.
            @@ -1415,7 +1285,6 @@ public Builder clearGeneration() {
                  * 
            * * int64 read_offset = 4; - * * @return The readOffset. */ @java.lang.Override @@ -1423,8 +1292,6 @@ public long getReadOffset() { return readOffset_; } /** - * - * *
                  * The offset for the first byte to return in the read, relative to the start
                  * of the object.
            @@ -1438,7 +1305,6 @@ public long getReadOffset() {
                  * 
            * * int64 read_offset = 4; - * * @param value The readOffset to set. * @return This builder for chaining. */ @@ -1450,8 +1316,6 @@ public Builder setReadOffset(long value) { return this; } /** - * - * *
                  * The offset for the first byte to return in the read, relative to the start
                  * of the object.
            @@ -1465,7 +1329,6 @@ public Builder setReadOffset(long value) {
                  * 
            * * int64 read_offset = 4; - * * @return This builder for chaining. */ public Builder clearReadOffset() { @@ -1475,10 +1338,8 @@ public Builder clearReadOffset() { return this; } - private long readLimit_; + private long readLimit_ ; /** - * - * *
                  * The maximum number of `data` bytes the server is allowed to return in the
                  * sum of all `Object` messages. A `read_limit` of zero indicates that there
            @@ -1490,7 +1351,6 @@ public Builder clearReadOffset() {
                  * 
            * * int64 read_limit = 5; - * * @return The readLimit. */ @java.lang.Override @@ -1498,8 +1358,6 @@ public long getReadLimit() { return readLimit_; } /** - * - * *
                  * The maximum number of `data` bytes the server is allowed to return in the
                  * sum of all `Object` messages. A `read_limit` of zero indicates that there
            @@ -1511,7 +1369,6 @@ public long getReadLimit() {
                  * 
            * * int64 read_limit = 5; - * * @param value The readLimit to set. * @return This builder for chaining. */ @@ -1523,8 +1380,6 @@ public Builder setReadLimit(long value) { return this; } /** - * - * *
                  * The maximum number of `data` bytes the server is allowed to return in the
                  * sum of all `Object` messages. A `read_limit` of zero indicates that there
            @@ -1536,7 +1391,6 @@ public Builder setReadLimit(long value) {
                  * 
            * * int64 read_limit = 5; - * * @return This builder for chaining. */ public Builder clearReadLimit() { @@ -1546,10 +1400,8 @@ public Builder clearReadLimit() { return this; } - private long ifGenerationMatch_; + private long ifGenerationMatch_ ; /** - * - * *
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -1557,7 +1409,6 @@ public Builder clearReadLimit() {
                  * 
            * * optional int64 if_generation_match = 6; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -1565,8 +1416,6 @@ public boolean hasIfGenerationMatch() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -1574,7 +1423,6 @@ public boolean hasIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_match = 6; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -1582,8 +1430,6 @@ public long getIfGenerationMatch() { return ifGenerationMatch_; } /** - * - * *
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -1591,7 +1437,6 @@ public long getIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_match = 6; - * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ @@ -1603,8 +1448,6 @@ public Builder setIfGenerationMatch(long value) { return this; } /** - * - * *
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -1612,7 +1455,6 @@ public Builder setIfGenerationMatch(long value) {
                  * 
            * * optional int64 if_generation_match = 6; - * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -1622,10 +1464,8 @@ public Builder clearIfGenerationMatch() { return this; } - private long ifGenerationNotMatch_; + private long ifGenerationNotMatch_ ; /** - * - * *
                  * Makes the operation conditional on whether the object's live generation
                  * does not match the given value. If no live object exists, the precondition
            @@ -1634,7 +1474,6 @@ public Builder clearIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_not_match = 7; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -1642,8 +1481,6 @@ public boolean hasIfGenerationNotMatch() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
                  * Makes the operation conditional on whether the object's live generation
                  * does not match the given value. If no live object exists, the precondition
            @@ -1652,7 +1489,6 @@ public boolean hasIfGenerationNotMatch() {
                  * 
            * * optional int64 if_generation_not_match = 7; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -1660,8 +1496,6 @@ public long getIfGenerationNotMatch() { return ifGenerationNotMatch_; } /** - * - * *
                  * Makes the operation conditional on whether the object's live generation
                  * does not match the given value. If no live object exists, the precondition
            @@ -1670,7 +1504,6 @@ public long getIfGenerationNotMatch() {
                  * 
            * * optional int64 if_generation_not_match = 7; - * * @param value The ifGenerationNotMatch to set. * @return This builder for chaining. */ @@ -1682,8 +1515,6 @@ public Builder setIfGenerationNotMatch(long value) { return this; } /** - * - * *
                  * Makes the operation conditional on whether the object's live generation
                  * does not match the given value. If no live object exists, the precondition
            @@ -1692,7 +1523,6 @@ public Builder setIfGenerationNotMatch(long value) {
                  * 
            * * optional int64 if_generation_not_match = 7; - * * @return This builder for chaining. */ public Builder clearIfGenerationNotMatch() { @@ -1702,17 +1532,14 @@ public Builder clearIfGenerationNotMatch() { return this; } - private long ifMetagenerationMatch_; + private long ifMetagenerationMatch_ ; /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 8; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -1720,15 +1547,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 8; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -1736,15 +1560,12 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 8; - * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -1756,15 +1577,12 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 8; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -1774,17 +1592,14 @@ public Builder clearIfMetagenerationMatch() { return this; } - private long ifMetagenerationNotMatch_; + private long ifMetagenerationNotMatch_ ; /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 9; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -1792,15 +1607,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 9; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -1808,15 +1620,12 @@ public long getIfMetagenerationNotMatch() { return ifMetagenerationNotMatch_; } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 9; - * * @param value The ifMetagenerationNotMatch to set. * @return This builder for chaining. */ @@ -1828,15 +1637,12 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 9; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -1848,55 +1654,41 @@ public Builder clearIfMetagenerationNotMatch() { private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> - commonObjectRequestParamsBuilder_; + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> commonObjectRequestParamsBuilder_; /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; - * * @return Whether the commonObjectRequestParams field is set. */ public boolean hasCommonObjectRequestParams() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; - * * @return The commonObjectRequestParams. */ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { if (commonObjectRequestParamsBuilder_ == null) { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } else { return commonObjectRequestParamsBuilder_.getMessage(); } } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ - public Builder setCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1910,8 +1702,6 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -1930,21 +1720,17 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ - public Builder mergeCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && commonObjectRequestParams_ != null - && commonObjectRequestParams_ - != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) && + commonObjectRequestParams_ != null && + commonObjectRequestParams_ != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { getCommonObjectRequestParamsBuilder().mergeFrom(value); } else { commonObjectRequestParams_ = value; @@ -1959,8 +1745,6 @@ public Builder mergeCommonObjectRequestParams( return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -1978,42 +1762,33 @@ public Builder clearCommonObjectRequestParams() { return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ - public com.google.storage.v2.CommonObjectRequestParams.Builder - getCommonObjectRequestParamsBuilder() { + public com.google.storage.v2.CommonObjectRequestParams.Builder getCommonObjectRequestParamsBuilder() { bitField0_ |= 0x00000200; onChanged(); return getCommonObjectRequestParamsFieldBuilder().getBuilder(); } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { if (commonObjectRequestParamsBuilder_ != null) { return commonObjectRequestParamsBuilder_.getMessageOrBuilder(); } else { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? + com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -2021,17 +1796,14 @@ public Builder clearCommonObjectRequestParams() { * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> getCommonObjectRequestParamsFieldBuilder() { if (commonObjectRequestParamsBuilder_ == null) { - commonObjectRequestParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( - getCommonObjectRequestParams(), getParentForChildren(), isClean()); + commonObjectRequestParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( + getCommonObjectRequestParams(), + getParentForChildren(), + isClean()); commonObjectRequestParams_ = null; } return commonObjectRequestParamsBuilder_; @@ -2039,13 +1811,8 @@ public Builder clearCommonObjectRequestParams() { private com.google.protobuf.FieldMask readMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - readMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> readMaskBuilder_; /** - * - * *
                  * Mask specifying which fields to read.
                  * The checksummed_data field and its children will always be present.
            @@ -2055,15 +1822,12 @@ public Builder clearCommonObjectRequestParams() {
                  * 
            * * optional .google.protobuf.FieldMask read_mask = 12; - * * @return Whether the readMask field is set. */ public boolean hasReadMask() { return ((bitField0_ & 0x00000400) != 0); } /** - * - * *
                  * Mask specifying which fields to read.
                  * The checksummed_data field and its children will always be present.
            @@ -2073,7 +1837,6 @@ public boolean hasReadMask() {
                  * 
            * * optional .google.protobuf.FieldMask read_mask = 12; - * * @return The readMask. */ public com.google.protobuf.FieldMask getReadMask() { @@ -2084,8 +1847,6 @@ public com.google.protobuf.FieldMask getReadMask() { } } /** - * - * *
                  * Mask specifying which fields to read.
                  * The checksummed_data field and its children will always be present.
            @@ -2110,8 +1871,6 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Mask specifying which fields to read.
                  * The checksummed_data field and its children will always be present.
            @@ -2122,7 +1881,8 @@ public Builder setReadMask(com.google.protobuf.FieldMask value) {
                  *
                  * optional .google.protobuf.FieldMask read_mask = 12;
                  */
            -    public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) {
            +    public Builder setReadMask(
            +        com.google.protobuf.FieldMask.Builder builderForValue) {
                   if (readMaskBuilder_ == null) {
                     readMask_ = builderForValue.build();
                   } else {
            @@ -2133,8 +1893,6 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Mask specifying which fields to read.
                  * The checksummed_data field and its children will always be present.
            @@ -2147,9 +1905,9 @@ public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue
                  */
                 public Builder mergeReadMask(com.google.protobuf.FieldMask value) {
                   if (readMaskBuilder_ == null) {
            -        if (((bitField0_ & 0x00000400) != 0)
            -            && readMask_ != null
            -            && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
            +        if (((bitField0_ & 0x00000400) != 0) &&
            +          readMask_ != null &&
            +          readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
                       getReadMaskBuilder().mergeFrom(value);
                     } else {
                       readMask_ = value;
            @@ -2164,8 +1922,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.
            @@ -2187,8 +1943,6 @@ public Builder clearReadMask() {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Mask specifying which fields to read.
                  * The checksummed_data field and its children will always be present.
            @@ -2205,8 +1959,6 @@ public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() {
                   return getReadMaskFieldBuilder().getBuilder();
                 }
                 /**
            -     *
            -     *
                  * 
                  * Mask specifying which fields to read.
                  * The checksummed_data field and its children will always be present.
            @@ -2221,12 +1973,11 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
                   if (readMaskBuilder_ != null) {
                     return readMaskBuilder_.getMessageOrBuilder();
                   } else {
            -        return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_;
            +        return readMask_ == null ?
            +            com.google.protobuf.FieldMask.getDefaultInstance() : readMask_;
                   }
                 }
                 /**
            -     *
            -     *
                  * 
                  * Mask specifying which fields to read.
                  * The checksummed_data field and its children will always be present.
            @@ -2238,24 +1989,21 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
                  * optional .google.protobuf.FieldMask read_mask = 12;
                  */
                 private com.google.protobuf.SingleFieldBuilderV3<
            -            com.google.protobuf.FieldMask,
            -            com.google.protobuf.FieldMask.Builder,
            -            com.google.protobuf.FieldMaskOrBuilder>
            +        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
                     getReadMaskFieldBuilder() {
                   if (readMaskBuilder_ == null) {
            -        readMaskBuilder_ =
            -            new com.google.protobuf.SingleFieldBuilderV3<
            -                com.google.protobuf.FieldMask,
            -                com.google.protobuf.FieldMask.Builder,
            -                com.google.protobuf.FieldMaskOrBuilder>(
            -                getReadMask(), getParentForChildren(), isClean());
            +        readMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            +            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
            +                getReadMask(),
            +                getParentForChildren(),
            +                isClean());
                     readMask_ = null;
                   }
                   return readMaskBuilder_;
                 }
            -
                 @java.lang.Override
            -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
            +    public final Builder setUnknownFields(
            +        final com.google.protobuf.UnknownFieldSet unknownFields) {
                   return super.setUnknownFields(unknownFields);
                 }
             
            @@ -2265,12 +2013,12 @@ public final Builder mergeUnknownFields(
                   return super.mergeUnknownFields(unknownFields);
                 }
             
            +
                 // @@protoc_insertion_point(builder_scope:google.storage.v2.ReadObjectRequest)
               }
             
               // @@protoc_insertion_point(class_scope:google.storage.v2.ReadObjectRequest)
               private static final com.google.storage.v2.ReadObjectRequest DEFAULT_INSTANCE;
            -
               static {
                 DEFAULT_INSTANCE = new com.google.storage.v2.ReadObjectRequest();
               }
            @@ -2279,27 +2027,27 @@ public static com.google.storage.v2.ReadObjectRequest getDefaultInstance() {
                 return DEFAULT_INSTANCE;
               }
             
            -  private static final com.google.protobuf.Parser PARSER =
            -      new com.google.protobuf.AbstractParser() {
            -        @java.lang.Override
            -        public ReadObjectRequest parsePartialFrom(
            -            com.google.protobuf.CodedInputStream input,
            -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            -            throws com.google.protobuf.InvalidProtocolBufferException {
            -          Builder builder = newBuilder();
            -          try {
            -            builder.mergeFrom(input, extensionRegistry);
            -          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            -            throw e.setUnfinishedMessage(builder.buildPartial());
            -          } catch (com.google.protobuf.UninitializedMessageException e) {
            -            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
            -          } catch (java.io.IOException e) {
            -            throw new com.google.protobuf.InvalidProtocolBufferException(e)
            -                .setUnfinishedMessage(builder.buildPartial());
            -          }
            -          return builder.buildPartial();
            -        }
            -      };
            +  private static final com.google.protobuf.Parser
            +      PARSER = new com.google.protobuf.AbstractParser() {
            +    @java.lang.Override
            +    public ReadObjectRequest parsePartialFrom(
            +        com.google.protobuf.CodedInputStream input,
            +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +        throws com.google.protobuf.InvalidProtocolBufferException {
            +      Builder builder = newBuilder();
            +      try {
            +        builder.mergeFrom(input, extensionRegistry);
            +      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            +        throw e.setUnfinishedMessage(builder.buildPartial());
            +      } catch (com.google.protobuf.UninitializedMessageException e) {
            +        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
            +      } catch (java.io.IOException e) {
            +        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            +            .setUnfinishedMessage(builder.buildPartial());
            +      }
            +      return builder.buildPartial();
            +    }
            +  };
             
               public static com.google.protobuf.Parser parser() {
                 return PARSER;
            @@ -2314,4 +2062,6 @@ public com.google.protobuf.Parser getParserForType() {
               public com.google.storage.v2.ReadObjectRequest getDefaultInstanceForType() {
                 return DEFAULT_INSTANCE;
               }
            +
             }
            +
            diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequestOrBuilder.java
            similarity index 85%
            rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequestOrBuilder.java
            rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectRequestOrBuilder.java
            index 94ad9c8236..040dd8bd45 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,100 +1,65 @@
            -/*
            - * Copyright 2024 Google LLC
            - *
            - * Licensed under the Apache License, Version 2.0 (the "License");
            - * you may not use this file except in compliance with the License.
            - * You may obtain a copy of the License at
            - *
            - *     https://www.apache.org/licenses/LICENSE-2.0
            - *
            - * Unless required by applicable law or agreed to in writing, software
            - * distributed under the License is distributed on an "AS IS" BASIS,
            - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            - * See the License for the specific language governing permissions and
            - * limitations under the License.
            - */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
             // Protobuf Java Version: 3.25.3
             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.
            @@ -108,14 +73,11 @@ public interface ReadObjectRequestOrBuilder
                * 
            * * int64 read_offset = 4; - * * @return The readOffset. */ long getReadOffset(); /** - * - * *
                * The maximum number of `data` bytes the server is allowed to return in the
                * sum of all `Object` messages. A `read_limit` of zero indicates that there
            @@ -127,14 +89,11 @@ public interface ReadObjectRequestOrBuilder
                * 
            * * int64 read_limit = 5; - * * @return The readLimit. */ long getReadLimit(); /** - * - * *
                * Makes the operation conditional on whether the object's current generation
                * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -142,13 +101,10 @@ public interface ReadObjectRequestOrBuilder
                * 
            * * optional int64 if_generation_match = 6; - * * @return Whether the ifGenerationMatch field is set. */ boolean hasIfGenerationMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's current generation
                * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -156,14 +112,11 @@ public interface ReadObjectRequestOrBuilder
                * 
            * * optional int64 if_generation_match = 6; - * * @return The ifGenerationMatch. */ long getIfGenerationMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's live generation
                * does not match the given value. If no live object exists, the precondition
            @@ -172,13 +125,10 @@ public interface ReadObjectRequestOrBuilder
                * 
            * * optional int64 if_generation_not_match = 7; - * * @return Whether the ifGenerationNotMatch field is set. */ boolean hasIfGenerationNotMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's live generation
                * does not match the given value. If no live object exists, the precondition
            @@ -187,92 +137,71 @@ public interface ReadObjectRequestOrBuilder
                * 
            * * optional int64 if_generation_not_match = 7; - * * @return The ifGenerationNotMatch. */ long getIfGenerationNotMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 8; - * * @return Whether the ifMetagenerationMatch field is set. */ boolean hasIfMetagenerationMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 8; - * * @return The ifMetagenerationMatch. */ long getIfMetagenerationMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 9; - * * @return Whether the ifMetagenerationNotMatch field is set. */ boolean hasIfMetagenerationNotMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 9; - * * @return The ifMetagenerationNotMatch. */ long getIfMetagenerationNotMatch(); /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; - * * @return Whether the commonObjectRequestParams field is set. */ boolean hasCommonObjectRequestParams(); /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; - * * @return The commonObjectRequestParams. */ com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams(); /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            @@ -282,8 +211,6 @@ public interface ReadObjectRequestOrBuilder com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder(); /** - * - * *
                * Mask specifying which fields to read.
                * The checksummed_data field and its children will always be present.
            @@ -293,13 +220,10 @@ public interface ReadObjectRequestOrBuilder
                * 
            * * optional .google.protobuf.FieldMask read_mask = 12; - * * @return Whether the readMask field is set. */ boolean hasReadMask(); /** - * - * *
                * Mask specifying which fields to read.
                * The checksummed_data field and its children will always be present.
            @@ -309,13 +233,10 @@ public interface ReadObjectRequestOrBuilder
                * 
            * * optional .google.protobuf.FieldMask read_mask = 12; - * * @return The readMask. */ com.google.protobuf.FieldMask getReadMask(); /** - * - * *
                * Mask specifying which fields to read.
                * The checksummed_data field and its children will always be present.
            diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponse.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponse.java
            similarity index 74%
            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 e86769077a..e45b408011 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,18 +1,3 @@
            -/*
            - * Copyright 2024 Google LLC
            - *
            - * Licensed under the Apache License, Version 2.0 (the "License");
            - * you may not use this file except in compliance with the License.
            - * You may obtain a copy of the License at
            - *
            - *     https://www.apache.org/licenses/LICENSE-2.0
            - *
            - * Unless required by applicable law or agreed to in writing, software
            - * distributed under the License is distributed on an "AS IS" BASIS,
            - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            - * See the License for the specific language governing permissions and
            - * limitations under the License.
            - */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
            @@ -20,53 +5,48 @@
             package com.google.storage.v2;
             
             /**
            - *
            - *
              * 
              * Response message for ReadObject.
              * 
            * * Protobuf type {@code google.storage.v2.ReadObjectResponse} */ -public final class ReadObjectResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ReadObjectResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.ReadObjectResponse) ReadObjectResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ReadObjectResponse.newBuilder() to construct. private ReadObjectResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ReadObjectResponse() {} + private ReadObjectResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ReadObjectResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ReadObjectResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ReadObjectResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ReadObjectResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ReadObjectResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ReadObjectResponse.class, - com.google.storage.v2.ReadObjectResponse.Builder.class); + com.google.storage.v2.ReadObjectResponse.class, com.google.storage.v2.ReadObjectResponse.Builder.class); } private int bitField0_; public static final int CHECKSUMMED_DATA_FIELD_NUMBER = 1; private com.google.storage.v2.ChecksummedData checksummedData_; /** - * - * *
                * A portion of the data for the object. The service **may** leave `data`
                * empty for any given `ReadResponse`. This enables the service to inform the
            @@ -75,7 +55,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                * 
            * * .google.storage.v2.ChecksummedData checksummed_data = 1; - * * @return Whether the checksummedData field is set. */ @java.lang.Override @@ -83,8 +62,6 @@ 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
            @@ -93,18 +70,13 @@ public boolean hasChecksummedData() {
                * 
            * * .google.storage.v2.ChecksummedData checksummed_data = 1; - * * @return The checksummedData. */ @java.lang.Override public com.google.storage.v2.ChecksummedData getChecksummedData() { - return checksummedData_ == null - ? com.google.storage.v2.ChecksummedData.getDefaultInstance() - : checksummedData_; + return checksummedData_ == null ? com.google.storage.v2.ChecksummedData.getDefaultInstance() : checksummedData_; } /** - * - * *
                * A portion of the data for the object. The service **may** leave `data`
                * empty for any given `ReadResponse`. This enables the service to inform the
            @@ -116,16 +88,12 @@ public com.google.storage.v2.ChecksummedData getChecksummedData() {
                */
               @java.lang.Override
               public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilder() {
            -    return checksummedData_ == null
            -        ? com.google.storage.v2.ChecksummedData.getDefaultInstance()
            -        : checksummedData_;
            +    return checksummedData_ == null ? com.google.storage.v2.ChecksummedData.getDefaultInstance() : checksummedData_;
               }
             
               public static final int OBJECT_CHECKSUMS_FIELD_NUMBER = 2;
               private com.google.storage.v2.ObjectChecksums objectChecksums_;
               /**
            -   *
            -   *
                * 
                * The checksums of the complete object. If the object is downloaded in full,
                * the client should compute one of these checksums over the downloaded object
            @@ -133,7 +101,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 @@ -141,8 +108,6 @@ public boolean hasObjectChecksums() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                * The checksums of the complete object. If the object is downloaded in full,
                * the client should compute one of these checksums over the downloaded object
            @@ -150,18 +115,13 @@ public boolean hasObjectChecksums() {
                * 
            * * .google.storage.v2.ObjectChecksums object_checksums = 2; - * * @return The objectChecksums. */ @java.lang.Override public com.google.storage.v2.ObjectChecksums getObjectChecksums() { - return objectChecksums_ == null - ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() - : objectChecksums_; + return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_; } /** - * - * *
                * The checksums of the complete object. If the object is downloaded in full,
                * the client should compute one of these checksums over the downloaded object
            @@ -172,16 +132,12 @@ public com.google.storage.v2.ObjectChecksums getObjectChecksums() {
                */
               @java.lang.Override
               public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilder() {
            -    return objectChecksums_ == null
            -        ? com.google.storage.v2.ObjectChecksums.getDefaultInstance()
            -        : objectChecksums_;
            +    return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_;
               }
             
               public static final int CONTENT_RANGE_FIELD_NUMBER = 3;
               private com.google.storage.v2.ContentRange contentRange_;
               /**
            -   *
            -   *
                * 
                * If read_offset and or read_limit was specified on the
                * ReadObjectRequest, ContentRange will be populated on the first
            @@ -189,7 +145,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 @@ -197,8 +152,6 @@ 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
            @@ -206,18 +159,13 @@ public boolean hasContentRange() {
                * 
            * * .google.storage.v2.ContentRange content_range = 3; - * * @return The contentRange. */ @java.lang.Override public com.google.storage.v2.ContentRange getContentRange() { - return contentRange_ == null - ? com.google.storage.v2.ContentRange.getDefaultInstance() - : contentRange_; + return contentRange_ == null ? com.google.storage.v2.ContentRange.getDefaultInstance() : contentRange_; } /** - * - * *
                * If read_offset and or read_limit was specified on the
                * ReadObjectRequest, ContentRange will be populated on the first
            @@ -228,23 +176,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 @@ -252,15 +195,12 @@ 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. */ @java.lang.Override @@ -268,8 +208,6 @@ public com.google.storage.v2.Object getMetadata() { return metadata_ == null ? com.google.storage.v2.Object.getDefaultInstance() : metadata_; } /** - * - * *
                * Metadata of the object whose media is being returned.
                * Only populated in the first response in the stream.
            @@ -283,7 +221,6 @@ public com.google.storage.v2.ObjectOrBuilder getMetadataOrBuilder() {
               }
             
               private byte memoizedIsInitialized = -1;
            -
               @java.lang.Override
               public final boolean isInitialized() {
                 byte isInitialized = memoizedIsInitialized;
            @@ -295,7 +232,8 @@ public final boolean isInitialized() {
               }
             
               @java.lang.Override
            -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
            +  public void writeTo(com.google.protobuf.CodedOutputStream output)
            +                      throws java.io.IOException {
                 if (((bitField0_ & 0x00000001) != 0)) {
                   output.writeMessage(1, getChecksummedData());
                 }
            @@ -318,16 +256,20 @@ public int getSerializedSize() {
             
                 size = 0;
                 if (((bitField0_ & 0x00000001) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getChecksummedData());
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeMessageSize(1, getChecksummedData());
                 }
                 if (((bitField0_ & 0x00000002) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getObjectChecksums());
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeMessageSize(2, getObjectChecksums());
                 }
                 if (((bitField0_ & 0x00000004) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getContentRange());
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeMessageSize(3, getContentRange());
                 }
                 if (((bitField0_ & 0x00000008) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMetadata());
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeMessageSize(4, getMetadata());
                 }
                 size += getUnknownFields().getSerializedSize();
                 memoizedSize = size;
            @@ -337,7 +279,7 @@ public int getSerializedSize() {
               @java.lang.Override
               public boolean equals(final java.lang.Object obj) {
                 if (obj == this) {
            -      return true;
            +     return true;
                 }
                 if (!(obj instanceof com.google.storage.v2.ReadObjectResponse)) {
                   return super.equals(obj);
            @@ -346,19 +288,23 @@ public boolean equals(final java.lang.Object obj) {
             
                 if (hasChecksummedData() != other.hasChecksummedData()) return false;
                 if (hasChecksummedData()) {
            -      if (!getChecksummedData().equals(other.getChecksummedData())) return false;
            +      if (!getChecksummedData()
            +          .equals(other.getChecksummedData())) return false;
                 }
                 if (hasObjectChecksums() != other.hasObjectChecksums()) return false;
                 if (hasObjectChecksums()) {
            -      if (!getObjectChecksums().equals(other.getObjectChecksums())) return false;
            +      if (!getObjectChecksums()
            +          .equals(other.getObjectChecksums())) return false;
                 }
                 if (hasContentRange() != other.hasContentRange()) return false;
                 if (hasContentRange()) {
            -      if (!getContentRange().equals(other.getContentRange())) return false;
            +      if (!getContentRange()
            +          .equals(other.getContentRange())) return false;
                 }
                 if (hasMetadata() != other.hasMetadata()) return false;
                 if (hasMetadata()) {
            -      if (!getMetadata().equals(other.getMetadata())) return false;
            +      if (!getMetadata()
            +          .equals(other.getMetadata())) return false;
                 }
                 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
                 return true;
            @@ -392,127 +338,120 @@ 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() @@ -520,20 +459,20 @@ 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) { getChecksummedDataFieldBuilder(); getObjectChecksumsFieldBuilder(); getContentRangeFieldBuilder(); getMetadataFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -562,9 +501,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ReadObjectResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ReadObjectResponse_descriptor; } @java.lang.Override @@ -583,11 +522,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; } @@ -596,22 +532,27 @@ private void buildPartial0(com.google.storage.v2.ReadObjectResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.checksummedData_ = - checksummedDataBuilder_ == null ? checksummedData_ : checksummedDataBuilder_.build(); + result.checksummedData_ = checksummedDataBuilder_ == null + ? checksummedData_ + : checksummedDataBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.objectChecksums_ = - objectChecksumsBuilder_ == null ? objectChecksums_ : objectChecksumsBuilder_.build(); + result.objectChecksums_ = objectChecksumsBuilder_ == null + ? objectChecksums_ + : objectChecksumsBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.contentRange_ = - contentRangeBuilder_ == null ? contentRange_ : contentRangeBuilder_.build(); + result.contentRange_ = contentRangeBuilder_ == null + ? contentRange_ + : contentRangeBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + result.metadata_ = metadataBuilder_ == null + ? metadata_ + : metadataBuilder_.build(); to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; @@ -621,39 +562,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; @@ -700,37 +640,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getChecksummedDataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getObjectChecksumsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getContentRangeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getChecksummedDataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getObjectChecksumsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getContentRangeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -740,18 +683,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.storage.v2.ChecksummedData checksummedData_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.ChecksummedData, - com.google.storage.v2.ChecksummedData.Builder, - com.google.storage.v2.ChecksummedDataOrBuilder> - checksummedDataBuilder_; + com.google.storage.v2.ChecksummedData, com.google.storage.v2.ChecksummedData.Builder, com.google.storage.v2.ChecksummedDataOrBuilder> checksummedDataBuilder_; /** - * - * *
                  * A portion of the data for the object. The service **may** leave `data`
                  * empty for any given `ReadResponse`. This enables the service to inform the
            @@ -760,15 +697,12 @@ public Builder mergeFrom(
                  * 
            * * .google.storage.v2.ChecksummedData checksummed_data = 1; - * * @return Whether the checksummedData field is set. */ public boolean hasChecksummedData() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                  * A portion of the data for the object. The service **may** leave `data`
                  * empty for any given `ReadResponse`. This enables the service to inform the
            @@ -777,21 +711,16 @@ public boolean hasChecksummedData() {
                  * 
            * * .google.storage.v2.ChecksummedData checksummed_data = 1; - * * @return The checksummedData. */ public com.google.storage.v2.ChecksummedData getChecksummedData() { if (checksummedDataBuilder_ == null) { - return checksummedData_ == null - ? com.google.storage.v2.ChecksummedData.getDefaultInstance() - : checksummedData_; + return checksummedData_ == null ? com.google.storage.v2.ChecksummedData.getDefaultInstance() : checksummedData_; } else { return checksummedDataBuilder_.getMessage(); } } /** - * - * *
                  * A portion of the data for the object. The service **may** leave `data`
                  * empty for any given `ReadResponse`. This enables the service to inform the
            @@ -815,8 +744,6 @@ public Builder setChecksummedData(com.google.storage.v2.ChecksummedData value) {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * A portion of the data for the object. The service **may** leave `data`
                  * empty for any given `ReadResponse`. This enables the service to inform the
            @@ -838,8 +765,6 @@ public Builder setChecksummedData(
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * A portion of the data for the object. The service **may** leave `data`
                  * empty for any given `ReadResponse`. This enables the service to inform the
            @@ -851,9 +776,9 @@ public Builder setChecksummedData(
                  */
                 public Builder mergeChecksummedData(com.google.storage.v2.ChecksummedData value) {
                   if (checksummedDataBuilder_ == null) {
            -        if (((bitField0_ & 0x00000001) != 0)
            -            && checksummedData_ != null
            -            && checksummedData_ != com.google.storage.v2.ChecksummedData.getDefaultInstance()) {
            +        if (((bitField0_ & 0x00000001) != 0) &&
            +          checksummedData_ != null &&
            +          checksummedData_ != com.google.storage.v2.ChecksummedData.getDefaultInstance()) {
                       getChecksummedDataBuilder().mergeFrom(value);
                     } else {
                       checksummedData_ = value;
            @@ -868,8 +793,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
            @@ -890,8 +813,6 @@ public Builder clearChecksummedData() {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * A portion of the data for the object. The service **may** leave `data`
                  * empty for any given `ReadResponse`. This enables the service to inform the
            @@ -907,8 +828,6 @@ public com.google.storage.v2.ChecksummedData.Builder getChecksummedDataBuilder()
                   return getChecksummedDataFieldBuilder().getBuilder();
                 }
                 /**
            -     *
            -     *
                  * 
                  * A portion of the data for the object. The service **may** leave `data`
                  * empty for any given `ReadResponse`. This enables the service to inform the
            @@ -922,14 +841,11 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
                   if (checksummedDataBuilder_ != null) {
                     return checksummedDataBuilder_.getMessageOrBuilder();
                   } else {
            -        return checksummedData_ == null
            -            ? com.google.storage.v2.ChecksummedData.getDefaultInstance()
            -            : checksummedData_;
            +        return checksummedData_ == null ?
            +            com.google.storage.v2.ChecksummedData.getDefaultInstance() : checksummedData_;
                   }
                 }
                 /**
            -     *
            -     *
                  * 
                  * A portion of the data for the object. The service **may** leave `data`
                  * empty for any given `ReadResponse`. This enables the service to inform the
            @@ -940,17 +856,14 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
                  * .google.storage.v2.ChecksummedData checksummed_data = 1;
                  */
                 private com.google.protobuf.SingleFieldBuilderV3<
            -            com.google.storage.v2.ChecksummedData,
            -            com.google.storage.v2.ChecksummedData.Builder,
            -            com.google.storage.v2.ChecksummedDataOrBuilder>
            +        com.google.storage.v2.ChecksummedData, com.google.storage.v2.ChecksummedData.Builder, com.google.storage.v2.ChecksummedDataOrBuilder> 
                     getChecksummedDataFieldBuilder() {
                   if (checksummedDataBuilder_ == null) {
            -        checksummedDataBuilder_ =
            -            new com.google.protobuf.SingleFieldBuilderV3<
            -                com.google.storage.v2.ChecksummedData,
            -                com.google.storage.v2.ChecksummedData.Builder,
            -                com.google.storage.v2.ChecksummedDataOrBuilder>(
            -                getChecksummedData(), getParentForChildren(), isClean());
            +        checksummedDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            +            com.google.storage.v2.ChecksummedData, com.google.storage.v2.ChecksummedData.Builder, com.google.storage.v2.ChecksummedDataOrBuilder>(
            +                getChecksummedData(),
            +                getParentForChildren(),
            +                isClean());
                     checksummedData_ = null;
                   }
                   return checksummedDataBuilder_;
            @@ -958,13 +871,8 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
             
                 private com.google.storage.v2.ObjectChecksums objectChecksums_;
                 private com.google.protobuf.SingleFieldBuilderV3<
            -            com.google.storage.v2.ObjectChecksums,
            -            com.google.storage.v2.ObjectChecksums.Builder,
            -            com.google.storage.v2.ObjectChecksumsOrBuilder>
            -        objectChecksumsBuilder_;
            +        com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder> objectChecksumsBuilder_;
                 /**
            -     *
            -     *
                  * 
                  * The checksums of the complete object. If the object is downloaded in full,
                  * the client should compute one of these checksums over the downloaded object
            @@ -972,15 +880,12 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
                  * 
            * * .google.storage.v2.ObjectChecksums object_checksums = 2; - * * @return Whether the objectChecksums field is set. */ public boolean hasObjectChecksums() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                  * The checksums of the complete object. If the object is downloaded in full,
                  * the client should compute one of these checksums over the downloaded object
            @@ -988,21 +893,16 @@ public boolean hasObjectChecksums() {
                  * 
            * * .google.storage.v2.ObjectChecksums object_checksums = 2; - * * @return The objectChecksums. */ public com.google.storage.v2.ObjectChecksums getObjectChecksums() { if (objectChecksumsBuilder_ == null) { - return objectChecksums_ == null - ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() - : objectChecksums_; + return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_; } else { return objectChecksumsBuilder_.getMessage(); } } /** - * - * *
                  * The checksums of the complete object. If the object is downloaded in full,
                  * the client should compute one of these checksums over the downloaded object
            @@ -1025,8 +925,6 @@ public Builder setObjectChecksums(com.google.storage.v2.ObjectChecksums value) {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * The checksums of the complete object. If the object is downloaded in full,
                  * the client should compute one of these checksums over the downloaded object
            @@ -1047,8 +945,6 @@ public Builder setObjectChecksums(
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * The checksums of the complete object. If the object is downloaded in full,
                  * the client should compute one of these checksums over the downloaded object
            @@ -1059,9 +955,9 @@ public Builder setObjectChecksums(
                  */
                 public Builder mergeObjectChecksums(com.google.storage.v2.ObjectChecksums value) {
                   if (objectChecksumsBuilder_ == null) {
            -        if (((bitField0_ & 0x00000002) != 0)
            -            && objectChecksums_ != null
            -            && objectChecksums_ != com.google.storage.v2.ObjectChecksums.getDefaultInstance()) {
            +        if (((bitField0_ & 0x00000002) != 0) &&
            +          objectChecksums_ != null &&
            +          objectChecksums_ != com.google.storage.v2.ObjectChecksums.getDefaultInstance()) {
                       getObjectChecksumsBuilder().mergeFrom(value);
                     } else {
                       objectChecksums_ = value;
            @@ -1076,8 +972,6 @@ public Builder mergeObjectChecksums(com.google.storage.v2.ObjectChecksums value)
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * The checksums of the complete object. If the object is downloaded in full,
                  * the client should compute one of these checksums over the downloaded object
            @@ -1097,8 +991,6 @@ public Builder clearObjectChecksums() {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * The checksums of the complete object. If the object is downloaded in full,
                  * the client should compute one of these checksums over the downloaded object
            @@ -1113,8 +1005,6 @@ public com.google.storage.v2.ObjectChecksums.Builder getObjectChecksumsBuilder()
                   return getObjectChecksumsFieldBuilder().getBuilder();
                 }
                 /**
            -     *
            -     *
                  * 
                  * The checksums of the complete object. If the object is downloaded in full,
                  * the client should compute one of these checksums over the downloaded object
            @@ -1127,14 +1017,11 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
                   if (objectChecksumsBuilder_ != null) {
                     return objectChecksumsBuilder_.getMessageOrBuilder();
                   } else {
            -        return objectChecksums_ == null
            -            ? com.google.storage.v2.ObjectChecksums.getDefaultInstance()
            -            : objectChecksums_;
            +        return objectChecksums_ == null ?
            +            com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_;
                   }
                 }
                 /**
            -     *
            -     *
                  * 
                  * The checksums of the complete object. If the object is downloaded in full,
                  * the client should compute one of these checksums over the downloaded object
            @@ -1144,17 +1031,14 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
                  * .google.storage.v2.ObjectChecksums object_checksums = 2;
                  */
                 private com.google.protobuf.SingleFieldBuilderV3<
            -            com.google.storage.v2.ObjectChecksums,
            -            com.google.storage.v2.ObjectChecksums.Builder,
            -            com.google.storage.v2.ObjectChecksumsOrBuilder>
            +        com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder> 
                     getObjectChecksumsFieldBuilder() {
                   if (objectChecksumsBuilder_ == null) {
            -        objectChecksumsBuilder_ =
            -            new com.google.protobuf.SingleFieldBuilderV3<
            -                com.google.storage.v2.ObjectChecksums,
            -                com.google.storage.v2.ObjectChecksums.Builder,
            -                com.google.storage.v2.ObjectChecksumsOrBuilder>(
            -                getObjectChecksums(), getParentForChildren(), isClean());
            +        objectChecksumsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            +            com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder>(
            +                getObjectChecksums(),
            +                getParentForChildren(),
            +                isClean());
                     objectChecksums_ = null;
                   }
                   return objectChecksumsBuilder_;
            @@ -1162,13 +1046,8 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
             
                 private com.google.storage.v2.ContentRange contentRange_;
                 private com.google.protobuf.SingleFieldBuilderV3<
            -            com.google.storage.v2.ContentRange,
            -            com.google.storage.v2.ContentRange.Builder,
            -            com.google.storage.v2.ContentRangeOrBuilder>
            -        contentRangeBuilder_;
            +        com.google.storage.v2.ContentRange, com.google.storage.v2.ContentRange.Builder, com.google.storage.v2.ContentRangeOrBuilder> contentRangeBuilder_;
                 /**
            -     *
            -     *
                  * 
                  * If read_offset and or read_limit was specified on the
                  * ReadObjectRequest, ContentRange will be populated on the first
            @@ -1176,15 +1055,12 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
                  * 
            * * .google.storage.v2.ContentRange content_range = 3; - * * @return Whether the contentRange field is set. */ public boolean hasContentRange() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
                  * If read_offset and or read_limit was specified on the
                  * ReadObjectRequest, ContentRange will be populated on the first
            @@ -1192,21 +1068,16 @@ public boolean hasContentRange() {
                  * 
            * * .google.storage.v2.ContentRange content_range = 3; - * * @return The contentRange. */ public com.google.storage.v2.ContentRange getContentRange() { if (contentRangeBuilder_ == null) { - return contentRange_ == null - ? com.google.storage.v2.ContentRange.getDefaultInstance() - : contentRange_; + return contentRange_ == null ? com.google.storage.v2.ContentRange.getDefaultInstance() : contentRange_; } else { return contentRangeBuilder_.getMessage(); } } /** - * - * *
                  * If read_offset and or read_limit was specified on the
                  * ReadObjectRequest, ContentRange will be populated on the first
            @@ -1229,8 +1100,6 @@ public Builder setContentRange(com.google.storage.v2.ContentRange value) {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * If read_offset and or read_limit was specified on the
                  * ReadObjectRequest, ContentRange will be populated on the first
            @@ -1239,7 +1108,8 @@ public Builder setContentRange(com.google.storage.v2.ContentRange value) {
                  *
                  * .google.storage.v2.ContentRange content_range = 3;
                  */
            -    public Builder setContentRange(com.google.storage.v2.ContentRange.Builder builderForValue) {
            +    public Builder setContentRange(
            +        com.google.storage.v2.ContentRange.Builder builderForValue) {
                   if (contentRangeBuilder_ == null) {
                     contentRange_ = builderForValue.build();
                   } else {
            @@ -1250,8 +1120,6 @@ public Builder setContentRange(com.google.storage.v2.ContentRange.Builder builde
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * If read_offset and or read_limit was specified on the
                  * ReadObjectRequest, ContentRange will be populated on the first
            @@ -1262,9 +1130,9 @@ public Builder setContentRange(com.google.storage.v2.ContentRange.Builder builde
                  */
                 public Builder mergeContentRange(com.google.storage.v2.ContentRange value) {
                   if (contentRangeBuilder_ == null) {
            -        if (((bitField0_ & 0x00000004) != 0)
            -            && contentRange_ != null
            -            && contentRange_ != com.google.storage.v2.ContentRange.getDefaultInstance()) {
            +        if (((bitField0_ & 0x00000004) != 0) &&
            +          contentRange_ != null &&
            +          contentRange_ != com.google.storage.v2.ContentRange.getDefaultInstance()) {
                       getContentRangeBuilder().mergeFrom(value);
                     } else {
                       contentRange_ = value;
            @@ -1279,8 +1147,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
            @@ -1300,8 +1166,6 @@ public Builder clearContentRange() {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * If read_offset and or read_limit was specified on the
                  * ReadObjectRequest, ContentRange will be populated on the first
            @@ -1316,8 +1180,6 @@ public com.google.storage.v2.ContentRange.Builder getContentRangeBuilder() {
                   return getContentRangeFieldBuilder().getBuilder();
                 }
                 /**
            -     *
            -     *
                  * 
                  * If read_offset and or read_limit was specified on the
                  * ReadObjectRequest, ContentRange will be populated on the first
            @@ -1330,14 +1192,11 @@ public com.google.storage.v2.ContentRangeOrBuilder getContentRangeOrBuilder() {
                   if (contentRangeBuilder_ != null) {
                     return contentRangeBuilder_.getMessageOrBuilder();
                   } else {
            -        return contentRange_ == null
            -            ? com.google.storage.v2.ContentRange.getDefaultInstance()
            -            : contentRange_;
            +        return contentRange_ == null ?
            +            com.google.storage.v2.ContentRange.getDefaultInstance() : contentRange_;
                   }
                 }
                 /**
            -     *
            -     *
                  * 
                  * If read_offset and or read_limit was specified on the
                  * ReadObjectRequest, ContentRange will be populated on the first
            @@ -1347,17 +1206,14 @@ public com.google.storage.v2.ContentRangeOrBuilder getContentRangeOrBuilder() {
                  * .google.storage.v2.ContentRange content_range = 3;
                  */
                 private com.google.protobuf.SingleFieldBuilderV3<
            -            com.google.storage.v2.ContentRange,
            -            com.google.storage.v2.ContentRange.Builder,
            -            com.google.storage.v2.ContentRangeOrBuilder>
            +        com.google.storage.v2.ContentRange, com.google.storage.v2.ContentRange.Builder, com.google.storage.v2.ContentRangeOrBuilder> 
                     getContentRangeFieldBuilder() {
                   if (contentRangeBuilder_ == null) {
            -        contentRangeBuilder_ =
            -            new com.google.protobuf.SingleFieldBuilderV3<
            -                com.google.storage.v2.ContentRange,
            -                com.google.storage.v2.ContentRange.Builder,
            -                com.google.storage.v2.ContentRangeOrBuilder>(
            -                getContentRange(), getParentForChildren(), isClean());
            +        contentRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            +            com.google.storage.v2.ContentRange, com.google.storage.v2.ContentRange.Builder, com.google.storage.v2.ContentRangeOrBuilder>(
            +                getContentRange(),
            +                getParentForChildren(),
            +                isClean());
                     contentRange_ = null;
                   }
                   return contentRangeBuilder_;
            @@ -1365,35 +1221,26 @@ public com.google.storage.v2.ContentRangeOrBuilder getContentRangeOrBuilder() {
             
                 private com.google.storage.v2.Object metadata_;
                 private com.google.protobuf.SingleFieldBuilderV3<
            -            com.google.storage.v2.Object,
            -            com.google.storage.v2.Object.Builder,
            -            com.google.storage.v2.ObjectOrBuilder>
            -        metadataBuilder_;
            +        com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> metadataBuilder_;
                 /**
            -     *
            -     *
                  * 
                  * Metadata of the object whose media is being returned.
                  * Only populated in the first response in the stream.
                  * 
            * * .google.storage.v2.Object metadata = 4; - * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
                  * Metadata of the object whose media is being returned.
                  * Only populated in the first response in the stream.
                  * 
            * * .google.storage.v2.Object metadata = 4; - * * @return The metadata. */ public com.google.storage.v2.Object getMetadata() { @@ -1404,8 +1251,6 @@ public com.google.storage.v2.Object getMetadata() { } } /** - * - * *
                  * Metadata of the object whose media is being returned.
                  * Only populated in the first response in the stream.
            @@ -1427,8 +1272,6 @@ public Builder setMetadata(com.google.storage.v2.Object value) {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Metadata of the object whose media is being returned.
                  * Only populated in the first response in the stream.
            @@ -1436,7 +1279,8 @@ public Builder setMetadata(com.google.storage.v2.Object value) {
                  *
                  * .google.storage.v2.Object metadata = 4;
                  */
            -    public Builder setMetadata(com.google.storage.v2.Object.Builder builderForValue) {
            +    public Builder setMetadata(
            +        com.google.storage.v2.Object.Builder builderForValue) {
                   if (metadataBuilder_ == null) {
                     metadata_ = builderForValue.build();
                   } else {
            @@ -1447,8 +1291,6 @@ public Builder setMetadata(com.google.storage.v2.Object.Builder builderForValue)
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Metadata of the object whose media is being returned.
                  * Only populated in the first response in the stream.
            @@ -1458,9 +1300,9 @@ public Builder setMetadata(com.google.storage.v2.Object.Builder builderForValue)
                  */
                 public Builder mergeMetadata(com.google.storage.v2.Object value) {
                   if (metadataBuilder_ == null) {
            -        if (((bitField0_ & 0x00000008) != 0)
            -            && metadata_ != null
            -            && metadata_ != com.google.storage.v2.Object.getDefaultInstance()) {
            +        if (((bitField0_ & 0x00000008) != 0) &&
            +          metadata_ != null &&
            +          metadata_ != com.google.storage.v2.Object.getDefaultInstance()) {
                       getMetadataBuilder().mergeFrom(value);
                     } else {
                       metadata_ = value;
            @@ -1475,8 +1317,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.
            @@ -1495,8 +1335,6 @@ public Builder clearMetadata() {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Metadata of the object whose media is being returned.
                  * Only populated in the first response in the stream.
            @@ -1510,8 +1348,6 @@ public com.google.storage.v2.Object.Builder getMetadataBuilder() {
                   return getMetadataFieldBuilder().getBuilder();
                 }
                 /**
            -     *
            -     *
                  * 
                  * Metadata of the object whose media is being returned.
                  * Only populated in the first response in the stream.
            @@ -1523,12 +1359,11 @@ public com.google.storage.v2.ObjectOrBuilder getMetadataOrBuilder() {
                   if (metadataBuilder_ != null) {
                     return metadataBuilder_.getMessageOrBuilder();
                   } else {
            -        return metadata_ == null ? com.google.storage.v2.Object.getDefaultInstance() : metadata_;
            +        return metadata_ == null ?
            +            com.google.storage.v2.Object.getDefaultInstance() : metadata_;
                   }
                 }
                 /**
            -     *
            -     *
                  * 
                  * Metadata of the object whose media is being returned.
                  * Only populated in the first response in the stream.
            @@ -1537,24 +1372,21 @@ public com.google.storage.v2.ObjectOrBuilder getMetadataOrBuilder() {
                  * .google.storage.v2.Object metadata = 4;
                  */
                 private com.google.protobuf.SingleFieldBuilderV3<
            -            com.google.storage.v2.Object,
            -            com.google.storage.v2.Object.Builder,
            -            com.google.storage.v2.ObjectOrBuilder>
            +        com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> 
                     getMetadataFieldBuilder() {
                   if (metadataBuilder_ == null) {
            -        metadataBuilder_ =
            -            new com.google.protobuf.SingleFieldBuilderV3<
            -                com.google.storage.v2.Object,
            -                com.google.storage.v2.Object.Builder,
            -                com.google.storage.v2.ObjectOrBuilder>(
            -                getMetadata(), getParentForChildren(), isClean());
            +        metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            +            com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder>(
            +                getMetadata(),
            +                getParentForChildren(),
            +                isClean());
                     metadata_ = null;
                   }
                   return metadataBuilder_;
                 }
            -
                 @java.lang.Override
            -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
            +    public final Builder setUnknownFields(
            +        final com.google.protobuf.UnknownFieldSet unknownFields) {
                   return super.setUnknownFields(unknownFields);
                 }
             
            @@ -1564,12 +1396,12 @@ public final Builder mergeUnknownFields(
                   return super.mergeUnknownFields(unknownFields);
                 }
             
            +
                 // @@protoc_insertion_point(builder_scope:google.storage.v2.ReadObjectResponse)
               }
             
               // @@protoc_insertion_point(class_scope:google.storage.v2.ReadObjectResponse)
               private static final com.google.storage.v2.ReadObjectResponse DEFAULT_INSTANCE;
            -
               static {
                 DEFAULT_INSTANCE = new com.google.storage.v2.ReadObjectResponse();
               }
            @@ -1578,27 +1410,27 @@ public static com.google.storage.v2.ReadObjectResponse getDefaultInstance() {
                 return DEFAULT_INSTANCE;
               }
             
            -  private static final com.google.protobuf.Parser PARSER =
            -      new com.google.protobuf.AbstractParser() {
            -        @java.lang.Override
            -        public ReadObjectResponse parsePartialFrom(
            -            com.google.protobuf.CodedInputStream input,
            -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            -            throws com.google.protobuf.InvalidProtocolBufferException {
            -          Builder builder = newBuilder();
            -          try {
            -            builder.mergeFrom(input, extensionRegistry);
            -          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            -            throw e.setUnfinishedMessage(builder.buildPartial());
            -          } catch (com.google.protobuf.UninitializedMessageException e) {
            -            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
            -          } catch (java.io.IOException e) {
            -            throw new com.google.protobuf.InvalidProtocolBufferException(e)
            -                .setUnfinishedMessage(builder.buildPartial());
            -          }
            -          return builder.buildPartial();
            -        }
            -      };
            +  private static final com.google.protobuf.Parser
            +      PARSER = new com.google.protobuf.AbstractParser() {
            +    @java.lang.Override
            +    public ReadObjectResponse parsePartialFrom(
            +        com.google.protobuf.CodedInputStream input,
            +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +        throws com.google.protobuf.InvalidProtocolBufferException {
            +      Builder builder = newBuilder();
            +      try {
            +        builder.mergeFrom(input, extensionRegistry);
            +      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            +        throw e.setUnfinishedMessage(builder.buildPartial());
            +      } catch (com.google.protobuf.UninitializedMessageException e) {
            +        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
            +      } catch (java.io.IOException e) {
            +        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            +            .setUnfinishedMessage(builder.buildPartial());
            +      }
            +      return builder.buildPartial();
            +    }
            +  };
             
               public static com.google.protobuf.Parser parser() {
                 return PARSER;
            @@ -1613,4 +1445,6 @@ public com.google.protobuf.Parser getParserForType() {
               public com.google.storage.v2.ReadObjectResponse getDefaultInstanceForType() {
                 return DEFAULT_INSTANCE;
               }
            +
             }
            +
            diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponseOrBuilder.java
            similarity index 85%
            rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponseOrBuilder.java
            rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ReadObjectResponseOrBuilder.java
            index b57255da69..24b4cd8821 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,32 +1,14 @@
            -/*
            - * Copyright 2024 Google LLC
            - *
            - * Licensed under the Apache License, Version 2.0 (the "License");
            - * you may not use this file except in compliance with the License.
            - * You may obtain a copy of the License at
            - *
            - *     https://www.apache.org/licenses/LICENSE-2.0
            - *
            - * Unless required by applicable law or agreed to in writing, software
            - * distributed under the License is distributed on an "AS IS" BASIS,
            - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            - * See the License for the specific language governing permissions and
            - * limitations under the License.
            - */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
             // Protobuf Java Version: 3.25.3
             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
            @@ -35,13 +17,10 @@ public interface ReadObjectResponseOrBuilder
                * 
            * * .google.storage.v2.ChecksummedData checksummed_data = 1; - * * @return Whether the checksummedData field is set. */ boolean hasChecksummedData(); /** - * - * *
                * A portion of the data for the object. The service **may** leave `data`
                * empty for any given `ReadResponse`. This enables the service to inform the
            @@ -50,13 +29,10 @@ public interface ReadObjectResponseOrBuilder
                * 
            * * .google.storage.v2.ChecksummedData checksummed_data = 1; - * * @return The checksummedData. */ com.google.storage.v2.ChecksummedData getChecksummedData(); /** - * - * *
                * A portion of the data for the object. The service **may** leave `data`
                * empty for any given `ReadResponse`. This enables the service to inform the
            @@ -69,8 +45,6 @@ public interface ReadObjectResponseOrBuilder
               com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilder();
             
               /**
            -   *
            -   *
                * 
                * The checksums of the complete object. If the object is downloaded in full,
                * the client should compute one of these checksums over the downloaded object
            @@ -78,13 +52,10 @@ public interface ReadObjectResponseOrBuilder
                * 
            * * .google.storage.v2.ObjectChecksums object_checksums = 2; - * * @return Whether the objectChecksums field is set. */ boolean hasObjectChecksums(); /** - * - * *
                * The checksums of the complete object. If the object is downloaded in full,
                * the client should compute one of these checksums over the downloaded object
            @@ -92,13 +63,10 @@ public interface ReadObjectResponseOrBuilder
                * 
            * * .google.storage.v2.ObjectChecksums object_checksums = 2; - * * @return The objectChecksums. */ com.google.storage.v2.ObjectChecksums getObjectChecksums(); /** - * - * *
                * The checksums of the complete object. If the object is downloaded in full,
                * the client should compute one of these checksums over the downloaded object
            @@ -110,8 +78,6 @@ public interface ReadObjectResponseOrBuilder
               com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilder();
             
               /**
            -   *
            -   *
                * 
                * If read_offset and or read_limit was specified on the
                * ReadObjectRequest, ContentRange will be populated on the first
            @@ -119,13 +85,10 @@ public interface ReadObjectResponseOrBuilder
                * 
            * * .google.storage.v2.ContentRange content_range = 3; - * * @return Whether the contentRange field is set. */ boolean hasContentRange(); /** - * - * *
                * If read_offset and or read_limit was specified on the
                * ReadObjectRequest, ContentRange will be populated on the first
            @@ -133,13 +96,10 @@ public interface ReadObjectResponseOrBuilder
                * 
            * * .google.storage.v2.ContentRange content_range = 3; - * * @return The contentRange. */ com.google.storage.v2.ContentRange getContentRange(); /** - * - * *
                * If read_offset and or read_limit was specified on the
                * ReadObjectRequest, ContentRange will be populated on the first
            @@ -151,34 +111,26 @@ public interface ReadObjectResponseOrBuilder
               com.google.storage.v2.ContentRangeOrBuilder getContentRangeOrBuilder();
             
               /**
            -   *
            -   *
                * 
                * Metadata of the object whose media is being returned.
                * Only populated in the first response in the stream.
                * 
            * * .google.storage.v2.Object metadata = 4; - * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** - * - * *
                * Metadata of the object whose media is being returned.
                * Only populated in the first response in the stream.
                * 
            * * .google.storage.v2.Object metadata = 4; - * * @return The metadata. */ com.google.storage.v2.Object getMetadata(); /** - * - * *
                * Metadata of the object whose media is being returned.
                * Only populated in the first response in the stream.
            diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequest.java
            similarity index 74%
            rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequest.java
            rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequest.java
            index c01c3d744d..8faad21ef6 100644
            --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequest.java
            +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequest.java
            @@ -1,18 +1,3 @@
            -/*
            - * Copyright 2024 Google LLC
            - *
            - * Licensed under the Apache License, Version 2.0 (the "License");
            - * you may not use this file except in compliance with the License.
            - * You may obtain a copy of the License at
            - *
            - *     https://www.apache.org/licenses/LICENSE-2.0
            - *
            - * Unless required by applicable law or agreed to in writing, software
            - * distributed under the License is distributed on an "AS IS" BASIS,
            - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            - * See the License for the specific language governing permissions and
            - * limitations under the License.
            - */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
            @@ -20,8 +5,6 @@
             package com.google.storage.v2;
             
             /**
            - *
            - *
              * 
              * Message for restoring an object.
              * `bucket`, `object`, and `generation` **must** be set.
            @@ -29,16 +12,15 @@
              *
              * Protobuf type {@code google.storage.v2.RestoreObjectRequest}
              */
            -public final class RestoreObjectRequest extends com.google.protobuf.GeneratedMessageV3
            -    implements
            +public final class RestoreObjectRequest extends
            +    com.google.protobuf.GeneratedMessageV3 implements
                 // @@protoc_insertion_point(message_implements:google.storage.v2.RestoreObjectRequest)
                 RestoreObjectRequestOrBuilder {
            -  private static final long serialVersionUID = 0L;
            +private static final long serialVersionUID = 0L;
               // Use RestoreObjectRequest.newBuilder() to construct.
               private RestoreObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                 super(builder);
               }
            -
               private RestoreObjectRequest() {
                 bucket_ = "";
                 object_ = "";
            @@ -46,41 +28,34 @@ private RestoreObjectRequest() {
             
               @java.lang.Override
               @SuppressWarnings({"unused"})
            -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
            +  protected java.lang.Object newInstance(
            +      UnusedPrivateParameter unused) {
                 return new RestoreObjectRequest();
               }
             
            -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            -    return com.google.storage.v2.StorageProto
            -        .internal_static_google_storage_v2_RestoreObjectRequest_descriptor;
            +  public static final com.google.protobuf.Descriptors.Descriptor
            +      getDescriptor() {
            +    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_RestoreObjectRequest_descriptor;
               }
             
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
            -    return com.google.storage.v2.StorageProto
            -        .internal_static_google_storage_v2_RestoreObjectRequest_fieldAccessorTable
            +    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_RestoreObjectRequest_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
            -            com.google.storage.v2.RestoreObjectRequest.class,
            -            com.google.storage.v2.RestoreObjectRequest.Builder.class);
            +            com.google.storage.v2.RestoreObjectRequest.class, com.google.storage.v2.RestoreObjectRequest.Builder.class);
               }
             
               private int bitField0_;
               public static final int BUCKET_FIELD_NUMBER = 1;
            -
               @SuppressWarnings("serial")
               private volatile java.lang.Object bucket_ = "";
               /**
            -   *
            -   *
                * 
                * Required. Name of the bucket in which the object resides.
                * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bucket. */ @java.lang.Override @@ -89,31 +64,29 @@ public java.lang.String getBucket() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucket_ = s; return s; } } /** - * - * *
                * Required. Name of the bucket in which the object resides.
                * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for bucket. */ @java.lang.Override - public com.google.protobuf.ByteString getBucketBytes() { + public com.google.protobuf.ByteString + getBucketBytes() { java.lang.Object ref = bucket_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); bucket_ = b; return b; } else { @@ -122,18 +95,14 @@ public com.google.protobuf.ByteString getBucketBytes() { } public static final int OBJECT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object object_ = ""; /** - * - * *
                * Required. The name of the object to restore.
                * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The object. */ @java.lang.Override @@ -142,29 +111,29 @@ public java.lang.String getObject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); object_ = s; return s; } } /** - * - * *
                * Required. The name of the object to restore.
                * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for object. */ @java.lang.Override - public com.google.protobuf.ByteString getObjectBytes() { + public com.google.protobuf.ByteString + getObjectBytes() { java.lang.Object ref = object_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); object_ = b; return b; } else { @@ -175,14 +144,11 @@ public com.google.protobuf.ByteString getObjectBytes() { public static final int GENERATION_FIELD_NUMBER = 3; private long generation_ = 0L; /** - * - * *
                * Required. The specific revision of the object to restore.
                * 
            * * int64 generation = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The generation. */ @java.lang.Override @@ -193,8 +159,6 @@ public long getGeneration() { public static final int IF_GENERATION_MATCH_FIELD_NUMBER = 4; private long ifGenerationMatch_ = 0L; /** - * - * *
                * Makes the operation conditional on whether the object's current generation
                * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -202,7 +166,6 @@ public long getGeneration() {
                * 
            * * optional int64 if_generation_match = 4; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -210,8 +173,6 @@ public boolean hasIfGenerationMatch() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * Makes the operation conditional on whether the object's current generation
                * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -219,7 +180,6 @@ public boolean hasIfGenerationMatch() {
                * 
            * * optional int64 if_generation_match = 4; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -230,8 +190,6 @@ public long getIfGenerationMatch() { public static final int IF_GENERATION_NOT_MATCH_FIELD_NUMBER = 5; private long ifGenerationNotMatch_ = 0L; /** - * - * *
                * Makes the operation conditional on whether the object's live generation
                * does not match the given value. If no live object exists, the precondition
            @@ -240,7 +198,6 @@ public long getIfGenerationMatch() {
                * 
            * * optional int64 if_generation_not_match = 5; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -248,8 +205,6 @@ public boolean hasIfGenerationNotMatch() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                * Makes the operation conditional on whether the object's live generation
                * does not match the given value. If no live object exists, the precondition
            @@ -258,7 +213,6 @@ public boolean hasIfGenerationNotMatch() {
                * 
            * * optional int64 if_generation_not_match = 5; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -269,15 +223,12 @@ public long getIfGenerationNotMatch() { public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER = 6; private long ifMetagenerationMatch_ = 0L; /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 6; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -285,15 +236,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 6; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -304,15 +252,12 @@ public long getIfMetagenerationMatch() { public static final int IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER = 7; private long ifMetagenerationNotMatch_ = 0L; /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 7; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -320,15 +265,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 7; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -339,8 +281,6 @@ public long getIfMetagenerationNotMatch() { public static final int COPY_SOURCE_ACL_FIELD_NUMBER = 9; private boolean copySourceAcl_ = false; /** - * - * *
                * If false or unset, the bucket's default object ACL will be used.
                * If true, copy the source object's access controls.
            @@ -348,7 +288,6 @@ public long getIfMetagenerationNotMatch() {
                * 
            * * optional bool copy_source_acl = 9; - * * @return Whether the copySourceAcl field is set. */ @java.lang.Override @@ -356,8 +295,6 @@ public boolean hasCopySourceAcl() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
                * If false or unset, the bucket's default object ACL will be used.
                * If true, copy the source object's access controls.
            @@ -365,7 +302,6 @@ public boolean hasCopySourceAcl() {
                * 
            * * optional bool copy_source_acl = 9; - * * @return The copySourceAcl. */ @java.lang.Override @@ -376,14 +312,11 @@ public boolean getCopySourceAcl() { public static final int COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER = 8; private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return Whether the commonObjectRequestParams field is set. */ @java.lang.Override @@ -391,25 +324,18 @@ public boolean hasCommonObjectRequestParams() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return The commonObjectRequestParams. */ @java.lang.Override public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            @@ -417,15 +343,11 @@ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestPar * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ @java.lang.Override - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -437,7 +359,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_); } @@ -481,27 +404,32 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, object_); } if (generation_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, generation_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, generation_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ifGenerationMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, ifGenerationMatch_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, ifGenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, ifGenerationNotMatch_); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, ifMetagenerationMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, ifMetagenerationMatch_); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, ifMetagenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, ifMetagenerationNotMatch_); } if (((bitField0_ & 0x00000020) != 0)) { - 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.computeBoolSize(9, copySourceAcl_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, copySourceAcl_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -511,41 +439,48 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.RestoreObjectRequest)) { return super.equals(obj); } - com.google.storage.v2.RestoreObjectRequest other = - (com.google.storage.v2.RestoreObjectRequest) obj; + com.google.storage.v2.RestoreObjectRequest other = (com.google.storage.v2.RestoreObjectRequest) obj; - if (!getBucket().equals(other.getBucket())) return false; - if (!getObject().equals(other.getObject())) return false; - if (getGeneration() != other.getGeneration()) return false; + if (!getBucket() + .equals(other.getBucket())) return false; + if (!getObject() + .equals(other.getObject())) return false; + if (getGeneration() + != other.getGeneration()) return false; if (hasIfGenerationMatch() != other.hasIfGenerationMatch()) return false; if (hasIfGenerationMatch()) { - if (getIfGenerationMatch() != other.getIfGenerationMatch()) return false; + if (getIfGenerationMatch() + != other.getIfGenerationMatch()) return false; } if (hasIfGenerationNotMatch() != other.hasIfGenerationNotMatch()) return false; if (hasIfGenerationNotMatch()) { - if (getIfGenerationNotMatch() != other.getIfGenerationNotMatch()) return false; + if (getIfGenerationNotMatch() + != other.getIfGenerationNotMatch()) return false; } if (hasIfMetagenerationMatch() != other.hasIfMetagenerationMatch()) return false; if (hasIfMetagenerationMatch()) { - if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false; + if (getIfMetagenerationMatch() + != other.getIfMetagenerationMatch()) return false; } if (hasIfMetagenerationNotMatch() != other.hasIfMetagenerationNotMatch()) return false; if (hasIfMetagenerationNotMatch()) { - if (getIfMetagenerationNotMatch() != other.getIfMetagenerationNotMatch()) return false; + if (getIfMetagenerationNotMatch() + != other.getIfMetagenerationNotMatch()) return false; } if (hasCopySourceAcl() != other.hasCopySourceAcl()) return false; if (hasCopySourceAcl()) { - if (getCopySourceAcl() != other.getCopySourceAcl()) return false; + if (getCopySourceAcl() + != other.getCopySourceAcl()) return false; } if (hasCommonObjectRequestParams() != other.hasCommonObjectRequestParams()) return false; if (hasCommonObjectRequestParams()) { - if (!getCommonObjectRequestParams().equals(other.getCommonObjectRequestParams())) - return false; + if (!getCommonObjectRequestParams() + .equals(other.getCommonObjectRequestParams())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -563,26 +498,32 @@ public int hashCode() { hash = (37 * hash) + OBJECT_FIELD_NUMBER; hash = (53 * hash) + getObject().hashCode(); hash = (37 * hash) + GENERATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getGeneration()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getGeneration()); if (hasIfGenerationMatch()) { hash = (37 * hash) + IF_GENERATION_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfGenerationMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfGenerationMatch()); } if (hasIfGenerationNotMatch()) { hash = (37 * hash) + IF_GENERATION_NOT_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfGenerationNotMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfGenerationNotMatch()); } if (hasIfMetagenerationMatch()) { hash = (37 * hash) + IF_METAGENERATION_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationMatch()); } if (hasIfMetagenerationNotMatch()) { hash = (37 * hash) + IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationNotMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationNotMatch()); } if (hasCopySourceAcl()) { hash = (37 * hash) + COPY_SOURCE_ACL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCopySourceAcl()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCopySourceAcl()); } if (hasCommonObjectRequestParams()) { hash = (37 * hash) + COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER; @@ -593,104 +534,99 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.RestoreObjectRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.RestoreObjectRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.RestoreObjectRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.RestoreObjectRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.RestoreObjectRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.RestoreObjectRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.RestoreObjectRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.RestoreObjectRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.RestoreObjectRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.RestoreObjectRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.RestoreObjectRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.RestoreObjectRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.RestoreObjectRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.RestoreObjectRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.RestoreObjectRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * Message for restoring an object.
                * `bucket`, `object`, and `generation` **must** be set.
            @@ -698,23 +634,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
                *
                * Protobuf type {@code google.storage.v2.RestoreObjectRequest}
                */
            -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
            -      implements
            +  public static final class Builder extends
            +      com.google.protobuf.GeneratedMessageV3.Builder implements
                   // @@protoc_insertion_point(builder_implements:google.storage.v2.RestoreObjectRequest)
                   com.google.storage.v2.RestoreObjectRequestOrBuilder {
            -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            -      return com.google.storage.v2.StorageProto
            -          .internal_static_google_storage_v2_RestoreObjectRequest_descriptor;
            +    public static final com.google.protobuf.Descriptors.Descriptor
            +        getDescriptor() {
            +      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_RestoreObjectRequest_descriptor;
                 }
             
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
            -      return com.google.storage.v2.StorageProto
            -          .internal_static_google_storage_v2_RestoreObjectRequest_fieldAccessorTable
            +      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_RestoreObjectRequest_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
            -              com.google.storage.v2.RestoreObjectRequest.class,
            -              com.google.storage.v2.RestoreObjectRequest.Builder.class);
            +              com.google.storage.v2.RestoreObjectRequest.class, com.google.storage.v2.RestoreObjectRequest.Builder.class);
                 }
             
                 // Construct using com.google.storage.v2.RestoreObjectRequest.newBuilder()
            @@ -722,17 +656,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) {
                     getCommonObjectRequestParamsFieldBuilder();
                   }
                 }
            -
                 @java.lang.Override
                 public Builder clear() {
                   super.clear();
            @@ -754,9 +688,9 @@ public Builder clear() {
                 }
             
                 @java.lang.Override
            -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            -      return com.google.storage.v2.StorageProto
            -          .internal_static_google_storage_v2_RestoreObjectRequest_descriptor;
            +    public com.google.protobuf.Descriptors.Descriptor
            +        getDescriptorForType() {
            +      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_RestoreObjectRequest_descriptor;
                 }
             
                 @java.lang.Override
            @@ -775,11 +709,8 @@ public com.google.storage.v2.RestoreObjectRequest build() {
             
                 @java.lang.Override
                 public com.google.storage.v2.RestoreObjectRequest buildPartial() {
            -      com.google.storage.v2.RestoreObjectRequest result =
            -          new com.google.storage.v2.RestoreObjectRequest(this);
            -      if (bitField0_ != 0) {
            -        buildPartial0(result);
            -      }
            +      com.google.storage.v2.RestoreObjectRequest result = new com.google.storage.v2.RestoreObjectRequest(this);
            +      if (bitField0_ != 0) { buildPartial0(result); }
                   onBuilt();
                   return result;
                 }
            @@ -817,10 +748,9 @@ private void buildPartial0(com.google.storage.v2.RestoreObjectRequest result) {
                     to_bitField0_ |= 0x00000010;
                   }
                   if (((from_bitField0_ & 0x00000100) != 0)) {
            -        result.commonObjectRequestParams_ =
            -            commonObjectRequestParamsBuilder_ == null
            -                ? commonObjectRequestParams_
            -                : commonObjectRequestParamsBuilder_.build();
            +        result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null
            +            ? commonObjectRequestParams_
            +            : commonObjectRequestParamsBuilder_.build();
                     to_bitField0_ |= 0x00000020;
                   }
                   result.bitField0_ |= to_bitField0_;
            @@ -830,39 +760,38 @@ private void buildPartial0(com.google.storage.v2.RestoreObjectRequest result) {
                 public Builder clone() {
                   return super.clone();
                 }
            -
                 @java.lang.Override
                 public Builder setField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field,
            +        java.lang.Object value) {
                   return super.setField(field, value);
                 }
            -
                 @java.lang.Override
            -    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
            +    public Builder clearField(
            +        com.google.protobuf.Descriptors.FieldDescriptor field) {
                   return super.clearField(field);
                 }
            -
                 @java.lang.Override
            -    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
            +    public Builder clearOneof(
            +        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                   return super.clearOneof(oneof);
                 }
            -
                 @java.lang.Override
                 public Builder setRepeatedField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field,
            +        int index, java.lang.Object value) {
                   return super.setRepeatedField(field, index, value);
                 }
            -
                 @java.lang.Override
                 public Builder addRepeatedField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field,
            +        java.lang.Object value) {
                   return super.addRepeatedField(field, value);
                 }
            -
                 @java.lang.Override
                 public Builder mergeFrom(com.google.protobuf.Message other) {
                   if (other instanceof com.google.storage.v2.RestoreObjectRequest) {
            -        return mergeFrom((com.google.storage.v2.RestoreObjectRequest) other);
            +        return mergeFrom((com.google.storage.v2.RestoreObjectRequest)other);
                   } else {
                     super.mergeFrom(other);
                     return this;
            @@ -928,68 +857,59 @@ public Builder mergeFrom(
                         case 0:
                           done = true;
                           break;
            -            case 10:
            -              {
            -                bucket_ = input.readStringRequireUtf8();
            -                bitField0_ |= 0x00000001;
            -                break;
            -              } // case 10
            -            case 18:
            -              {
            -                object_ = input.readStringRequireUtf8();
            -                bitField0_ |= 0x00000002;
            -                break;
            -              } // case 18
            -            case 24:
            -              {
            -                generation_ = input.readInt64();
            -                bitField0_ |= 0x00000004;
            -                break;
            -              } // case 24
            -            case 32:
            -              {
            -                ifGenerationMatch_ = input.readInt64();
            -                bitField0_ |= 0x00000008;
            -                break;
            -              } // case 32
            -            case 40:
            -              {
            -                ifGenerationNotMatch_ = input.readInt64();
            -                bitField0_ |= 0x00000010;
            -                break;
            -              } // case 40
            -            case 48:
            -              {
            -                ifMetagenerationMatch_ = input.readInt64();
            -                bitField0_ |= 0x00000020;
            -                break;
            -              } // case 48
            -            case 56:
            -              {
            -                ifMetagenerationNotMatch_ = input.readInt64();
            -                bitField0_ |= 0x00000040;
            -                break;
            -              } // case 56
            -            case 66:
            -              {
            -                input.readMessage(
            -                    getCommonObjectRequestParamsFieldBuilder().getBuilder(), extensionRegistry);
            -                bitField0_ |= 0x00000100;
            -                break;
            -              } // case 66
            -            case 72:
            -              {
            -                copySourceAcl_ = input.readBool();
            -                bitField0_ |= 0x00000080;
            -                break;
            -              } // case 72
            -            default:
            -              {
            -                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            -                  done = true; // was an endgroup tag
            -                }
            -                break;
            -              } // default:
            +            case 10: {
            +              bucket_ = input.readStringRequireUtf8();
            +              bitField0_ |= 0x00000001;
            +              break;
            +            } // case 10
            +            case 18: {
            +              object_ = input.readStringRequireUtf8();
            +              bitField0_ |= 0x00000002;
            +              break;
            +            } // case 18
            +            case 24: {
            +              generation_ = input.readInt64();
            +              bitField0_ |= 0x00000004;
            +              break;
            +            } // case 24
            +            case 32: {
            +              ifGenerationMatch_ = input.readInt64();
            +              bitField0_ |= 0x00000008;
            +              break;
            +            } // case 32
            +            case 40: {
            +              ifGenerationNotMatch_ = input.readInt64();
            +              bitField0_ |= 0x00000010;
            +              break;
            +            } // case 40
            +            case 48: {
            +              ifMetagenerationMatch_ = input.readInt64();
            +              bitField0_ |= 0x00000020;
            +              break;
            +            } // case 48
            +            case 56: {
            +              ifMetagenerationNotMatch_ = input.readInt64();
            +              bitField0_ |= 0x00000040;
            +              break;
            +            } // case 56
            +            case 66: {
            +              input.readMessage(
            +                  getCommonObjectRequestParamsFieldBuilder().getBuilder(),
            +                  extensionRegistry);
            +              bitField0_ |= 0x00000100;
            +              break;
            +            } // case 66
            +            case 72: {
            +              copySourceAcl_ = input.readBool();
            +              bitField0_ |= 0x00000080;
            +              break;
            +            } // case 72
            +            default: {
            +              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            +                done = true; // was an endgroup tag
            +              }
            +              break;
            +            } // default:
                       } // switch (tag)
                     } // while (!done)
                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            @@ -999,27 +919,22 @@ public Builder mergeFrom(
                   } // finally
                   return this;
                 }
            -
                 private int bitField0_;
             
                 private java.lang.Object bucket_ = "";
                 /**
            -     *
            -     *
                  * 
                  * Required. Name of the bucket in which the object resides.
                  * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bucket. */ public java.lang.String getBucket() { java.lang.Object ref = bucket_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucket_ = s; return s; @@ -1028,23 +943,20 @@ public java.lang.String getBucket() { } } /** - * - * *
                  * Required. Name of the bucket in which the object resides.
                  * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for bucket. */ - public com.google.protobuf.ByteString getBucketBytes() { + public com.google.protobuf.ByteString + getBucketBytes() { java.lang.Object ref = bucket_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); bucket_ = b; return b; } else { @@ -1052,39 +964,28 @@ public com.google.protobuf.ByteString getBucketBytes() { } } /** - * - * *
                  * Required. Name of the bucket in which the object resides.
                  * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bucket to set. * @return This builder for chaining. */ - public Builder setBucket(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBucket( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } bucket_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * Required. Name of the bucket in which the object resides.
                  * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearBucket() { @@ -1094,23 +995,17 @@ public Builder clearBucket() { return this; } /** - * - * *
                  * Required. Name of the bucket in which the object resides.
                  * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for bucket to set. * @return This builder for chaining. */ - public Builder setBucketBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBucketBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bucket_ = value; bitField0_ |= 0x00000001; @@ -1120,20 +1015,18 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) { private java.lang.Object object_ = ""; /** - * - * *
                  * Required. The name of the object to restore.
                  * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The object. */ public java.lang.String getObject() { java.lang.Object ref = object_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); object_ = s; return s; @@ -1142,21 +1035,20 @@ public java.lang.String getObject() { } } /** - * - * *
                  * Required. The name of the object to restore.
                  * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for object. */ - public com.google.protobuf.ByteString getObjectBytes() { + public com.google.protobuf.ByteString + getObjectBytes() { java.lang.Object ref = object_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); object_ = b; return b; } else { @@ -1164,35 +1056,28 @@ public com.google.protobuf.ByteString getObjectBytes() { } } /** - * - * *
                  * Required. The name of the object to restore.
                  * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The object to set. * @return This builder for chaining. */ - public Builder setObject(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setObject( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } object_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                  * Required. The name of the object to restore.
                  * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearObject() { @@ -1202,21 +1087,17 @@ public Builder clearObject() { return this; } /** - * - * *
                  * Required. The name of the object to restore.
                  * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for object to set. * @return This builder for chaining. */ - public Builder setObjectBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setObjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); object_ = value; bitField0_ |= 0x00000002; @@ -1224,16 +1105,13 @@ public Builder setObjectBytes(com.google.protobuf.ByteString value) { return this; } - private long generation_; + private long generation_ ; /** - * - * *
                  * Required. The specific revision of the object to restore.
                  * 
            * * int64 generation = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The generation. */ @java.lang.Override @@ -1241,14 +1119,11 @@ public long getGeneration() { return generation_; } /** - * - * *
                  * Required. The specific revision of the object to restore.
                  * 
            * * int64 generation = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The generation to set. * @return This builder for chaining. */ @@ -1260,14 +1135,11 @@ public Builder setGeneration(long value) { return this; } /** - * - * *
                  * Required. The specific revision of the object to restore.
                  * 
            * * int64 generation = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearGeneration() { @@ -1277,10 +1149,8 @@ public Builder clearGeneration() { return this; } - private long ifGenerationMatch_; + private long ifGenerationMatch_ ; /** - * - * *
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -1288,7 +1158,6 @@ public Builder clearGeneration() {
                  * 
            * * optional int64 if_generation_match = 4; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -1296,8 +1165,6 @@ public boolean hasIfGenerationMatch() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -1305,7 +1172,6 @@ public boolean hasIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_match = 4; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -1313,8 +1179,6 @@ public long getIfGenerationMatch() { return ifGenerationMatch_; } /** - * - * *
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -1322,7 +1186,6 @@ public long getIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_match = 4; - * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ @@ -1334,8 +1197,6 @@ public Builder setIfGenerationMatch(long value) { return this; } /** - * - * *
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -1343,7 +1204,6 @@ public Builder setIfGenerationMatch(long value) {
                  * 
            * * optional int64 if_generation_match = 4; - * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -1353,10 +1213,8 @@ public Builder clearIfGenerationMatch() { return this; } - private long ifGenerationNotMatch_; + private long ifGenerationNotMatch_ ; /** - * - * *
                  * Makes the operation conditional on whether the object's live generation
                  * does not match the given value. If no live object exists, the precondition
            @@ -1365,7 +1223,6 @@ public Builder clearIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_not_match = 5; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -1373,8 +1230,6 @@ public boolean hasIfGenerationNotMatch() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
                  * Makes the operation conditional on whether the object's live generation
                  * does not match the given value. If no live object exists, the precondition
            @@ -1383,7 +1238,6 @@ public boolean hasIfGenerationNotMatch() {
                  * 
            * * optional int64 if_generation_not_match = 5; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -1391,8 +1245,6 @@ public long getIfGenerationNotMatch() { return ifGenerationNotMatch_; } /** - * - * *
                  * Makes the operation conditional on whether the object's live generation
                  * does not match the given value. If no live object exists, the precondition
            @@ -1401,7 +1253,6 @@ public long getIfGenerationNotMatch() {
                  * 
            * * optional int64 if_generation_not_match = 5; - * * @param value The ifGenerationNotMatch to set. * @return This builder for chaining. */ @@ -1413,8 +1264,6 @@ public Builder setIfGenerationNotMatch(long value) { return this; } /** - * - * *
                  * Makes the operation conditional on whether the object's live generation
                  * does not match the given value. If no live object exists, the precondition
            @@ -1423,7 +1272,6 @@ public Builder setIfGenerationNotMatch(long value) {
                  * 
            * * optional int64 if_generation_not_match = 5; - * * @return This builder for chaining. */ public Builder clearIfGenerationNotMatch() { @@ -1433,17 +1281,14 @@ public Builder clearIfGenerationNotMatch() { return this; } - private long ifMetagenerationMatch_; + private long ifMetagenerationMatch_ ; /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 6; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -1451,15 +1296,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 6; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -1467,15 +1309,12 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 6; - * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -1487,15 +1326,12 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 6; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -1505,17 +1341,14 @@ public Builder clearIfMetagenerationMatch() { return this; } - private long ifMetagenerationNotMatch_; + private long ifMetagenerationNotMatch_ ; /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 7; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -1523,15 +1356,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 7; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -1539,15 +1369,12 @@ public long getIfMetagenerationNotMatch() { return ifMetagenerationNotMatch_; } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 7; - * * @param value The ifMetagenerationNotMatch to set. * @return This builder for chaining. */ @@ -1559,15 +1386,12 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 7; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -1577,10 +1401,8 @@ public Builder clearIfMetagenerationNotMatch() { return this; } - private boolean copySourceAcl_; + private boolean copySourceAcl_ ; /** - * - * *
                  * If false or unset, the bucket's default object ACL will be used.
                  * If true, copy the source object's access controls.
            @@ -1588,7 +1410,6 @@ public Builder clearIfMetagenerationNotMatch() {
                  * 
            * * optional bool copy_source_acl = 9; - * * @return Whether the copySourceAcl field is set. */ @java.lang.Override @@ -1596,8 +1417,6 @@ public boolean hasCopySourceAcl() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
                  * If false or unset, the bucket's default object ACL will be used.
                  * If true, copy the source object's access controls.
            @@ -1605,7 +1424,6 @@ public boolean hasCopySourceAcl() {
                  * 
            * * optional bool copy_source_acl = 9; - * * @return The copySourceAcl. */ @java.lang.Override @@ -1613,8 +1431,6 @@ public boolean getCopySourceAcl() { return copySourceAcl_; } /** - * - * *
                  * If false or unset, the bucket's default object ACL will be used.
                  * If true, copy the source object's access controls.
            @@ -1622,7 +1438,6 @@ public boolean getCopySourceAcl() {
                  * 
            * * optional bool copy_source_acl = 9; - * * @param value The copySourceAcl to set. * @return This builder for chaining. */ @@ -1634,8 +1449,6 @@ public Builder setCopySourceAcl(boolean value) { return this; } /** - * - * *
                  * If false or unset, the bucket's default object ACL will be used.
                  * If true, copy the source object's access controls.
            @@ -1643,7 +1456,6 @@ public Builder setCopySourceAcl(boolean value) {
                  * 
            * * optional bool copy_source_acl = 9; - * * @return This builder for chaining. */ public Builder clearCopySourceAcl() { @@ -1655,55 +1467,41 @@ public Builder clearCopySourceAcl() { private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> - commonObjectRequestParamsBuilder_; + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> commonObjectRequestParamsBuilder_; /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return Whether the commonObjectRequestParams field is set. */ public boolean hasCommonObjectRequestParams() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return The commonObjectRequestParams. */ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { if (commonObjectRequestParamsBuilder_ == null) { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } else { return commonObjectRequestParamsBuilder_.getMessage(); } } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ - public Builder setCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1717,8 +1515,6 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -1737,21 +1533,17 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ - public Builder mergeCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && commonObjectRequestParams_ != null - && commonObjectRequestParams_ - != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + commonObjectRequestParams_ != null && + commonObjectRequestParams_ != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { getCommonObjectRequestParamsBuilder().mergeFrom(value); } else { commonObjectRequestParams_ = value; @@ -1766,8 +1558,6 @@ public Builder mergeCommonObjectRequestParams( return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -1785,42 +1575,33 @@ public Builder clearCommonObjectRequestParams() { return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ - public com.google.storage.v2.CommonObjectRequestParams.Builder - getCommonObjectRequestParamsBuilder() { + public com.google.storage.v2.CommonObjectRequestParams.Builder getCommonObjectRequestParamsBuilder() { bitField0_ |= 0x00000100; onChanged(); return getCommonObjectRequestParamsFieldBuilder().getBuilder(); } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { if (commonObjectRequestParamsBuilder_ != null) { return commonObjectRequestParamsBuilder_.getMessageOrBuilder(); } else { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? + com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -1828,24 +1609,21 @@ public Builder clearCommonObjectRequestParams() { * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> getCommonObjectRequestParamsFieldBuilder() { if (commonObjectRequestParamsBuilder_ == null) { - commonObjectRequestParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( - getCommonObjectRequestParams(), getParentForChildren(), isClean()); + commonObjectRequestParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( + getCommonObjectRequestParams(), + getParentForChildren(), + isClean()); commonObjectRequestParams_ = null; } return commonObjectRequestParamsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1855,12 +1633,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.RestoreObjectRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.RestoreObjectRequest) private static final com.google.storage.v2.RestoreObjectRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.RestoreObjectRequest(); } @@ -1869,27 +1647,27 @@ public static com.google.storage.v2.RestoreObjectRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RestoreObjectRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RestoreObjectRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1904,4 +1682,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.RestoreObjectRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequestOrBuilder.java similarity index 81% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequestOrBuilder.java index b7f8a0f18e..eea6cdc259 100644 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequestOrBuilder.java @@ -1,99 +1,64 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 package com.google.storage.v2; -public interface RestoreObjectRequestOrBuilder - extends +public interface RestoreObjectRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.storage.v2.RestoreObjectRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
                * Required. Name of the bucket in which the object resides.
                * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bucket. */ java.lang.String getBucket(); /** - * - * *
                * Required. Name of the bucket in which the object resides.
                * 
            * - * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for bucket. */ - com.google.protobuf.ByteString getBucketBytes(); + com.google.protobuf.ByteString + getBucketBytes(); /** - * - * *
                * Required. The name of the object to restore.
                * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The object. */ java.lang.String getObject(); /** - * - * *
                * Required. The name of the object to restore.
                * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for object. */ - com.google.protobuf.ByteString getObjectBytes(); + com.google.protobuf.ByteString + getObjectBytes(); /** - * - * *
                * Required. The specific revision of the object to restore.
                * 
            * * int64 generation = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The generation. */ long getGeneration(); /** - * - * *
                * Makes the operation conditional on whether the object's current generation
                * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -101,13 +66,10 @@ public interface RestoreObjectRequestOrBuilder
                * 
            * * optional int64 if_generation_match = 4; - * * @return Whether the ifGenerationMatch field is set. */ boolean hasIfGenerationMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's current generation
                * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -115,14 +77,11 @@ public interface RestoreObjectRequestOrBuilder
                * 
            * * optional int64 if_generation_match = 4; - * * @return The ifGenerationMatch. */ long getIfGenerationMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's live generation
                * does not match the given value. If no live object exists, the precondition
            @@ -131,13 +90,10 @@ public interface RestoreObjectRequestOrBuilder
                * 
            * * optional int64 if_generation_not_match = 5; - * * @return Whether the ifGenerationNotMatch field is set. */ boolean hasIfGenerationNotMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's live generation
                * does not match the given value. If no live object exists, the precondition
            @@ -146,68 +102,53 @@ public interface RestoreObjectRequestOrBuilder
                * 
            * * optional int64 if_generation_not_match = 5; - * * @return The ifGenerationNotMatch. */ long getIfGenerationNotMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 6; - * * @return Whether the ifMetagenerationMatch field is set. */ boolean hasIfMetagenerationMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 6; - * * @return The ifMetagenerationMatch. */ long getIfMetagenerationMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 7; - * * @return Whether the ifMetagenerationNotMatch field is set. */ boolean hasIfMetagenerationNotMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 7; - * * @return The ifMetagenerationNotMatch. */ long getIfMetagenerationNotMatch(); /** - * - * *
                * If false or unset, the bucket's default object ACL will be used.
                * If true, copy the source object's access controls.
            @@ -215,13 +156,10 @@ public interface RestoreObjectRequestOrBuilder
                * 
            * * optional bool copy_source_acl = 9; - * * @return Whether the copySourceAcl field is set. */ boolean hasCopySourceAcl(); /** - * - * *
                * If false or unset, the bucket's default object ACL will be used.
                * If true, copy the source object's access controls.
            @@ -229,38 +167,29 @@ public interface RestoreObjectRequestOrBuilder
                * 
            * * optional bool copy_source_acl = 9; - * * @return The copySourceAcl. */ boolean getCopySourceAcl(); /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return Whether the commonObjectRequestParams field is set. */ boolean hasCommonObjectRequestParams(); /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return The commonObjectRequestParams. */ com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams(); /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequest.java similarity index 77% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequest.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequest.java index d5aaa957b4..b0ccad2414 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,8 +5,6 @@ package com.google.storage.v2; /** - * - * *
              * Request message for RewriteObject.
              * If the source object is encrypted using a Customer-Supplied Encryption Key
            @@ -35,16 +18,15 @@
              *
              * Protobuf type {@code google.storage.v2.RewriteObjectRequest}
              */
            -public final class RewriteObjectRequest extends com.google.protobuf.GeneratedMessageV3
            -    implements
            +public final class RewriteObjectRequest extends
            +    com.google.protobuf.GeneratedMessageV3 implements
                 // @@protoc_insertion_point(message_implements:google.storage.v2.RewriteObjectRequest)
                 RewriteObjectRequestOrBuilder {
            -  private static final long serialVersionUID = 0L;
            +private static final long serialVersionUID = 0L;
               // Use RewriteObjectRequest.newBuilder() to construct.
               private RewriteObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                 super(builder);
               }
            -
               private RewriteObjectRequest() {
                 destinationName_ = "";
                 destinationBucket_ = "";
            @@ -60,33 +42,29 @@ private RewriteObjectRequest() {
             
               @java.lang.Override
               @SuppressWarnings({"unused"})
            -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
            +  protected java.lang.Object newInstance(
            +      UnusedPrivateParameter unused) {
                 return new RewriteObjectRequest();
               }
             
            -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            -    return com.google.storage.v2.StorageProto
            -        .internal_static_google_storage_v2_RewriteObjectRequest_descriptor;
            +  public static final com.google.protobuf.Descriptors.Descriptor
            +      getDescriptor() {
            +    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_RewriteObjectRequest_descriptor;
               }
             
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
            -    return com.google.storage.v2.StorageProto
            -        .internal_static_google_storage_v2_RewriteObjectRequest_fieldAccessorTable
            +    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_RewriteObjectRequest_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
            -            com.google.storage.v2.RewriteObjectRequest.class,
            -            com.google.storage.v2.RewriteObjectRequest.Builder.class);
            +            com.google.storage.v2.RewriteObjectRequest.class, com.google.storage.v2.RewriteObjectRequest.Builder.class);
               }
             
               private int bitField0_;
               public static final int DESTINATION_NAME_FIELD_NUMBER = 24;
            -
               @SuppressWarnings("serial")
               private volatile java.lang.Object destinationName_ = "";
               /**
            -   *
            -   *
                * 
                * Required. Immutable. The name of the destination object.
                * See the
            @@ -97,10 +75,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                * (bucket, object, generation).
                * 
            * - * - * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The destinationName. */ @java.lang.Override @@ -109,15 +84,14 @@ public java.lang.String getDestinationName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationName_ = s; return s; } } /** - * - * *
                * Required. Immutable. The name of the destination object.
                * See the
            @@ -128,18 +102,17 @@ public java.lang.String getDestinationName() {
                * (bucket, object, generation).
                * 
            * - * - * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The bytes for destinationName. */ @java.lang.Override - public com.google.protobuf.ByteString getDestinationNameBytes() { + public com.google.protobuf.ByteString + getDestinationNameBytes() { java.lang.Object ref = destinationName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); destinationName_ = b; return b; } else { @@ -148,21 +121,15 @@ public com.google.protobuf.ByteString getDestinationNameBytes() { } public static final int DESTINATION_BUCKET_FIELD_NUMBER = 25; - @SuppressWarnings("serial") private volatile java.lang.Object destinationBucket_ = ""; /** - * - * *
                * Required. Immutable. The name of the bucket containing the destination
                * object.
                * 
            * - * - * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The destinationBucket. */ @java.lang.Override @@ -171,32 +138,30 @@ public java.lang.String getDestinationBucket() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationBucket_ = s; return s; } } /** - * - * *
                * Required. Immutable. The name of the bucket containing the destination
                * object.
                * 
            * - * - * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for destinationBucket. */ @java.lang.Override - public com.google.protobuf.ByteString getDestinationBucketBytes() { + public com.google.protobuf.ByteString + getDestinationBucketBytes() { java.lang.Object ref = destinationBucket_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); destinationBucket_ = b; return b; } else { @@ -205,12 +170,9 @@ public com.google.protobuf.ByteString getDestinationBucketBytes() { } public static final int DESTINATION_KMS_KEY_FIELD_NUMBER = 27; - @SuppressWarnings("serial") private volatile java.lang.Object destinationKmsKey_ = ""; /** - * - * *
                * The name of the Cloud KMS key that will be used to encrypt the destination
                * object. The Cloud KMS key must be located in same location as the object.
            @@ -220,7 +182,6 @@ public com.google.protobuf.ByteString getDestinationBucketBytes() {
                * 
            * * string destination_kms_key = 27 [(.google.api.resource_reference) = { ... } - * * @return The destinationKmsKey. */ @java.lang.Override @@ -229,15 +190,14 @@ public java.lang.String getDestinationKmsKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationKmsKey_ = s; return s; } } /** - * - * *
                * The name of the Cloud KMS key that will be used to encrypt the destination
                * object. The Cloud KMS key must be located in same location as the object.
            @@ -247,15 +207,16 @@ public java.lang.String getDestinationKmsKey() {
                * 
            * * string destination_kms_key = 27 [(.google.api.resource_reference) = { ... } - * * @return The bytes for destinationKmsKey. */ @java.lang.Override - public com.google.protobuf.ByteString getDestinationKmsKeyBytes() { + public com.google.protobuf.ByteString + getDestinationKmsKeyBytes() { java.lang.Object ref = destinationKmsKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); destinationKmsKey_ = b; return b; } else { @@ -266,8 +227,6 @@ public com.google.protobuf.ByteString getDestinationKmsKeyBytes() { public static final int DESTINATION_FIELD_NUMBER = 1; private com.google.storage.v2.Object destination_; /** - * - * *
                * Properties of the destination, post-rewrite object.
                * The `name`, `bucket` and `kms_key` fields must not be populated (these
            @@ -279,7 +238,6 @@ public com.google.protobuf.ByteString getDestinationKmsKeyBytes() {
                * 
            * * .google.storage.v2.Object destination = 1; - * * @return Whether the destination field is set. */ @java.lang.Override @@ -287,8 +245,6 @@ public boolean hasDestination() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * Properties of the destination, post-rewrite object.
                * The `name`, `bucket` and `kms_key` fields must not be populated (these
            @@ -300,7 +256,6 @@ public boolean hasDestination() {
                * 
            * * .google.storage.v2.Object destination = 1; - * * @return The destination. */ @java.lang.Override @@ -308,8 +263,6 @@ public com.google.storage.v2.Object getDestination() { return destination_ == null ? com.google.storage.v2.Object.getDefaultInstance() : destination_; } /** - * - * *
                * Properties of the destination, post-rewrite object.
                * The `name`, `bucket` and `kms_key` fields must not be populated (these
            @@ -328,20 +281,14 @@ public com.google.storage.v2.ObjectOrBuilder getDestinationOrBuilder() {
               }
             
               public static final int SOURCE_BUCKET_FIELD_NUMBER = 2;
            -
               @SuppressWarnings("serial")
               private volatile java.lang.Object sourceBucket_ = "";
               /**
            -   *
            -   *
                * 
                * Required. Name of the bucket in which to find the source object.
                * 
            * - * - * string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The sourceBucket. */ @java.lang.Override @@ -350,31 +297,29 @@ public java.lang.String getSourceBucket() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceBucket_ = s; return s; } } /** - * - * *
                * Required. Name of the bucket in which to find the source object.
                * 
            * - * - * string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for sourceBucket. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceBucketBytes() { + public com.google.protobuf.ByteString + getSourceBucketBytes() { java.lang.Object ref = sourceBucket_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceBucket_ = b; return b; } else { @@ -383,18 +328,14 @@ public com.google.protobuf.ByteString getSourceBucketBytes() { } public static final int SOURCE_OBJECT_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object sourceObject_ = ""; /** - * - * *
                * Required. Name of the source object.
                * 
            * * string source_object = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceObject. */ @java.lang.Override @@ -403,29 +344,29 @@ public java.lang.String getSourceObject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceObject_ = s; return s; } } /** - * - * *
                * Required. Name of the source object.
                * 
            * * string source_object = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceObject. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceObjectBytes() { + public com.google.protobuf.ByteString + getSourceObjectBytes() { java.lang.Object ref = sourceObject_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceObject_ = b; return b; } else { @@ -436,15 +377,12 @@ public com.google.protobuf.ByteString getSourceObjectBytes() { public static final int SOURCE_GENERATION_FIELD_NUMBER = 4; private long sourceGeneration_ = 0L; /** - * - * *
                * If present, selects a specific revision of the source object (as opposed to
                * the latest version, the default).
                * 
            * * int64 source_generation = 4; - * * @return The sourceGeneration. */ @java.lang.Override @@ -453,12 +391,9 @@ public long getSourceGeneration() { } public static final int REWRITE_TOKEN_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object rewriteToken_ = ""; /** - * - * *
                * Include this field (from the previous rewrite response) on each rewrite
                * request after the first one, until the rewrite response 'done' flag is
            @@ -468,7 +403,6 @@ public long getSourceGeneration() {
                * 
            * * string rewrite_token = 5; - * * @return The rewriteToken. */ @java.lang.Override @@ -477,15 +411,14 @@ public java.lang.String getRewriteToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rewriteToken_ = s; return s; } } /** - * - * *
                * Include this field (from the previous rewrite response) on each rewrite
                * request after the first one, until the rewrite response 'done' flag is
            @@ -495,15 +428,16 @@ public java.lang.String getRewriteToken() {
                * 
            * * string rewrite_token = 5; - * * @return The bytes for rewriteToken. */ @java.lang.Override - public com.google.protobuf.ByteString getRewriteTokenBytes() { + public com.google.protobuf.ByteString + getRewriteTokenBytes() { java.lang.Object ref = rewriteToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); rewriteToken_ = b; return b; } else { @@ -512,12 +446,9 @@ public com.google.protobuf.ByteString getRewriteTokenBytes() { } public static final int DESTINATION_PREDEFINED_ACL_FIELD_NUMBER = 28; - @SuppressWarnings("serial") private volatile java.lang.Object destinationPredefinedAcl_ = ""; /** - * - * *
                * Apply a predefined set of access controls to the destination object.
                * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -525,7 +456,6 @@ public com.google.protobuf.ByteString getRewriteTokenBytes() {
                * 
            * * string destination_predefined_acl = 28; - * * @return The destinationPredefinedAcl. */ @java.lang.Override @@ -534,15 +464,14 @@ public java.lang.String getDestinationPredefinedAcl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationPredefinedAcl_ = s; return s; } } /** - * - * *
                * Apply a predefined set of access controls to the destination object.
                * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -550,15 +479,16 @@ public java.lang.String getDestinationPredefinedAcl() {
                * 
            * * string destination_predefined_acl = 28; - * * @return The bytes for destinationPredefinedAcl. */ @java.lang.Override - public com.google.protobuf.ByteString getDestinationPredefinedAclBytes() { + public com.google.protobuf.ByteString + getDestinationPredefinedAclBytes() { java.lang.Object ref = destinationPredefinedAcl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); destinationPredefinedAcl_ = b; return b; } else { @@ -569,8 +499,6 @@ public com.google.protobuf.ByteString getDestinationPredefinedAclBytes() { public static final int IF_GENERATION_MATCH_FIELD_NUMBER = 7; private long ifGenerationMatch_ = 0L; /** - * - * *
                * Makes the operation conditional on whether the object's current generation
                * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -578,7 +506,6 @@ public com.google.protobuf.ByteString getDestinationPredefinedAclBytes() {
                * 
            * * optional int64 if_generation_match = 7; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -586,8 +513,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
            @@ -595,7 +520,6 @@ public boolean hasIfGenerationMatch() {
                * 
            * * optional int64 if_generation_match = 7; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -606,8 +530,6 @@ public long getIfGenerationMatch() { public static final int IF_GENERATION_NOT_MATCH_FIELD_NUMBER = 8; private long ifGenerationNotMatch_ = 0L; /** - * - * *
                * Makes the operation conditional on whether the object's live generation
                * does not match the given value. If no live object exists, the precondition
            @@ -616,7 +538,6 @@ public long getIfGenerationMatch() {
                * 
            * * optional int64 if_generation_not_match = 8; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -624,8 +545,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
            @@ -634,7 +553,6 @@ public boolean hasIfGenerationNotMatch() {
                * 
            * * optional int64 if_generation_not_match = 8; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -645,15 +563,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 @@ -661,15 +576,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
                * Makes the operation conditional on whether the destination object's current
                * metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 9; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -680,15 +592,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 @@ -696,15 +605,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
                * Makes the operation conditional on whether the destination object's current
                * metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 10; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -715,15 +621,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 @@ -731,15 +634,12 @@ public boolean hasIfSourceGenerationMatch() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
                * Makes the operation conditional on whether the source object's live
                * generation matches the given value.
                * 
            * * optional int64 if_source_generation_match = 11; - * * @return The ifSourceGenerationMatch. */ @java.lang.Override @@ -750,15 +650,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 @@ -766,15 +663,12 @@ public boolean hasIfSourceGenerationNotMatch() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
                * Makes the operation conditional on whether the source object's live
                * generation does not match the given value.
                * 
            * * optional int64 if_source_generation_not_match = 12; - * * @return The ifSourceGenerationNotMatch. */ @java.lang.Override @@ -785,15 +679,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 @@ -801,15 +692,12 @@ public boolean hasIfSourceMetagenerationMatch() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
                * Makes the operation conditional on whether the source object's current
                * metageneration matches the given value.
                * 
            * * optional int64 if_source_metageneration_match = 13; - * * @return The ifSourceMetagenerationMatch. */ @java.lang.Override @@ -820,15 +708,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 @@ -836,15 +721,12 @@ public boolean hasIfSourceMetagenerationNotMatch() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
                * Makes the operation conditional on whether the source object's current
                * metageneration does not match the given value.
                * 
            * * optional int64 if_source_metageneration_not_match = 14; - * * @return The ifSourceMetagenerationNotMatch. */ @java.lang.Override @@ -855,8 +737,6 @@ public long getIfSourceMetagenerationNotMatch() { public static final int MAX_BYTES_REWRITTEN_PER_CALL_FIELD_NUMBER = 15; private long maxBytesRewrittenPerCall_ = 0L; /** - * - * *
                * The maximum number of bytes that will be rewritten per rewrite request.
                * Most callers
            @@ -869,7 +749,6 @@ public long getIfSourceMetagenerationNotMatch() {
                * 
            * * int64 max_bytes_rewritten_per_call = 15; - * * @return The maxBytesRewrittenPerCall. */ @java.lang.Override @@ -878,19 +757,15 @@ public long getMaxBytesRewrittenPerCall() { } public static final int COPY_SOURCE_ENCRYPTION_ALGORITHM_FIELD_NUMBER = 16; - @SuppressWarnings("serial") private volatile java.lang.Object copySourceEncryptionAlgorithm_ = ""; /** - * - * *
                * The algorithm used to encrypt the source object, if any. Used if the source
                * object was encrypted with a Customer-Supplied Encryption Key.
                * 
            * * string copy_source_encryption_algorithm = 16; - * * @return The copySourceEncryptionAlgorithm. */ @java.lang.Override @@ -899,30 +774,30 @@ public java.lang.String getCopySourceEncryptionAlgorithm() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); copySourceEncryptionAlgorithm_ = s; return s; } } /** - * - * *
                * The algorithm used to encrypt the source object, if any. Used if the source
                * object was encrypted with a Customer-Supplied Encryption Key.
                * 
            * * string copy_source_encryption_algorithm = 16; - * * @return The bytes for copySourceEncryptionAlgorithm. */ @java.lang.Override - public com.google.protobuf.ByteString getCopySourceEncryptionAlgorithmBytes() { + public com.google.protobuf.ByteString + getCopySourceEncryptionAlgorithmBytes() { java.lang.Object ref = copySourceEncryptionAlgorithm_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); copySourceEncryptionAlgorithm_ = b; return b; } else { @@ -931,11 +806,8 @@ public com.google.protobuf.ByteString getCopySourceEncryptionAlgorithmBytes() { } public static final int COPY_SOURCE_ENCRYPTION_KEY_BYTES_FIELD_NUMBER = 21; - private com.google.protobuf.ByteString copySourceEncryptionKeyBytes_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString copySourceEncryptionKeyBytes_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
                * The raw bytes (not base64-encoded) AES-256 encryption key used to encrypt
                * the source object, if it was encrypted with a Customer-Supplied Encryption
            @@ -943,7 +815,6 @@ public com.google.protobuf.ByteString getCopySourceEncryptionAlgorithmBytes() {
                * 
            * * bytes copy_source_encryption_key_bytes = 21; - * * @return The copySourceEncryptionKeyBytes. */ @java.lang.Override @@ -952,11 +823,8 @@ public com.google.protobuf.ByteString getCopySourceEncryptionKeyBytes() { } public static final int COPY_SOURCE_ENCRYPTION_KEY_SHA256_BYTES_FIELD_NUMBER = 22; - private com.google.protobuf.ByteString copySourceEncryptionKeySha256Bytes_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString copySourceEncryptionKeySha256Bytes_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
                * The raw bytes (not base64-encoded) SHA256 hash of the encryption key used
                * to encrypt the source object, if it was encrypted with a Customer-Supplied
            @@ -964,7 +832,6 @@ public com.google.protobuf.ByteString getCopySourceEncryptionKeyBytes() {
                * 
            * * bytes copy_source_encryption_key_sha256_bytes = 22; - * * @return The copySourceEncryptionKeySha256Bytes. */ @java.lang.Override @@ -975,14 +842,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 @@ -990,25 +854,18 @@ 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 = 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.
                * 
            @@ -1016,25 +873,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 @@ -1042,26 +893,19 @@ public boolean hasObjectChecksums() { return ((bitField0_ & 0x00000400) != 0); } /** - * - * *
                * The checksums of the complete object. This will be used to validate the
                * destination object after rewriting.
                * 
            * * .google.storage.v2.ObjectChecksums object_checksums = 29; - * * @return The objectChecksums. */ @java.lang.Override public com.google.storage.v2.ObjectChecksums getObjectChecksums() { - return objectChecksums_ == null - ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() - : objectChecksums_; + return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_; } /** - * - * *
                * The checksums of the complete object. This will be used to validate the
                * destination object after rewriting.
            @@ -1071,13 +915,10 @@ public com.google.storage.v2.ObjectChecksums getObjectChecksums() {
                */
               @java.lang.Override
               public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilder() {
            -    return objectChecksums_ == null
            -        ? com.google.storage.v2.ObjectChecksums.getDefaultInstance()
            -        : objectChecksums_;
            +    return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_;
               }
             
               private byte memoizedIsInitialized = -1;
            -
               @java.lang.Override
               public final boolean isInitialized() {
                 byte isInitialized = memoizedIsInitialized;
            @@ -1089,7 +930,8 @@ public final boolean isInitialized() {
               }
             
               @java.lang.Override
            -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
            +  public void writeTo(com.google.protobuf.CodedOutputStream output)
            +                      throws java.io.IOException {
                 if (((bitField0_ & 0x00000001) != 0)) {
                   output.writeMessage(1, getDestination());
                 }
            @@ -1133,8 +975,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 (((bitField0_ & 0x00000200) != 0)) {
                   output.writeMessage(19, getCommonObjectRequestParams());
            @@ -1170,7 +1011,8 @@ public int getSerializedSize() {
             
                 size = 0;
                 if (((bitField0_ & 0x00000001) != 0)) {
            -      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_);
            @@ -1179,60 +1021,62 @@ public int getSerializedSize() {
                   size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sourceObject_);
                 }
                 if (sourceGeneration_ != 0L) {
            -      size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, sourceGeneration_);
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeInt64Size(4, sourceGeneration_);
                 }
                 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rewriteToken_)) {
                   size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, rewriteToken_);
                 }
                 if (((bitField0_ & 0x00000002) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, ifGenerationMatch_);
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeInt64Size(7, ifGenerationMatch_);
                 }
                 if (((bitField0_ & 0x00000004) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, ifGenerationNotMatch_);
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeInt64Size(8, ifGenerationNotMatch_);
                 }
                 if (((bitField0_ & 0x00000008) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, ifMetagenerationMatch_);
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeInt64Size(9, ifMetagenerationMatch_);
                 }
                 if (((bitField0_ & 0x00000010) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, ifMetagenerationNotMatch_);
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeInt64Size(10, ifMetagenerationNotMatch_);
                 }
                 if (((bitField0_ & 0x00000020) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream.computeInt64Size(11, ifSourceGenerationMatch_);
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeInt64Size(11, ifSourceGenerationMatch_);
                 }
                 if (((bitField0_ & 0x00000040) != 0)) {
            -      size +=
            -          com.google.protobuf.CodedOutputStream.computeInt64Size(12, ifSourceGenerationNotMatch_);
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeInt64Size(12, ifSourceGenerationNotMatch_);
                 }
                 if (((bitField0_ & 0x00000080) != 0)) {
            -      size +=
            -          com.google.protobuf.CodedOutputStream.computeInt64Size(13, ifSourceMetagenerationMatch_);
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeInt64Size(13, ifSourceMetagenerationMatch_);
                 }
                 if (((bitField0_ & 0x00000100) != 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 (((bitField0_ & 0x00000200) != 0)) {
            -      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_);
            @@ -1244,11 +1088,11 @@ public int getSerializedSize() {
                   size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, destinationKmsKey_);
                 }
                 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationPredefinedAcl_)) {
            -      size +=
            -          com.google.protobuf.GeneratedMessageV3.computeStringSize(28, destinationPredefinedAcl_);
            +      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(28, destinationPredefinedAcl_);
                 }
                 if (((bitField0_ & 0x00000400) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getObjectChecksums());
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeMessageSize(29, getObjectChecksums());
                 }
                 size += getUnknownFields().getSerializedSize();
                 memoizedSize = size;
            @@ -1258,75 +1102,91 @@ public int getSerializedSize() {
               @java.lang.Override
               public boolean equals(final java.lang.Object obj) {
                 if (obj == this) {
            -      return true;
            +     return true;
                 }
                 if (!(obj instanceof com.google.storage.v2.RewriteObjectRequest)) {
                   return super.equals(obj);
                 }
            -    com.google.storage.v2.RewriteObjectRequest other =
            -        (com.google.storage.v2.RewriteObjectRequest) obj;
            +    com.google.storage.v2.RewriteObjectRequest other = (com.google.storage.v2.RewriteObjectRequest) obj;
             
            -    if (!getDestinationName().equals(other.getDestinationName())) return false;
            -    if (!getDestinationBucket().equals(other.getDestinationBucket())) return false;
            -    if (!getDestinationKmsKey().equals(other.getDestinationKmsKey())) return false;
            +    if (!getDestinationName()
            +        .equals(other.getDestinationName())) return false;
            +    if (!getDestinationBucket()
            +        .equals(other.getDestinationBucket())) return false;
            +    if (!getDestinationKmsKey()
            +        .equals(other.getDestinationKmsKey())) return false;
                 if (hasDestination() != other.hasDestination()) return false;
                 if (hasDestination()) {
            -      if (!getDestination().equals(other.getDestination())) return false;
            -    }
            -    if (!getSourceBucket().equals(other.getSourceBucket())) return false;
            -    if (!getSourceObject().equals(other.getSourceObject())) return false;
            -    if (getSourceGeneration() != other.getSourceGeneration()) return false;
            -    if (!getRewriteToken().equals(other.getRewriteToken())) return false;
            -    if (!getDestinationPredefinedAcl().equals(other.getDestinationPredefinedAcl())) return false;
            +      if (!getDestination()
            +          .equals(other.getDestination())) return false;
            +    }
            +    if (!getSourceBucket()
            +        .equals(other.getSourceBucket())) return false;
            +    if (!getSourceObject()
            +        .equals(other.getSourceObject())) return false;
            +    if (getSourceGeneration()
            +        != other.getSourceGeneration()) return false;
            +    if (!getRewriteToken()
            +        .equals(other.getRewriteToken())) return false;
            +    if (!getDestinationPredefinedAcl()
            +        .equals(other.getDestinationPredefinedAcl())) return false;
                 if (hasIfGenerationMatch() != other.hasIfGenerationMatch()) return false;
                 if (hasIfGenerationMatch()) {
            -      if (getIfGenerationMatch() != other.getIfGenerationMatch()) return false;
            +      if (getIfGenerationMatch()
            +          != other.getIfGenerationMatch()) return false;
                 }
                 if (hasIfGenerationNotMatch() != other.hasIfGenerationNotMatch()) return false;
                 if (hasIfGenerationNotMatch()) {
            -      if (getIfGenerationNotMatch() != other.getIfGenerationNotMatch()) return false;
            +      if (getIfGenerationNotMatch()
            +          != other.getIfGenerationNotMatch()) return false;
                 }
                 if (hasIfMetagenerationMatch() != other.hasIfMetagenerationMatch()) return false;
                 if (hasIfMetagenerationMatch()) {
            -      if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false;
            +      if (getIfMetagenerationMatch()
            +          != other.getIfMetagenerationMatch()) return false;
                 }
                 if (hasIfMetagenerationNotMatch() != other.hasIfMetagenerationNotMatch()) return false;
                 if (hasIfMetagenerationNotMatch()) {
            -      if (getIfMetagenerationNotMatch() != other.getIfMetagenerationNotMatch()) return false;
            +      if (getIfMetagenerationNotMatch()
            +          != other.getIfMetagenerationNotMatch()) return false;
                 }
                 if (hasIfSourceGenerationMatch() != other.hasIfSourceGenerationMatch()) return false;
                 if (hasIfSourceGenerationMatch()) {
            -      if (getIfSourceGenerationMatch() != other.getIfSourceGenerationMatch()) return false;
            +      if (getIfSourceGenerationMatch()
            +          != other.getIfSourceGenerationMatch()) return false;
                 }
                 if (hasIfSourceGenerationNotMatch() != other.hasIfSourceGenerationNotMatch()) return false;
                 if (hasIfSourceGenerationNotMatch()) {
            -      if (getIfSourceGenerationNotMatch() != other.getIfSourceGenerationNotMatch()) return false;
            +      if (getIfSourceGenerationNotMatch()
            +          != other.getIfSourceGenerationNotMatch()) return false;
                 }
                 if (hasIfSourceMetagenerationMatch() != other.hasIfSourceMetagenerationMatch()) return false;
                 if (hasIfSourceMetagenerationMatch()) {
            -      if (getIfSourceMetagenerationMatch() != other.getIfSourceMetagenerationMatch()) return false;
            +      if (getIfSourceMetagenerationMatch()
            +          != other.getIfSourceMetagenerationMatch()) return false;
                 }
            -    if (hasIfSourceMetagenerationNotMatch() != other.hasIfSourceMetagenerationNotMatch())
            -      return false;
            +    if (hasIfSourceMetagenerationNotMatch() != other.hasIfSourceMetagenerationNotMatch()) return false;
                 if (hasIfSourceMetagenerationNotMatch()) {
            -      if (getIfSourceMetagenerationNotMatch() != other.getIfSourceMetagenerationNotMatch())
            -        return false;
            -    }
            -    if (getMaxBytesRewrittenPerCall() != other.getMaxBytesRewrittenPerCall()) return false;
            -    if (!getCopySourceEncryptionAlgorithm().equals(other.getCopySourceEncryptionAlgorithm()))
            -      return false;
            -    if (!getCopySourceEncryptionKeyBytes().equals(other.getCopySourceEncryptionKeyBytes()))
            -      return false;
            +      if (getIfSourceMetagenerationNotMatch()
            +          != other.getIfSourceMetagenerationNotMatch()) return false;
            +    }
            +    if (getMaxBytesRewrittenPerCall()
            +        != other.getMaxBytesRewrittenPerCall()) return false;
            +    if (!getCopySourceEncryptionAlgorithm()
            +        .equals(other.getCopySourceEncryptionAlgorithm())) return false;
            +    if (!getCopySourceEncryptionKeyBytes()
            +        .equals(other.getCopySourceEncryptionKeyBytes())) return false;
                 if (!getCopySourceEncryptionKeySha256Bytes()
                     .equals(other.getCopySourceEncryptionKeySha256Bytes())) return false;
                 if (hasCommonObjectRequestParams() != other.hasCommonObjectRequestParams()) return false;
                 if (hasCommonObjectRequestParams()) {
            -      if (!getCommonObjectRequestParams().equals(other.getCommonObjectRequestParams()))
            -        return false;
            +      if (!getCommonObjectRequestParams()
            +          .equals(other.getCommonObjectRequestParams())) return false;
                 }
                 if (hasObjectChecksums() != other.hasObjectChecksums()) return false;
                 if (hasObjectChecksums()) {
            -      if (!getObjectChecksums().equals(other.getObjectChecksums())) return false;
            +      if (!getObjectChecksums()
            +          .equals(other.getObjectChecksums())) return false;
                 }
                 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
                 return true;
            @@ -1354,46 +1214,55 @@ public int hashCode() {
                 hash = (37 * hash) + SOURCE_OBJECT_FIELD_NUMBER;
                 hash = (53 * hash) + getSourceObject().hashCode();
                 hash = (37 * hash) + SOURCE_GENERATION_FIELD_NUMBER;
            -    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSourceGeneration());
            +    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            +        getSourceGeneration());
                 hash = (37 * hash) + REWRITE_TOKEN_FIELD_NUMBER;
                 hash = (53 * hash) + getRewriteToken().hashCode();
                 hash = (37 * hash) + DESTINATION_PREDEFINED_ACL_FIELD_NUMBER;
                 hash = (53 * hash) + getDestinationPredefinedAcl().hashCode();
                 if (hasIfGenerationMatch()) {
                   hash = (37 * hash) + IF_GENERATION_MATCH_FIELD_NUMBER;
            -      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfGenerationMatch());
            +      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            +          getIfGenerationMatch());
                 }
                 if (hasIfGenerationNotMatch()) {
                   hash = (37 * hash) + IF_GENERATION_NOT_MATCH_FIELD_NUMBER;
            -      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfGenerationNotMatch());
            +      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            +          getIfGenerationNotMatch());
                 }
                 if (hasIfMetagenerationMatch()) {
                   hash = (37 * hash) + IF_METAGENERATION_MATCH_FIELD_NUMBER;
            -      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationMatch());
            +      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            +          getIfMetagenerationMatch());
                 }
                 if (hasIfMetagenerationNotMatch()) {
                   hash = (37 * hash) + IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER;
            -      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationNotMatch());
            +      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            +          getIfMetagenerationNotMatch());
                 }
                 if (hasIfSourceGenerationMatch()) {
                   hash = (37 * hash) + IF_SOURCE_GENERATION_MATCH_FIELD_NUMBER;
            -      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfSourceGenerationMatch());
            +      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            +          getIfSourceGenerationMatch());
                 }
                 if (hasIfSourceGenerationNotMatch()) {
                   hash = (37 * hash) + IF_SOURCE_GENERATION_NOT_MATCH_FIELD_NUMBER;
            -      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfSourceGenerationNotMatch());
            +      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            +          getIfSourceGenerationNotMatch());
                 }
                 if (hasIfSourceMetagenerationMatch()) {
                   hash = (37 * hash) + IF_SOURCE_METAGENERATION_MATCH_FIELD_NUMBER;
            -      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfSourceMetagenerationMatch());
            +      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            +          getIfSourceMetagenerationMatch());
                 }
                 if (hasIfSourceMetagenerationNotMatch()) {
                   hash = (37 * hash) + IF_SOURCE_METAGENERATION_NOT_MATCH_FIELD_NUMBER;
            -      hash =
            -          (53 * hash) + com.google.protobuf.Internal.hashLong(getIfSourceMetagenerationNotMatch());
            +      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            +          getIfSourceMetagenerationNotMatch());
                 }
                 hash = (37 * hash) + MAX_BYTES_REWRITTEN_PER_CALL_FIELD_NUMBER;
            -    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxBytesRewrittenPerCall());
            +    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            +        getMaxBytesRewrittenPerCall());
                 hash = (37 * hash) + COPY_SOURCE_ENCRYPTION_ALGORITHM_FIELD_NUMBER;
                 hash = (53 * hash) + getCopySourceEncryptionAlgorithm().hashCode();
                 hash = (37 * hash) + COPY_SOURCE_ENCRYPTION_KEY_BYTES_FIELD_NUMBER;
            @@ -1413,104 +1282,99 @@ public int hashCode() {
                 return hash;
               }
             
            -  public static com.google.storage.v2.RewriteObjectRequest parseFrom(java.nio.ByteBuffer data)
            +  public static com.google.storage.v2.RewriteObjectRequest parseFrom(
            +      java.nio.ByteBuffer data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
            -
               public static com.google.storage.v2.RewriteObjectRequest parseFrom(
            -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      java.nio.ByteBuffer data,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
            -
               public static com.google.storage.v2.RewriteObjectRequest parseFrom(
                   com.google.protobuf.ByteString data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
            -
               public static com.google.storage.v2.RewriteObjectRequest parseFrom(
                   com.google.protobuf.ByteString data,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
            -
               public static com.google.storage.v2.RewriteObjectRequest parseFrom(byte[] data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
            -
               public static com.google.storage.v2.RewriteObjectRequest parseFrom(
            -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      byte[] data,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
            -
               public static com.google.storage.v2.RewriteObjectRequest parseFrom(java.io.InputStream input)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input);
               }
            -
               public static com.google.storage.v2.RewriteObjectRequest parseFrom(
            -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      java.io.InputStream input,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            -        PARSER, input, extensionRegistry);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input, extensionRegistry);
               }
             
            -  public static com.google.storage.v2.RewriteObjectRequest parseDelimitedFrom(
            -      java.io.InputStream input) throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
            +  public static com.google.storage.v2.RewriteObjectRequest parseDelimitedFrom(java.io.InputStream input)
            +      throws java.io.IOException {
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseDelimitedWithIOException(PARSER, input);
               }
             
               public static com.google.storage.v2.RewriteObjectRequest parseDelimitedFrom(
            -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      java.io.InputStream input,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            -        PARSER, input, extensionRegistry);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
               }
            -
               public static com.google.storage.v2.RewriteObjectRequest parseFrom(
            -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
            +      com.google.protobuf.CodedInputStream input)
            +      throws java.io.IOException {
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input);
               }
            -
               public static com.google.storage.v2.RewriteObjectRequest parseFrom(
                   com.google.protobuf.CodedInputStream input,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            -        PARSER, input, extensionRegistry);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input, extensionRegistry);
               }
             
               @java.lang.Override
            -  public Builder newBuilderForType() {
            -    return newBuilder();
            -  }
            -
            +  public Builder newBuilderForType() { return newBuilder(); }
               public static Builder newBuilder() {
                 return DEFAULT_INSTANCE.toBuilder();
               }
            -
               public static Builder newBuilder(com.google.storage.v2.RewriteObjectRequest prototype) {
                 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
               }
            -
               @java.lang.Override
               public Builder toBuilder() {
            -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
            +    return this == DEFAULT_INSTANCE
            +        ? new Builder() : new Builder().mergeFrom(this);
               }
             
               @java.lang.Override
            -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            +  protected Builder newBuilderForType(
            +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 Builder builder = new Builder(parent);
                 return builder;
               }
               /**
            -   *
            -   *
                * 
                * Request message for RewriteObject.
                * If the source object is encrypted using a Customer-Supplied Encryption Key
            @@ -1524,23 +1388,21 @@ 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()
            @@ -1548,19 +1410,19 @@ 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) {
                     getDestinationFieldBuilder();
                     getCommonObjectRequestParamsFieldBuilder();
                     getObjectChecksumsFieldBuilder();
                   }
                 }
            -
                 @java.lang.Override
                 public Builder clear() {
                   super.clear();
            @@ -1604,9 +1466,9 @@ public Builder clear() {
                 }
             
                 @java.lang.Override
            -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            -      return com.google.storage.v2.StorageProto
            -          .internal_static_google_storage_v2_RewriteObjectRequest_descriptor;
            +    public com.google.protobuf.Descriptors.Descriptor
            +        getDescriptorForType() {
            +      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_RewriteObjectRequest_descriptor;
                 }
             
                 @java.lang.Override
            @@ -1625,11 +1487,8 @@ public com.google.storage.v2.RewriteObjectRequest build() {
             
                 @java.lang.Override
                 public com.google.storage.v2.RewriteObjectRequest buildPartial() {
            -      com.google.storage.v2.RewriteObjectRequest result =
            -          new com.google.storage.v2.RewriteObjectRequest(this);
            -      if (bitField0_ != 0) {
            -        buildPartial0(result);
            -      }
            +      com.google.storage.v2.RewriteObjectRequest result = new com.google.storage.v2.RewriteObjectRequest(this);
            +      if (bitField0_ != 0) { buildPartial0(result); }
                   onBuilt();
                   return result;
                 }
            @@ -1647,8 +1506,9 @@ private void buildPartial0(com.google.storage.v2.RewriteObjectRequest result) {
                   }
                   int to_bitField0_ = 0;
                   if (((from_bitField0_ & 0x00000008) != 0)) {
            -        result.destination_ =
            -            destinationBuilder_ == null ? destination_ : destinationBuilder_.build();
            +        result.destination_ = destinationBuilder_ == null
            +            ? destination_
            +            : destinationBuilder_.build();
                     to_bitField0_ |= 0x00000001;
                   }
                   if (((from_bitField0_ & 0x00000010) != 0)) {
            @@ -1711,15 +1571,15 @@ private void buildPartial0(com.google.storage.v2.RewriteObjectRequest result) {
                     result.copySourceEncryptionKeySha256Bytes_ = copySourceEncryptionKeySha256Bytes_;
                   }
                   if (((from_bitField0_ & 0x00200000) != 0)) {
            -        result.commonObjectRequestParams_ =
            -            commonObjectRequestParamsBuilder_ == null
            -                ? commonObjectRequestParams_
            -                : commonObjectRequestParamsBuilder_.build();
            +        result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null
            +            ? commonObjectRequestParams_
            +            : commonObjectRequestParamsBuilder_.build();
                     to_bitField0_ |= 0x00000200;
                   }
                   if (((from_bitField0_ & 0x00400000) != 0)) {
            -        result.objectChecksums_ =
            -            objectChecksumsBuilder_ == null ? objectChecksums_ : objectChecksumsBuilder_.build();
            +        result.objectChecksums_ = objectChecksumsBuilder_ == null
            +            ? objectChecksums_
            +            : objectChecksumsBuilder_.build();
                     to_bitField0_ |= 0x00000400;
                   }
                   result.bitField0_ |= to_bitField0_;
            @@ -1729,39 +1589,38 @@ private void buildPartial0(com.google.storage.v2.RewriteObjectRequest result) {
                 public Builder clone() {
                   return super.clone();
                 }
            -
                 @java.lang.Override
                 public Builder setField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field,
            +        java.lang.Object value) {
                   return super.setField(field, value);
                 }
            -
                 @java.lang.Override
            -    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
            +    public Builder clearField(
            +        com.google.protobuf.Descriptors.FieldDescriptor field) {
                   return super.clearField(field);
                 }
            -
                 @java.lang.Override
            -    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
            +    public Builder clearOneof(
            +        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                   return super.clearOneof(oneof);
                 }
            -
                 @java.lang.Override
                 public Builder setRepeatedField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field,
            +        int index, java.lang.Object value) {
                   return super.setRepeatedField(field, index, value);
                 }
            -
                 @java.lang.Override
                 public Builder addRepeatedField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field,
            +        java.lang.Object value) {
                   return super.addRepeatedField(field, value);
                 }
            -
                 @java.lang.Override
                 public Builder mergeFrom(com.google.protobuf.Message other) {
                   if (other instanceof com.google.storage.v2.RewriteObjectRequest) {
            -        return mergeFrom((com.google.storage.v2.RewriteObjectRequest) other);
            +        return mergeFrom((com.google.storage.v2.RewriteObjectRequest)other);
                   } else {
                     super.mergeFrom(other);
                     return this;
            @@ -1881,152 +1740,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) {
            @@ -2036,13 +1876,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
            @@ -2053,16 +1890,14 @@ public Builder mergeFrom(
                  * (bucket, object, generation).
                  * 
            * - * - * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The destinationName. */ public java.lang.String getDestinationName() { java.lang.Object ref = destinationName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationName_ = s; return s; @@ -2071,8 +1906,6 @@ public java.lang.String getDestinationName() { } } /** - * - * *
                  * Required. Immutable. The name of the destination object.
                  * See the
            @@ -2083,17 +1916,16 @@ public java.lang.String getDestinationName() {
                  * (bucket, object, generation).
                  * 
            * - * - * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The bytes for destinationName. */ - public com.google.protobuf.ByteString getDestinationNameBytes() { + public com.google.protobuf.ByteString + getDestinationNameBytes() { java.lang.Object ref = destinationName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); destinationName_ = b; return b; } else { @@ -2101,8 +1933,6 @@ public com.google.protobuf.ByteString getDestinationNameBytes() { } } /** - * - * *
                  * Required. Immutable. The name of the destination object.
                  * See the
            @@ -2113,25 +1943,19 @@ public com.google.protobuf.ByteString getDestinationNameBytes() {
                  * (bucket, object, generation).
                  * 
            * - * - * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @param value The destinationName to set. * @return This builder for chaining. */ - public Builder setDestinationName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } destinationName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * Required. Immutable. The name of the destination object.
                  * See the
            @@ -2142,10 +1966,7 @@ public Builder setDestinationName(java.lang.String value) {
                  * (bucket, object, generation).
                  * 
            * - * - * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearDestinationName() { @@ -2155,8 +1976,6 @@ public Builder clearDestinationName() { return this; } /** - * - * *
                  * Required. Immutable. The name of the destination object.
                  * See the
            @@ -2167,17 +1986,13 @@ public Builder clearDestinationName() {
                  * (bucket, object, generation).
                  * 
            * - * - * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @param value The bytes for destinationName to set. * @return This builder for chaining. */ - public Builder setDestinationNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); destinationName_ = value; bitField0_ |= 0x00000001; @@ -2187,23 +2002,19 @@ public Builder setDestinationNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object destinationBucket_ = ""; /** - * - * *
                  * Required. Immutable. The name of the bucket containing the destination
                  * object.
                  * 
            * - * - * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The destinationBucket. */ public java.lang.String getDestinationBucket() { java.lang.Object ref = destinationBucket_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationBucket_ = s; return s; @@ -2212,24 +2023,21 @@ public java.lang.String getDestinationBucket() { } } /** - * - * *
                  * Required. Immutable. The name of the bucket containing the destination
                  * object.
                  * 
            * - * - * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for destinationBucket. */ - public com.google.protobuf.ByteString getDestinationBucketBytes() { + public com.google.protobuf.ByteString + getDestinationBucketBytes() { java.lang.Object ref = destinationBucket_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); destinationBucket_ = b; return b; } else { @@ -2237,41 +2045,30 @@ public com.google.protobuf.ByteString getDestinationBucketBytes() { } } /** - * - * *
                  * Required. Immutable. The name of the bucket containing the destination
                  * object.
                  * 
            * - * - * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The destinationBucket to set. * @return This builder for chaining. */ - public Builder setDestinationBucket(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationBucket( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } destinationBucket_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                  * Required. Immutable. The name of the bucket containing the destination
                  * object.
                  * 
            * - * - * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearDestinationBucket() { @@ -2281,24 +2078,18 @@ public Builder clearDestinationBucket() { return this; } /** - * - * *
                  * Required. Immutable. The name of the bucket containing the destination
                  * object.
                  * 
            * - * - * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The bytes for destinationBucket to set. * @return This builder for chaining. */ - public Builder setDestinationBucketBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationBucketBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); destinationBucket_ = value; bitField0_ |= 0x00000002; @@ -2308,8 +2099,6 @@ public Builder setDestinationBucketBytes(com.google.protobuf.ByteString value) { private java.lang.Object destinationKmsKey_ = ""; /** - * - * *
                  * The name of the Cloud KMS key that will be used to encrypt the destination
                  * object. The Cloud KMS key must be located in same location as the object.
            @@ -2319,13 +2108,13 @@ public Builder setDestinationBucketBytes(com.google.protobuf.ByteString value) {
                  * 
            * * string destination_kms_key = 27 [(.google.api.resource_reference) = { ... } - * * @return The destinationKmsKey. */ public java.lang.String getDestinationKmsKey() { java.lang.Object ref = destinationKmsKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationKmsKey_ = s; return s; @@ -2334,8 +2123,6 @@ public java.lang.String getDestinationKmsKey() { } } /** - * - * *
                  * The name of the Cloud KMS key that will be used to encrypt the destination
                  * object. The Cloud KMS key must be located in same location as the object.
            @@ -2345,14 +2132,15 @@ public java.lang.String getDestinationKmsKey() {
                  * 
            * * string destination_kms_key = 27 [(.google.api.resource_reference) = { ... } - * * @return The bytes for destinationKmsKey. */ - public com.google.protobuf.ByteString getDestinationKmsKeyBytes() { + public com.google.protobuf.ByteString + getDestinationKmsKeyBytes() { java.lang.Object ref = destinationKmsKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); destinationKmsKey_ = b; return b; } else { @@ -2360,8 +2148,6 @@ public com.google.protobuf.ByteString getDestinationKmsKeyBytes() { } } /** - * - * *
                  * The name of the Cloud KMS key that will be used to encrypt the destination
                  * object. The Cloud KMS key must be located in same location as the object.
            @@ -2371,22 +2157,18 @@ public com.google.protobuf.ByteString getDestinationKmsKeyBytes() {
                  * 
            * * string destination_kms_key = 27 [(.google.api.resource_reference) = { ... } - * * @param value The destinationKmsKey to set. * @return This builder for chaining. */ - public Builder setDestinationKmsKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationKmsKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } destinationKmsKey_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
                  * The name of the Cloud KMS key that will be used to encrypt the destination
                  * object. The Cloud KMS key must be located in same location as the object.
            @@ -2396,7 +2178,6 @@ public Builder setDestinationKmsKey(java.lang.String value) {
                  * 
            * * string destination_kms_key = 27 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearDestinationKmsKey() { @@ -2406,8 +2187,6 @@ public Builder clearDestinationKmsKey() { return this; } /** - * - * *
                  * The name of the Cloud KMS key that will be used to encrypt the destination
                  * object. The Cloud KMS key must be located in same location as the object.
            @@ -2417,14 +2196,12 @@ public Builder clearDestinationKmsKey() {
                  * 
            * * string destination_kms_key = 27 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for destinationKmsKey to set. * @return This builder for chaining. */ - public Builder setDestinationKmsKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationKmsKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); destinationKmsKey_ = value; bitField0_ |= 0x00000004; @@ -2434,13 +2211,8 @@ public Builder setDestinationKmsKeyBytes(com.google.protobuf.ByteString value) { private com.google.storage.v2.Object destination_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Object, - com.google.storage.v2.Object.Builder, - com.google.storage.v2.ObjectOrBuilder> - destinationBuilder_; + com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> destinationBuilder_; /** - * - * *
                  * Properties of the destination, post-rewrite object.
                  * The `name`, `bucket` and `kms_key` fields must not be populated (these
            @@ -2452,15 +2224,12 @@ public Builder setDestinationKmsKeyBytes(com.google.protobuf.ByteString value) {
                  * 
            * * .google.storage.v2.Object destination = 1; - * * @return Whether the destination field is set. */ public boolean hasDestination() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
                  * Properties of the destination, post-rewrite object.
                  * The `name`, `bucket` and `kms_key` fields must not be populated (these
            @@ -2472,21 +2241,16 @@ public boolean hasDestination() {
                  * 
            * * .google.storage.v2.Object destination = 1; - * * @return The destination. */ public com.google.storage.v2.Object getDestination() { if (destinationBuilder_ == null) { - return destination_ == null - ? com.google.storage.v2.Object.getDefaultInstance() - : destination_; + return destination_ == null ? com.google.storage.v2.Object.getDefaultInstance() : destination_; } else { return destinationBuilder_.getMessage(); } } /** - * - * *
                  * Properties of the destination, post-rewrite object.
                  * The `name`, `bucket` and `kms_key` fields must not be populated (these
            @@ -2513,8 +2277,6 @@ public Builder setDestination(com.google.storage.v2.Object value) {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Properties of the destination, post-rewrite object.
                  * The `name`, `bucket` and `kms_key` fields must not be populated (these
            @@ -2527,7 +2289,8 @@ public Builder setDestination(com.google.storage.v2.Object value) {
                  *
                  * .google.storage.v2.Object destination = 1;
                  */
            -    public Builder setDestination(com.google.storage.v2.Object.Builder builderForValue) {
            +    public Builder setDestination(
            +        com.google.storage.v2.Object.Builder builderForValue) {
                   if (destinationBuilder_ == null) {
                     destination_ = builderForValue.build();
                   } else {
            @@ -2538,8 +2301,6 @@ public Builder setDestination(com.google.storage.v2.Object.Builder builderForVal
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Properties of the destination, post-rewrite object.
                  * The `name`, `bucket` and `kms_key` fields must not be populated (these
            @@ -2554,9 +2315,9 @@ public Builder setDestination(com.google.storage.v2.Object.Builder builderForVal
                  */
                 public Builder mergeDestination(com.google.storage.v2.Object value) {
                   if (destinationBuilder_ == null) {
            -        if (((bitField0_ & 0x00000008) != 0)
            -            && destination_ != null
            -            && destination_ != com.google.storage.v2.Object.getDefaultInstance()) {
            +        if (((bitField0_ & 0x00000008) != 0) &&
            +          destination_ != null &&
            +          destination_ != com.google.storage.v2.Object.getDefaultInstance()) {
                       getDestinationBuilder().mergeFrom(value);
                     } else {
                       destination_ = value;
            @@ -2571,8 +2332,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
            @@ -2596,8 +2355,6 @@ public Builder clearDestination() {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Properties of the destination, post-rewrite object.
                  * The `name`, `bucket` and `kms_key` fields must not be populated (these
            @@ -2616,8 +2373,6 @@ public com.google.storage.v2.Object.Builder getDestinationBuilder() {
                   return getDestinationFieldBuilder().getBuilder();
                 }
                 /**
            -     *
            -     *
                  * 
                  * Properties of the destination, post-rewrite object.
                  * The `name`, `bucket` and `kms_key` fields must not be populated (these
            @@ -2634,14 +2389,11 @@ public com.google.storage.v2.ObjectOrBuilder getDestinationOrBuilder() {
                   if (destinationBuilder_ != null) {
                     return destinationBuilder_.getMessageOrBuilder();
                   } else {
            -        return destination_ == null
            -            ? com.google.storage.v2.Object.getDefaultInstance()
            -            : destination_;
            +        return destination_ == null ?
            +            com.google.storage.v2.Object.getDefaultInstance() : destination_;
                   }
                 }
                 /**
            -     *
            -     *
                  * 
                  * Properties of the destination, post-rewrite object.
                  * The `name`, `bucket` and `kms_key` fields must not be populated (these
            @@ -2655,17 +2407,14 @@ public com.google.storage.v2.ObjectOrBuilder getDestinationOrBuilder() {
                  * .google.storage.v2.Object destination = 1;
                  */
                 private com.google.protobuf.SingleFieldBuilderV3<
            -            com.google.storage.v2.Object,
            -            com.google.storage.v2.Object.Builder,
            -            com.google.storage.v2.ObjectOrBuilder>
            +        com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> 
                     getDestinationFieldBuilder() {
                   if (destinationBuilder_ == null) {
            -        destinationBuilder_ =
            -            new com.google.protobuf.SingleFieldBuilderV3<
            -                com.google.storage.v2.Object,
            -                com.google.storage.v2.Object.Builder,
            -                com.google.storage.v2.ObjectOrBuilder>(
            -                getDestination(), getParentForChildren(), isClean());
            +        destinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            +            com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder>(
            +                getDestination(),
            +                getParentForChildren(),
            +                isClean());
                     destination_ = null;
                   }
                   return destinationBuilder_;
            @@ -2673,22 +2422,18 @@ public com.google.storage.v2.ObjectOrBuilder getDestinationOrBuilder() {
             
                 private java.lang.Object sourceBucket_ = "";
                 /**
            -     *
            -     *
                  * 
                  * Required. Name of the bucket in which to find the source object.
                  * 
            * - * - * string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The sourceBucket. */ public java.lang.String getSourceBucket() { java.lang.Object ref = sourceBucket_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceBucket_ = s; return s; @@ -2697,23 +2442,20 @@ public java.lang.String getSourceBucket() { } } /** - * - * *
                  * Required. Name of the bucket in which to find the source object.
                  * 
            * - * - * string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for sourceBucket. */ - public com.google.protobuf.ByteString getSourceBucketBytes() { + public com.google.protobuf.ByteString + getSourceBucketBytes() { java.lang.Object ref = sourceBucket_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceBucket_ = b; return b; } else { @@ -2721,39 +2463,28 @@ public com.google.protobuf.ByteString getSourceBucketBytes() { } } /** - * - * *
                  * Required. Name of the bucket in which to find the source object.
                  * 
            * - * - * string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The sourceBucket to set. * @return This builder for chaining. */ - public Builder setSourceBucket(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceBucket( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceBucket_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
                  * Required. Name of the bucket in which to find the source object.
                  * 
            * - * - * string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearSourceBucket() { @@ -2763,23 +2494,17 @@ public Builder clearSourceBucket() { return this; } /** - * - * *
                  * Required. Name of the bucket in which to find the source object.
                  * 
            * - * - * string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for sourceBucket to set. * @return This builder for chaining. */ - public Builder setSourceBucketBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceBucketBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceBucket_ = value; bitField0_ |= 0x00000010; @@ -2789,20 +2514,18 @@ public Builder setSourceBucketBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceObject_ = ""; /** - * - * *
                  * Required. Name of the source object.
                  * 
            * * string source_object = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceObject. */ public java.lang.String getSourceObject() { java.lang.Object ref = sourceObject_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceObject_ = s; return s; @@ -2811,21 +2534,20 @@ public java.lang.String getSourceObject() { } } /** - * - * *
                  * Required. Name of the source object.
                  * 
            * * string source_object = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceObject. */ - public com.google.protobuf.ByteString getSourceObjectBytes() { + public com.google.protobuf.ByteString + getSourceObjectBytes() { java.lang.Object ref = sourceObject_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceObject_ = b; return b; } else { @@ -2833,35 +2555,28 @@ public com.google.protobuf.ByteString getSourceObjectBytes() { } } /** - * - * *
                  * Required. Name of the source object.
                  * 
            * * string source_object = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The sourceObject to set. * @return This builder for chaining. */ - public Builder setSourceObject(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceObject( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceObject_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
                  * Required. Name of the source object.
                  * 
            * * string source_object = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearSourceObject() { @@ -2871,21 +2586,17 @@ public Builder clearSourceObject() { return this; } /** - * - * *
                  * Required. Name of the source object.
                  * 
            * * string source_object = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for sourceObject to set. * @return This builder for chaining. */ - public Builder setSourceObjectBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceObjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceObject_ = value; bitField0_ |= 0x00000020; @@ -2893,17 +2604,14 @@ public Builder setSourceObjectBytes(com.google.protobuf.ByteString value) { return this; } - private long sourceGeneration_; + private long sourceGeneration_ ; /** - * - * *
                  * If present, selects a specific revision of the source object (as opposed to
                  * the latest version, the default).
                  * 
            * * int64 source_generation = 4; - * * @return The sourceGeneration. */ @java.lang.Override @@ -2911,15 +2619,12 @@ public long getSourceGeneration() { return sourceGeneration_; } /** - * - * *
                  * If present, selects a specific revision of the source object (as opposed to
                  * the latest version, the default).
                  * 
            * * int64 source_generation = 4; - * * @param value The sourceGeneration to set. * @return This builder for chaining. */ @@ -2931,15 +2636,12 @@ public Builder setSourceGeneration(long value) { return this; } /** - * - * *
                  * If present, selects a specific revision of the source object (as opposed to
                  * the latest version, the default).
                  * 
            * * int64 source_generation = 4; - * * @return This builder for chaining. */ public Builder clearSourceGeneration() { @@ -2951,8 +2653,6 @@ public Builder clearSourceGeneration() { private java.lang.Object rewriteToken_ = ""; /** - * - * *
                  * Include this field (from the previous rewrite response) on each rewrite
                  * request after the first one, until the rewrite response 'done' flag is
            @@ -2962,13 +2662,13 @@ public Builder clearSourceGeneration() {
                  * 
            * * string rewrite_token = 5; - * * @return The rewriteToken. */ public java.lang.String getRewriteToken() { java.lang.Object ref = rewriteToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rewriteToken_ = s; return s; @@ -2977,8 +2677,6 @@ public java.lang.String getRewriteToken() { } } /** - * - * *
                  * Include this field (from the previous rewrite response) on each rewrite
                  * request after the first one, until the rewrite response 'done' flag is
            @@ -2988,14 +2686,15 @@ public java.lang.String getRewriteToken() {
                  * 
            * * string rewrite_token = 5; - * * @return The bytes for rewriteToken. */ - public com.google.protobuf.ByteString getRewriteTokenBytes() { + public com.google.protobuf.ByteString + getRewriteTokenBytes() { java.lang.Object ref = rewriteToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); rewriteToken_ = b; return b; } else { @@ -3003,8 +2702,6 @@ public com.google.protobuf.ByteString getRewriteTokenBytes() { } } /** - * - * *
                  * Include this field (from the previous rewrite response) on each rewrite
                  * request after the first one, until the rewrite response 'done' flag is
            @@ -3014,22 +2711,18 @@ public com.google.protobuf.ByteString getRewriteTokenBytes() {
                  * 
            * * string rewrite_token = 5; - * * @param value The rewriteToken to set. * @return This builder for chaining. */ - public Builder setRewriteToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRewriteToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } rewriteToken_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * *
                  * Include this field (from the previous rewrite response) on each rewrite
                  * request after the first one, until the rewrite response 'done' flag is
            @@ -3039,7 +2732,6 @@ public Builder setRewriteToken(java.lang.String value) {
                  * 
            * * string rewrite_token = 5; - * * @return This builder for chaining. */ public Builder clearRewriteToken() { @@ -3049,8 +2741,6 @@ public Builder clearRewriteToken() { return this; } /** - * - * *
                  * Include this field (from the previous rewrite response) on each rewrite
                  * request after the first one, until the rewrite response 'done' flag is
            @@ -3060,14 +2750,12 @@ public Builder clearRewriteToken() {
                  * 
            * * string rewrite_token = 5; - * * @param value The bytes for rewriteToken to set. * @return This builder for chaining. */ - public Builder setRewriteTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRewriteTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); rewriteToken_ = value; bitField0_ |= 0x00000080; @@ -3077,8 +2765,6 @@ public Builder setRewriteTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object destinationPredefinedAcl_ = ""; /** - * - * *
                  * Apply a predefined set of access controls to the destination object.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -3086,13 +2772,13 @@ public Builder setRewriteTokenBytes(com.google.protobuf.ByteString value) {
                  * 
            * * string destination_predefined_acl = 28; - * * @return The destinationPredefinedAcl. */ public java.lang.String getDestinationPredefinedAcl() { java.lang.Object ref = destinationPredefinedAcl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationPredefinedAcl_ = s; return s; @@ -3101,8 +2787,6 @@ public java.lang.String getDestinationPredefinedAcl() { } } /** - * - * *
                  * Apply a predefined set of access controls to the destination object.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -3110,14 +2794,15 @@ public java.lang.String getDestinationPredefinedAcl() {
                  * 
            * * string destination_predefined_acl = 28; - * * @return The bytes for destinationPredefinedAcl. */ - public com.google.protobuf.ByteString getDestinationPredefinedAclBytes() { + public com.google.protobuf.ByteString + getDestinationPredefinedAclBytes() { java.lang.Object ref = destinationPredefinedAcl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); destinationPredefinedAcl_ = b; return b; } else { @@ -3125,8 +2810,6 @@ public com.google.protobuf.ByteString getDestinationPredefinedAclBytes() { } } /** - * - * *
                  * Apply a predefined set of access controls to the destination object.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -3134,22 +2817,18 @@ public com.google.protobuf.ByteString getDestinationPredefinedAclBytes() {
                  * 
            * * string destination_predefined_acl = 28; - * * @param value The destinationPredefinedAcl to set. * @return This builder for chaining. */ - public Builder setDestinationPredefinedAcl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationPredefinedAcl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } destinationPredefinedAcl_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** - * - * *
                  * Apply a predefined set of access controls to the destination object.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -3157,7 +2836,6 @@ public Builder setDestinationPredefinedAcl(java.lang.String value) {
                  * 
            * * string destination_predefined_acl = 28; - * * @return This builder for chaining. */ public Builder clearDestinationPredefinedAcl() { @@ -3167,8 +2845,6 @@ public Builder clearDestinationPredefinedAcl() { return this; } /** - * - * *
                  * Apply a predefined set of access controls to the destination object.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -3176,14 +2852,12 @@ public Builder clearDestinationPredefinedAcl() {
                  * 
            * * string destination_predefined_acl = 28; - * * @param value The bytes for destinationPredefinedAcl to set. * @return This builder for chaining. */ - public Builder setDestinationPredefinedAclBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationPredefinedAclBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); destinationPredefinedAcl_ = value; bitField0_ |= 0x00000100; @@ -3191,10 +2865,8 @@ public Builder setDestinationPredefinedAclBytes(com.google.protobuf.ByteString v return this; } - private long ifGenerationMatch_; + private long ifGenerationMatch_ ; /** - * - * *
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -3202,7 +2874,6 @@ public Builder setDestinationPredefinedAclBytes(com.google.protobuf.ByteString v
                  * 
            * * optional int64 if_generation_match = 7; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -3210,8 +2881,6 @@ public boolean hasIfGenerationMatch() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -3219,7 +2888,6 @@ public boolean hasIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_match = 7; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -3227,8 +2895,6 @@ public long getIfGenerationMatch() { return ifGenerationMatch_; } /** - * - * *
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -3236,7 +2902,6 @@ public long getIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_match = 7; - * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ @@ -3248,8 +2913,6 @@ public Builder setIfGenerationMatch(long value) { return this; } /** - * - * *
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -3257,7 +2920,6 @@ public Builder setIfGenerationMatch(long value) {
                  * 
            * * optional int64 if_generation_match = 7; - * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -3267,10 +2929,8 @@ public Builder clearIfGenerationMatch() { return this; } - private long ifGenerationNotMatch_; + private long ifGenerationNotMatch_ ; /** - * - * *
                  * Makes the operation conditional on whether the object's live generation
                  * does not match the given value. If no live object exists, the precondition
            @@ -3279,7 +2939,6 @@ public Builder clearIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_not_match = 8; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -3287,8 +2946,6 @@ public boolean hasIfGenerationNotMatch() { return ((bitField0_ & 0x00000400) != 0); } /** - * - * *
                  * Makes the operation conditional on whether the object's live generation
                  * does not match the given value. If no live object exists, the precondition
            @@ -3297,7 +2954,6 @@ public boolean hasIfGenerationNotMatch() {
                  * 
            * * optional int64 if_generation_not_match = 8; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -3305,8 +2961,6 @@ public long getIfGenerationNotMatch() { return ifGenerationNotMatch_; } /** - * - * *
                  * Makes the operation conditional on whether the object's live generation
                  * does not match the given value. If no live object exists, the precondition
            @@ -3315,7 +2969,6 @@ public long getIfGenerationNotMatch() {
                  * 
            * * optional int64 if_generation_not_match = 8; - * * @param value The ifGenerationNotMatch to set. * @return This builder for chaining. */ @@ -3327,8 +2980,6 @@ public Builder setIfGenerationNotMatch(long value) { return this; } /** - * - * *
                  * Makes the operation conditional on whether the object's live generation
                  * does not match the given value. If no live object exists, the precondition
            @@ -3337,7 +2988,6 @@ public Builder setIfGenerationNotMatch(long value) {
                  * 
            * * optional int64 if_generation_not_match = 8; - * * @return This builder for chaining. */ public Builder clearIfGenerationNotMatch() { @@ -3347,17 +2997,14 @@ public Builder clearIfGenerationNotMatch() { return this; } - private long ifMetagenerationMatch_; + private long ifMetagenerationMatch_ ; /** - * - * *
                  * Makes the operation conditional on whether the destination object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 9; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -3365,15 +3012,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000800) != 0); } /** - * - * *
                  * Makes the operation conditional on whether the destination object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 9; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -3381,15 +3025,12 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** - * - * *
                  * Makes the operation conditional on whether the destination object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 9; - * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -3401,15 +3042,12 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** - * - * *
                  * Makes the operation conditional on whether the destination object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 9; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -3419,17 +3057,14 @@ public Builder clearIfMetagenerationMatch() { return this; } - private long ifMetagenerationNotMatch_; + private long ifMetagenerationNotMatch_ ; /** - * - * *
                  * Makes the operation conditional on whether the destination object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 10; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -3437,15 +3072,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00001000) != 0); } /** - * - * *
                  * Makes the operation conditional on whether the destination object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 10; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -3453,15 +3085,12 @@ public long getIfMetagenerationNotMatch() { return ifMetagenerationNotMatch_; } /** - * - * *
                  * Makes the operation conditional on whether the destination object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 10; - * * @param value The ifMetagenerationNotMatch to set. * @return This builder for chaining. */ @@ -3473,15 +3102,12 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** - * - * *
                  * Makes the operation conditional on whether the destination object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 10; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -3491,17 +3117,14 @@ public Builder clearIfMetagenerationNotMatch() { return this; } - private long ifSourceGenerationMatch_; + private long ifSourceGenerationMatch_ ; /** - * - * *
                  * Makes the operation conditional on whether the source object's live
                  * generation matches the given value.
                  * 
            * * optional int64 if_source_generation_match = 11; - * * @return Whether the ifSourceGenerationMatch field is set. */ @java.lang.Override @@ -3509,15 +3132,12 @@ public boolean hasIfSourceGenerationMatch() { return ((bitField0_ & 0x00002000) != 0); } /** - * - * *
                  * Makes the operation conditional on whether the source object's live
                  * generation matches the given value.
                  * 
            * * optional int64 if_source_generation_match = 11; - * * @return The ifSourceGenerationMatch. */ @java.lang.Override @@ -3525,15 +3145,12 @@ public long getIfSourceGenerationMatch() { return ifSourceGenerationMatch_; } /** - * - * *
                  * Makes the operation conditional on whether the source object's live
                  * generation matches the given value.
                  * 
            * * optional int64 if_source_generation_match = 11; - * * @param value The ifSourceGenerationMatch to set. * @return This builder for chaining. */ @@ -3545,15 +3162,12 @@ public Builder setIfSourceGenerationMatch(long value) { return this; } /** - * - * *
                  * Makes the operation conditional on whether the source object's live
                  * generation matches the given value.
                  * 
            * * optional int64 if_source_generation_match = 11; - * * @return This builder for chaining. */ public Builder clearIfSourceGenerationMatch() { @@ -3563,17 +3177,14 @@ public Builder clearIfSourceGenerationMatch() { return this; } - private long ifSourceGenerationNotMatch_; + private long ifSourceGenerationNotMatch_ ; /** - * - * *
                  * Makes the operation conditional on whether the source object's live
                  * generation does not match the given value.
                  * 
            * * optional int64 if_source_generation_not_match = 12; - * * @return Whether the ifSourceGenerationNotMatch field is set. */ @java.lang.Override @@ -3581,15 +3192,12 @@ public boolean hasIfSourceGenerationNotMatch() { return ((bitField0_ & 0x00004000) != 0); } /** - * - * *
                  * Makes the operation conditional on whether the source object's live
                  * generation does not match the given value.
                  * 
            * * optional int64 if_source_generation_not_match = 12; - * * @return The ifSourceGenerationNotMatch. */ @java.lang.Override @@ -3597,15 +3205,12 @@ public long getIfSourceGenerationNotMatch() { return ifSourceGenerationNotMatch_; } /** - * - * *
                  * Makes the operation conditional on whether the source object's live
                  * generation does not match the given value.
                  * 
            * * optional int64 if_source_generation_not_match = 12; - * * @param value The ifSourceGenerationNotMatch to set. * @return This builder for chaining. */ @@ -3617,15 +3222,12 @@ public Builder setIfSourceGenerationNotMatch(long value) { return this; } /** - * - * *
                  * Makes the operation conditional on whether the source object's live
                  * generation does not match the given value.
                  * 
            * * optional int64 if_source_generation_not_match = 12; - * * @return This builder for chaining. */ public Builder clearIfSourceGenerationNotMatch() { @@ -3635,17 +3237,14 @@ public Builder clearIfSourceGenerationNotMatch() { return this; } - private long ifSourceMetagenerationMatch_; + private long ifSourceMetagenerationMatch_ ; /** - * - * *
                  * Makes the operation conditional on whether the source object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_source_metageneration_match = 13; - * * @return Whether the ifSourceMetagenerationMatch field is set. */ @java.lang.Override @@ -3653,15 +3252,12 @@ public boolean hasIfSourceMetagenerationMatch() { return ((bitField0_ & 0x00008000) != 0); } /** - * - * *
                  * Makes the operation conditional on whether the source object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_source_metageneration_match = 13; - * * @return The ifSourceMetagenerationMatch. */ @java.lang.Override @@ -3669,15 +3265,12 @@ public long getIfSourceMetagenerationMatch() { return ifSourceMetagenerationMatch_; } /** - * - * *
                  * Makes the operation conditional on whether the source object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_source_metageneration_match = 13; - * * @param value The ifSourceMetagenerationMatch to set. * @return This builder for chaining. */ @@ -3689,15 +3282,12 @@ public Builder setIfSourceMetagenerationMatch(long value) { return this; } /** - * - * *
                  * Makes the operation conditional on whether the source object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_source_metageneration_match = 13; - * * @return This builder for chaining. */ public Builder clearIfSourceMetagenerationMatch() { @@ -3707,17 +3297,14 @@ public Builder clearIfSourceMetagenerationMatch() { return this; } - private long ifSourceMetagenerationNotMatch_; + private long ifSourceMetagenerationNotMatch_ ; /** - * - * *
                  * Makes the operation conditional on whether the source object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_source_metageneration_not_match = 14; - * * @return Whether the ifSourceMetagenerationNotMatch field is set. */ @java.lang.Override @@ -3725,15 +3312,12 @@ public boolean hasIfSourceMetagenerationNotMatch() { return ((bitField0_ & 0x00010000) != 0); } /** - * - * *
                  * Makes the operation conditional on whether the source object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_source_metageneration_not_match = 14; - * * @return The ifSourceMetagenerationNotMatch. */ @java.lang.Override @@ -3741,15 +3325,12 @@ public long getIfSourceMetagenerationNotMatch() { return ifSourceMetagenerationNotMatch_; } /** - * - * *
                  * Makes the operation conditional on whether the source object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_source_metageneration_not_match = 14; - * * @param value The ifSourceMetagenerationNotMatch to set. * @return This builder for chaining. */ @@ -3761,15 +3342,12 @@ public Builder setIfSourceMetagenerationNotMatch(long value) { return this; } /** - * - * *
                  * Makes the operation conditional on whether the source object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_source_metageneration_not_match = 14; - * * @return This builder for chaining. */ public Builder clearIfSourceMetagenerationNotMatch() { @@ -3779,10 +3357,8 @@ public Builder clearIfSourceMetagenerationNotMatch() { return this; } - private long maxBytesRewrittenPerCall_; + private long maxBytesRewrittenPerCall_ ; /** - * - * *
                  * The maximum number of bytes that will be rewritten per rewrite request.
                  * Most callers
            @@ -3795,7 +3371,6 @@ public Builder clearIfSourceMetagenerationNotMatch() {
                  * 
            * * int64 max_bytes_rewritten_per_call = 15; - * * @return The maxBytesRewrittenPerCall. */ @java.lang.Override @@ -3803,8 +3378,6 @@ public long getMaxBytesRewrittenPerCall() { return maxBytesRewrittenPerCall_; } /** - * - * *
                  * The maximum number of bytes that will be rewritten per rewrite request.
                  * Most callers
            @@ -3817,7 +3390,6 @@ public long getMaxBytesRewrittenPerCall() {
                  * 
            * * int64 max_bytes_rewritten_per_call = 15; - * * @param value The maxBytesRewrittenPerCall to set. * @return This builder for chaining. */ @@ -3829,8 +3401,6 @@ public Builder setMaxBytesRewrittenPerCall(long value) { return this; } /** - * - * *
                  * The maximum number of bytes that will be rewritten per rewrite request.
                  * Most callers
            @@ -3843,7 +3413,6 @@ public Builder setMaxBytesRewrittenPerCall(long value) {
                  * 
            * * int64 max_bytes_rewritten_per_call = 15; - * * @return This builder for chaining. */ public Builder clearMaxBytesRewrittenPerCall() { @@ -3855,21 +3424,19 @@ public Builder clearMaxBytesRewrittenPerCall() { private java.lang.Object copySourceEncryptionAlgorithm_ = ""; /** - * - * *
                  * The algorithm used to encrypt the source object, if any. Used if the source
                  * object was encrypted with a Customer-Supplied Encryption Key.
                  * 
            * * string copy_source_encryption_algorithm = 16; - * * @return The copySourceEncryptionAlgorithm. */ public java.lang.String getCopySourceEncryptionAlgorithm() { java.lang.Object ref = copySourceEncryptionAlgorithm_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); copySourceEncryptionAlgorithm_ = s; return s; @@ -3878,22 +3445,21 @@ public java.lang.String getCopySourceEncryptionAlgorithm() { } } /** - * - * *
                  * The algorithm used to encrypt the source object, if any. Used if the source
                  * object was encrypted with a Customer-Supplied Encryption Key.
                  * 
            * * string copy_source_encryption_algorithm = 16; - * * @return The bytes for copySourceEncryptionAlgorithm. */ - public com.google.protobuf.ByteString getCopySourceEncryptionAlgorithmBytes() { + public com.google.protobuf.ByteString + getCopySourceEncryptionAlgorithmBytes() { java.lang.Object ref = copySourceEncryptionAlgorithm_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); copySourceEncryptionAlgorithm_ = b; return b; } else { @@ -3901,37 +3467,30 @@ public com.google.protobuf.ByteString getCopySourceEncryptionAlgorithmBytes() { } } /** - * - * *
                  * The algorithm used to encrypt the source object, if any. Used if the source
                  * object was encrypted with a Customer-Supplied Encryption Key.
                  * 
            * * string copy_source_encryption_algorithm = 16; - * * @param value The copySourceEncryptionAlgorithm to set. * @return This builder for chaining. */ - public Builder setCopySourceEncryptionAlgorithm(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCopySourceEncryptionAlgorithm( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } copySourceEncryptionAlgorithm_ = value; bitField0_ |= 0x00040000; onChanged(); return this; } /** - * - * *
                  * The algorithm used to encrypt the source object, if any. Used if the source
                  * object was encrypted with a Customer-Supplied Encryption Key.
                  * 
            * * string copy_source_encryption_algorithm = 16; - * * @return This builder for chaining. */ public Builder clearCopySourceEncryptionAlgorithm() { @@ -3941,22 +3500,18 @@ public Builder clearCopySourceEncryptionAlgorithm() { return this; } /** - * - * *
                  * The algorithm used to encrypt the source object, if any. Used if the source
                  * object was encrypted with a Customer-Supplied Encryption Key.
                  * 
            * * string copy_source_encryption_algorithm = 16; - * * @param value The bytes for copySourceEncryptionAlgorithm to set. * @return This builder for chaining. */ - public Builder setCopySourceEncryptionAlgorithmBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCopySourceEncryptionAlgorithmBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); copySourceEncryptionAlgorithm_ = value; bitField0_ |= 0x00040000; @@ -3964,11 +3519,8 @@ public Builder setCopySourceEncryptionAlgorithmBytes(com.google.protobuf.ByteStr return this; } - private com.google.protobuf.ByteString copySourceEncryptionKeyBytes_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString copySourceEncryptionKeyBytes_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
                  * The raw bytes (not base64-encoded) AES-256 encryption key used to encrypt
                  * the source object, if it was encrypted with a Customer-Supplied Encryption
            @@ -3976,7 +3528,6 @@ public Builder setCopySourceEncryptionAlgorithmBytes(com.google.protobuf.ByteStr
                  * 
            * * bytes copy_source_encryption_key_bytes = 21; - * * @return The copySourceEncryptionKeyBytes. */ @java.lang.Override @@ -3984,8 +3535,6 @@ public com.google.protobuf.ByteString getCopySourceEncryptionKeyBytes() { return copySourceEncryptionKeyBytes_; } /** - * - * *
                  * The raw bytes (not base64-encoded) AES-256 encryption key used to encrypt
                  * the source object, if it was encrypted with a Customer-Supplied Encryption
            @@ -3993,22 +3542,17 @@ public com.google.protobuf.ByteString getCopySourceEncryptionKeyBytes() {
                  * 
            * * bytes copy_source_encryption_key_bytes = 21; - * * @param value The copySourceEncryptionKeyBytes to set. * @return This builder for chaining. */ public Builder setCopySourceEncryptionKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } copySourceEncryptionKeyBytes_ = value; bitField0_ |= 0x00080000; onChanged(); return this; } /** - * - * *
                  * The raw bytes (not base64-encoded) AES-256 encryption key used to encrypt
                  * the source object, if it was encrypted with a Customer-Supplied Encryption
            @@ -4016,7 +3560,6 @@ public Builder setCopySourceEncryptionKeyBytes(com.google.protobuf.ByteString va
                  * 
            * * bytes copy_source_encryption_key_bytes = 21; - * * @return This builder for chaining. */ public Builder clearCopySourceEncryptionKeyBytes() { @@ -4026,11 +3569,8 @@ public Builder clearCopySourceEncryptionKeyBytes() { return this; } - private com.google.protobuf.ByteString copySourceEncryptionKeySha256Bytes_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString copySourceEncryptionKeySha256Bytes_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
                  * The raw bytes (not base64-encoded) SHA256 hash of the encryption key used
                  * to encrypt the source object, if it was encrypted with a Customer-Supplied
            @@ -4038,7 +3578,6 @@ public Builder clearCopySourceEncryptionKeyBytes() {
                  * 
            * * bytes copy_source_encryption_key_sha256_bytes = 22; - * * @return The copySourceEncryptionKeySha256Bytes. */ @java.lang.Override @@ -4046,8 +3585,6 @@ public com.google.protobuf.ByteString getCopySourceEncryptionKeySha256Bytes() { return copySourceEncryptionKeySha256Bytes_; } /** - * - * *
                  * The raw bytes (not base64-encoded) SHA256 hash of the encryption key used
                  * to encrypt the source object, if it was encrypted with a Customer-Supplied
            @@ -4055,22 +3592,17 @@ public com.google.protobuf.ByteString getCopySourceEncryptionKeySha256Bytes() {
                  * 
            * * bytes copy_source_encryption_key_sha256_bytes = 22; - * * @param value The copySourceEncryptionKeySha256Bytes to set. * @return This builder for chaining. */ public Builder setCopySourceEncryptionKeySha256Bytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } copySourceEncryptionKeySha256Bytes_ = value; bitField0_ |= 0x00100000; onChanged(); return this; } /** - * - * *
                  * The raw bytes (not base64-encoded) SHA256 hash of the encryption key used
                  * to encrypt the source object, if it was encrypted with a Customer-Supplied
            @@ -4078,68 +3610,52 @@ public Builder setCopySourceEncryptionKeySha256Bytes(com.google.protobuf.ByteStr
                  * 
            * * bytes copy_source_encryption_key_sha256_bytes = 22; - * * @return This builder for chaining. */ public Builder clearCopySourceEncryptionKeySha256Bytes() { bitField0_ = (bitField0_ & ~0x00100000); - copySourceEncryptionKeySha256Bytes_ = - getDefaultInstance().getCopySourceEncryptionKeySha256Bytes(); + copySourceEncryptionKeySha256Bytes_ = getDefaultInstance().getCopySourceEncryptionKeySha256Bytes(); onChanged(); return this; } private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> - commonObjectRequestParamsBuilder_; + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> commonObjectRequestParamsBuilder_; /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 19; - * * @return Whether the commonObjectRequestParams field is set. */ public boolean hasCommonObjectRequestParams() { return ((bitField0_ & 0x00200000) != 0); } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 19; - * * @return The commonObjectRequestParams. */ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { if (commonObjectRequestParamsBuilder_ == null) { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } else { return commonObjectRequestParamsBuilder_.getMessage(); } } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 19; */ - public Builder setCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4153,8 +3669,6 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -4173,21 +3687,17 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 19; */ - public Builder mergeCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { - if (((bitField0_ & 0x00200000) != 0) - && commonObjectRequestParams_ != null - && commonObjectRequestParams_ - != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { + if (((bitField0_ & 0x00200000) != 0) && + commonObjectRequestParams_ != null && + commonObjectRequestParams_ != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { getCommonObjectRequestParamsBuilder().mergeFrom(value); } else { commonObjectRequestParams_ = value; @@ -4202,8 +3712,6 @@ public Builder mergeCommonObjectRequestParams( return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -4221,42 +3729,33 @@ public Builder clearCommonObjectRequestParams() { return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 19; */ - public com.google.storage.v2.CommonObjectRequestParams.Builder - getCommonObjectRequestParamsBuilder() { + public com.google.storage.v2.CommonObjectRequestParams.Builder getCommonObjectRequestParamsBuilder() { bitField0_ |= 0x00200000; onChanged(); return getCommonObjectRequestParamsFieldBuilder().getBuilder(); } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 19; */ - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { if (commonObjectRequestParamsBuilder_ != null) { return commonObjectRequestParamsBuilder_.getMessageOrBuilder(); } else { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? + com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -4264,17 +3763,14 @@ public Builder clearCommonObjectRequestParams() { * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 19; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> getCommonObjectRequestParamsFieldBuilder() { if (commonObjectRequestParamsBuilder_ == null) { - commonObjectRequestParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( - getCommonObjectRequestParams(), getParentForChildren(), isClean()); + commonObjectRequestParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( + getCommonObjectRequestParams(), + getParentForChildren(), + isClean()); commonObjectRequestParams_ = null; } return commonObjectRequestParamsBuilder_; @@ -4282,49 +3778,36 @@ public Builder clearCommonObjectRequestParams() { private com.google.storage.v2.ObjectChecksums objectChecksums_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.ObjectChecksums, - com.google.storage.v2.ObjectChecksums.Builder, - com.google.storage.v2.ObjectChecksumsOrBuilder> - objectChecksumsBuilder_; + com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder> objectChecksumsBuilder_; /** - * - * *
                  * The checksums of the complete object. This will be used to validate the
                  * destination object after rewriting.
                  * 
            * * .google.storage.v2.ObjectChecksums object_checksums = 29; - * * @return Whether the objectChecksums field is set. */ public boolean hasObjectChecksums() { return ((bitField0_ & 0x00400000) != 0); } /** - * - * *
                  * The checksums of the complete object. This will be used to validate the
                  * destination object after rewriting.
                  * 
            * * .google.storage.v2.ObjectChecksums object_checksums = 29; - * * @return The objectChecksums. */ public com.google.storage.v2.ObjectChecksums getObjectChecksums() { if (objectChecksumsBuilder_ == null) { - return objectChecksums_ == null - ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() - : objectChecksums_; + return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_; } else { return objectChecksumsBuilder_.getMessage(); } } /** - * - * *
                  * The checksums of the complete object. This will be used to validate the
                  * destination object after rewriting.
            @@ -4346,8 +3829,6 @@ public Builder setObjectChecksums(com.google.storage.v2.ObjectChecksums value) {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * The checksums of the complete object. This will be used to validate the
                  * destination object after rewriting.
            @@ -4367,8 +3848,6 @@ public Builder setObjectChecksums(
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * The checksums of the complete object. This will be used to validate the
                  * destination object after rewriting.
            @@ -4378,9 +3857,9 @@ public Builder setObjectChecksums(
                  */
                 public Builder mergeObjectChecksums(com.google.storage.v2.ObjectChecksums value) {
                   if (objectChecksumsBuilder_ == null) {
            -        if (((bitField0_ & 0x00400000) != 0)
            -            && objectChecksums_ != null
            -            && objectChecksums_ != com.google.storage.v2.ObjectChecksums.getDefaultInstance()) {
            +        if (((bitField0_ & 0x00400000) != 0) &&
            +          objectChecksums_ != null &&
            +          objectChecksums_ != com.google.storage.v2.ObjectChecksums.getDefaultInstance()) {
                       getObjectChecksumsBuilder().mergeFrom(value);
                     } else {
                       objectChecksums_ = value;
            @@ -4395,8 +3874,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.
            @@ -4415,8 +3892,6 @@ public Builder clearObjectChecksums() {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * The checksums of the complete object. This will be used to validate the
                  * destination object after rewriting.
            @@ -4430,8 +3905,6 @@ public com.google.storage.v2.ObjectChecksums.Builder getObjectChecksumsBuilder()
                   return getObjectChecksumsFieldBuilder().getBuilder();
                 }
                 /**
            -     *
            -     *
                  * 
                  * The checksums of the complete object. This will be used to validate the
                  * destination object after rewriting.
            @@ -4443,14 +3916,11 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
                   if (objectChecksumsBuilder_ != null) {
                     return objectChecksumsBuilder_.getMessageOrBuilder();
                   } else {
            -        return objectChecksums_ == null
            -            ? com.google.storage.v2.ObjectChecksums.getDefaultInstance()
            -            : objectChecksums_;
            +        return objectChecksums_ == null ?
            +            com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_;
                   }
                 }
                 /**
            -     *
            -     *
                  * 
                  * The checksums of the complete object. This will be used to validate the
                  * destination object after rewriting.
            @@ -4459,24 +3929,21 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
                  * .google.storage.v2.ObjectChecksums object_checksums = 29;
                  */
                 private com.google.protobuf.SingleFieldBuilderV3<
            -            com.google.storage.v2.ObjectChecksums,
            -            com.google.storage.v2.ObjectChecksums.Builder,
            -            com.google.storage.v2.ObjectChecksumsOrBuilder>
            +        com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder> 
                     getObjectChecksumsFieldBuilder() {
                   if (objectChecksumsBuilder_ == null) {
            -        objectChecksumsBuilder_ =
            -            new com.google.protobuf.SingleFieldBuilderV3<
            -                com.google.storage.v2.ObjectChecksums,
            -                com.google.storage.v2.ObjectChecksums.Builder,
            -                com.google.storage.v2.ObjectChecksumsOrBuilder>(
            -                getObjectChecksums(), getParentForChildren(), isClean());
            +        objectChecksumsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            +            com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder>(
            +                getObjectChecksums(),
            +                getParentForChildren(),
            +                isClean());
                     objectChecksums_ = null;
                   }
                   return objectChecksumsBuilder_;
                 }
            -
                 @java.lang.Override
            -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
            +    public final Builder setUnknownFields(
            +        final com.google.protobuf.UnknownFieldSet unknownFields) {
                   return super.setUnknownFields(unknownFields);
                 }
             
            @@ -4486,12 +3953,12 @@ public final Builder mergeUnknownFields(
                   return super.mergeUnknownFields(unknownFields);
                 }
             
            +
                 // @@protoc_insertion_point(builder_scope:google.storage.v2.RewriteObjectRequest)
               }
             
               // @@protoc_insertion_point(class_scope:google.storage.v2.RewriteObjectRequest)
               private static final com.google.storage.v2.RewriteObjectRequest DEFAULT_INSTANCE;
            -
               static {
                 DEFAULT_INSTANCE = new com.google.storage.v2.RewriteObjectRequest();
               }
            @@ -4500,27 +3967,27 @@ public static com.google.storage.v2.RewriteObjectRequest getDefaultInstance() {
                 return DEFAULT_INSTANCE;
               }
             
            -  private static final com.google.protobuf.Parser PARSER =
            -      new com.google.protobuf.AbstractParser() {
            -        @java.lang.Override
            -        public RewriteObjectRequest parsePartialFrom(
            -            com.google.protobuf.CodedInputStream input,
            -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            -            throws com.google.protobuf.InvalidProtocolBufferException {
            -          Builder builder = newBuilder();
            -          try {
            -            builder.mergeFrom(input, extensionRegistry);
            -          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            -            throw e.setUnfinishedMessage(builder.buildPartial());
            -          } catch (com.google.protobuf.UninitializedMessageException e) {
            -            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
            -          } catch (java.io.IOException e) {
            -            throw new com.google.protobuf.InvalidProtocolBufferException(e)
            -                .setUnfinishedMessage(builder.buildPartial());
            -          }
            -          return builder.buildPartial();
            -        }
            -      };
            +  private static final com.google.protobuf.Parser
            +      PARSER = new com.google.protobuf.AbstractParser() {
            +    @java.lang.Override
            +    public RewriteObjectRequest parsePartialFrom(
            +        com.google.protobuf.CodedInputStream input,
            +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +        throws com.google.protobuf.InvalidProtocolBufferException {
            +      Builder builder = newBuilder();
            +      try {
            +        builder.mergeFrom(input, extensionRegistry);
            +      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            +        throw e.setUnfinishedMessage(builder.buildPartial());
            +      } catch (com.google.protobuf.UninitializedMessageException e) {
            +        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
            +      } catch (java.io.IOException e) {
            +        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            +            .setUnfinishedMessage(builder.buildPartial());
            +      }
            +      return builder.buildPartial();
            +    }
            +  };
             
               public static com.google.protobuf.Parser parser() {
                 return PARSER;
            @@ -4535,4 +4002,6 @@ public com.google.protobuf.Parser getParserForType() {
               public com.google.storage.v2.RewriteObjectRequest getDefaultInstanceForType() {
                 return DEFAULT_INSTANCE;
               }
            +
             }
            +
            diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequestOrBuilder.java
            similarity index 86%
            rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequestOrBuilder.java
            rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteObjectRequestOrBuilder.java
            index 2ea2851176..583be9e03d 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,32 +1,14 @@
            -/*
            - * Copyright 2024 Google LLC
            - *
            - * Licensed under the Apache License, Version 2.0 (the "License");
            - * you may not use this file except in compliance with the License.
            - * You may obtain a copy of the License at
            - *
            - *     https://www.apache.org/licenses/LICENSE-2.0
            - *
            - * Unless required by applicable law or agreed to in writing, software
            - * distributed under the License is distributed on an "AS IS" BASIS,
            - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            - * See the License for the specific language governing permissions and
            - * limitations under the License.
            - */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
             // Protobuf Java Version: 3.25.3
             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
            @@ -37,16 +19,11 @@ public interface RewriteObjectRequestOrBuilder
                * (bucket, object, generation).
                * 
            * - * - * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The destinationName. */ java.lang.String getDestinationName(); /** - * - * *
                * Required. Immutable. The name of the destination object.
                * See the
            @@ -57,48 +34,35 @@ public interface RewriteObjectRequestOrBuilder
                * (bucket, object, generation).
                * 
            * - * - * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * string destination_name = 24 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The bytes for destinationName. */ - com.google.protobuf.ByteString getDestinationNameBytes(); + com.google.protobuf.ByteString + getDestinationNameBytes(); /** - * - * *
                * Required. Immutable. The name of the bucket containing the destination
                * object.
                * 
            * - * - * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The destinationBucket. */ java.lang.String getDestinationBucket(); /** - * - * *
                * Required. Immutable. The name of the bucket containing the destination
                * object.
                * 
            * - * - * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string destination_bucket = 25 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for destinationBucket. */ - com.google.protobuf.ByteString getDestinationBucketBytes(); + com.google.protobuf.ByteString + getDestinationBucketBytes(); /** - * - * *
                * The name of the Cloud KMS key that will be used to encrypt the destination
                * object. The Cloud KMS key must be located in same location as the object.
            @@ -108,13 +72,10 @@ public interface RewriteObjectRequestOrBuilder
                * 
            * * string destination_kms_key = 27 [(.google.api.resource_reference) = { ... } - * * @return The destinationKmsKey. */ java.lang.String getDestinationKmsKey(); /** - * - * *
                * The name of the Cloud KMS key that will be used to encrypt the destination
                * object. The Cloud KMS key must be located in same location as the object.
            @@ -124,14 +85,12 @@ public interface RewriteObjectRequestOrBuilder
                * 
            * * string destination_kms_key = 27 [(.google.api.resource_reference) = { ... } - * * @return The bytes for destinationKmsKey. */ - com.google.protobuf.ByteString getDestinationKmsKeyBytes(); + com.google.protobuf.ByteString + getDestinationKmsKeyBytes(); /** - * - * *
                * Properties of the destination, post-rewrite object.
                * The `name`, `bucket` and `kms_key` fields must not be populated (these
            @@ -143,13 +102,10 @@ public interface RewriteObjectRequestOrBuilder
                * 
            * * .google.storage.v2.Object destination = 1; - * * @return Whether the destination field is set. */ boolean hasDestination(); /** - * - * *
                * Properties of the destination, post-rewrite object.
                * The `name`, `bucket` and `kms_key` fields must not be populated (these
            @@ -161,13 +117,10 @@ public interface RewriteObjectRequestOrBuilder
                * 
            * * .google.storage.v2.Object destination = 1; - * * @return The destination. */ com.google.storage.v2.Object getDestination(); /** - * - * *
                * Properties of the destination, post-rewrite object.
                * The `name`, `bucket` and `kms_key` fields must not be populated (these
            @@ -183,76 +136,57 @@ public interface RewriteObjectRequestOrBuilder
               com.google.storage.v2.ObjectOrBuilder getDestinationOrBuilder();
             
               /**
            -   *
            -   *
                * 
                * Required. Name of the bucket in which to find the source object.
                * 
            * - * - * string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The sourceBucket. */ java.lang.String getSourceBucket(); /** - * - * *
                * Required. Name of the bucket in which to find the source object.
                * 
            * - * - * string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string source_bucket = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for sourceBucket. */ - com.google.protobuf.ByteString getSourceBucketBytes(); + com.google.protobuf.ByteString + getSourceBucketBytes(); /** - * - * *
                * Required. Name of the source object.
                * 
            * * string source_object = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The sourceObject. */ java.lang.String getSourceObject(); /** - * - * *
                * Required. Name of the source object.
                * 
            * * string source_object = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for sourceObject. */ - com.google.protobuf.ByteString getSourceObjectBytes(); + com.google.protobuf.ByteString + getSourceObjectBytes(); /** - * - * *
                * If present, selects a specific revision of the source object (as opposed to
                * the latest version, the default).
                * 
            * * int64 source_generation = 4; - * * @return The sourceGeneration. */ long getSourceGeneration(); /** - * - * *
                * Include this field (from the previous rewrite response) on each rewrite
                * request after the first one, until the rewrite response 'done' flag is
            @@ -262,13 +196,10 @@ public interface RewriteObjectRequestOrBuilder
                * 
            * * string rewrite_token = 5; - * * @return The rewriteToken. */ java.lang.String getRewriteToken(); /** - * - * *
                * Include this field (from the previous rewrite response) on each rewrite
                * request after the first one, until the rewrite response 'done' flag is
            @@ -278,14 +209,12 @@ public interface RewriteObjectRequestOrBuilder
                * 
            * * string rewrite_token = 5; - * * @return The bytes for rewriteToken. */ - com.google.protobuf.ByteString getRewriteTokenBytes(); + com.google.protobuf.ByteString + getRewriteTokenBytes(); /** - * - * *
                * Apply a predefined set of access controls to the destination object.
                * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -293,13 +222,10 @@ public interface RewriteObjectRequestOrBuilder
                * 
            * * string destination_predefined_acl = 28; - * * @return The destinationPredefinedAcl. */ java.lang.String getDestinationPredefinedAcl(); /** - * - * *
                * Apply a predefined set of access controls to the destination object.
                * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -307,14 +233,12 @@ public interface RewriteObjectRequestOrBuilder
                * 
            * * string destination_predefined_acl = 28; - * * @return The bytes for destinationPredefinedAcl. */ - com.google.protobuf.ByteString getDestinationPredefinedAclBytes(); + com.google.protobuf.ByteString + getDestinationPredefinedAclBytes(); /** - * - * *
                * Makes the operation conditional on whether the object's current generation
                * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -322,13 +246,10 @@ public interface RewriteObjectRequestOrBuilder
                * 
            * * optional int64 if_generation_match = 7; - * * @return Whether the ifGenerationMatch field is set. */ boolean hasIfGenerationMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's current generation
                * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -336,14 +257,11 @@ public interface RewriteObjectRequestOrBuilder
                * 
            * * optional int64 if_generation_match = 7; - * * @return The ifGenerationMatch. */ long getIfGenerationMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's live generation
                * does not match the given value. If no live object exists, the precondition
            @@ -352,13 +270,10 @@ public interface RewriteObjectRequestOrBuilder
                * 
            * * optional int64 if_generation_not_match = 8; - * * @return Whether the ifGenerationNotMatch field is set. */ boolean hasIfGenerationNotMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's live generation
                * does not match the given value. If no live object exists, the precondition
            @@ -367,176 +282,137 @@ public interface RewriteObjectRequestOrBuilder
                * 
            * * optional int64 if_generation_not_match = 8; - * * @return The ifGenerationNotMatch. */ long getIfGenerationNotMatch(); /** - * - * *
                * Makes the operation conditional on whether the destination object's current
                * metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 9; - * * @return Whether the ifMetagenerationMatch field is set. */ boolean hasIfMetagenerationMatch(); /** - * - * *
                * Makes the operation conditional on whether the destination object's current
                * metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 9; - * * @return The ifMetagenerationMatch. */ long getIfMetagenerationMatch(); /** - * - * *
                * Makes the operation conditional on whether the destination object's current
                * metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 10; - * * @return Whether the ifMetagenerationNotMatch field is set. */ boolean hasIfMetagenerationNotMatch(); /** - * - * *
                * Makes the operation conditional on whether the destination object's current
                * metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 10; - * * @return The ifMetagenerationNotMatch. */ long getIfMetagenerationNotMatch(); /** - * - * *
                * Makes the operation conditional on whether the source object's live
                * generation matches the given value.
                * 
            * * optional int64 if_source_generation_match = 11; - * * @return Whether the ifSourceGenerationMatch field is set. */ boolean hasIfSourceGenerationMatch(); /** - * - * *
                * Makes the operation conditional on whether the source object's live
                * generation matches the given value.
                * 
            * * optional int64 if_source_generation_match = 11; - * * @return The ifSourceGenerationMatch. */ long getIfSourceGenerationMatch(); /** - * - * *
                * Makes the operation conditional on whether the source object's live
                * generation does not match the given value.
                * 
            * * optional int64 if_source_generation_not_match = 12; - * * @return Whether the ifSourceGenerationNotMatch field is set. */ boolean hasIfSourceGenerationNotMatch(); /** - * - * *
                * Makes the operation conditional on whether the source object's live
                * generation does not match the given value.
                * 
            * * optional int64 if_source_generation_not_match = 12; - * * @return The ifSourceGenerationNotMatch. */ long getIfSourceGenerationNotMatch(); /** - * - * *
                * Makes the operation conditional on whether the source object's current
                * metageneration matches the given value.
                * 
            * * optional int64 if_source_metageneration_match = 13; - * * @return Whether the ifSourceMetagenerationMatch field is set. */ boolean hasIfSourceMetagenerationMatch(); /** - * - * *
                * Makes the operation conditional on whether the source object's current
                * metageneration matches the given value.
                * 
            * * optional int64 if_source_metageneration_match = 13; - * * @return The ifSourceMetagenerationMatch. */ long getIfSourceMetagenerationMatch(); /** - * - * *
                * Makes the operation conditional on whether the source object's current
                * metageneration does not match the given value.
                * 
            * * optional int64 if_source_metageneration_not_match = 14; - * * @return Whether the ifSourceMetagenerationNotMatch field is set. */ boolean hasIfSourceMetagenerationNotMatch(); /** - * - * *
                * Makes the operation conditional on whether the source object's current
                * metageneration does not match the given value.
                * 
            * * optional int64 if_source_metageneration_not_match = 14; - * * @return The ifSourceMetagenerationNotMatch. */ long getIfSourceMetagenerationNotMatch(); /** - * - * *
                * The maximum number of bytes that will be rewritten per rewrite request.
                * Most callers
            @@ -549,41 +425,33 @@ public interface RewriteObjectRequestOrBuilder
                * 
            * * int64 max_bytes_rewritten_per_call = 15; - * * @return The maxBytesRewrittenPerCall. */ long getMaxBytesRewrittenPerCall(); /** - * - * *
                * The algorithm used to encrypt the source object, if any. Used if the source
                * object was encrypted with a Customer-Supplied Encryption Key.
                * 
            * * string copy_source_encryption_algorithm = 16; - * * @return The copySourceEncryptionAlgorithm. */ java.lang.String getCopySourceEncryptionAlgorithm(); /** - * - * *
                * The algorithm used to encrypt the source object, if any. Used if the source
                * object was encrypted with a Customer-Supplied Encryption Key.
                * 
            * * string copy_source_encryption_algorithm = 16; - * * @return The bytes for copySourceEncryptionAlgorithm. */ - com.google.protobuf.ByteString getCopySourceEncryptionAlgorithmBytes(); + com.google.protobuf.ByteString + getCopySourceEncryptionAlgorithmBytes(); /** - * - * *
                * The raw bytes (not base64-encoded) AES-256 encryption key used to encrypt
                * the source object, if it was encrypted with a Customer-Supplied Encryption
            @@ -591,14 +459,11 @@ public interface RewriteObjectRequestOrBuilder
                * 
            * * bytes copy_source_encryption_key_bytes = 21; - * * @return The copySourceEncryptionKeyBytes. */ com.google.protobuf.ByteString getCopySourceEncryptionKeyBytes(); /** - * - * *
                * The raw bytes (not base64-encoded) SHA256 hash of the encryption key used
                * to encrypt the source object, if it was encrypted with a Customer-Supplied
            @@ -606,38 +471,29 @@ public interface RewriteObjectRequestOrBuilder
                * 
            * * bytes copy_source_encryption_key_sha256_bytes = 22; - * * @return The copySourceEncryptionKeySha256Bytes. */ com.google.protobuf.ByteString getCopySourceEncryptionKeySha256Bytes(); /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 19; - * * @return Whether the commonObjectRequestParams field is set. */ boolean hasCommonObjectRequestParams(); /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 19; - * * @return The commonObjectRequestParams. */ com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams(); /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            @@ -647,34 +503,26 @@ public interface RewriteObjectRequestOrBuilder com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder(); /** - * - * *
                * The checksums of the complete object. This will be used to validate the
                * destination object after rewriting.
                * 
            * * .google.storage.v2.ObjectChecksums object_checksums = 29; - * * @return Whether the objectChecksums field is set. */ boolean hasObjectChecksums(); /** - * - * *
                * The checksums of the complete object. This will be used to validate the
                * destination object after rewriting.
                * 
            * * .google.storage.v2.ObjectChecksums object_checksums = 29; - * * @return The objectChecksums. */ com.google.storage.v2.ObjectChecksums getObjectChecksums(); /** - * - * *
                * The checksums of the complete object. This will be used to validate the
                * destination object after rewriting.
            diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponse.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponse.java
            similarity index 73%
            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 2e6aaf6873..cd70c396ec 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,18 +1,3 @@
            -/*
            - * Copyright 2024 Google LLC
            - *
            - * Licensed under the Apache License, Version 2.0 (the "License");
            - * you may not use this file except in compliance with the License.
            - * You may obtain a copy of the License at
            - *
            - *     https://www.apache.org/licenses/LICENSE-2.0
            - *
            - * Unless required by applicable law or agreed to in writing, software
            - * distributed under the License is distributed on an "AS IS" BASIS,
            - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            - * See the License for the specific language governing permissions and
            - * limitations under the License.
            - */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
            @@ -20,62 +5,55 @@
             package com.google.storage.v2;
             
             /**
            - *
            - *
              * 
              * A rewrite response.
              * 
            * * Protobuf type {@code google.storage.v2.RewriteResponse} */ -public final class RewriteResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RewriteResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.RewriteResponse) RewriteResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RewriteResponse.newBuilder() to construct. private RewriteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RewriteResponse() { rewriteToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RewriteResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_RewriteResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_RewriteResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_RewriteResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_RewriteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.RewriteResponse.class, - com.google.storage.v2.RewriteResponse.Builder.class); + com.google.storage.v2.RewriteResponse.class, com.google.storage.v2.RewriteResponse.Builder.class); } private int bitField0_; public static final int TOTAL_BYTES_REWRITTEN_FIELD_NUMBER = 1; private long totalBytesRewritten_ = 0L; /** - * - * *
                * The total bytes written so far, which can be used to provide a waiting user
                * with a progress indicator. This property is always present in the response.
                * 
            * * int64 total_bytes_rewritten = 1; - * * @return The totalBytesRewritten. */ @java.lang.Override @@ -86,15 +64,12 @@ public long getTotalBytesRewritten() { public static final int OBJECT_SIZE_FIELD_NUMBER = 2; private long objectSize_ = 0L; /** - * - * *
                * The total size of the object being copied in bytes. This property is always
                * present in the response.
                * 
            * * int64 object_size = 2; - * * @return The objectSize. */ @java.lang.Override @@ -105,15 +80,12 @@ public long getObjectSize() { public static final int DONE_FIELD_NUMBER = 3; private boolean done_ = false; /** - * - * *
                * `true` if the copy is finished; otherwise, `false` if
                * the copy is in progress. This property is always present in the response.
                * 
            * * bool done = 3; - * * @return The done. */ @java.lang.Override @@ -122,19 +94,15 @@ public boolean getDone() { } public static final int REWRITE_TOKEN_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object rewriteToken_ = ""; /** - * - * *
                * A token to use in subsequent requests to continue copying data. This token
                * is present in the response only when there is more data to copy.
                * 
            * * string rewrite_token = 4; - * * @return The rewriteToken. */ @java.lang.Override @@ -143,30 +111,30 @@ public java.lang.String getRewriteToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rewriteToken_ = s; return s; } } /** - * - * *
                * A token to use in subsequent requests to continue copying data. This token
                * is present in the response only when there is more data to copy.
                * 
            * * string rewrite_token = 4; - * * @return The bytes for rewriteToken. */ @java.lang.Override - public com.google.protobuf.ByteString getRewriteTokenBytes() { + public com.google.protobuf.ByteString + getRewriteTokenBytes() { java.lang.Object ref = rewriteToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); rewriteToken_ = b; return b; } else { @@ -177,15 +145,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 @@ -193,15 +158,12 @@ public boolean hasResource() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * A resource containing the metadata for the copied-to object. This property
                * is present in the response only when copying completes.
                * 
            * * .google.storage.v2.Object resource = 5; - * * @return The resource. */ @java.lang.Override @@ -209,8 +171,6 @@ public com.google.storage.v2.Object getResource() { return resource_ == null ? com.google.storage.v2.Object.getDefaultInstance() : resource_; } /** - * - * *
                * A resource containing the metadata for the copied-to object. This property
                * is present in the response only when copying completes.
            @@ -224,7 +184,6 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
               }
             
               private byte memoizedIsInitialized = -1;
            -
               @java.lang.Override
               public final boolean isInitialized() {
                 byte isInitialized = memoizedIsInitialized;
            @@ -236,7 +195,8 @@ public final boolean isInitialized() {
               }
             
               @java.lang.Override
            -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
            +  public void writeTo(com.google.protobuf.CodedOutputStream output)
            +                      throws java.io.IOException {
                 if (totalBytesRewritten_ != 0L) {
                   output.writeInt64(1, totalBytesRewritten_);
                 }
            @@ -262,19 +222,23 @@ public int getSerializedSize() {
             
                 size = 0;
                 if (totalBytesRewritten_ != 0L) {
            -      size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, totalBytesRewritten_);
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeInt64Size(1, totalBytesRewritten_);
                 }
                 if (objectSize_ != 0L) {
            -      size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, objectSize_);
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeInt64Size(2, objectSize_);
                 }
                 if (done_ != false) {
            -      size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, done_);
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeBoolSize(3, done_);
                 }
                 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rewriteToken_)) {
                   size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, rewriteToken_);
                 }
                 if (((bitField0_ & 0x00000001) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getResource());
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeMessageSize(5, getResource());
                 }
                 size += getUnknownFields().getSerializedSize();
                 memoizedSize = size;
            @@ -284,20 +248,25 @@ public int getSerializedSize() {
               @java.lang.Override
               public boolean equals(final java.lang.Object obj) {
                 if (obj == this) {
            -      return true;
            +     return true;
                 }
                 if (!(obj instanceof com.google.storage.v2.RewriteResponse)) {
                   return super.equals(obj);
                 }
                 com.google.storage.v2.RewriteResponse other = (com.google.storage.v2.RewriteResponse) obj;
             
            -    if (getTotalBytesRewritten() != other.getTotalBytesRewritten()) return false;
            -    if (getObjectSize() != other.getObjectSize()) return false;
            -    if (getDone() != other.getDone()) return false;
            -    if (!getRewriteToken().equals(other.getRewriteToken())) return false;
            +    if (getTotalBytesRewritten()
            +        != other.getTotalBytesRewritten()) return false;
            +    if (getObjectSize()
            +        != other.getObjectSize()) return false;
            +    if (getDone()
            +        != other.getDone()) return false;
            +    if (!getRewriteToken()
            +        .equals(other.getRewriteToken())) return false;
                 if (hasResource() != other.hasResource()) return false;
                 if (hasResource()) {
            -      if (!getResource().equals(other.getResource())) return false;
            +      if (!getResource()
            +          .equals(other.getResource())) return false;
                 }
                 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
                 return true;
            @@ -311,11 +280,14 @@ public int hashCode() {
                 int hash = 41;
                 hash = (19 * hash) + getDescriptor().hashCode();
                 hash = (37 * hash) + TOTAL_BYTES_REWRITTEN_FIELD_NUMBER;
            -    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalBytesRewritten());
            +    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            +        getTotalBytesRewritten());
                 hash = (37 * hash) + OBJECT_SIZE_FIELD_NUMBER;
            -    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getObjectSize());
            +    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            +        getObjectSize());
                 hash = (37 * hash) + DONE_FIELD_NUMBER;
            -    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDone());
            +    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
            +        getDone());
                 hash = (37 * hash) + REWRITE_TOKEN_FIELD_NUMBER;
                 hash = (53 * hash) + getRewriteToken().hashCode();
                 if (hasResource()) {
            @@ -327,126 +299,120 @@ 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() @@ -454,17 +420,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) { getResourceFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -482,9 +448,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_RewriteResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_RewriteResponse_descriptor; } @java.lang.Override @@ -503,11 +469,8 @@ public com.google.storage.v2.RewriteResponse build() { @java.lang.Override public com.google.storage.v2.RewriteResponse buildPartial() { - com.google.storage.v2.RewriteResponse result = - new com.google.storage.v2.RewriteResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.RewriteResponse result = new com.google.storage.v2.RewriteResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -528,7 +491,9 @@ private void buildPartial0(com.google.storage.v2.RewriteResponse result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { - result.resource_ = resourceBuilder_ == null ? resource_ : resourceBuilder_.build(); + result.resource_ = resourceBuilder_ == null + ? resource_ + : resourceBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -538,39 +503,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; @@ -622,43 +586,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - totalBytesRewritten_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - objectSize_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - done_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - rewriteToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage(getResourceFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + totalBytesRewritten_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + objectSize_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + done_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + rewriteToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getResourceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -668,20 +628,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private long totalBytesRewritten_; + private long totalBytesRewritten_ ; /** - * - * *
                  * The total bytes written so far, which can be used to provide a waiting user
                  * with a progress indicator. This property is always present in the response.
                  * 
            * * int64 total_bytes_rewritten = 1; - * * @return The totalBytesRewritten. */ @java.lang.Override @@ -689,15 +645,12 @@ public long getTotalBytesRewritten() { return totalBytesRewritten_; } /** - * - * *
                  * The total bytes written so far, which can be used to provide a waiting user
                  * with a progress indicator. This property is always present in the response.
                  * 
            * * int64 total_bytes_rewritten = 1; - * * @param value The totalBytesRewritten to set. * @return This builder for chaining. */ @@ -709,15 +662,12 @@ public Builder setTotalBytesRewritten(long value) { return this; } /** - * - * *
                  * The total bytes written so far, which can be used to provide a waiting user
                  * with a progress indicator. This property is always present in the response.
                  * 
            * * int64 total_bytes_rewritten = 1; - * * @return This builder for chaining. */ public Builder clearTotalBytesRewritten() { @@ -727,17 +677,14 @@ public Builder clearTotalBytesRewritten() { return this; } - private long objectSize_; + private long objectSize_ ; /** - * - * *
                  * The total size of the object being copied in bytes. This property is always
                  * present in the response.
                  * 
            * * int64 object_size = 2; - * * @return The objectSize. */ @java.lang.Override @@ -745,15 +692,12 @@ public long getObjectSize() { return objectSize_; } /** - * - * *
                  * The total size of the object being copied in bytes. This property is always
                  * present in the response.
                  * 
            * * int64 object_size = 2; - * * @param value The objectSize to set. * @return This builder for chaining. */ @@ -765,15 +709,12 @@ public Builder setObjectSize(long value) { return this; } /** - * - * *
                  * The total size of the object being copied in bytes. This property is always
                  * present in the response.
                  * 
            * * int64 object_size = 2; - * * @return This builder for chaining. */ public Builder clearObjectSize() { @@ -783,17 +724,14 @@ public Builder clearObjectSize() { return this; } - private boolean done_; + private boolean done_ ; /** - * - * *
                  * `true` if the copy is finished; otherwise, `false` if
                  * the copy is in progress. This property is always present in the response.
                  * 
            * * bool done = 3; - * * @return The done. */ @java.lang.Override @@ -801,15 +739,12 @@ public boolean getDone() { return done_; } /** - * - * *
                  * `true` if the copy is finished; otherwise, `false` if
                  * the copy is in progress. This property is always present in the response.
                  * 
            * * bool done = 3; - * * @param value The done to set. * @return This builder for chaining. */ @@ -821,15 +756,12 @@ public Builder setDone(boolean value) { return this; } /** - * - * *
                  * `true` if the copy is finished; otherwise, `false` if
                  * the copy is in progress. This property is always present in the response.
                  * 
            * * bool done = 3; - * * @return This builder for chaining. */ public Builder clearDone() { @@ -841,21 +773,19 @@ public Builder clearDone() { private java.lang.Object rewriteToken_ = ""; /** - * - * *
                  * A token to use in subsequent requests to continue copying data. This token
                  * is present in the response only when there is more data to copy.
                  * 
            * * string rewrite_token = 4; - * * @return The rewriteToken. */ public java.lang.String getRewriteToken() { java.lang.Object ref = rewriteToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rewriteToken_ = s; return s; @@ -864,22 +794,21 @@ public java.lang.String getRewriteToken() { } } /** - * - * *
                  * A token to use in subsequent requests to continue copying data. This token
                  * is present in the response only when there is more data to copy.
                  * 
            * * string rewrite_token = 4; - * * @return The bytes for rewriteToken. */ - public com.google.protobuf.ByteString getRewriteTokenBytes() { + public com.google.protobuf.ByteString + getRewriteTokenBytes() { java.lang.Object ref = rewriteToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); rewriteToken_ = b; return b; } else { @@ -887,37 +816,30 @@ public com.google.protobuf.ByteString getRewriteTokenBytes() { } } /** - * - * *
                  * A token to use in subsequent requests to continue copying data. This token
                  * is present in the response only when there is more data to copy.
                  * 
            * * string rewrite_token = 4; - * * @param value The rewriteToken to set. * @return This builder for chaining. */ - public Builder setRewriteToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRewriteToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } rewriteToken_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
                  * A token to use in subsequent requests to continue copying data. This token
                  * is present in the response only when there is more data to copy.
                  * 
            * * string rewrite_token = 4; - * * @return This builder for chaining. */ public Builder clearRewriteToken() { @@ -927,22 +849,18 @@ public Builder clearRewriteToken() { return this; } /** - * - * *
                  * A token to use in subsequent requests to continue copying data. This token
                  * is present in the response only when there is more data to copy.
                  * 
            * * string rewrite_token = 4; - * * @param value The bytes for rewriteToken to set. * @return This builder for chaining. */ - public Builder setRewriteTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRewriteTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); rewriteToken_ = value; bitField0_ |= 0x00000008; @@ -952,35 +870,26 @@ public Builder setRewriteTokenBytes(com.google.protobuf.ByteString value) { private com.google.storage.v2.Object resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Object, - com.google.storage.v2.Object.Builder, - com.google.storage.v2.ObjectOrBuilder> - resourceBuilder_; + com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> resourceBuilder_; /** - * - * *
                  * A resource containing the metadata for the copied-to object. This property
                  * is present in the response only when copying completes.
                  * 
            * * .google.storage.v2.Object resource = 5; - * * @return Whether the resource field is set. */ public boolean hasResource() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
                  * A resource containing the metadata for the copied-to object. This property
                  * is present in the response only when copying completes.
                  * 
            * * .google.storage.v2.Object resource = 5; - * * @return The resource. */ public com.google.storage.v2.Object getResource() { @@ -991,8 +900,6 @@ public com.google.storage.v2.Object getResource() { } } /** - * - * *
                  * A resource containing the metadata for the copied-to object. This property
                  * is present in the response only when copying completes.
            @@ -1014,8 +921,6 @@ public Builder setResource(com.google.storage.v2.Object value) {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * A resource containing the metadata for the copied-to object. This property
                  * is present in the response only when copying completes.
            @@ -1023,7 +928,8 @@ public Builder setResource(com.google.storage.v2.Object value) {
                  *
                  * .google.storage.v2.Object resource = 5;
                  */
            -    public Builder setResource(com.google.storage.v2.Object.Builder builderForValue) {
            +    public Builder setResource(
            +        com.google.storage.v2.Object.Builder builderForValue) {
                   if (resourceBuilder_ == null) {
                     resource_ = builderForValue.build();
                   } else {
            @@ -1034,8 +940,6 @@ public Builder setResource(com.google.storage.v2.Object.Builder builderForValue)
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * A resource containing the metadata for the copied-to object. This property
                  * is present in the response only when copying completes.
            @@ -1045,9 +949,9 @@ public Builder setResource(com.google.storage.v2.Object.Builder builderForValue)
                  */
                 public Builder mergeResource(com.google.storage.v2.Object value) {
                   if (resourceBuilder_ == null) {
            -        if (((bitField0_ & 0x00000010) != 0)
            -            && resource_ != null
            -            && resource_ != com.google.storage.v2.Object.getDefaultInstance()) {
            +        if (((bitField0_ & 0x00000010) != 0) &&
            +          resource_ != null &&
            +          resource_ != com.google.storage.v2.Object.getDefaultInstance()) {
                       getResourceBuilder().mergeFrom(value);
                     } else {
                       resource_ = value;
            @@ -1062,8 +966,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.
            @@ -1082,8 +984,6 @@ public Builder clearResource() {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * A resource containing the metadata for the copied-to object. This property
                  * is present in the response only when copying completes.
            @@ -1097,8 +997,6 @@ public com.google.storage.v2.Object.Builder getResourceBuilder() {
                   return getResourceFieldBuilder().getBuilder();
                 }
                 /**
            -     *
            -     *
                  * 
                  * A resource containing the metadata for the copied-to object. This property
                  * is present in the response only when copying completes.
            @@ -1110,12 +1008,11 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
                   if (resourceBuilder_ != null) {
                     return resourceBuilder_.getMessageOrBuilder();
                   } else {
            -        return resource_ == null ? com.google.storage.v2.Object.getDefaultInstance() : resource_;
            +        return resource_ == null ?
            +            com.google.storage.v2.Object.getDefaultInstance() : resource_;
                   }
                 }
                 /**
            -     *
            -     *
                  * 
                  * A resource containing the metadata for the copied-to object. This property
                  * is present in the response only when copying completes.
            @@ -1124,24 +1021,21 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
                  * .google.storage.v2.Object resource = 5;
                  */
                 private com.google.protobuf.SingleFieldBuilderV3<
            -            com.google.storage.v2.Object,
            -            com.google.storage.v2.Object.Builder,
            -            com.google.storage.v2.ObjectOrBuilder>
            +        com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> 
                     getResourceFieldBuilder() {
                   if (resourceBuilder_ == null) {
            -        resourceBuilder_ =
            -            new com.google.protobuf.SingleFieldBuilderV3<
            -                com.google.storage.v2.Object,
            -                com.google.storage.v2.Object.Builder,
            -                com.google.storage.v2.ObjectOrBuilder>(
            -                getResource(), getParentForChildren(), isClean());
            +        resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            +            com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder>(
            +                getResource(),
            +                getParentForChildren(),
            +                isClean());
                     resource_ = null;
                   }
                   return resourceBuilder_;
                 }
            -
                 @java.lang.Override
            -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
            +    public final Builder setUnknownFields(
            +        final com.google.protobuf.UnknownFieldSet unknownFields) {
                   return super.setUnknownFields(unknownFields);
                 }
             
            @@ -1151,12 +1045,12 @@ public final Builder mergeUnknownFields(
                   return super.mergeUnknownFields(unknownFields);
                 }
             
            +
                 // @@protoc_insertion_point(builder_scope:google.storage.v2.RewriteResponse)
               }
             
               // @@protoc_insertion_point(class_scope:google.storage.v2.RewriteResponse)
               private static final com.google.storage.v2.RewriteResponse DEFAULT_INSTANCE;
            -
               static {
                 DEFAULT_INSTANCE = new com.google.storage.v2.RewriteResponse();
               }
            @@ -1165,27 +1059,27 @@ public static com.google.storage.v2.RewriteResponse getDefaultInstance() {
                 return DEFAULT_INSTANCE;
               }
             
            -  private static final com.google.protobuf.Parser PARSER =
            -      new com.google.protobuf.AbstractParser() {
            -        @java.lang.Override
            -        public RewriteResponse parsePartialFrom(
            -            com.google.protobuf.CodedInputStream input,
            -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            -            throws com.google.protobuf.InvalidProtocolBufferException {
            -          Builder builder = newBuilder();
            -          try {
            -            builder.mergeFrom(input, extensionRegistry);
            -          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            -            throw e.setUnfinishedMessage(builder.buildPartial());
            -          } catch (com.google.protobuf.UninitializedMessageException e) {
            -            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
            -          } catch (java.io.IOException e) {
            -            throw new com.google.protobuf.InvalidProtocolBufferException(e)
            -                .setUnfinishedMessage(builder.buildPartial());
            -          }
            -          return builder.buildPartial();
            -        }
            -      };
            +  private static final com.google.protobuf.Parser
            +      PARSER = new com.google.protobuf.AbstractParser() {
            +    @java.lang.Override
            +    public RewriteResponse parsePartialFrom(
            +        com.google.protobuf.CodedInputStream input,
            +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +        throws com.google.protobuf.InvalidProtocolBufferException {
            +      Builder builder = newBuilder();
            +      try {
            +        builder.mergeFrom(input, extensionRegistry);
            +      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            +        throw e.setUnfinishedMessage(builder.buildPartial());
            +      } catch (com.google.protobuf.UninitializedMessageException e) {
            +        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
            +      } catch (java.io.IOException e) {
            +        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            +            .setUnfinishedMessage(builder.buildPartial());
            +      }
            +      return builder.buildPartial();
            +    }
            +  };
             
               public static com.google.protobuf.Parser parser() {
                 return PARSER;
            @@ -1200,4 +1094,6 @@ public com.google.protobuf.Parser getParserForType() {
               public com.google.storage.v2.RewriteResponse getDefaultInstanceForType() {
                 return DEFAULT_INSTANCE;
               }
            +
             }
            +
            diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponseOrBuilder.java
            similarity index 76%
            rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponseOrBuilder.java
            rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RewriteResponseOrBuilder.java
            index 47a97cacb2..7ee3cbc7a4 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,127 +1,89 @@
            -/*
            - * Copyright 2024 Google LLC
            - *
            - * Licensed under the Apache License, Version 2.0 (the "License");
            - * you may not use this file except in compliance with the License.
            - * You may obtain a copy of the License at
            - *
            - *     https://www.apache.org/licenses/LICENSE-2.0
            - *
            - * Unless required by applicable law or agreed to in writing, software
            - * distributed under the License is distributed on an "AS IS" BASIS,
            - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            - * See the License for the specific language governing permissions and
            - * limitations under the License.
            - */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
             // Protobuf Java Version: 3.25.3
             package com.google.storage.v2;
             
            -public interface RewriteResponseOrBuilder
            -    extends
            +public interface RewriteResponseOrBuilder extends
                 // @@protoc_insertion_point(interface_extends:google.storage.v2.RewriteResponse)
                 com.google.protobuf.MessageOrBuilder {
             
               /**
            -   *
            -   *
                * 
                * The total bytes written so far, which can be used to provide a waiting user
                * with a progress indicator. This property is always present in the response.
                * 
            * * int64 total_bytes_rewritten = 1; - * * @return The totalBytesRewritten. */ long getTotalBytesRewritten(); /** - * - * *
                * The total size of the object being copied in bytes. This property is always
                * present in the response.
                * 
            * * int64 object_size = 2; - * * @return The objectSize. */ long getObjectSize(); /** - * - * *
                * `true` if the copy is finished; otherwise, `false` if
                * the copy is in progress. This property is always present in the response.
                * 
            * * bool done = 3; - * * @return The done. */ boolean getDone(); /** - * - * *
                * A token to use in subsequent requests to continue copying data. This token
                * is present in the response only when there is more data to copy.
                * 
            * * string rewrite_token = 4; - * * @return The rewriteToken. */ java.lang.String getRewriteToken(); /** - * - * *
                * A token to use in subsequent requests to continue copying data. This token
                * is present in the response only when there is more data to copy.
                * 
            * * string rewrite_token = 4; - * * @return The bytes for rewriteToken. */ - com.google.protobuf.ByteString getRewriteTokenBytes(); + com.google.protobuf.ByteString + getRewriteTokenBytes(); /** - * - * *
                * A resource containing the metadata for the copied-to object. This property
                * is present in the response only when copying completes.
                * 
            * * .google.storage.v2.Object resource = 5; - * * @return Whether the resource field is set. */ boolean hasResource(); /** - * - * *
                * A resource containing the metadata for the copied-to object. This property
                * is present in the response only when copying completes.
                * 
            * * .google.storage.v2.Object resource = 5; - * * @return The resource. */ com.google.storage.v2.Object getResource(); /** - * - * *
                * A resource containing the metadata for the copied-to object. This property
                * is present in the response only when copying completes.
            diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccount.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccount.java
            similarity index 66%
            rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccount.java
            rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccount.java
            index 775517f952..6bab9ebeec 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,18 +1,3 @@
            -/*
            - * Copyright 2024 Google LLC
            - *
            - * Licensed under the Apache License, Version 2.0 (the "License");
            - * you may not use this file except in compliance with the License.
            - * You may obtain a copy of the License at
            - *
            - *     https://www.apache.org/licenses/LICENSE-2.0
            - *
            - * Unless required by applicable law or agreed to in writing, software
            - * distributed under the License is distributed on an "AS IS" BASIS,
            - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            - * See the License for the specific language governing permissions and
            - * limitations under the License.
            - */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
            @@ -20,8 +5,6 @@
             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
            @@ -30,54 +13,48 @@
              *
              * Protobuf type {@code google.storage.v2.ServiceAccount}
              */
            -public final class ServiceAccount extends com.google.protobuf.GeneratedMessageV3
            -    implements
            +public final class ServiceAccount extends
            +    com.google.protobuf.GeneratedMessageV3 implements
                 // @@protoc_insertion_point(message_implements:google.storage.v2.ServiceAccount)
                 ServiceAccountOrBuilder {
            -  private static final long serialVersionUID = 0L;
            +private static final long serialVersionUID = 0L;
               // Use ServiceAccount.newBuilder() to construct.
               private ServiceAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                 super(builder);
               }
            -
               private ServiceAccount() {
                 emailAddress_ = "";
               }
             
               @java.lang.Override
               @SuppressWarnings({"unused"})
            -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
            +  protected java.lang.Object newInstance(
            +      UnusedPrivateParameter unused) {
                 return new ServiceAccount();
               }
             
            -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            -    return com.google.storage.v2.StorageProto
            -        .internal_static_google_storage_v2_ServiceAccount_descriptor;
            +  public static final com.google.protobuf.Descriptors.Descriptor
            +      getDescriptor() {
            +    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ServiceAccount_descriptor;
               }
             
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
            -    return com.google.storage.v2.StorageProto
            -        .internal_static_google_storage_v2_ServiceAccount_fieldAccessorTable
            +    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ServiceAccount_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
            -            com.google.storage.v2.ServiceAccount.class,
            -            com.google.storage.v2.ServiceAccount.Builder.class);
            +            com.google.storage.v2.ServiceAccount.class, com.google.storage.v2.ServiceAccount.Builder.class);
               }
             
               public static final int EMAIL_ADDRESS_FIELD_NUMBER = 1;
            -
               @SuppressWarnings("serial")
               private volatile java.lang.Object emailAddress_ = "";
               /**
            -   *
            -   *
                * 
                * The ID of the notification.
                * 
            * * string email_address = 1; - * * @return The emailAddress. */ @java.lang.Override @@ -86,29 +63,29 @@ public java.lang.String getEmailAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); emailAddress_ = s; return s; } } /** - * - * *
                * The ID of the notification.
                * 
            * * string email_address = 1; - * * @return The bytes for emailAddress. */ @java.lang.Override - public com.google.protobuf.ByteString getEmailAddressBytes() { + public com.google.protobuf.ByteString + getEmailAddressBytes() { java.lang.Object ref = emailAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); emailAddress_ = b; return b; } else { @@ -117,7 +94,6 @@ public com.google.protobuf.ByteString getEmailAddressBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -129,7 +105,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(emailAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, emailAddress_); } @@ -153,14 +130,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.ServiceAccount)) { return super.equals(obj); } com.google.storage.v2.ServiceAccount other = (com.google.storage.v2.ServiceAccount) obj; - if (!getEmailAddress().equals(other.getEmailAddress())) return false; + if (!getEmailAddress() + .equals(other.getEmailAddress())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -179,103 +157,99 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.ServiceAccount parseFrom(java.nio.ByteBuffer data) + public static com.google.storage.v2.ServiceAccount parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ServiceAccount parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.v2.ServiceAccount parseFrom(com.google.protobuf.ByteString data) + public static com.google.storage.v2.ServiceAccount parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ServiceAccount parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.ServiceAccount parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.ServiceAccount parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.ServiceAccount parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.ServiceAccount parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } public static com.google.storage.v2.ServiceAccount parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.ServiceAccount parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.ServiceAccount parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.ServiceAccount parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.ServiceAccount prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * A service account, owned by Cloud Storage, which may be used when taking
                * action on behalf of a given project, for example to publish Pub/Sub
            @@ -284,32 +258,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
                *
                * Protobuf type {@code google.storage.v2.ServiceAccount}
                */
            -  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
            -      implements
            +  public static final class Builder extends
            +      com.google.protobuf.GeneratedMessageV3.Builder implements
                   // @@protoc_insertion_point(builder_implements:google.storage.v2.ServiceAccount)
                   com.google.storage.v2.ServiceAccountOrBuilder {
            -    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            -      return com.google.storage.v2.StorageProto
            -          .internal_static_google_storage_v2_ServiceAccount_descriptor;
            +    public static final com.google.protobuf.Descriptors.Descriptor
            +        getDescriptor() {
            +      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ServiceAccount_descriptor;
                 }
             
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
            -      return com.google.storage.v2.StorageProto
            -          .internal_static_google_storage_v2_ServiceAccount_fieldAccessorTable
            +      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ServiceAccount_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
            -              com.google.storage.v2.ServiceAccount.class,
            -              com.google.storage.v2.ServiceAccount.Builder.class);
            +              com.google.storage.v2.ServiceAccount.class, com.google.storage.v2.ServiceAccount.Builder.class);
                 }
             
                 // Construct using com.google.storage.v2.ServiceAccount.newBuilder()
            -    private Builder() {}
            +    private Builder() {
             
            -    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            -      super(parent);
                 }
             
            +    private Builder(
            +        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            +      super(parent);
            +
            +    }
                 @java.lang.Override
                 public Builder clear() {
                   super.clear();
            @@ -319,9 +294,9 @@ public Builder clear() {
                 }
             
                 @java.lang.Override
            -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            -      return com.google.storage.v2.StorageProto
            -          .internal_static_google_storage_v2_ServiceAccount_descriptor;
            +    public com.google.protobuf.Descriptors.Descriptor
            +        getDescriptorForType() {
            +      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ServiceAccount_descriptor;
                 }
             
                 @java.lang.Override
            @@ -341,9 +316,7 @@ public com.google.storage.v2.ServiceAccount build() {
                 @java.lang.Override
                 public com.google.storage.v2.ServiceAccount buildPartial() {
                   com.google.storage.v2.ServiceAccount result = new com.google.storage.v2.ServiceAccount(this);
            -      if (bitField0_ != 0) {
            -        buildPartial0(result);
            -      }
            +      if (bitField0_ != 0) { buildPartial0(result); }
                   onBuilt();
                   return result;
                 }
            @@ -359,39 +332,38 @@ private void buildPartial0(com.google.storage.v2.ServiceAccount result) {
                 public Builder clone() {
                   return super.clone();
                 }
            -
                 @java.lang.Override
                 public Builder setField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field,
            +        java.lang.Object value) {
                   return super.setField(field, value);
                 }
            -
                 @java.lang.Override
            -    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
            +    public Builder clearField(
            +        com.google.protobuf.Descriptors.FieldDescriptor field) {
                   return super.clearField(field);
                 }
            -
                 @java.lang.Override
            -    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
            +    public Builder clearOneof(
            +        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                   return super.clearOneof(oneof);
                 }
            -
                 @java.lang.Override
                 public Builder setRepeatedField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field,
            +        int index, java.lang.Object value) {
                   return super.setRepeatedField(field, index, value);
                 }
            -
                 @java.lang.Override
                 public Builder addRepeatedField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field,
            +        java.lang.Object value) {
                   return super.addRepeatedField(field, value);
                 }
            -
                 @java.lang.Override
                 public Builder mergeFrom(com.google.protobuf.Message other) {
                   if (other instanceof com.google.storage.v2.ServiceAccount) {
            -        return mergeFrom((com.google.storage.v2.ServiceAccount) other);
            +        return mergeFrom((com.google.storage.v2.ServiceAccount)other);
                   } else {
                     super.mergeFrom(other);
                     return this;
            @@ -431,19 +403,17 @@ public Builder mergeFrom(
                         case 0:
                           done = true;
                           break;
            -            case 10:
            -              {
            -                emailAddress_ = input.readStringRequireUtf8();
            -                bitField0_ |= 0x00000001;
            -                break;
            -              } // case 10
            -            default:
            -              {
            -                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            -                  done = true; // was an endgroup tag
            -                }
            -                break;
            -              } // default:
            +            case 10: {
            +              emailAddress_ = input.readStringRequireUtf8();
            +              bitField0_ |= 0x00000001;
            +              break;
            +            } // case 10
            +            default: {
            +              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            +                done = true; // was an endgroup tag
            +              }
            +              break;
            +            } // default:
                       } // switch (tag)
                     } // while (!done)
                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            @@ -453,25 +423,22 @@ public Builder mergeFrom(
                   } // finally
                   return this;
                 }
            -
                 private int bitField0_;
             
                 private java.lang.Object emailAddress_ = "";
                 /**
            -     *
            -     *
                  * 
                  * The ID of the notification.
                  * 
            * * string email_address = 1; - * * @return The emailAddress. */ public java.lang.String getEmailAddress() { java.lang.Object ref = emailAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); emailAddress_ = s; return s; @@ -480,21 +447,20 @@ public java.lang.String getEmailAddress() { } } /** - * - * *
                  * The ID of the notification.
                  * 
            * * string email_address = 1; - * * @return The bytes for emailAddress. */ - public com.google.protobuf.ByteString getEmailAddressBytes() { + public com.google.protobuf.ByteString + getEmailAddressBytes() { java.lang.Object ref = emailAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); emailAddress_ = b; return b; } else { @@ -502,35 +468,28 @@ public com.google.protobuf.ByteString getEmailAddressBytes() { } } /** - * - * *
                  * The ID of the notification.
                  * 
            * * string email_address = 1; - * * @param value The emailAddress to set. * @return This builder for chaining. */ - public Builder setEmailAddress(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEmailAddress( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } emailAddress_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * The ID of the notification.
                  * 
            * * string email_address = 1; - * * @return This builder for chaining. */ public Builder clearEmailAddress() { @@ -540,30 +499,26 @@ public Builder clearEmailAddress() { return this; } /** - * - * *
                  * The ID of the notification.
                  * 
            * * string email_address = 1; - * * @param value The bytes for emailAddress to set. * @return This builder for chaining. */ - public Builder setEmailAddressBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEmailAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); emailAddress_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -573,12 +528,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.ServiceAccount) } // @@protoc_insertion_point(class_scope:google.storage.v2.ServiceAccount) private static final com.google.storage.v2.ServiceAccount DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.ServiceAccount(); } @@ -587,27 +542,27 @@ public static com.google.storage.v2.ServiceAccount getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ServiceAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceAccount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -622,4 +577,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.ServiceAccount getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccountOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccountOrBuilder.java new file mode 100644 index 0000000000..81adfb42cf --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccountOrBuilder.java @@ -0,0 +1,30 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/storage/v2/storage.proto + +// Protobuf Java Version: 3.25.3 +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 ebe87b2582..341dc7c9ba 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,60 +5,54 @@ package com.google.storage.v2; /** - * - * *
              * Shared constants.
              * 
            * * Protobuf type {@code google.storage.v2.ServiceConstants} */ -public final class ServiceConstants extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ServiceConstants extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.ServiceConstants) ServiceConstantsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ServiceConstants.newBuilder() to construct. private ServiceConstants(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ServiceConstants() {} + private ServiceConstants() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ServiceConstants(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ServiceConstants_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ServiceConstants_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ServiceConstants_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ServiceConstants_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ServiceConstants.class, - com.google.storage.v2.ServiceConstants.Builder.class); + com.google.storage.v2.ServiceConstants.class, com.google.storage.v2.ServiceConstants.Builder.class); } /** - * - * *
                * A collection of constant values meaningful to the Storage API.
                * 
            * * Protobuf enum {@code google.storage.v2.ServiceConstants.Values} */ - public enum Values implements com.google.protobuf.ProtocolMessageEnum { + public enum Values + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
                  * Unused. Proto3 requires first enum to be 0.
                  * 
            @@ -82,8 +61,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum { */ VALUES_UNSPECIFIED(0, 0), /** - * - * *
                  * The maximum size chunk that can will be returned in a single
                  * ReadRequest.
            @@ -94,8 +71,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
                  */
                 MAX_READ_CHUNK_BYTES(1, 2097152),
                 /**
            -     *
            -     *
                  * 
                  * The maximum size of an object in MB - whether written in a single stream
                  * or composed from multiple other objects.
            @@ -106,8 +81,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
                  */
                 MAX_OBJECT_SIZE_MB(3, 5242880),
                 /**
            -     *
            -     *
                  * 
                  * The maximum length field name that can be sent in a single
                  * custom metadata field.
            @@ -118,8 +91,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
                  */
                 MAX_CUSTOM_METADATA_FIELD_NAME_BYTES(4, 1024),
                 /**
            -     *
            -     *
                  * 
                  * The maximum length field value that can be sent in a single
                  * custom_metadata field.
            @@ -130,8 +101,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
                  */
                 MAX_CUSTOM_METADATA_FIELD_VALUE_BYTES(5, 4096),
                 /**
            -     *
            -     *
                  * 
                  * The maximum total bytes that can be populated into all field names and
                  * values of the custom_metadata for one object.
            @@ -142,8 +111,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
                  */
                 MAX_CUSTOM_METADATA_TOTAL_SIZE_BYTES(6, 8192),
                 /**
            -     *
            -     *
                  * 
                  * The maximum total bytes that can be populated into all bucket metadata
                  * fields.
            @@ -154,8 +121,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
                  */
                 MAX_BUCKET_METADATA_TOTAL_SIZE_BYTES(7, 20480),
                 /**
            -     *
            -     *
                  * 
                  * The maximum number of NotificationConfigs that can be registered
                  * for a given bucket.
            @@ -165,8 +130,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
                  */
                 MAX_NOTIFICATION_CONFIGS_PER_BUCKET(8, 100),
                 /**
            -     *
            -     *
                  * 
                  * The maximum number of custom attributes per NotificationConfigs.
                  * 
            @@ -175,8 +138,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum { */ MAX_NOTIFICATION_CUSTOM_ATTRIBUTES(10, 5), /** - * - * *
                  * The maximum length of a custom attribute key included in
                  * NotificationConfig.
            @@ -186,8 +147,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
                  */
                 MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_KEY_LENGTH(11, 256),
                 /**
            -     *
            -     *
                  * 
                  * The maximum number of key/value entries per bucket label.
                  * 
            @@ -196,8 +155,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum { */ MAX_LABELS_ENTRIES_COUNT(13, 64), /** - * - * *
                  * The maximum character length of the key or value in a bucket
                  * label map.
            @@ -207,8 +164,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
                  */
                 MAX_LABELS_KEY_VALUE_LENGTH(14, 63),
                 /**
            -     *
            -     *
                  * 
                  * The maximum byte size of the key or value in a bucket label
                  * map.
            @@ -218,8 +173,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
                  */
                 MAX_LABELS_KEY_VALUE_BYTES(15, 128),
                 /**
            -     *
            -     *
                  * 
                  * The maximum number of object IDs that can be included in a
                  * DeleteObjectsRequest.
            @@ -229,8 +182,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
                  */
                 MAX_OBJECT_IDS_PER_DELETE_OBJECTS_REQUEST(16, 1000),
                 /**
            -     *
            -     *
                  * 
                  * The maximum number of days for which a token returned by the
                  * GetListObjectsSplitPoints RPC is valid.
            @@ -243,8 +194,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
                 ;
             
                 /**
            -     *
            -     *
                  * 
                  * The maximum size chunk that can be sent in a single WriteObjectRequest.
                  * 2 MiB.
            @@ -254,8 +203,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
                  */
                 public static final Values MAX_WRITE_CHUNK_BYTES = MAX_READ_CHUNK_BYTES;
                 /**
            -     *
            -     *
                  * 
                  * The maximum number of LifecycleRules that can be registered for a given
                  * bucket.
            @@ -265,8 +212,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
                  */
                 public static final Values MAX_LIFECYCLE_RULES_PER_BUCKET = MAX_NOTIFICATION_CONFIGS_PER_BUCKET;
                 /**
            -     *
            -     *
                  * 
                  * The maximum length of a custom attribute value included in a
                  * NotificationConfig.
            @@ -274,11 +219,8 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
                  *
                  * MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_VALUE_LENGTH = 1024;
                  */
            -    public static final Values MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_VALUE_LENGTH =
            -        MAX_CUSTOM_METADATA_FIELD_NAME_BYTES;
            +    public static final Values MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_VALUE_LENGTH = MAX_CUSTOM_METADATA_FIELD_NAME_BYTES;
                 /**
            -     *
            -     *
                  * 
                  * Unused. Proto3 requires first enum to be 0.
                  * 
            @@ -287,8 +229,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VALUES_UNSPECIFIED_VALUE = 0; /** - * - * *
                  * The maximum size chunk that can will be returned in a single
                  * ReadRequest.
            @@ -299,8 +239,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
                  */
                 public static final int MAX_READ_CHUNK_BYTES_VALUE = 2097152;
                 /**
            -     *
            -     *
                  * 
                  * The maximum size chunk that can be sent in a single WriteObjectRequest.
                  * 2 MiB.
            @@ -310,8 +248,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
                  */
                 public static final int MAX_WRITE_CHUNK_BYTES_VALUE = 2097152;
                 /**
            -     *
            -     *
                  * 
                  * The maximum size of an object in MB - whether written in a single stream
                  * or composed from multiple other objects.
            @@ -322,8 +258,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
                  */
                 public static final int MAX_OBJECT_SIZE_MB_VALUE = 5242880;
                 /**
            -     *
            -     *
                  * 
                  * The maximum length field name that can be sent in a single
                  * custom metadata field.
            @@ -334,8 +268,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
                  */
                 public static final int MAX_CUSTOM_METADATA_FIELD_NAME_BYTES_VALUE = 1024;
                 /**
            -     *
            -     *
                  * 
                  * The maximum length field value that can be sent in a single
                  * custom_metadata field.
            @@ -346,8 +278,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
                  */
                 public static final int MAX_CUSTOM_METADATA_FIELD_VALUE_BYTES_VALUE = 4096;
                 /**
            -     *
            -     *
                  * 
                  * The maximum total bytes that can be populated into all field names and
                  * values of the custom_metadata for one object.
            @@ -358,8 +288,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
                  */
                 public static final int MAX_CUSTOM_METADATA_TOTAL_SIZE_BYTES_VALUE = 8192;
                 /**
            -     *
            -     *
                  * 
                  * The maximum total bytes that can be populated into all bucket metadata
                  * fields.
            @@ -370,8 +298,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
                  */
                 public static final int MAX_BUCKET_METADATA_TOTAL_SIZE_BYTES_VALUE = 20480;
                 /**
            -     *
            -     *
                  * 
                  * The maximum number of NotificationConfigs that can be registered
                  * for a given bucket.
            @@ -381,8 +307,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
                  */
                 public static final int MAX_NOTIFICATION_CONFIGS_PER_BUCKET_VALUE = 100;
                 /**
            -     *
            -     *
                  * 
                  * The maximum number of LifecycleRules that can be registered for a given
                  * bucket.
            @@ -392,8 +316,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
                  */
                 public static final int MAX_LIFECYCLE_RULES_PER_BUCKET_VALUE = 100;
                 /**
            -     *
            -     *
                  * 
                  * The maximum number of custom attributes per NotificationConfigs.
                  * 
            @@ -402,8 +324,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MAX_NOTIFICATION_CUSTOM_ATTRIBUTES_VALUE = 5; /** - * - * *
                  * The maximum length of a custom attribute key included in
                  * NotificationConfig.
            @@ -413,8 +333,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
                  */
                 public static final int MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_KEY_LENGTH_VALUE = 256;
                 /**
            -     *
            -     *
                  * 
                  * The maximum length of a custom attribute value included in a
                  * NotificationConfig.
            @@ -424,8 +342,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
                  */
                 public static final int MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_VALUE_LENGTH_VALUE = 1024;
                 /**
            -     *
            -     *
                  * 
                  * The maximum number of key/value entries per bucket label.
                  * 
            @@ -434,8 +350,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MAX_LABELS_ENTRIES_COUNT_VALUE = 64; /** - * - * *
                  * The maximum character length of the key or value in a bucket
                  * label map.
            @@ -445,8 +359,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
                  */
                 public static final int MAX_LABELS_KEY_VALUE_LENGTH_VALUE = 63;
                 /**
            -     *
            -     *
                  * 
                  * The maximum byte size of the key or value in a bucket label
                  * map.
            @@ -456,8 +368,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
                  */
                 public static final int MAX_LABELS_KEY_VALUE_BYTES_VALUE = 128;
                 /**
            -     *
            -     *
                  * 
                  * The maximum number of object IDs that can be included in a
                  * DeleteObjectsRequest.
            @@ -467,8 +377,6 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
                  */
                 public static final int MAX_OBJECT_IDS_PER_DELETE_OBJECTS_REQUEST_VALUE = 1000;
                 /**
            -     *
            -     *
                  * 
                  * The maximum number of days for which a token returned by the
                  * GetListObjectsSplitPoints RPC is valid.
            @@ -478,6 +386,7 @@ public enum Values implements com.google.protobuf.ProtocolMessageEnum {
                  */
                 public static final int SPLIT_TOKEN_MAX_VALID_DAYS_VALUE = 14;
             
            +
                 public final int getNumber() {
                   if (index == -1) {
                     throw new java.lang.IllegalArgumentException(
            @@ -502,96 +411,65 @@ public static Values valueOf(int value) {
                  */
                 public static Values forNumber(int value) {
                   switch (value) {
            -        case 0:
            -          return VALUES_UNSPECIFIED;
            -        case 2097152:
            -          return MAX_READ_CHUNK_BYTES;
            -        case 5242880:
            -          return MAX_OBJECT_SIZE_MB;
            -        case 1024:
            -          return MAX_CUSTOM_METADATA_FIELD_NAME_BYTES;
            -        case 4096:
            -          return MAX_CUSTOM_METADATA_FIELD_VALUE_BYTES;
            -        case 8192:
            -          return MAX_CUSTOM_METADATA_TOTAL_SIZE_BYTES;
            -        case 20480:
            -          return MAX_BUCKET_METADATA_TOTAL_SIZE_BYTES;
            -        case 100:
            -          return MAX_NOTIFICATION_CONFIGS_PER_BUCKET;
            -        case 5:
            -          return MAX_NOTIFICATION_CUSTOM_ATTRIBUTES;
            -        case 256:
            -          return MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_KEY_LENGTH;
            -        case 64:
            -          return MAX_LABELS_ENTRIES_COUNT;
            -        case 63:
            -          return MAX_LABELS_KEY_VALUE_LENGTH;
            -        case 128:
            -          return MAX_LABELS_KEY_VALUE_BYTES;
            -        case 1000:
            -          return MAX_OBJECT_IDS_PER_DELETE_OBJECTS_REQUEST;
            -        case 14:
            -          return SPLIT_TOKEN_MAX_VALID_DAYS;
            -        default:
            -          return null;
            +        case 0: return VALUES_UNSPECIFIED;
            +        case 2097152: return MAX_READ_CHUNK_BYTES;
            +        case 5242880: return MAX_OBJECT_SIZE_MB;
            +        case 1024: return MAX_CUSTOM_METADATA_FIELD_NAME_BYTES;
            +        case 4096: return MAX_CUSTOM_METADATA_FIELD_VALUE_BYTES;
            +        case 8192: return MAX_CUSTOM_METADATA_TOTAL_SIZE_BYTES;
            +        case 20480: return MAX_BUCKET_METADATA_TOTAL_SIZE_BYTES;
            +        case 100: return MAX_NOTIFICATION_CONFIGS_PER_BUCKET;
            +        case 5: return MAX_NOTIFICATION_CUSTOM_ATTRIBUTES;
            +        case 256: return MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_KEY_LENGTH;
            +        case 64: return MAX_LABELS_ENTRIES_COUNT;
            +        case 63: return MAX_LABELS_KEY_VALUE_LENGTH;
            +        case 128: return MAX_LABELS_KEY_VALUE_BYTES;
            +        case 1000: return MAX_OBJECT_IDS_PER_DELETE_OBJECTS_REQUEST;
            +        case 14: return SPLIT_TOKEN_MAX_VALID_DAYS;
            +        default: return null;
                   }
                 }
             
            -    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
            +    public static com.google.protobuf.Internal.EnumLiteMap
            +        internalGetValueMap() {
                   return internalValueMap;
                 }
            +    private static final com.google.protobuf.Internal.EnumLiteMap<
            +        Values> internalValueMap =
            +          new com.google.protobuf.Internal.EnumLiteMap() {
            +            public Values findValueByNumber(int number) {
            +              return Values.forNumber(number);
            +            }
            +          };
             
            -    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
            -        new com.google.protobuf.Internal.EnumLiteMap() {
            -          public Values findValueByNumber(int number) {
            -            return Values.forNumber(number);
            -          }
            -        };
            -
            -    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
            +    public final com.google.protobuf.Descriptors.EnumValueDescriptor
            +        getValueDescriptor() {
                   if (index == -1) {
                     throw new java.lang.IllegalStateException(
                         "Can't get the descriptor of an unrecognized enum value.");
                   }
                   return getDescriptor().getValues().get(index);
                 }
            -
            -    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
            +    public final com.google.protobuf.Descriptors.EnumDescriptor
            +        getDescriptorForType() {
                   return getDescriptor();
                 }
            -
            -    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
            +    public static final com.google.protobuf.Descriptors.EnumDescriptor
            +        getDescriptor() {
                   return com.google.storage.v2.ServiceConstants.getDescriptor().getEnumTypes().get(0);
                 }
             
                 private static final Values[] VALUES = getStaticValuesArray();
            -
                 private static Values[] getStaticValuesArray() {
                   return new Values[] {
            -        VALUES_UNSPECIFIED,
            -        MAX_READ_CHUNK_BYTES,
            -        MAX_WRITE_CHUNK_BYTES,
            -        MAX_OBJECT_SIZE_MB,
            -        MAX_CUSTOM_METADATA_FIELD_NAME_BYTES,
            -        MAX_CUSTOM_METADATA_FIELD_VALUE_BYTES,
            -        MAX_CUSTOM_METADATA_TOTAL_SIZE_BYTES,
            -        MAX_BUCKET_METADATA_TOTAL_SIZE_BYTES,
            -        MAX_NOTIFICATION_CONFIGS_PER_BUCKET,
            -        MAX_LIFECYCLE_RULES_PER_BUCKET,
            -        MAX_NOTIFICATION_CUSTOM_ATTRIBUTES,
            -        MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_KEY_LENGTH,
            -        MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_VALUE_LENGTH,
            -        MAX_LABELS_ENTRIES_COUNT,
            -        MAX_LABELS_KEY_VALUE_LENGTH,
            -        MAX_LABELS_KEY_VALUE_BYTES,
            -        MAX_OBJECT_IDS_PER_DELETE_OBJECTS_REQUEST,
            -        SPLIT_TOKEN_MAX_VALID_DAYS,
            +      VALUES_UNSPECIFIED, MAX_READ_CHUNK_BYTES, MAX_WRITE_CHUNK_BYTES, MAX_OBJECT_SIZE_MB, MAX_CUSTOM_METADATA_FIELD_NAME_BYTES, MAX_CUSTOM_METADATA_FIELD_VALUE_BYTES, MAX_CUSTOM_METADATA_TOTAL_SIZE_BYTES, MAX_BUCKET_METADATA_TOTAL_SIZE_BYTES, MAX_NOTIFICATION_CONFIGS_PER_BUCKET, MAX_LIFECYCLE_RULES_PER_BUCKET, MAX_NOTIFICATION_CUSTOM_ATTRIBUTES, MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_KEY_LENGTH, MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_VALUE_LENGTH, MAX_LABELS_ENTRIES_COUNT, MAX_LABELS_KEY_VALUE_LENGTH, MAX_LABELS_KEY_VALUE_BYTES, MAX_OBJECT_IDS_PER_DELETE_OBJECTS_REQUEST, SPLIT_TOKEN_MAX_VALID_DAYS, 
                   };
                 }
            -
            -    public static Values valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
            +    public static Values valueOf(
            +        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
                   if (desc.getType() != getDescriptor()) {
            -        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
            +        throw new java.lang.IllegalArgumentException(
            +          "EnumValueDescriptor is not for this type.");
                   }
                   if (desc.getIndex() == -1) {
                     return UNRECOGNIZED;
            @@ -611,7 +489,6 @@ private Values(int index, int value) {
               }
             
               private byte memoizedIsInitialized = -1;
            -
               @java.lang.Override
               public final boolean isInitialized() {
                 byte isInitialized = memoizedIsInitialized;
            @@ -623,7 +500,8 @@ public final boolean isInitialized() {
               }
             
               @java.lang.Override
            -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
            +  public void writeTo(com.google.protobuf.CodedOutputStream output)
            +                      throws java.io.IOException {
                 getUnknownFields().writeTo(output);
               }
             
            @@ -641,7 +519,7 @@ public int getSerializedSize() {
               @java.lang.Override
               public boolean equals(final java.lang.Object obj) {
                 if (obj == this) {
            -      return true;
            +     return true;
                 }
                 if (!(obj instanceof com.google.storage.v2.ServiceConstants)) {
                   return super.equals(obj);
            @@ -664,136 +542,132 @@ public int hashCode() {
                 return hash;
               }
             
            -  public static com.google.storage.v2.ServiceConstants parseFrom(java.nio.ByteBuffer data)
            +  public static com.google.storage.v2.ServiceConstants parseFrom(
            +      java.nio.ByteBuffer data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
            -
               public static com.google.storage.v2.ServiceConstants parseFrom(
            -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      java.nio.ByteBuffer data,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
            -
               public static com.google.storage.v2.ServiceConstants parseFrom(
                   com.google.protobuf.ByteString data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
            -
               public static com.google.storage.v2.ServiceConstants parseFrom(
                   com.google.protobuf.ByteString data,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
            -
               public static com.google.storage.v2.ServiceConstants parseFrom(byte[] data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
            -
               public static com.google.storage.v2.ServiceConstants parseFrom(
            -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      byte[] data,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
            -
               public static com.google.storage.v2.ServiceConstants parseFrom(java.io.InputStream input)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input);
               }
            -
               public static com.google.storage.v2.ServiceConstants parseFrom(
            -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      java.io.InputStream input,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            -        PARSER, input, extensionRegistry);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input, extensionRegistry);
               }
             
               public static com.google.storage.v2.ServiceConstants parseDelimitedFrom(java.io.InputStream input)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseDelimitedWithIOException(PARSER, input);
               }
             
               public static com.google.storage.v2.ServiceConstants parseDelimitedFrom(
            -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      java.io.InputStream input,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            -        PARSER, input, extensionRegistry);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
               }
            -
               public static com.google.storage.v2.ServiceConstants parseFrom(
            -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
            +      com.google.protobuf.CodedInputStream input)
            +      throws java.io.IOException {
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input);
               }
            -
               public static com.google.storage.v2.ServiceConstants parseFrom(
                   com.google.protobuf.CodedInputStream input,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            -        PARSER, input, extensionRegistry);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input, extensionRegistry);
               }
             
               @java.lang.Override
            -  public Builder newBuilderForType() {
            -    return newBuilder();
            -  }
            -
            +  public Builder newBuilderForType() { return newBuilder(); }
               public static Builder newBuilder() {
                 return DEFAULT_INSTANCE.toBuilder();
               }
            -
               public static Builder newBuilder(com.google.storage.v2.ServiceConstants prototype) {
                 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
               }
            -
               @java.lang.Override
               public Builder toBuilder() {
            -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
            +    return this == DEFAULT_INSTANCE
            +        ? new Builder() : new Builder().mergeFrom(this);
               }
             
               @java.lang.Override
            -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            +  protected Builder newBuilderForType(
            +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 Builder builder = new Builder(parent);
                 return builder;
               }
               /**
            -   *
            -   *
                * 
                * Shared constants.
                * 
            * * Protobuf type {@code google.storage.v2.ServiceConstants} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.ServiceConstants) com.google.storage.v2.ServiceConstantsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ServiceConstants_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ServiceConstants_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ServiceConstants_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ServiceConstants_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ServiceConstants.class, - com.google.storage.v2.ServiceConstants.Builder.class); + com.google.storage.v2.ServiceConstants.class, com.google.storage.v2.ServiceConstants.Builder.class); } // Construct using com.google.storage.v2.ServiceConstants.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -801,9 +675,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_ServiceConstants_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ServiceConstants_descriptor; } @java.lang.Override @@ -822,8 +696,7 @@ public com.google.storage.v2.ServiceConstants build() { @java.lang.Override public com.google.storage.v2.ServiceConstants buildPartial() { - com.google.storage.v2.ServiceConstants result = - new com.google.storage.v2.ServiceConstants(this); + com.google.storage.v2.ServiceConstants result = new com.google.storage.v2.ServiceConstants(this); onBuilt(); return result; } @@ -832,39 +705,38 @@ public com.google.storage.v2.ServiceConstants buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.ServiceConstants) { - return mergeFrom((com.google.storage.v2.ServiceConstants) other); + return mergeFrom((com.google.storage.v2.ServiceConstants)other); } else { super.mergeFrom(other); return this; @@ -899,13 +771,12 @@ public Builder mergeFrom( case 0: done = true; break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -915,9 +786,9 @@ public Builder mergeFrom( } // finally return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -927,12 +798,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.ServiceConstants) } // @@protoc_insertion_point(class_scope:google.storage.v2.ServiceConstants) private static final com.google.storage.v2.ServiceConstants DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.ServiceConstants(); } @@ -941,27 +812,27 @@ public static com.google.storage.v2.ServiceConstants getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ServiceConstants parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceConstants parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -976,4 +847,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.ServiceConstants getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstantsOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstantsOrBuilder.java new file mode 100644 index 0000000000..6ac03fa94b --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstantsOrBuilder.java @@ -0,0 +1,10 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/storage/v2/storage.proto + +// Protobuf Java Version: 3.25.3 +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 626db2a07d..36e31694a0 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,62 +5,54 @@ package com.google.storage.v2; /** - * - * *
              * Request message StartResumableWrite.
              * 
            * * Protobuf type {@code google.storage.v2.StartResumableWriteRequest} */ -public final class StartResumableWriteRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StartResumableWriteRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.StartResumableWriteRequest) StartResumableWriteRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StartResumableWriteRequest.newBuilder() to construct. private StartResumableWriteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private StartResumableWriteRequest() {} + private StartResumableWriteRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StartResumableWriteRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_StartResumableWriteRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_StartResumableWriteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_StartResumableWriteRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_StartResumableWriteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.StartResumableWriteRequest.class, - com.google.storage.v2.StartResumableWriteRequest.Builder.class); + com.google.storage.v2.StartResumableWriteRequest.class, com.google.storage.v2.StartResumableWriteRequest.Builder.class); } private int bitField0_; public static final int WRITE_OBJECT_SPEC_FIELD_NUMBER = 1; private com.google.storage.v2.WriteObjectSpec writeObjectSpec_; /** - * - * *
                * Required. The destination bucket, object, and metadata, as well as any
                * preconditions.
                * 
            * - * - * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the writeObjectSpec field is set. */ @java.lang.Override @@ -83,55 +60,39 @@ 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. */ @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 @@ -139,25 +100,18 @@ 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. */ @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.
                * 
            @@ -165,18 +119,13 @@ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestPar * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 3; */ @java.lang.Override - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } public static final int OBJECT_CHECKSUMS_FIELD_NUMBER = 5; private com.google.storage.v2.ObjectChecksums objectChecksums_; /** - * - * *
                * The checksums of the complete object. This will be used to validate the
                * uploaded object. For each upload, object_checksums can be provided with
            @@ -185,7 +134,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 @@ -193,8 +141,6 @@ 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
            @@ -203,18 +149,13 @@ public boolean hasObjectChecksums() {
                * 
            * * .google.storage.v2.ObjectChecksums object_checksums = 5; - * * @return The objectChecksums. */ @java.lang.Override public com.google.storage.v2.ObjectChecksums getObjectChecksums() { - return objectChecksums_ == null - ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() - : objectChecksums_; + return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_; } /** - * - * *
                * The checksums of the complete object. This will be used to validate the
                * uploaded object. For each upload, object_checksums can be provided with
            @@ -226,13 +167,10 @@ public com.google.storage.v2.ObjectChecksums getObjectChecksums() {
                */
               @java.lang.Override
               public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilder() {
            -    return objectChecksums_ == null
            -        ? com.google.storage.v2.ObjectChecksums.getDefaultInstance()
            -        : objectChecksums_;
            +    return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_;
               }
             
               private byte memoizedIsInitialized = -1;
            -
               @java.lang.Override
               public final boolean isInitialized() {
                 byte isInitialized = memoizedIsInitialized;
            @@ -244,7 +182,8 @@ public final boolean isInitialized() {
               }
             
               @java.lang.Override
            -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
            +  public void writeTo(com.google.protobuf.CodedOutputStream output)
            +                      throws java.io.IOException {
                 if (((bitField0_ & 0x00000001) != 0)) {
                   output.writeMessage(1, getWriteObjectSpec());
                 }
            @@ -264,15 +203,16 @@ public int getSerializedSize() {
             
                 size = 0;
                 if (((bitField0_ & 0x00000001) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWriteObjectSpec());
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeMessageSize(1, getWriteObjectSpec());
                 }
                 if (((bitField0_ & 0x00000002) != 0)) {
            -      size +=
            -          com.google.protobuf.CodedOutputStream.computeMessageSize(
            -              3, getCommonObjectRequestParams());
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeMessageSize(3, getCommonObjectRequestParams());
                 }
                 if (((bitField0_ & 0x00000004) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getObjectChecksums());
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeMessageSize(5, getObjectChecksums());
                 }
                 size += getUnknownFields().getSerializedSize();
                 memoizedSize = size;
            @@ -282,26 +222,27 @@ public int getSerializedSize() {
               @java.lang.Override
               public boolean equals(final java.lang.Object obj) {
                 if (obj == this) {
            -      return true;
            +     return true;
                 }
                 if (!(obj instanceof com.google.storage.v2.StartResumableWriteRequest)) {
                   return super.equals(obj);
                 }
            -    com.google.storage.v2.StartResumableWriteRequest other =
            -        (com.google.storage.v2.StartResumableWriteRequest) obj;
            +    com.google.storage.v2.StartResumableWriteRequest other = (com.google.storage.v2.StartResumableWriteRequest) obj;
             
                 if (hasWriteObjectSpec() != other.hasWriteObjectSpec()) return false;
                 if (hasWriteObjectSpec()) {
            -      if (!getWriteObjectSpec().equals(other.getWriteObjectSpec())) return false;
            +      if (!getWriteObjectSpec()
            +          .equals(other.getWriteObjectSpec())) return false;
                 }
                 if (hasCommonObjectRequestParams() != other.hasCommonObjectRequestParams()) return false;
                 if (hasCommonObjectRequestParams()) {
            -      if (!getCommonObjectRequestParams().equals(other.getCommonObjectRequestParams()))
            -        return false;
            +      if (!getCommonObjectRequestParams()
            +          .equals(other.getCommonObjectRequestParams())) return false;
                 }
                 if (hasObjectChecksums() != other.hasObjectChecksums()) return false;
                 if (hasObjectChecksums()) {
            -      if (!getObjectChecksums().equals(other.getObjectChecksums())) return false;
            +      if (!getObjectChecksums()
            +          .equals(other.getObjectChecksums())) return false;
                 }
                 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
                 return true;
            @@ -331,127 +272,120 @@ 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() @@ -459,19 +393,19 @@ 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) { getWriteObjectSpecFieldBuilder(); getCommonObjectRequestParamsFieldBuilder(); getObjectChecksumsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -495,9 +429,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_StartResumableWriteRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_StartResumableWriteRequest_descriptor; } @java.lang.Override @@ -516,11 +450,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; } @@ -529,20 +460,21 @@ private void buildPartial0(com.google.storage.v2.StartResumableWriteRequest resu int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.writeObjectSpec_ = - writeObjectSpecBuilder_ == null ? writeObjectSpec_ : writeObjectSpecBuilder_.build(); + result.writeObjectSpec_ = writeObjectSpecBuilder_ == null + ? writeObjectSpec_ + : writeObjectSpecBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.commonObjectRequestParams_ = - commonObjectRequestParamsBuilder_ == null - ? commonObjectRequestParams_ - : commonObjectRequestParamsBuilder_.build(); + result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null + ? commonObjectRequestParams_ + : commonObjectRequestParamsBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.objectChecksums_ = - objectChecksumsBuilder_ == null ? objectChecksums_ : objectChecksumsBuilder_.build(); + result.objectChecksums_ = objectChecksumsBuilder_ == null + ? objectChecksums_ + : objectChecksumsBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; @@ -552,39 +484,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; @@ -592,8 +523,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.v2.StartResumableWriteRequest other) { - if (other == com.google.storage.v2.StartResumableWriteRequest.getDefaultInstance()) - return this; + if (other == com.google.storage.v2.StartResumableWriteRequest.getDefaultInstance()) return this; if (other.hasWriteObjectSpec()) { mergeWriteObjectSpec(other.getWriteObjectSpec()); } @@ -629,32 +559,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getWriteObjectSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: - { - input.readMessage( - getCommonObjectRequestParamsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 42: - { - input.readMessage(getObjectChecksumsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getWriteObjectSpecFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: { + input.readMessage( + getCommonObjectRequestParamsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 42: { + input.readMessage( + getObjectChecksumsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -664,66 +595,46 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.storage.v2.WriteObjectSpec writeObjectSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.WriteObjectSpec, - com.google.storage.v2.WriteObjectSpec.Builder, - com.google.storage.v2.WriteObjectSpecOrBuilder> - writeObjectSpecBuilder_; + com.google.storage.v2.WriteObjectSpec, com.google.storage.v2.WriteObjectSpec.Builder, com.google.storage.v2.WriteObjectSpecOrBuilder> writeObjectSpecBuilder_; /** - * - * *
                  * Required. The destination bucket, object, and metadata, as well as any
                  * preconditions.
                  * 
            * - * - * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the writeObjectSpec field is set. */ public boolean hasWriteObjectSpec() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                  * Required. The destination bucket, object, and metadata, as well as any
                  * preconditions.
                  * 
            * - * - * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The writeObjectSpec. */ public com.google.storage.v2.WriteObjectSpec getWriteObjectSpec() { if (writeObjectSpecBuilder_ == null) { - return writeObjectSpec_ == null - ? com.google.storage.v2.WriteObjectSpec.getDefaultInstance() - : writeObjectSpec_; + return writeObjectSpec_ == null ? com.google.storage.v2.WriteObjectSpec.getDefaultInstance() : writeObjectSpec_; } else { return writeObjectSpecBuilder_.getMessage(); } } /** - * - * *
                  * Required. The destination bucket, object, and metadata, as well as any
                  * preconditions.
                  * 
            * - * - * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWriteObjectSpec(com.google.storage.v2.WriteObjectSpec value) { if (writeObjectSpecBuilder_ == null) { @@ -739,16 +650,12 @@ public Builder setWriteObjectSpec(com.google.storage.v2.WriteObjectSpec value) { return this; } /** - * - * *
                  * Required. The destination bucket, object, and metadata, as well as any
                  * preconditions.
                  * 
            * - * - * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWriteObjectSpec( com.google.storage.v2.WriteObjectSpec.Builder builderForValue) { @@ -762,22 +669,18 @@ public Builder setWriteObjectSpec( return this; } /** - * - * *
                  * Required. The destination bucket, object, and metadata, as well as any
                  * preconditions.
                  * 
            * - * - * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeWriteObjectSpec(com.google.storage.v2.WriteObjectSpec value) { if (writeObjectSpecBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && writeObjectSpec_ != null - && writeObjectSpec_ != com.google.storage.v2.WriteObjectSpec.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + writeObjectSpec_ != null && + writeObjectSpec_ != com.google.storage.v2.WriteObjectSpec.getDefaultInstance()) { getWriteObjectSpecBuilder().mergeFrom(value); } else { writeObjectSpec_ = value; @@ -792,16 +695,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); @@ -814,16 +713,12 @@ public Builder clearWriteObjectSpec() { return this; } /** - * - * *
                  * Required. The destination bucket, object, and metadata, as well as any
                  * preconditions.
                  * 
            * - * - * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.storage.v2.WriteObjectSpec.Builder getWriteObjectSpecBuilder() { bitField0_ |= 0x00000001; @@ -831,50 +726,38 @@ public com.google.storage.v2.WriteObjectSpec.Builder getWriteObjectSpecBuilder() return getWriteObjectSpecFieldBuilder().getBuilder(); } /** - * - * *
                  * Required. The destination bucket, object, and metadata, as well as any
                  * preconditions.
                  * 
            * - * - * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilder() { if (writeObjectSpecBuilder_ != null) { return writeObjectSpecBuilder_.getMessageOrBuilder(); } else { - return writeObjectSpec_ == null - ? com.google.storage.v2.WriteObjectSpec.getDefaultInstance() - : writeObjectSpec_; + return writeObjectSpec_ == null ? + com.google.storage.v2.WriteObjectSpec.getDefaultInstance() : writeObjectSpec_; } } /** - * - * *
                  * Required. The destination bucket, object, and metadata, as well as any
                  * preconditions.
                  * 
            * - * - * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.WriteObjectSpec, - com.google.storage.v2.WriteObjectSpec.Builder, - com.google.storage.v2.WriteObjectSpecOrBuilder> + com.google.storage.v2.WriteObjectSpec, com.google.storage.v2.WriteObjectSpec.Builder, com.google.storage.v2.WriteObjectSpecOrBuilder> getWriteObjectSpecFieldBuilder() { if (writeObjectSpecBuilder_ == null) { - writeObjectSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.WriteObjectSpec, - com.google.storage.v2.WriteObjectSpec.Builder, - com.google.storage.v2.WriteObjectSpecOrBuilder>( - getWriteObjectSpec(), getParentForChildren(), isClean()); + writeObjectSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.WriteObjectSpec, com.google.storage.v2.WriteObjectSpec.Builder, com.google.storage.v2.WriteObjectSpecOrBuilder>( + getWriteObjectSpec(), + getParentForChildren(), + isClean()); writeObjectSpec_ = null; } return writeObjectSpecBuilder_; @@ -882,55 +765,41 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> - commonObjectRequestParamsBuilder_; + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> commonObjectRequestParamsBuilder_; /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 3; - * * @return Whether the commonObjectRequestParams field is set. */ public boolean hasCommonObjectRequestParams() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 3; - * * @return The commonObjectRequestParams. */ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { if (commonObjectRequestParamsBuilder_ == null) { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } else { return commonObjectRequestParamsBuilder_.getMessage(); } } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 3; */ - public Builder setCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -944,8 +813,6 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -964,21 +831,17 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 3; */ - public Builder mergeCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && commonObjectRequestParams_ != null - && commonObjectRequestParams_ - != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + commonObjectRequestParams_ != null && + commonObjectRequestParams_ != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { getCommonObjectRequestParamsBuilder().mergeFrom(value); } else { commonObjectRequestParams_ = value; @@ -993,8 +856,6 @@ public Builder mergeCommonObjectRequestParams( return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -1012,42 +873,33 @@ public Builder clearCommonObjectRequestParams() { return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 3; */ - public com.google.storage.v2.CommonObjectRequestParams.Builder - getCommonObjectRequestParamsBuilder() { + public com.google.storage.v2.CommonObjectRequestParams.Builder getCommonObjectRequestParamsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCommonObjectRequestParamsFieldBuilder().getBuilder(); } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 3; */ - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { if (commonObjectRequestParamsBuilder_ != null) { return commonObjectRequestParamsBuilder_.getMessageOrBuilder(); } else { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? + com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -1055,17 +907,14 @@ public Builder clearCommonObjectRequestParams() { * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> getCommonObjectRequestParamsFieldBuilder() { if (commonObjectRequestParamsBuilder_ == null) { - commonObjectRequestParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( - getCommonObjectRequestParams(), getParentForChildren(), isClean()); + commonObjectRequestParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( + getCommonObjectRequestParams(), + getParentForChildren(), + isClean()); commonObjectRequestParams_ = null; } return commonObjectRequestParamsBuilder_; @@ -1073,13 +922,8 @@ public Builder clearCommonObjectRequestParams() { private com.google.storage.v2.ObjectChecksums objectChecksums_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.ObjectChecksums, - com.google.storage.v2.ObjectChecksums.Builder, - com.google.storage.v2.ObjectChecksumsOrBuilder> - objectChecksumsBuilder_; + com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder> objectChecksumsBuilder_; /** - * - * *
                  * The checksums of the complete object. This will be used to validate the
                  * uploaded object. For each upload, object_checksums can be provided with
            @@ -1088,15 +932,12 @@ public Builder clearCommonObjectRequestParams() {
                  * 
            * * .google.storage.v2.ObjectChecksums object_checksums = 5; - * * @return Whether the objectChecksums field is set. */ public boolean hasObjectChecksums() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
                  * The checksums of the complete object. This will be used to validate the
                  * uploaded object. For each upload, object_checksums can be provided with
            @@ -1105,21 +946,16 @@ public boolean hasObjectChecksums() {
                  * 
            * * .google.storage.v2.ObjectChecksums object_checksums = 5; - * * @return The objectChecksums. */ public com.google.storage.v2.ObjectChecksums getObjectChecksums() { if (objectChecksumsBuilder_ == null) { - return objectChecksums_ == null - ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() - : objectChecksums_; + return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_; } else { return objectChecksumsBuilder_.getMessage(); } } /** - * - * *
                  * The checksums of the complete object. This will be used to validate the
                  * uploaded object. For each upload, object_checksums can be provided with
            @@ -1143,8 +979,6 @@ public Builder setObjectChecksums(com.google.storage.v2.ObjectChecksums value) {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * The checksums of the complete object. This will be used to validate the
                  * uploaded object. For each upload, object_checksums can be provided with
            @@ -1166,8 +1000,6 @@ public Builder setObjectChecksums(
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * The checksums of the complete object. This will be used to validate the
                  * uploaded object. For each upload, object_checksums can be provided with
            @@ -1179,9 +1011,9 @@ public Builder setObjectChecksums(
                  */
                 public Builder mergeObjectChecksums(com.google.storage.v2.ObjectChecksums value) {
                   if (objectChecksumsBuilder_ == null) {
            -        if (((bitField0_ & 0x00000004) != 0)
            -            && objectChecksums_ != null
            -            && objectChecksums_ != com.google.storage.v2.ObjectChecksums.getDefaultInstance()) {
            +        if (((bitField0_ & 0x00000004) != 0) &&
            +          objectChecksums_ != null &&
            +          objectChecksums_ != com.google.storage.v2.ObjectChecksums.getDefaultInstance()) {
                       getObjectChecksumsBuilder().mergeFrom(value);
                     } else {
                       objectChecksums_ = value;
            @@ -1196,8 +1028,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
            @@ -1218,8 +1048,6 @@ public Builder clearObjectChecksums() {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * The checksums of the complete object. This will be used to validate the
                  * uploaded object. For each upload, object_checksums can be provided with
            @@ -1235,8 +1063,6 @@ public com.google.storage.v2.ObjectChecksums.Builder getObjectChecksumsBuilder()
                   return getObjectChecksumsFieldBuilder().getBuilder();
                 }
                 /**
            -     *
            -     *
                  * 
                  * The checksums of the complete object. This will be used to validate the
                  * uploaded object. For each upload, object_checksums can be provided with
            @@ -1250,14 +1076,11 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
                   if (objectChecksumsBuilder_ != null) {
                     return objectChecksumsBuilder_.getMessageOrBuilder();
                   } else {
            -        return objectChecksums_ == null
            -            ? com.google.storage.v2.ObjectChecksums.getDefaultInstance()
            -            : objectChecksums_;
            +        return objectChecksums_ == null ?
            +            com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_;
                   }
                 }
                 /**
            -     *
            -     *
                  * 
                  * The checksums of the complete object. This will be used to validate the
                  * uploaded object. For each upload, object_checksums can be provided with
            @@ -1268,24 +1091,21 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
                  * .google.storage.v2.ObjectChecksums object_checksums = 5;
                  */
                 private com.google.protobuf.SingleFieldBuilderV3<
            -            com.google.storage.v2.ObjectChecksums,
            -            com.google.storage.v2.ObjectChecksums.Builder,
            -            com.google.storage.v2.ObjectChecksumsOrBuilder>
            +        com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder> 
                     getObjectChecksumsFieldBuilder() {
                   if (objectChecksumsBuilder_ == null) {
            -        objectChecksumsBuilder_ =
            -            new com.google.protobuf.SingleFieldBuilderV3<
            -                com.google.storage.v2.ObjectChecksums,
            -                com.google.storage.v2.ObjectChecksums.Builder,
            -                com.google.storage.v2.ObjectChecksumsOrBuilder>(
            -                getObjectChecksums(), getParentForChildren(), isClean());
            +        objectChecksumsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            +            com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder>(
            +                getObjectChecksums(),
            +                getParentForChildren(),
            +                isClean());
                     objectChecksums_ = null;
                   }
                   return objectChecksumsBuilder_;
                 }
            -
                 @java.lang.Override
            -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
            +    public final Builder setUnknownFields(
            +        final com.google.protobuf.UnknownFieldSet unknownFields) {
                   return super.setUnknownFields(unknownFields);
                 }
             
            @@ -1295,12 +1115,12 @@ public final Builder mergeUnknownFields(
                   return super.mergeUnknownFields(unknownFields);
                 }
             
            +
                 // @@protoc_insertion_point(builder_scope:google.storage.v2.StartResumableWriteRequest)
               }
             
               // @@protoc_insertion_point(class_scope:google.storage.v2.StartResumableWriteRequest)
               private static final com.google.storage.v2.StartResumableWriteRequest DEFAULT_INSTANCE;
            -
               static {
                 DEFAULT_INSTANCE = new com.google.storage.v2.StartResumableWriteRequest();
               }
            @@ -1309,27 +1129,27 @@ public static com.google.storage.v2.StartResumableWriteRequest getDefaultInstanc
                 return DEFAULT_INSTANCE;
               }
             
            -  private static final com.google.protobuf.Parser PARSER =
            -      new com.google.protobuf.AbstractParser() {
            -        @java.lang.Override
            -        public StartResumableWriteRequest parsePartialFrom(
            -            com.google.protobuf.CodedInputStream input,
            -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            -            throws com.google.protobuf.InvalidProtocolBufferException {
            -          Builder builder = newBuilder();
            -          try {
            -            builder.mergeFrom(input, extensionRegistry);
            -          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            -            throw e.setUnfinishedMessage(builder.buildPartial());
            -          } catch (com.google.protobuf.UninitializedMessageException e) {
            -            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
            -          } catch (java.io.IOException e) {
            -            throw new com.google.protobuf.InvalidProtocolBufferException(e)
            -                .setUnfinishedMessage(builder.buildPartial());
            -          }
            -          return builder.buildPartial();
            -        }
            -      };
            +  private static final com.google.protobuf.Parser
            +      PARSER = new com.google.protobuf.AbstractParser() {
            +    @java.lang.Override
            +    public StartResumableWriteRequest parsePartialFrom(
            +        com.google.protobuf.CodedInputStream input,
            +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +        throws com.google.protobuf.InvalidProtocolBufferException {
            +      Builder builder = newBuilder();
            +      try {
            +        builder.mergeFrom(input, extensionRegistry);
            +      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            +        throw e.setUnfinishedMessage(builder.buildPartial());
            +      } catch (com.google.protobuf.UninitializedMessageException e) {
            +        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
            +      } catch (java.io.IOException e) {
            +        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            +            .setUnfinishedMessage(builder.buildPartial());
            +      }
            +      return builder.buildPartial();
            +    }
            +  };
             
               public static com.google.protobuf.Parser parser() {
                 return PARSER;
            @@ -1344,4 +1164,6 @@ public com.google.protobuf.Parser getParserForType()
               public com.google.storage.v2.StartResumableWriteRequest getDefaultInstanceForType() {
                 return DEFAULT_INSTANCE;
               }
            +
             }
            +
            diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteRequestOrBuilder.java
            similarity index 74%
            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 1d1a842a25..1e1e4df8cb 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,100 +1,62 @@
            -/*
            - * Copyright 2024 Google LLC
            - *
            - * Licensed under the Apache License, Version 2.0 (the "License");
            - * you may not use this file except in compliance with the License.
            - * You may obtain a copy of the License at
            - *
            - *     https://www.apache.org/licenses/LICENSE-2.0
            - *
            - * Unless required by applicable law or agreed to in writing, software
            - * distributed under the License is distributed on an "AS IS" BASIS,
            - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            - * See the License for the specific language governing permissions and
            - * limitations under the License.
            - */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
             // Protobuf Java Version: 3.25.3
             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.
                * 
            @@ -104,8 +66,6 @@ public interface StartResumableWriteRequestOrBuilder com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder(); /** - * - * *
                * The checksums of the complete object. This will be used to validate the
                * uploaded object. For each upload, object_checksums can be provided with
            @@ -114,13 +74,10 @@ public interface StartResumableWriteRequestOrBuilder
                * 
            * * .google.storage.v2.ObjectChecksums object_checksums = 5; - * * @return Whether the objectChecksums field is set. */ boolean hasObjectChecksums(); /** - * - * *
                * The checksums of the complete object. This will be used to validate the
                * uploaded object. For each upload, object_checksums can be provided with
            @@ -129,13 +86,10 @@ public interface StartResumableWriteRequestOrBuilder
                * 
            * * .google.storage.v2.ObjectChecksums object_checksums = 5; - * * @return The objectChecksums. */ com.google.storage.v2.ObjectChecksums getObjectChecksums(); /** - * - * *
                * The checksums of the complete object. This will be used to validate the
                * uploaded object. For each upload, object_checksums can be provided with
            diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponse.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponse.java
            similarity index 66%
            rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponse.java
            rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponse.java
            index a1fda1a6ca..32cb25bc76 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,18 +1,3 @@
            -/*
            - * Copyright 2024 Google LLC
            - *
            - * Licensed under the Apache License, Version 2.0 (the "License");
            - * you may not use this file except in compliance with the License.
            - * You may obtain a copy of the License at
            - *
            - *     https://www.apache.org/licenses/LICENSE-2.0
            - *
            - * Unless required by applicable law or agreed to in writing, software
            - * distributed under the License is distributed on an "AS IS" BASIS,
            - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            - * See the License for the specific language governing permissions and
            - * limitations under the License.
            - */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
            @@ -20,63 +5,55 @@
             package com.google.storage.v2;
             
             /**
            - *
            - *
              * 
              * Response object for `StartResumableWrite`.
              * 
            * * Protobuf type {@code google.storage.v2.StartResumableWriteResponse} */ -public final class StartResumableWriteResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StartResumableWriteResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.StartResumableWriteResponse) StartResumableWriteResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StartResumableWriteResponse.newBuilder() to construct. private StartResumableWriteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StartResumableWriteResponse() { uploadId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StartResumableWriteResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_StartResumableWriteResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_StartResumableWriteResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_StartResumableWriteResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_StartResumableWriteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.StartResumableWriteResponse.class, - com.google.storage.v2.StartResumableWriteResponse.Builder.class); + com.google.storage.v2.StartResumableWriteResponse.class, com.google.storage.v2.StartResumableWriteResponse.Builder.class); } public static final int UPLOAD_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object uploadId_ = ""; /** - * - * *
                * The upload_id of the newly started resumable write operation. This
                * value should be copied into the `WriteObjectRequest.upload_id` field.
                * 
            * * string upload_id = 1; - * * @return The uploadId. */ @java.lang.Override @@ -85,30 +62,30 @@ public java.lang.String getUploadId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uploadId_ = s; return s; } } /** - * - * *
                * The upload_id of the newly started resumable write operation. This
                * value should be copied into the `WriteObjectRequest.upload_id` field.
                * 
            * * string upload_id = 1; - * * @return The bytes for uploadId. */ @java.lang.Override - public com.google.protobuf.ByteString getUploadIdBytes() { + public com.google.protobuf.ByteString + getUploadIdBytes() { java.lang.Object ref = uploadId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uploadId_ = b; return b; } else { @@ -117,7 +94,6 @@ public com.google.protobuf.ByteString getUploadIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -129,7 +105,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uploadId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uploadId_); } @@ -153,15 +130,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.StartResumableWriteResponse)) { return super.equals(obj); } - com.google.storage.v2.StartResumableWriteResponse other = - (com.google.storage.v2.StartResumableWriteResponse) obj; + com.google.storage.v2.StartResumableWriteResponse other = (com.google.storage.v2.StartResumableWriteResponse) obj; - if (!getUploadId().equals(other.getUploadId())) return false; + if (!getUploadId() + .equals(other.getUploadId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -181,135 +158,131 @@ public int hashCode() { } public static com.google.storage.v2.StartResumableWriteResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.StartResumableWriteResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.StartResumableWriteResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.StartResumableWriteResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.StartResumableWriteResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.storage.v2.StartResumableWriteResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.storage.v2.StartResumableWriteResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.storage.v2.StartResumableWriteResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.StartResumableWriteResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.StartResumableWriteResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.StartResumableWriteResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.StartResumableWriteResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.storage.v2.StartResumableWriteResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.storage.v2.StartResumableWriteResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.v2.StartResumableWriteResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
                * Response object for `StartResumableWrite`.
                * 
            * * Protobuf type {@code google.storage.v2.StartResumableWriteResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.StartResumableWriteResponse) com.google.storage.v2.StartResumableWriteResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_StartResumableWriteResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_StartResumableWriteResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_StartResumableWriteResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_StartResumableWriteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.StartResumableWriteResponse.class, - com.google.storage.v2.StartResumableWriteResponse.Builder.class); + com.google.storage.v2.StartResumableWriteResponse.class, com.google.storage.v2.StartResumableWriteResponse.Builder.class); } // Construct using com.google.storage.v2.StartResumableWriteResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -319,9 +292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_StartResumableWriteResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_StartResumableWriteResponse_descriptor; } @java.lang.Override @@ -340,11 +313,8 @@ public com.google.storage.v2.StartResumableWriteResponse build() { @java.lang.Override public com.google.storage.v2.StartResumableWriteResponse buildPartial() { - com.google.storage.v2.StartResumableWriteResponse result = - new com.google.storage.v2.StartResumableWriteResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.StartResumableWriteResponse result = new com.google.storage.v2.StartResumableWriteResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -360,39 +330,38 @@ private void buildPartial0(com.google.storage.v2.StartResumableWriteResponse res public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.StartResumableWriteResponse) { - return mergeFrom((com.google.storage.v2.StartResumableWriteResponse) other); + return mergeFrom((com.google.storage.v2.StartResumableWriteResponse)other); } else { super.mergeFrom(other); return this; @@ -400,8 +369,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.v2.StartResumableWriteResponse other) { - if (other == com.google.storage.v2.StartResumableWriteResponse.getDefaultInstance()) - return this; + if (other == com.google.storage.v2.StartResumableWriteResponse.getDefaultInstance()) return this; if (!other.getUploadId().isEmpty()) { uploadId_ = other.uploadId_; bitField0_ |= 0x00000001; @@ -433,19 +401,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - uploadId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + uploadId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -455,26 +421,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object uploadId_ = ""; /** - * - * *
                  * The upload_id of the newly started resumable write operation. This
                  * value should be copied into the `WriteObjectRequest.upload_id` field.
                  * 
            * * string upload_id = 1; - * * @return The uploadId. */ public java.lang.String getUploadId() { java.lang.Object ref = uploadId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uploadId_ = s; return s; @@ -483,22 +446,21 @@ public java.lang.String getUploadId() { } } /** - * - * *
                  * The upload_id of the newly started resumable write operation. This
                  * value should be copied into the `WriteObjectRequest.upload_id` field.
                  * 
            * * string upload_id = 1; - * * @return The bytes for uploadId. */ - public com.google.protobuf.ByteString getUploadIdBytes() { + public com.google.protobuf.ByteString + getUploadIdBytes() { java.lang.Object ref = uploadId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uploadId_ = b; return b; } else { @@ -506,37 +468,30 @@ public com.google.protobuf.ByteString getUploadIdBytes() { } } /** - * - * *
                  * The upload_id of the newly started resumable write operation. This
                  * value should be copied into the `WriteObjectRequest.upload_id` field.
                  * 
            * * string upload_id = 1; - * * @param value The uploadId to set. * @return This builder for chaining. */ - public Builder setUploadId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUploadId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uploadId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
                  * The upload_id of the newly started resumable write operation. This
                  * value should be copied into the `WriteObjectRequest.upload_id` field.
                  * 
            * * string upload_id = 1; - * * @return This builder for chaining. */ public Builder clearUploadId() { @@ -546,31 +501,27 @@ public Builder clearUploadId() { return this; } /** - * - * *
                  * The upload_id of the newly started resumable write operation. This
                  * value should be copied into the `WriteObjectRequest.upload_id` field.
                  * 
            * * string upload_id = 1; - * * @param value The bytes for uploadId to set. * @return This builder for chaining. */ - public Builder setUploadIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUploadIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uploadId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -580,12 +531,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.StartResumableWriteResponse) } // @@protoc_insertion_point(class_scope:google.storage.v2.StartResumableWriteResponse) private static final com.google.storage.v2.StartResumableWriteResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.StartResumableWriteResponse(); } @@ -594,27 +545,27 @@ public static com.google.storage.v2.StartResumableWriteResponse getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartResumableWriteResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartResumableWriteResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -629,4 +580,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.storage.v2.StartResumableWriteResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StartResumableWriteResponseOrBuilder.java similarity index 53% 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 d0ec115de3..4f34b3e796 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,53 +1,32 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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..93209ade59 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageProto.java @@ -0,0 +1,1535 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/storage/v2/storage.proto + +// Protobuf Java Version: 3.25.3 +package com.google.storage.v2; + +public final class StorageProto { + private StorageProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_DeleteBucketRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_DeleteBucketRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_GetBucketRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_GetBucketRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_CreateBucketRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_CreateBucketRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ListBucketsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ListBucketsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ListBucketsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ListBucketsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_UpdateBucketRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_UpdateBucketRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_DeleteNotificationConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_DeleteNotificationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_GetNotificationConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_GetNotificationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_CreateNotificationConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_CreateNotificationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ListNotificationConfigsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ListNotificationConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ListNotificationConfigsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ListNotificationConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ComposeObjectRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ComposeObjectRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_DeleteObjectRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_DeleteObjectRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_RestoreObjectRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_RestoreObjectRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_CancelResumableWriteRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_CancelResumableWriteRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_CancelResumableWriteResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_CancelResumableWriteResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ReadObjectRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ReadObjectRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_GetObjectRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_GetObjectRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ReadObjectResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ReadObjectResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_WriteObjectSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_WriteObjectSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_WriteObjectRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_WriteObjectRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_WriteObjectResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_WriteObjectResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_BidiWriteObjectRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_BidiWriteObjectRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_BidiWriteObjectResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_BidiWriteObjectResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ListObjectsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ListObjectsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_QueryWriteStatusRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_QueryWriteStatusRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_QueryWriteStatusResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_QueryWriteStatusResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_RewriteObjectRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_RewriteObjectRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_RewriteResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_RewriteResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_StartResumableWriteRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_StartResumableWriteRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_StartResumableWriteResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_StartResumableWriteResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_UpdateObjectRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_UpdateObjectRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_GetServiceAccountRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_GetServiceAccountRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_CreateHmacKeyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_CreateHmacKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_CreateHmacKeyResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_CreateHmacKeyResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_DeleteHmacKeyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_DeleteHmacKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_GetHmacKeyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_GetHmacKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ListHmacKeysRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ListHmacKeysRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ListHmacKeysResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ListHmacKeysResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_UpdateHmacKeyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_UpdateHmacKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_CommonObjectRequestParams_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_CommonObjectRequestParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ServiceConstants_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ServiceConstants_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_Billing_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_Billing_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_Cors_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_Cors_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_Encryption_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_Encryption_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_IamConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_IamConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_Lifecycle_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_Lifecycle_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_Logging_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_Logging_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_RetentionPolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_RetentionPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_SoftDeletePolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_Versioning_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_Versioning_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_Website_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_Website_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_CustomPlacementConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_CustomPlacementConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_Autoclass_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_Autoclass_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_HierarchicalNamespace_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_HierarchicalNamespace_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_BucketAccessControl_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_BucketAccessControl_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ChecksummedData_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ChecksummedData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ObjectChecksums_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ObjectChecksums_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_HmacKeyMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_HmacKeyMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_NotificationConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_NotificationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_NotificationConfig_CustomAttributesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_NotificationConfig_CustomAttributesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_CustomerEncryption_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_CustomerEncryption_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Object_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Object_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Object_MetadataEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Object_MetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ObjectAccessControl_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ObjectAccessControl_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ListObjectsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ListObjectsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ProjectTeam_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ProjectTeam_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ServiceAccount_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ServiceAccount_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Owner_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Owner_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ContentRange_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ContentRange_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\037google/storage/v2/storage.proto\022\021googl" + + "e.storage.v2\032\027google/api/client.proto\032\037g" + + "oogle/api/field_behavior.proto\032\031google/a" + + "pi/resource.proto\032\030google/api/routing.pr" + + "oto\032\036google/iam/v1/iam_policy.proto\032\032goo" + + "gle/iam/v1/policy.proto\032\036google/protobuf" + + "/duration.proto\032\033google/protobuf/empty.p" + + "roto\032 google/protobuf/field_mask.proto\032\037" + + "google/protobuf/timestamp.proto\032\026google/" + + "type/date.proto\"\326\001\n\023DeleteBucketRequest\022" + + "3\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035storage.googleapi" + + "s.com/Bucket\022$\n\027if_metageneration_match\030" + + "\002 \001(\003H\000\210\001\001\022(\n\033if_metageneration_not_matc" + + "h\030\003 \001(\003H\001\210\001\001B\032\n\030_if_metageneration_match" + + "B\036\n\034_if_metageneration_not_match\"\225\002\n\020Get" + + "BucketRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035sto" + + "rage.googleapis.com/Bucket\022$\n\027if_metagen" + + "eration_match\030\002 \001(\003H\000\210\001\001\022(\n\033if_metagener" + + "ation_not_match\030\003 \001(\003H\001\210\001\001\0222\n\tread_mask\030" + + "\005 \001(\0132\032.google.protobuf.FieldMaskH\002\210\001\001B\032" + + "\n\030_if_metageneration_matchB\036\n\034_if_metage" + + "neration_not_matchB\014\n\n_read_mask\"\316\001\n\023Cre" + + "ateBucketRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037" + + "\022\035storage.googleapis.com/Bucket\022)\n\006bucke" + + "t\030\002 \001(\0132\031.google.storage.v2.Bucket\022\026\n\tbu" + + "cket_id\030\003 \001(\tB\003\340A\002\022\026\n\016predefined_acl\030\006 \001" + + "(\t\022%\n\035predefined_default_object_acl\030\007 \001(" + + "\t\"\304\001\n\022ListBucketsRequest\0225\n\006parent\030\001 \001(\t" + + "B%\340A\002\372A\037\022\035storage.googleapis.com/Bucket\022" + + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016" + + "\n\006prefix\030\004 \001(\t\0222\n\tread_mask\030\005 \001(\0132\032.goog" + + "le.protobuf.FieldMaskH\000\210\001\001B\014\n\n_read_mask" + + "\"Z\n\023ListBucketsResponse\022*\n\007buckets\030\001 \003(\013" + + "2\031.google.storage.v2.Bucket\022\027\n\017next_page" + + "_token\030\002 \001(\t\"\177\n LockBucketRetentionPolic" + + "yRequest\0225\n\006bucket\030\001 \001(\tB%\340A\002\372A\037\n\035storag" + + "e.googleapis.com/Bucket\022$\n\027if_metagenera" + + "tion_match\030\002 \001(\003B\003\340A\002\"\306\002\n\023UpdateBucketRe" + + "quest\022.\n\006bucket\030\001 \001(\0132\031.google.storage.v" + + "2.BucketB\003\340A\002\022$\n\027if_metageneration_match" + + "\030\002 \001(\003H\000\210\001\001\022(\n\033if_metageneration_not_mat" + + "ch\030\003 \001(\003H\001\210\001\001\022\026\n\016predefined_acl\030\010 \001(\t\022%\n" + + "\035predefined_default_object_acl\030\t \001(\t\0224\n\013" + + "update_mask\030\006 \001(\0132\032.google.protobuf.Fiel" + + "dMaskB\003\340A\002B\032\n\030_if_metageneration_matchB\036" + + "\n\034_if_metageneration_not_match\"b\n\037Delete" + + "NotificationConfigRequest\022?\n\004name\030\001 \001(\tB" + + "1\340A\002\372A+\n)storage.googleapis.com/Notifica" + + "tionConfig\"_\n\034GetNotificationConfigReque" + + "st\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)storage.google" + + "apis.com/NotificationConfig\"\255\001\n\037CreateNo" + + "tificationConfigRequest\022A\n\006parent\030\001 \001(\tB" + + "1\340A\002\372A+\022)storage.googleapis.com/Notifica" + + "tionConfig\022G\n\023notification_config\030\002 \001(\0132" + + "%.google.storage.v2.NotificationConfigB\003" + + "\340A\002\"\212\001\n\036ListNotificationConfigsRequest\022A" + + "\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)storage.googleap" + + "is.com/NotificationConfig\022\021\n\tpage_size\030\002" + + " \001(\005\022\022\n\npage_token\030\003 \001(\t\"\177\n\037ListNotifica" + + "tionConfigsResponse\022C\n\024notification_conf" + + "igs\030\001 \003(\0132%.google.storage.v2.Notificati" + + "onConfig\022\027\n\017next_page_token\030\002 \001(\t\"\365\005\n\024Co" + + "mposeObjectRequest\0223\n\013destination\030\001 \001(\0132" + + "\031.google.storage.v2.ObjectB\003\340A\002\022L\n\016sourc" + + "e_objects\030\002 \003(\01324.google.storage.v2.Comp" + + "oseObjectRequest.SourceObject\022\"\n\032destina" + + "tion_predefined_acl\030\t \001(\t\022 \n\023if_generati" + + "on_match\030\004 \001(\003H\000\210\001\001\022$\n\027if_metageneration" + + "_match\030\005 \001(\003H\001\210\001\001\0227\n\007kms_key\030\006 \001(\tB&\372A#\n" + + "!cloudkms.googleapis.com/CryptoKey\022R\n\034co" + + "mmon_object_request_params\030\007 \001(\0132,.googl" + + "e.storage.v2.CommonObjectRequestParams\022<" + + "\n\020object_checksums\030\n \001(\0132\".google.storag" + + "e.v2.ObjectChecksums\032\356\001\n\014SourceObject\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\022\022\n\ngeneration\030\002 \001(\003\022f\n\024" + + "object_preconditions\030\003 \001(\0132H.google.stor" + + "age.v2.ComposeObjectRequest.SourceObject" + + ".ObjectPreconditions\032O\n\023ObjectPreconditi" + + "ons\022 \n\023if_generation_match\030\001 \001(\003H\000\210\001\001B\026\n" + + "\024_if_generation_matchB\026\n\024_if_generation_" + + "matchB\032\n\030_if_metageneration_match\"\321\003\n\023De" + + "leteObjectRequest\0225\n\006bucket\030\001 \001(\tB%\340A\002\372A" + + "\037\n\035storage.googleapis.com/Bucket\022\023\n\006obje" + + "ct\030\002 \001(\tB\003\340A\002\022\022\n\ngeneration\030\004 \001(\003\022 \n\023if_" + + "generation_match\030\005 \001(\003H\000\210\001\001\022$\n\027if_genera" + + "tion_not_match\030\006 \001(\003H\001\210\001\001\022$\n\027if_metagene" + + "ration_match\030\007 \001(\003H\002\210\001\001\022(\n\033if_metagenera" + + "tion_not_match\030\010 \001(\003H\003\210\001\001\022R\n\034common_obje" + + "ct_request_params\030\n \001(\0132,.google.storage" + + ".v2.CommonObjectRequestParamsB\026\n\024_if_gen" + + "eration_matchB\032\n\030_if_generation_not_matc" + + "hB\032\n\030_if_metageneration_matchB\036\n\034_if_met" + + "ageneration_not_match\"\211\004\n\024RestoreObjectR" + + "equest\0225\n\006bucket\030\001 \001(\tB%\340A\002\372A\037\n\035storage." + + "googleapis.com/Bucket\022\023\n\006object\030\002 \001(\tB\003\340" + + "A\002\022\027\n\ngeneration\030\003 \001(\003B\003\340A\002\022 \n\023if_genera" + + "tion_match\030\004 \001(\003H\000\210\001\001\022$\n\027if_generation_n" + + "ot_match\030\005 \001(\003H\001\210\001\001\022$\n\027if_metageneration" + + "_match\030\006 \001(\003H\002\210\001\001\022(\n\033if_metageneration_n" + + "ot_match\030\007 \001(\003H\003\210\001\001\022\034\n\017copy_source_acl\030\t" + + " \001(\010H\004\210\001\001\022R\n\034common_object_request_param" + + "s\030\010 \001(\0132,.google.storage.v2.CommonObject" + + "RequestParamsB\026\n\024_if_generation_matchB\032\n" + + "\030_if_generation_not_matchB\032\n\030_if_metagen" + + "eration_matchB\036\n\034_if_metageneration_not_" + + "matchB\022\n\020_copy_source_acl\"5\n\033CancelResum" + + "ableWriteRequest\022\026\n\tupload_id\030\001 \001(\tB\003\340A\002" + + "\"\036\n\034CancelResumableWriteResponse\"\272\004\n\021Rea" + + "dObjectRequest\0225\n\006bucket\030\001 \001(\tB%\340A\002\372A\037\n\035" + + "storage.googleapis.com/Bucket\022\023\n\006object\030" + + "\002 \001(\tB\003\340A\002\022\022\n\ngeneration\030\003 \001(\003\022\023\n\013read_o" + + "ffset\030\004 \001(\003\022\022\n\nread_limit\030\005 \001(\003\022 \n\023if_ge" + + "neration_match\030\006 \001(\003H\000\210\001\001\022$\n\027if_generati" + + "on_not_match\030\007 \001(\003H\001\210\001\001\022$\n\027if_metagenera" + + "tion_match\030\010 \001(\003H\002\210\001\001\022(\n\033if_metagenerati" + + "on_not_match\030\t \001(\003H\003\210\001\001\022R\n\034common_object" + + "_request_params\030\n \001(\0132,.google.storage.v" + + "2.CommonObjectRequestParams\0222\n\tread_mask" + + "\030\014 \001(\0132\032.google.protobuf.FieldMaskH\004\210\001\001B" + + "\026\n\024_if_generation_matchB\032\n\030_if_generatio" + + "n_not_matchB\032\n\030_if_metageneration_matchB" + + "\036\n\034_if_metageneration_not_matchB\014\n\n_read" + + "_mask\"\274\004\n\020GetObjectRequest\0225\n\006bucket\030\001 \001" + + "(\tB%\340A\002\372A\037\n\035storage.googleapis.com/Bucke" + + "t\022\023\n\006object\030\002 \001(\tB\003\340A\002\022\022\n\ngeneration\030\003 \001" + + "(\003\022\031\n\014soft_deleted\030\013 \001(\010H\000\210\001\001\022 \n\023if_gene" + + "ration_match\030\004 \001(\003H\001\210\001\001\022$\n\027if_generation" + + "_not_match\030\005 \001(\003H\002\210\001\001\022$\n\027if_metagenerati" + + "on_match\030\006 \001(\003H\003\210\001\001\022(\n\033if_metageneration" + + "_not_match\030\007 \001(\003H\004\210\001\001\022R\n\034common_object_r" + + "equest_params\030\010 \001(\0132,.google.storage.v2." + + "CommonObjectRequestParams\0222\n\tread_mask\030\n" + + " \001(\0132\032.google.protobuf.FieldMaskH\005\210\001\001B\017\n" + + "\r_soft_deletedB\026\n\024_if_generation_matchB\032" + + "\n\030_if_generation_not_matchB\032\n\030_if_metage" + + "neration_matchB\036\n\034_if_metageneration_not" + + "_matchB\014\n\n_read_mask\"\365\001\n\022ReadObjectRespo" + + "nse\022<\n\020checksummed_data\030\001 \001(\0132\".google.s" + + "torage.v2.ChecksummedData\022<\n\020object_chec" + + "ksums\030\002 \001(\0132\".google.storage.v2.ObjectCh" + + "ecksums\0226\n\rcontent_range\030\003 \001(\0132\037.google." + + "storage.v2.ContentRange\022+\n\010metadata\030\004 \001(" + + "\0132\031.google.storage.v2.Object\"\215\003\n\017WriteOb" + + "jectSpec\0220\n\010resource\030\001 \001(\0132\031.google.stor" + + "age.v2.ObjectB\003\340A\002\022\026\n\016predefined_acl\030\007 \001" + + "(\t\022 \n\023if_generation_match\030\003 \001(\003H\000\210\001\001\022$\n\027" + + "if_generation_not_match\030\004 \001(\003H\001\210\001\001\022$\n\027if" + + "_metageneration_match\030\005 \001(\003H\002\210\001\001\022(\n\033if_m" + + "etageneration_not_match\030\006 \001(\003H\003\210\001\001\022\030\n\013ob" + + "ject_size\030\010 \001(\003H\004\210\001\001B\026\n\024_if_generation_m" + + "atchB\032\n\030_if_generation_not_matchB\032\n\030_if_" + + "metageneration_matchB\036\n\034_if_metagenerati" + + "on_not_matchB\016\n\014_object_size\"\206\003\n\022WriteOb" + + "jectRequest\022\023\n\tupload_id\030\001 \001(\tH\000\022?\n\021writ" + + "e_object_spec\030\002 \001(\0132\".google.storage.v2." + + "WriteObjectSpecH\000\022\031\n\014write_offset\030\003 \001(\003B" + + "\003\340A\002\022>\n\020checksummed_data\030\004 \001(\0132\".google." + + "storage.v2.ChecksummedDataH\001\022<\n\020object_c" + + "hecksums\030\006 \001(\0132\".google.storage.v2.Objec" + + "tChecksums\022\024\n\014finish_write\030\007 \001(\010\022R\n\034comm" + + "on_object_request_params\030\010 \001(\0132,.google." + + "storage.v2.CommonObjectRequestParamsB\017\n\r" + + "first_messageB\006\n\004data\"n\n\023WriteObjectResp" + + "onse\022\030\n\016persisted_size\030\001 \001(\003H\000\022-\n\010resour" + + "ce\030\002 \001(\0132\031.google.storage.v2.ObjectH\000B\016\n" + + "\014write_status\"\257\003\n\026BidiWriteObjectRequest" + + "\022\023\n\tupload_id\030\001 \001(\tH\000\022?\n\021write_object_sp" + + "ec\030\002 \001(\0132\".google.storage.v2.WriteObject" + + "SpecH\000\022\031\n\014write_offset\030\003 \001(\003B\003\340A\002\022>\n\020che" + + "cksummed_data\030\004 \001(\0132\".google.storage.v2." + + "ChecksummedDataH\001\022<\n\020object_checksums\030\006 " + + "\001(\0132\".google.storage.v2.ObjectChecksums\022" + + "\024\n\014state_lookup\030\007 \001(\010\022\r\n\005flush\030\010 \001(\010\022\024\n\014" + + "finish_write\030\t \001(\010\022R\n\034common_object_requ" + + "est_params\030\n \001(\0132,.google.storage.v2.Com" + + "monObjectRequestParamsB\017\n\rfirst_messageB" + + "\006\n\004data\"r\n\027BidiWriteObjectResponse\022\030\n\016pe" + + "rsisted_size\030\001 \001(\003H\000\022-\n\010resource\030\002 \001(\0132\031" + + ".google.storage.v2.ObjectH\000B\016\n\014write_sta" + + "tus\"\255\003\n\022ListObjectsRequest\0225\n\006parent\030\001 \001" + + "(\tB%\340A\002\372A\037\n\035storage.googleapis.com/Bucke" + + "t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t" + + "\022\021\n\tdelimiter\030\004 \001(\t\022\"\n\032include_trailing_" + + "delimiter\030\005 \001(\010\022\016\n\006prefix\030\006 \001(\t\022\020\n\010versi" + + "ons\030\007 \001(\010\0222\n\tread_mask\030\010 \001(\0132\032.google.pr" + + "otobuf.FieldMaskH\000\210\001\001\022 \n\023lexicographic_s" + + "tart\030\n \001(\tB\003\340A\001\022\036\n\021lexicographic_end\030\013 \001" + + "(\tB\003\340A\001\022\031\n\014soft_deleted\030\014 \001(\010B\003\340A\001\022(\n\033in" + + "clude_folders_as_prefixes\030\r \001(\010B\003\340A\001\022\027\n\n" + + "match_glob\030\016 \001(\tB\003\340A\001B\014\n\n_read_mask\"\205\001\n\027" + + "QueryWriteStatusRequest\022\026\n\tupload_id\030\001 \001" + + "(\tB\003\340A\002\022R\n\034common_object_request_params\030" + + "\002 \001(\0132,.google.storage.v2.CommonObjectRe" + + "questParams\"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\014writ" + + "e_status\"\250\n\n\024RewriteObjectRequest\022 \n\020des" + + "tination_name\030\030 \001(\tB\006\340A\002\340A\005\022D\n\022destinati" + + "on_bucket\030\031 \001(\tB(\340A\002\340A\005\372A\037\n\035storage.goog" + + "leapis.com/Bucket\022C\n\023destination_kms_key" + + "\030\033 \001(\tB&\372A#\n!cloudkms.googleapis.com/Cry" + + "ptoKey\022.\n\013destination\030\001 \001(\0132\031.google.sto" + + "rage.v2.Object\022<\n\rsource_bucket\030\002 \001(\tB%\340" + + "A\002\372A\037\n\035storage.googleapis.com/Bucket\022\032\n\r" + + "source_object\030\003 \001(\tB\003\340A\002\022\031\n\021source_gener" + + "ation\030\004 \001(\003\022\025\n\rrewrite_token\030\005 \001(\t\022\"\n\032de" + + "stination_predefined_acl\030\034 \001(\t\022 \n\023if_gen" + + "eration_match\030\007 \001(\003H\000\210\001\001\022$\n\027if_generatio" + + "n_not_match\030\010 \001(\003H\001\210\001\001\022$\n\027if_metagenerat" + + "ion_match\030\t \001(\003H\002\210\001\001\022(\n\033if_metageneratio" + + "n_not_match\030\n \001(\003H\003\210\001\001\022\'\n\032if_source_gene" + + "ration_match\030\013 \001(\003H\004\210\001\001\022+\n\036if_source_gen" + + "eration_not_match\030\014 \001(\003H\005\210\001\001\022+\n\036if_sourc" + + "e_metageneration_match\030\r \001(\003H\006\210\001\001\022/\n\"if_" + + "source_metageneration_not_match\030\016 \001(\003H\007\210" + + "\001\001\022$\n\034max_bytes_rewritten_per_call\030\017 \001(\003" + + "\022(\n copy_source_encryption_algorithm\030\020 \001" + + "(\t\022(\n copy_source_encryption_key_bytes\030\025" + + " \001(\014\022/\n\'copy_source_encryption_key_sha25" + + "6_bytes\030\026 \001(\014\022R\n\034common_object_request_p" + + "arams\030\023 \001(\0132,.google.storage.v2.CommonOb" + + "jectRequestParams\022<\n\020object_checksums\030\035 " + + "\001(\0132\".google.storage.v2.ObjectChecksumsB" + + "\026\n\024_if_generation_matchB\032\n\030_if_generatio" + + "n_not_matchB\032\n\030_if_metageneration_matchB" + + "\036\n\034_if_metageneration_not_matchB\035\n\033_if_s" + + "ource_generation_matchB!\n\037_if_source_gen" + + "eration_not_matchB!\n\037_if_source_metagene" + + "ration_matchB%\n#_if_source_metageneratio" + + "n_not_match\"\227\001\n\017RewriteResponse\022\035\n\025total" + + "_bytes_rewritten\030\001 \001(\003\022\023\n\013object_size\030\002 " + + "\001(\003\022\014\n\004done\030\003 \001(\010\022\025\n\rrewrite_token\030\004 \001(\t" + + "\022+\n\010resource\030\005 \001(\0132\031.google.storage.v2.O" + + "bject\"\362\001\n\032StartResumableWriteRequest\022B\n\021" + + "write_object_spec\030\001 \001(\0132\".google.storage" + + ".v2.WriteObjectSpecB\003\340A\002\022R\n\034common_objec" + + "t_request_params\030\003 \001(\0132,.google.storage." + + "v2.CommonObjectRequestParams\022<\n\020object_c" + + "hecksums\030\005 \001(\0132\".google.storage.v2.Objec" + + "tChecksums\"0\n\033StartResumableWriteRespons" + + "e\022\021\n\tupload_id\030\001 \001(\t\"\357\003\n\023UpdateObjectReq" + + "uest\022.\n\006object\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_metageneration_match\030\004 \001(\003H\002\210" + + "\001\001\022(\n\033if_metageneration_not_match\030\005 \001(\003H" + + "\003\210\001\001\022\026\n\016predefined_acl\030\n \001(\t\0224\n\013update_m" + + "ask\030\007 \001(\0132\032.google.protobuf.FieldMaskB\003\340" + + "A\002\022R\n\034common_object_request_params\030\010 \001(\013" + + "2,.google.storage.v2.CommonObjectRequest" + + "ParamsB\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_match\"`" + + "\n\030GetServiceAccountRequest\022D\n\007project\030\001 " + + "\001(\tB3\340A\002\372A-\n+cloudresourcemanager.google" + + "apis.com/Project\"\200\001\n\024CreateHmacKeyReques" + + "t\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudresourc" + + "emanager.googleapis.com/Project\022\"\n\025servi" + + "ce_account_email\030\002 \001(\tB\003\340A\002\"g\n\025CreateHma" + + "cKeyResponse\0224\n\010metadata\030\001 \001(\0132\".google." + + "storage.v2.HmacKeyMetadata\022\030\n\020secret_key" + + "_bytes\030\003 \001(\014\"t\n\024DeleteHmacKeyRequest\022\026\n\t" + + "access_id\030\001 \001(\tB\003\340A\002\022D\n\007project\030\002 \001(\tB3\340" + + "A\002\372A-\n+cloudresourcemanager.googleapis.c" + + "om/Project\"q\n\021GetHmacKeyRequest\022\026\n\tacces" + + "s_id\030\001 \001(\tB\003\340A\002\022D\n\007project\030\002 \001(\tB3\340A\002\372A-" + + "\n+cloudresourcemanager.googleapis.com/Pr" + + "oject\"\274\001\n\023ListHmacKeysRequest\022D\n\007project" + + "\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.goo" + + "gleapis.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_em" + + "ail\030\004 \001(\t\022\031\n\021show_deleted_keys\030\005 \001(\010\"f\n\024" + + "ListHmacKeysResponse\0225\n\thmac_keys\030\001 \003(\0132" + + "\".google.storage.v2.HmacKeyMetadata\022\027\n\017n" + + "ext_page_token\030\002 \001(\t\"\202\001\n\024UpdateHmacKeyRe" + + "quest\0229\n\010hmac_key\030\001 \001(\0132\".google.storage" + + ".v2.HmacKeyMetadataB\003\340A\002\022/\n\013update_mask\030" + + "\003 \001(\0132\032.google.protobuf.FieldMask\"|\n\031Com" + + "monObjectRequestParams\022\034\n\024encryption_alg" + + "orithm\030\001 \001(\t\022\034\n\024encryption_key_bytes\030\004 \001" + + "(\014\022#\n\033encryption_key_sha256_bytes\030\005 \001(\014\"" + + "\312\005\n\020ServiceConstants\"\265\005\n\006Values\022\026\n\022VALUE" + + "S_UNSPECIFIED\020\000\022\033\n\024MAX_READ_CHUNK_BYTES\020" + + "\200\200\200\001\022\034\n\025MAX_WRITE_CHUNK_BYTES\020\200\200\200\001\022\031\n\022MA" + + "X_OBJECT_SIZE_MB\020\200\200\300\002\022)\n$MAX_CUSTOM_META" + + "DATA_FIELD_NAME_BYTES\020\200\010\022*\n%MAX_CUSTOM_M" + + "ETADATA_FIELD_VALUE_BYTES\020\200 \022)\n$MAX_CUST" + + "OM_METADATA_TOTAL_SIZE_BYTES\020\200@\022*\n$MAX_B" + + "UCKET_METADATA_TOTAL_SIZE_BYTES\020\200\240\001\022\'\n#M" + + "AX_NOTIFICATION_CONFIGS_PER_BUCKET\020d\022\"\n\036" + + "MAX_LIFECYCLE_RULES_PER_BUCKET\020d\022&\n\"MAX_" + + "NOTIFICATION_CUSTOM_ATTRIBUTES\020\005\0221\n,MAX_" + + "NOTIFICATION_CUSTOM_ATTRIBUTE_KEY_LENGTH" + + "\020\200\002\0223\n.MAX_NOTIFICATION_CUSTOM_ATTRIBUTE" + + "_VALUE_LENGTH\020\200\010\022\034\n\030MAX_LABELS_ENTRIES_C" + + "OUNT\020@\022\037\n\033MAX_LABELS_KEY_VALUE_LENGTH\020?\022" + + "\037\n\032MAX_LABELS_KEY_VALUE_BYTES\020\200\001\022.\n)MAX_" + + "OBJECT_IDS_PER_DELETE_OBJECTS_REQUEST\020\350\007" + + "\022\036\n\032SPLIT_TOKEN_MAX_VALID_DAYS\020\016\032\002\020\001\"\222\034\n" + + "\006Bucket\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\026\n\tbucket_id\030" + + "\002 \001(\tB\003\340A\003\022\014\n\004etag\030\035 \001(\t\022D\n\007project\030\003 \001(" + + "\tB3\340A\005\372A-\n+cloudresourcemanager.googleap" + + "is.com/Project\022\033\n\016metageneration\030\004 \001(\003B\003" + + "\340A\003\022\025\n\010location\030\005 \001(\tB\003\340A\005\022\032\n\rlocation_t" + + "ype\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.BucketAccessControl\022B\n\022default_objec" + + "t_acl\030\t \003(\0132&.google.storage.v2.ObjectAc" + + "cessControl\0226\n\tlifecycle\030\n \001(\0132#.google." + + "storage.v2.Bucket.Lifecycle\0224\n\013create_ti" + + "me\030\013 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\022,\n\004cors\030\014 \003(\0132\036.google.storage.v2.Buck" + + "et.Cors\0224\n\013update_time\030\r \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\022 \n\030default_event_b" + + "ased_hold\030\016 \001(\010\0225\n\006labels\030\017 \003(\0132%.google" + + ".storage.v2.Bucket.LabelsEntry\0222\n\007websit" + + "e\030\020 \001(\0132!.google.storage.v2.Bucket.Websi" + + "te\0228\n\nversioning\030\021 \001(\0132$.google.storage." + + "v2.Bucket.Versioning\0222\n\007logging\030\022 \001(\0132!." + + "google.storage.v2.Bucket.Logging\022,\n\005owne" + + "r\030\023 \001(\0132\030.google.storage.v2.OwnerB\003\340A\003\0228" + + "\n\nencryption\030\024 \001(\0132$.google.storage.v2.B" + + "ucket.Encryption\0222\n\007billing\030\025 \001(\0132!.goog" + + "le.storage.v2.Bucket.Billing\022C\n\020retentio" + + "n_policy\030\026 \001(\0132).google.storage.v2.Bucke" + + "t.RetentionPolicy\0227\n\niam_config\030\027 \001(\0132#." + + "google.storage.v2.Bucket.IamConfig\022\025\n\rsa" + + "tisfies_pzs\030\031 \001(\010\022P\n\027custom_placement_co" + + "nfig\030\032 \001(\0132/.google.storage.v2.Bucket.Cu" + + "stomPlacementConfig\0226\n\tautoclass\030\034 \001(\0132#" + + ".google.storage.v2.Bucket.Autoclass\022T\n\026h" + + "ierarchical_namespace\030 \001(\0132/.google.sto" + + "rage.v2.Bucket.HierarchicalNamespaceB\003\340A" + + "\001\022K\n\022soft_delete_policy\030\037 \001(\0132*.google.s" + + "torage.v2.Bucket.SoftDeletePolicyB\003\340A\001\032!" + + "\n\007Billing\022\026\n\016requester_pays\030\001 \001(\010\032X\n\004Cor" + + "s\022\016\n\006origin\030\001 \003(\t\022\016\n\006method\030\002 \003(\t\022\027\n\017res" + + "ponse_header\030\003 \003(\t\022\027\n\017max_age_seconds\030\004 " + + "\001(\005\032M\n\nEncryption\022?\n\017default_kms_key\030\001 \001" + + "(\tB&\372A#\n!cloudkms.googleapis.com/CryptoK" + + "ey\032\354\001\n\tIamConfig\022a\n\033uniform_bucket_level" + + "_access\030\001 \001(\0132<.google.storage.v2.Bucket" + + ".IamConfig.UniformBucketLevelAccess\022 \n\030p" + + "ublic_access_prevention\030\003 \001(\t\032Z\n\030Uniform" + + "BucketLevelAccess\022\017\n\007enabled\030\001 \001(\010\022-\n\tlo" + + "ck_time\030\002 \001(\0132\032.google.protobuf.Timestam" + + "p\032\363\005\n\tLifecycle\0226\n\004rule\030\001 \003(\0132(.google.s" + + "torage.v2.Bucket.Lifecycle.Rule\032\255\005\n\004Rule" + + "\022?\n\006action\030\001 \001(\0132/.google.storage.v2.Buc" + + "ket.Lifecycle.Rule.Action\022E\n\tcondition\030\002" + + " \001(\01322.google.storage.v2.Bucket.Lifecycl" + + "e.Rule.Condition\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.google.type.Date\022\024\n\007is_live\030\003 \001(\010" + + "H\001\210\001\001\022\037\n\022num_newer_versions\030\004 \001(\005H\002\210\001\001\022\035" + + "\n\025matches_storage_class\030\005 \003(\t\022#\n\026days_si" + + "nce_custom_time\030\007 \001(\005H\003\210\001\001\022-\n\022custom_tim" + + "e_before\030\010 \001(\0132\021.google.type.Date\022\'\n\032day" + + "s_since_noncurrent_time\030\t \001(\005H\004\210\001\001\0221\n\026no" + + "ncurrent_time_before\030\n \001(\0132\021.google.type" + + ".Date\022\026\n\016matches_prefix\030\013 \003(\t\022\026\n\016matches" + + "_suffix\030\014 \003(\tB\013\n\t_age_daysB\n\n\010_is_liveB\025" + + "\n\023_num_newer_versionsB\031\n\027_days_since_cus" + + "tom_timeB\035\n\033_days_since_noncurrent_time\032" + + "8\n\007Logging\022\022\n\nlog_bucket\030\001 \001(\t\022\031\n\021log_ob" + + "ject_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\022retentio" + + "n_duration\030\004 \001(\0132\031.google.protobuf.Durat" + + "ion\032\261\001\n\020SoftDeletePolicy\022:\n\022retention_du" + + "ration\030\001 \001(\0132\031.google.protobuf.DurationH" + + "\000\210\001\001\0227\n\016effective_time\030\002 \001(\0132\032.google.pr" + + "otobuf.TimestampH\001\210\001\001B\025\n\023_retention_dura" + + "tionB\021\n\017_effective_time\032\035\n\nVersioning\022\017\n" + + "\007enabled\030\001 \001(\010\032;\n\007Website\022\030\n\020main_page_s" + + "uffix\030\001 \001(\t\022\026\n\016not_found_page\030\002 \001(\t\032/\n\025C" + + "ustomPlacementConfig\022\026\n\016data_locations\030\001" + + " \003(\t\032\213\002\n\tAutoclass\022\017\n\007enabled\030\001 \001(\010\0224\n\013t" + + "oggle_time\030\002 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\022#\n\026terminal_storage_class\030\003 \001(" + + "\tH\000\210\001\001\022P\n\"terminal_storage_class_update_" + + "time\030\004 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\003H\001\210\001\001B\031\n\027_terminal_storage_classB%\n#_" + + "terminal_storage_class_update_time\032-\n\025Hi" + + "erarchicalNamespace\022\024\n\007enabled\030\001 \001(\010B\003\340A" + + "\001\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.googleapis.com/Bu" + + "cket\022#projects/{project}/buckets/{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_al" + + "t\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\014" + + "project_team\030\007 \001(\0132\036.google.storage.v2.P" + + "rojectTeam\"I\n\017ChecksummedData\022\026\n\007content" + + "\030\001 \001(\014B\005\010\001\340A\001\022\023\n\006crc32c\030\002 \001(\007H\000\210\001\001B\t\n\007_c" + + "rc32c\"C\n\017ObjectChecksums\022\023\n\006crc32c\030\001 \001(\007" + + "H\000\210\001\001\022\020\n\010md5_hash\030\002 \001(\014B\t\n\007_crc32c\"\255\002\n\017H" + + "macKeyMetadata\022\017\n\002id\030\001 \001(\tB\003\340A\005\022\026\n\tacces" + + "s_id\030\002 \001(\tB\003\340A\005\022D\n\007project\030\003 \001(\tB3\340A\005\372A-", + "\n+cloudresourcemanager.googleapis.com/Pr" + + "oject\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\0224\n\013update" + + "_time\030\007 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\022\014\n\004etag\030\010 \001(\t\"\247\003\n\022NotificationConfi" + + "g\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\021c" + + "ustom_attributes\030\004 \003(\0132;.google.storage." + + "v2.NotificationConfig.CustomAttributesEn" + + "try\022\032\n\022object_name_prefix\030\005 \001(\t\022\033\n\016paylo" + + "ad_format\030\006 \001(\tB\003\340A\002\0327\n\025CustomAttributes" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:}\352" + + "Az\n)storage.googleapis.com/NotificationC" + + "onfig\022Mprojects/{project}/buckets/{bucke" + + "t}/notificationConfigs/{notification_con" + + "fig}\"L\n\022CustomerEncryption\022\034\n\024encryption" + + "_algorithm\030\001 \001(\t\022\030\n\020key_sha256_bytes\030\003 \001" + + "(\014\"\254\n\n\006Object\022\021\n\004name\030\001 \001(\tB\003\340A\005\0225\n\006buck" + + "et\030\002 \001(\tB%\340A\005\372A\037\n\035storage.googleapis.com" + + "/Bucket\022\014\n\004etag\030\033 \001(\t\022\027\n\ngeneration\030\003 \001(" + + "\003B\003\340A\005\022\033\n\016metageneration\030\004 \001(\003B\003\340A\003\022\025\n\rs" + + "torage_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\023content_dispo" + + "sition\030\010 \001(\t\022\025\n\rcache_control\030\t \001(\t\0223\n\003a" + + "cl\030\n \003(\0132&.google.storage.v2.ObjectAcces" + + "sControl\022\030\n\020content_language\030\013 \001(\t\0224\n\013de" + + "lete_time\030\014 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\022\024\n\014content_type\030\r \001(\t\0224\n\013create" + + "_time\030\016 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\022\034\n\017component_count\030\017 \001(\005B\003\340A\003\022:\n\tch" + + "ecksums\030\020 \001(\0132\".google.storage.v2.Object" + + "ChecksumsB\003\340A\003\0224\n\013update_time\030\021 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\0227\n\007kms_key\030" + + "\022 \001(\tB&\372A#\n!cloudkms.googleapis.com/Cryp" + + "toKey\022B\n\031update_storage_class_time\030\023 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\022\026\n\016tem" + + "porary_hold\030\024 \001(\010\0229\n\025retention_expire_ti" + + "me\030\025 \001(\0132\032.google.protobuf.Timestamp\0229\n\010" + + "metadata\030\026 \003(\0132\'.google.storage.v2.Objec" + + "t.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.v" + + "2.OwnerB\003\340A\003\022B\n\023customer_encryption\030\031 \001(" + + "\0132%.google.storage.v2.CustomerEncryption" + + "\022/\n\013custom_time\030\032 \001(\0132\032.google.protobuf." + + "Timestamp\022>\n\020soft_delete_time\030\034 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003H\001\210\001\001\022>\n\020har" + + "d_delete_time\030\035 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003H\002\210\001\001\032/\n\rMetadataEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\023\n\021_event_bas" + + "ed_holdB\023\n\021_soft_delete_timeB\023\n\021_hard_de" + + "lete_time\"\316\001\n\023ObjectAccessControl\022\014\n\004rol" + + "e\030\001 \001(\t\022\n\n\002id\030\002 \001(\t\022\016\n\006entity\030\003 \001(\t\022\027\n\ne" + + "ntity_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.stor" + + "age.v2.ProjectTeam\"l\n\023ListObjectsRespons" + + "e\022*\n\007objects\030\001 \003(\0132\031.google.storage.v2.O" + + "bject\022\020\n\010prefixes\030\002 \003(\t\022\027\n\017next_page_tok" + + "en\030\003 \001(\t\"3\n\013ProjectTeam\022\026\n\016project_numbe" + + "r\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\006entit" + + "y\030\001 \001(\t\022\021\n\tentity_id\030\002 \001(\t\"C\n\014ContentRan" + + "ge\022\r\n\005start\030\001 \001(\003\022\013\n\003end\030\002 \001(\003\022\027\n\017comple" + + "te_length\030\003 \001(\0032\252\'\n\007Storage\022r\n\014DeleteBuc" + + "ket\022&.google.storage.v2.DeleteBucketRequ" + + "est\032\026.google.protobuf.Empty\"\"\332A\004name\212\323\344\223" + + "\002\025\022\023\n\004name\022\013{bucket=**}\022o\n\tGetBucket\022#.g" + + "oogle.storage.v2.GetBucketRequest\032\031.goog" + + "le.storage.v2.Bucket\"\"\332A\004name\212\323\344\223\002\025\022\023\n\004n" + + "ame\022\013{bucket=**}\022\253\001\n\014CreateBucket\022&.goog" + + "le.storage.v2.CreateBucketRequest\032\031.goog" + + "le.storage.v2.Bucket\"X\332A\027parent,bucket,b" + + "ucket_id\212\323\344\223\0028\022\026\n\006parent\022\014{project=**}\022\036" + + "\n\016bucket.project\022\014{project=**}\022\205\001\n\013ListB" + + "uckets\022%.google.storage.v2.ListBucketsRe" + + "quest\032&.google.storage.v2.ListBucketsRes" + + "ponse\"\'\332A\006parent\212\323\344\223\002\030\022\026\n\006parent\022\014{proje" + + "ct=**}\022\223\001\n\031LockBucketRetentionPolicy\0223.g" + + "oogle.storage.v2.LockBucketRetentionPoli" + + "cyRequest\032\031.google.storage.v2.Bucket\"&\332A" + + "\006bucket\212\323\344\223\002\027\022\025\n\006bucket\022\013{bucket=**}\022u\n\014" + + "GetIamPolicy\022\".google.iam.v1.GetIamPolic" + + "yRequest\032\025.google.iam.v1.Policy\"*\332A\010reso" + + "urce\212\323\344\223\002\031\022\027\n\010resource\022\013{bucket=**}\022|\n\014S" + + "etIamPolicy\022\".google.iam.v1.SetIamPolicy" + + "Request\032\025.google.iam.v1.Policy\"1\332A\017resou" + + "rce,policy\212\323\344\223\002\031\022\027\n\010resource\022\013{bucket=**" + + "}\022\327\001\n\022TestIamPermissions\022(.google.iam.v1" + + ".TestIamPermissionsRequest\032).google.iam." + + "v1.TestIamPermissionsResponse\"l\332A\024resour" + + "ce,permissions\212\323\344\223\002O\022\027\n\010resource\022\013{bucke" + + "t=**}\0224\n\010resource\022({bucket=projects/*/bu" + + "ckets/*}/objects/**\022\212\001\n\014UpdateBucket\022&.g" + + "oogle.storage.v2.UpdateBucketRequest\032\031.g" + + "oogle.storage.v2.Bucket\"7\332A\022bucket,updat" + + "e_mask\212\323\344\223\002\034\022\032\n\013bucket.name\022\013{bucket=**}" + + "\022\237\001\n\030DeleteNotificationConfig\0222.google.s" + + "torage.v2.DeleteNotificationConfigReques" + + "t\032\026.google.protobuf.Empty\"7\332A\004name\212\323\344\223\002*" + + "\022(\n\004name\022 {bucket=projects/*/buckets/*}/" + + "**\022\250\001\n\025GetNotificationConfig\022/.google.st" + + "orage.v2.GetNotificationConfigRequest\032%." + + "google.storage.v2.NotificationConfig\"7\332A" + + "\004name\212\323\344\223\002*\022(\n\004name\022 {bucket=projects/*/" + + "buckets/*}/**\022\261\001\n\030CreateNotificationConf" + + "ig\0222.google.storage.v2.CreateNotificatio" + + "nConfigRequest\032%.google.storage.v2.Notif" + + "icationConfig\":\332A\032parent,notification_co" + + "nfig\212\323\344\223\002\027\022\025\n\006parent\022\013{bucket=**}\022\250\001\n\027Li" + + "stNotificationConfigs\0221.google.storage.v" + + "2.ListNotificationConfigsRequest\0322.googl" + + "e.storage.v2.ListNotificationConfigsResp" + + "onse\"&\332A\006parent\212\323\344\223\002\027\022\025\n\006parent\022\013{bucket" + + "=**}\022~\n\rComposeObject\022\'.google.storage.v" + + "2.ComposeObjectRequest\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.s" + + "torage.v2.DeleteObjectRequest\032\026.google.p" + + "rotobuf.Empty\"H\332A\rbucket,object\332A\030bucket" + + ",object,generation\212\323\344\223\002\027\022\025\n\006bucket\022\013{buc" + + "ket=**}\022\215\001\n\rRestoreObject\022\'.google.stora" + + "ge.v2.RestoreObjectRequest\032\031.google.stor" + + "age.v2.Object\"8\332A\030bucket,object,generati" + + "on\212\323\344\223\002\027\022\025\n\006bucket\022\013{bucket=**}\022\272\001\n\024Canc" + + "elResumableWrite\022..google.storage.v2.Can" + + "celResumableWriteRequest\032/.google.storag" + + "e.v2.CancelResumableWriteResponse\"A\332A\tup" + + "load_id\212\323\344\223\002/\022-\n\tupload_id\022 {bucket=proj" + + "ects/*/buckets/*}/**\022\225\001\n\tGetObject\022#.goo" + + "gle.storage.v2.GetObjectRequest\032\031.google" + + ".storage.v2.Object\"H\332A\rbucket,object\332A\030b" + + "ucket,object,generation\212\323\344\223\002\027\022\025\n\006bucket\022" + + "\013{bucket=**}\022\245\001\n\nReadObject\022$.google.sto" + + "rage.v2.ReadObjectRequest\032%.google.stora" + + "ge.v2.ReadObjectResponse\"H\332A\rbucket,obje" + + "ct\332A\030bucket,object,generation\212\323\344\223\002\027\022\025\n\006b" + + "ucket\022\013{bucket=**}0\001\022\214\001\n\014UpdateObject\022&." + + "google.storage.v2.UpdateObjectRequest\032\031." + + "google.storage.v2.Object\"9\332A\022object,upda" + + "te_mask\212\323\344\223\002\036\022\034\n\robject.bucket\022\013{bucket=" + + "**}\022`\n\013WriteObject\022%.google.storage.v2.W" + + "riteObjectRequest\032&.google.storage.v2.Wr" + + "iteObjectResponse\"\000(\001\022n\n\017BidiWriteObject" + + "\022).google.storage.v2.BidiWriteObjectRequ" + + "est\032*.google.storage.v2.BidiWriteObjectR" + + "esponse\"\000(\0010\001\022\204\001\n\013ListObjects\022%.google.s" + + "torage.v2.ListObjectsRequest\032&.google.st" + + "orage.v2.ListObjectsResponse\"&\332A\006parent\212" + + "\323\344\223\002\027\022\025\n\006parent\022\013{bucket=**}\022\230\001\n\rRewrite" + + "Object\022\'.google.storage.v2.RewriteObject" + + "Request\032\".google.storage.v2.RewriteRespo" + + "nse\":\212\323\344\223\0024\022\017\n\rsource_bucket\022!\n\022destinat" + + "ion_bucket\022\013{bucket=**}\022\256\001\n\023StartResumab" + + "leWrite\022-.google.storage.v2.StartResumab" + + "leWriteRequest\032..google.storage.v2.Start" + + "ResumableWriteResponse\"8\212\323\344\223\0022\0220\n!write_" + + "object_spec.resource.bucket\022\013{bucket=**}" + + "\022\256\001\n\020QueryWriteStatus\022*.google.storage.v" + + "2.QueryWriteStatusRequest\032+.google.stora" + + "ge.v2.QueryWriteStatusResponse\"A\332A\tuploa" + + "d_id\212\323\344\223\002/\022-\n\tupload_id\022 {bucket=project" + + "s/*/buckets/*}/**\022\200\001\n\021GetServiceAccount\022" + + "+.google.storage.v2.GetServiceAccountReq" + + "uest\032!.google.storage.v2.ServiceAccount\"" + + "\033\332A\007project\212\323\344\223\002\013\022\t\n\007project\022\225\001\n\rCreateH" + + "macKey\022\'.google.storage.v2.CreateHmacKey" + + "Request\032(.google.storage.v2.CreateHmacKe" + + "yResponse\"1\332A\035project,service_account_em" + + "ail\212\323\344\223\002\013\022\t\n\007project\022w\n\rDeleteHmacKey\022\'." + + "google.storage.v2.DeleteHmacKeyRequest\032\026" + + ".google.protobuf.Empty\"%\332A\021access_id,pro" + + "ject\212\323\344\223\002\013\022\t\n\007project\022}\n\nGetHmacKey\022$.go" + + "ogle.storage.v2.GetHmacKeyRequest\032\".goog" + + "le.storage.v2.HmacKeyMetadata\"%\332A\021access" + + "_id,project\212\323\344\223\002\013\022\t\n\007project\022|\n\014ListHmac" + + "Keys\022&.google.storage.v2.ListHmacKeysReq" + + "uest\032\'.google.storage.v2.ListHmacKeysRes" + + "ponse\"\033\332A\007project\212\323\344\223\002\013\022\t\n\007project\022\235\001\n\rU" + + "pdateHmacKey\022\'.google.storage.v2.UpdateH" + + "macKeyRequest\032\".google.storage.v2.HmacKe" + + "yMetadata\"?\332A\024hmac_key,update_mask\212\323\344\223\002\"" + + "\022 \n\020hmac_key.project\022\014{project=**}\032\247\002\312A\026" + + "storage.googleapis.com\322A\212\002https://www.go" + + "ogleapis.com/auth/cloud-platform,https:/" + + "/www.googleapis.com/auth/cloud-platform." + + "read-only,https://www.googleapis.com/aut" + + "h/devstorage.full_control,https://www.go" + + "ogleapis.com/auth/devstorage.read_only,h" + + "ttps://www.googleapis.com/auth/devstorag" + + "e.read_writeB\342\001\n\025com.google.storage.v2B\014" + + "StorageProtoP\001Z>cloud.google.com/go/stor" + + "age/internal/apiv2/storagepb;storagepb\352A" + + "x\n!cloudkms.googleapis.com/CryptoKey\022Spr" + + "ojects/{project}/locations/{location}/ke" + + "yRings/{key_ring}/cryptoKeys/{crypto_key" + + "}b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.api.RoutingProto.getDescriptor(), + com.google.iam.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.DateProto.getDescriptor(), + }); + internal_static_google_storage_v2_DeleteBucketRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_storage_v2_DeleteBucketRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_DeleteBucketRequest_descriptor, + new java.lang.String[] { "Name", "IfMetagenerationMatch", "IfMetagenerationNotMatch", }); + internal_static_google_storage_v2_GetBucketRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_storage_v2_GetBucketRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_GetBucketRequest_descriptor, + new java.lang.String[] { "Name", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "ReadMask", }); + internal_static_google_storage_v2_CreateBucketRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_storage_v2_CreateBucketRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_CreateBucketRequest_descriptor, + new java.lang.String[] { "Parent", "Bucket", "BucketId", "PredefinedAcl", "PredefinedDefaultObjectAcl", }); + internal_static_google_storage_v2_ListBucketsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_storage_v2_ListBucketsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ListBucketsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Prefix", "ReadMask", }); + internal_static_google_storage_v2_ListBucketsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_storage_v2_ListBucketsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ListBucketsResponse_descriptor, + new java.lang.String[] { "Buckets", "NextPageToken", }); + internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_descriptor, + new java.lang.String[] { "Bucket", "IfMetagenerationMatch", }); + internal_static_google_storage_v2_UpdateBucketRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_storage_v2_UpdateBucketRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_UpdateBucketRequest_descriptor, + new java.lang.String[] { "Bucket", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "PredefinedAcl", "PredefinedDefaultObjectAcl", "UpdateMask", }); + internal_static_google_storage_v2_DeleteNotificationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_storage_v2_DeleteNotificationConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_DeleteNotificationConfigRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_storage_v2_GetNotificationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_storage_v2_GetNotificationConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_GetNotificationConfigRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_storage_v2_CreateNotificationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_storage_v2_CreateNotificationConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_CreateNotificationConfigRequest_descriptor, + new java.lang.String[] { "Parent", "NotificationConfig", }); + internal_static_google_storage_v2_ListNotificationConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_storage_v2_ListNotificationConfigsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ListNotificationConfigsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_storage_v2_ListNotificationConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_storage_v2_ListNotificationConfigsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ListNotificationConfigsResponse_descriptor, + new java.lang.String[] { "NotificationConfigs", "NextPageToken", }); + internal_static_google_storage_v2_ComposeObjectRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_storage_v2_ComposeObjectRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ComposeObjectRequest_descriptor, + new java.lang.String[] { "Destination", "SourceObjects", "DestinationPredefinedAcl", "IfGenerationMatch", "IfMetagenerationMatch", "KmsKey", "CommonObjectRequestParams", "ObjectChecksums", }); + internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor = + internal_static_google_storage_v2_ComposeObjectRequest_descriptor.getNestedTypes().get(0); + internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor, + new java.lang.String[] { "Name", "Generation", "ObjectPreconditions", }); + internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_descriptor = + internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor.getNestedTypes().get(0); + internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_descriptor, + new java.lang.String[] { "IfGenerationMatch", }); + internal_static_google_storage_v2_DeleteObjectRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_storage_v2_DeleteObjectRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_DeleteObjectRequest_descriptor, + new java.lang.String[] { "Bucket", "Object", "Generation", "IfGenerationMatch", "IfGenerationNotMatch", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "CommonObjectRequestParams", }); + internal_static_google_storage_v2_RestoreObjectRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_storage_v2_RestoreObjectRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_RestoreObjectRequest_descriptor, + new java.lang.String[] { "Bucket", "Object", "Generation", "IfGenerationMatch", "IfGenerationNotMatch", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "CopySourceAcl", "CommonObjectRequestParams", }); + internal_static_google_storage_v2_CancelResumableWriteRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_storage_v2_CancelResumableWriteRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_CancelResumableWriteRequest_descriptor, + new java.lang.String[] { "UploadId", }); + internal_static_google_storage_v2_CancelResumableWriteResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_storage_v2_CancelResumableWriteResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_CancelResumableWriteResponse_descriptor, + new java.lang.String[] { }); + internal_static_google_storage_v2_ReadObjectRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_storage_v2_ReadObjectRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ReadObjectRequest_descriptor, + new java.lang.String[] { "Bucket", "Object", "Generation", "ReadOffset", "ReadLimit", "IfGenerationMatch", "IfGenerationNotMatch", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "CommonObjectRequestParams", "ReadMask", }); + internal_static_google_storage_v2_GetObjectRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_storage_v2_GetObjectRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_GetObjectRequest_descriptor, + new java.lang.String[] { "Bucket", "Object", "Generation", "SoftDeleted", "IfGenerationMatch", "IfGenerationNotMatch", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "CommonObjectRequestParams", "ReadMask", }); + internal_static_google_storage_v2_ReadObjectResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_storage_v2_ReadObjectResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ReadObjectResponse_descriptor, + new java.lang.String[] { "ChecksummedData", "ObjectChecksums", "ContentRange", "Metadata", }); + internal_static_google_storage_v2_WriteObjectSpec_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_storage_v2_WriteObjectSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_WriteObjectSpec_descriptor, + new java.lang.String[] { "Resource", "PredefinedAcl", "IfGenerationMatch", "IfGenerationNotMatch", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "ObjectSize", }); + internal_static_google_storage_v2_WriteObjectRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_storage_v2_WriteObjectRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_WriteObjectRequest_descriptor, + new java.lang.String[] { "UploadId", "WriteObjectSpec", "WriteOffset", "ChecksummedData", "ObjectChecksums", "FinishWrite", "CommonObjectRequestParams", "FirstMessage", "Data", }); + internal_static_google_storage_v2_WriteObjectResponse_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_storage_v2_WriteObjectResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_WriteObjectResponse_descriptor, + new java.lang.String[] { "PersistedSize", "Resource", "WriteStatus", }); + internal_static_google_storage_v2_BidiWriteObjectRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_storage_v2_BidiWriteObjectRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_BidiWriteObjectRequest_descriptor, + new java.lang.String[] { "UploadId", "WriteObjectSpec", "WriteOffset", "ChecksummedData", "ObjectChecksums", "StateLookup", "Flush", "FinishWrite", "CommonObjectRequestParams", "FirstMessage", "Data", }); + internal_static_google_storage_v2_BidiWriteObjectResponse_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_storage_v2_BidiWriteObjectResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_BidiWriteObjectResponse_descriptor, + new java.lang.String[] { "PersistedSize", "Resource", "WriteStatus", }); + internal_static_google_storage_v2_ListObjectsRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_storage_v2_ListObjectsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ListObjectsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Delimiter", "IncludeTrailingDelimiter", "Prefix", "Versions", "ReadMask", "LexicographicStart", "LexicographicEnd", "SoftDeleted", "IncludeFoldersAsPrefixes", "MatchGlob", }); + internal_static_google_storage_v2_QueryWriteStatusRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_storage_v2_QueryWriteStatusRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_QueryWriteStatusRequest_descriptor, + new java.lang.String[] { "UploadId", "CommonObjectRequestParams", }); + internal_static_google_storage_v2_QueryWriteStatusResponse_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_storage_v2_QueryWriteStatusResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_QueryWriteStatusResponse_descriptor, + new java.lang.String[] { "PersistedSize", "Resource", "WriteStatus", }); + internal_static_google_storage_v2_RewriteObjectRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_storage_v2_RewriteObjectRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_RewriteObjectRequest_descriptor, + new java.lang.String[] { "DestinationName", "DestinationBucket", "DestinationKmsKey", "Destination", "SourceBucket", "SourceObject", "SourceGeneration", "RewriteToken", "DestinationPredefinedAcl", "IfGenerationMatch", "IfGenerationNotMatch", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "IfSourceGenerationMatch", "IfSourceGenerationNotMatch", "IfSourceMetagenerationMatch", "IfSourceMetagenerationNotMatch", "MaxBytesRewrittenPerCall", "CopySourceEncryptionAlgorithm", "CopySourceEncryptionKeyBytes", "CopySourceEncryptionKeySha256Bytes", "CommonObjectRequestParams", "ObjectChecksums", }); + internal_static_google_storage_v2_RewriteResponse_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_storage_v2_RewriteResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_RewriteResponse_descriptor, + new java.lang.String[] { "TotalBytesRewritten", "ObjectSize", "Done", "RewriteToken", "Resource", }); + internal_static_google_storage_v2_StartResumableWriteRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_storage_v2_StartResumableWriteRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_StartResumableWriteRequest_descriptor, + new java.lang.String[] { "WriteObjectSpec", "CommonObjectRequestParams", "ObjectChecksums", }); + internal_static_google_storage_v2_StartResumableWriteResponse_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_storage_v2_StartResumableWriteResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_StartResumableWriteResponse_descriptor, + new java.lang.String[] { "UploadId", }); + internal_static_google_storage_v2_UpdateObjectRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_storage_v2_UpdateObjectRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_UpdateObjectRequest_descriptor, + new java.lang.String[] { "Object", "IfGenerationMatch", "IfGenerationNotMatch", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "PredefinedAcl", "UpdateMask", "CommonObjectRequestParams", }); + internal_static_google_storage_v2_GetServiceAccountRequest_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_storage_v2_GetServiceAccountRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_GetServiceAccountRequest_descriptor, + new java.lang.String[] { "Project", }); + internal_static_google_storage_v2_CreateHmacKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_storage_v2_CreateHmacKeyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_CreateHmacKeyRequest_descriptor, + new java.lang.String[] { "Project", "ServiceAccountEmail", }); + internal_static_google_storage_v2_CreateHmacKeyResponse_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_storage_v2_CreateHmacKeyResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_CreateHmacKeyResponse_descriptor, + new java.lang.String[] { "Metadata", "SecretKeyBytes", }); + internal_static_google_storage_v2_DeleteHmacKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_storage_v2_DeleteHmacKeyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_DeleteHmacKeyRequest_descriptor, + new java.lang.String[] { "AccessId", "Project", }); + internal_static_google_storage_v2_GetHmacKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_storage_v2_GetHmacKeyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_GetHmacKeyRequest_descriptor, + new java.lang.String[] { "AccessId", "Project", }); + internal_static_google_storage_v2_ListHmacKeysRequest_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_storage_v2_ListHmacKeysRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ListHmacKeysRequest_descriptor, + new java.lang.String[] { "Project", "PageSize", "PageToken", "ServiceAccountEmail", "ShowDeletedKeys", }); + internal_static_google_storage_v2_ListHmacKeysResponse_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_storage_v2_ListHmacKeysResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ListHmacKeysResponse_descriptor, + new java.lang.String[] { "HmacKeys", "NextPageToken", }); + internal_static_google_storage_v2_UpdateHmacKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_storage_v2_UpdateHmacKeyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_UpdateHmacKeyRequest_descriptor, + new java.lang.String[] { "HmacKey", "UpdateMask", }); + internal_static_google_storage_v2_CommonObjectRequestParams_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_storage_v2_CommonObjectRequestParams_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_CommonObjectRequestParams_descriptor, + new java.lang.String[] { "EncryptionAlgorithm", "EncryptionKeyBytes", "EncryptionKeySha256Bytes", }); + internal_static_google_storage_v2_ServiceConstants_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_google_storage_v2_ServiceConstants_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ServiceConstants_descriptor, + new java.lang.String[] { }); + internal_static_google_storage_v2_Bucket_descriptor = + getDescriptor().getMessageTypes().get(43); + internal_static_google_storage_v2_Bucket_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_descriptor, + new java.lang.String[] { "Name", "BucketId", "Etag", "Project", "Metageneration", "Location", "LocationType", "StorageClass", "Rpo", "Acl", "DefaultObjectAcl", "Lifecycle", "CreateTime", "Cors", "UpdateTime", "DefaultEventBasedHold", "Labels", "Website", "Versioning", "Logging", "Owner", "Encryption", "Billing", "RetentionPolicy", "IamConfig", "SatisfiesPzs", "CustomPlacementConfig", "Autoclass", "HierarchicalNamespace", "SoftDeletePolicy", }); + internal_static_google_storage_v2_Bucket_Billing_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(0); + internal_static_google_storage_v2_Bucket_Billing_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_Billing_descriptor, + new java.lang.String[] { "RequesterPays", }); + internal_static_google_storage_v2_Bucket_Cors_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(1); + internal_static_google_storage_v2_Bucket_Cors_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_Cors_descriptor, + new java.lang.String[] { "Origin", "Method", "ResponseHeader", "MaxAgeSeconds", }); + internal_static_google_storage_v2_Bucket_Encryption_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(2); + internal_static_google_storage_v2_Bucket_Encryption_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_Encryption_descriptor, + new java.lang.String[] { "DefaultKmsKey", }); + internal_static_google_storage_v2_Bucket_IamConfig_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(3); + internal_static_google_storage_v2_Bucket_IamConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_IamConfig_descriptor, + new java.lang.String[] { "UniformBucketLevelAccess", "PublicAccessPrevention", }); + internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_descriptor = + internal_static_google_storage_v2_Bucket_IamConfig_descriptor.getNestedTypes().get(0); + internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_descriptor, + new java.lang.String[] { "Enabled", "LockTime", }); + internal_static_google_storage_v2_Bucket_Lifecycle_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(4); + internal_static_google_storage_v2_Bucket_Lifecycle_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_Lifecycle_descriptor, + new java.lang.String[] { "Rule", }); + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor = + internal_static_google_storage_v2_Bucket_Lifecycle_descriptor.getNestedTypes().get(0); + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor, + new java.lang.String[] { "Action", "Condition", }); + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_descriptor = + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor.getNestedTypes().get(0); + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_descriptor, + new java.lang.String[] { "Type", "StorageClass", }); + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_descriptor = + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor.getNestedTypes().get(1); + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_descriptor, + new java.lang.String[] { "AgeDays", "CreatedBefore", "IsLive", "NumNewerVersions", "MatchesStorageClass", "DaysSinceCustomTime", "CustomTimeBefore", "DaysSinceNoncurrentTime", "NoncurrentTimeBefore", "MatchesPrefix", "MatchesSuffix", }); + internal_static_google_storage_v2_Bucket_Logging_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(5); + internal_static_google_storage_v2_Bucket_Logging_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_Logging_descriptor, + new java.lang.String[] { "LogBucket", "LogObjectPrefix", }); + internal_static_google_storage_v2_Bucket_RetentionPolicy_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(6); + internal_static_google_storage_v2_Bucket_RetentionPolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_RetentionPolicy_descriptor, + new java.lang.String[] { "EffectiveTime", "IsLocked", "RetentionDuration", }); + internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(7); + internal_static_google_storage_v2_Bucket_SoftDeletePolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor, + new java.lang.String[] { "RetentionDuration", "EffectiveTime", }); + internal_static_google_storage_v2_Bucket_Versioning_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(8); + internal_static_google_storage_v2_Bucket_Versioning_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_Versioning_descriptor, + new java.lang.String[] { "Enabled", }); + internal_static_google_storage_v2_Bucket_Website_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(9); + internal_static_google_storage_v2_Bucket_Website_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_Website_descriptor, + new java.lang.String[] { "MainPageSuffix", "NotFoundPage", }); + internal_static_google_storage_v2_Bucket_CustomPlacementConfig_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(10); + internal_static_google_storage_v2_Bucket_CustomPlacementConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_CustomPlacementConfig_descriptor, + new java.lang.String[] { "DataLocations", }); + internal_static_google_storage_v2_Bucket_Autoclass_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(11); + internal_static_google_storage_v2_Bucket_Autoclass_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_Autoclass_descriptor, + new java.lang.String[] { "Enabled", "ToggleTime", "TerminalStorageClass", "TerminalStorageClassUpdateTime", }); + internal_static_google_storage_v2_Bucket_HierarchicalNamespace_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(12); + internal_static_google_storage_v2_Bucket_HierarchicalNamespace_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_HierarchicalNamespace_descriptor, + new java.lang.String[] { "Enabled", }); + internal_static_google_storage_v2_Bucket_LabelsEntry_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(13); + internal_static_google_storage_v2_Bucket_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_storage_v2_BucketAccessControl_descriptor = + getDescriptor().getMessageTypes().get(44); + internal_static_google_storage_v2_BucketAccessControl_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_BucketAccessControl_descriptor, + new java.lang.String[] { "Role", "Id", "Entity", "EntityAlt", "EntityId", "Etag", "Email", "Domain", "ProjectTeam", }); + internal_static_google_storage_v2_ChecksummedData_descriptor = + getDescriptor().getMessageTypes().get(45); + internal_static_google_storage_v2_ChecksummedData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ChecksummedData_descriptor, + new java.lang.String[] { "Content", "Crc32C", }); + internal_static_google_storage_v2_ObjectChecksums_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_google_storage_v2_ObjectChecksums_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ObjectChecksums_descriptor, + new java.lang.String[] { "Crc32C", "Md5Hash", }); + internal_static_google_storage_v2_HmacKeyMetadata_descriptor = + getDescriptor().getMessageTypes().get(47); + internal_static_google_storage_v2_HmacKeyMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_HmacKeyMetadata_descriptor, + new java.lang.String[] { "Id", "AccessId", "Project", "ServiceAccountEmail", "State", "CreateTime", "UpdateTime", "Etag", }); + internal_static_google_storage_v2_NotificationConfig_descriptor = + getDescriptor().getMessageTypes().get(48); + internal_static_google_storage_v2_NotificationConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_NotificationConfig_descriptor, + new java.lang.String[] { "Name", "Topic", "Etag", "EventTypes", "CustomAttributes", "ObjectNamePrefix", "PayloadFormat", }); + internal_static_google_storage_v2_NotificationConfig_CustomAttributesEntry_descriptor = + internal_static_google_storage_v2_NotificationConfig_descriptor.getNestedTypes().get(0); + internal_static_google_storage_v2_NotificationConfig_CustomAttributesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_NotificationConfig_CustomAttributesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_storage_v2_CustomerEncryption_descriptor = + getDescriptor().getMessageTypes().get(49); + internal_static_google_storage_v2_CustomerEncryption_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_CustomerEncryption_descriptor, + new java.lang.String[] { "EncryptionAlgorithm", "KeySha256Bytes", }); + internal_static_google_storage_v2_Object_descriptor = + getDescriptor().getMessageTypes().get(50); + internal_static_google_storage_v2_Object_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Object_descriptor, + new java.lang.String[] { "Name", "Bucket", "Etag", "Generation", "Metageneration", "StorageClass", "Size", "ContentEncoding", "ContentDisposition", "CacheControl", "Acl", "ContentLanguage", "DeleteTime", "ContentType", "CreateTime", "ComponentCount", "Checksums", "UpdateTime", "KmsKey", "UpdateStorageClassTime", "TemporaryHold", "RetentionExpireTime", "Metadata", "EventBasedHold", "Owner", "CustomerEncryption", "CustomTime", "SoftDeleteTime", "HardDeleteTime", }); + internal_static_google_storage_v2_Object_MetadataEntry_descriptor = + internal_static_google_storage_v2_Object_descriptor.getNestedTypes().get(0); + internal_static_google_storage_v2_Object_MetadataEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Object_MetadataEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_storage_v2_ObjectAccessControl_descriptor = + getDescriptor().getMessageTypes().get(51); + internal_static_google_storage_v2_ObjectAccessControl_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ObjectAccessControl_descriptor, + new java.lang.String[] { "Role", "Id", "Entity", "EntityAlt", "EntityId", "Etag", "Email", "Domain", "ProjectTeam", }); + internal_static_google_storage_v2_ListObjectsResponse_descriptor = + getDescriptor().getMessageTypes().get(52); + internal_static_google_storage_v2_ListObjectsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ListObjectsResponse_descriptor, + new java.lang.String[] { "Objects", "Prefixes", "NextPageToken", }); + internal_static_google_storage_v2_ProjectTeam_descriptor = + getDescriptor().getMessageTypes().get(53); + internal_static_google_storage_v2_ProjectTeam_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ProjectTeam_descriptor, + new java.lang.String[] { "ProjectNumber", "Team", }); + internal_static_google_storage_v2_ServiceAccount_descriptor = + getDescriptor().getMessageTypes().get(54); + internal_static_google_storage_v2_ServiceAccount_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ServiceAccount_descriptor, + new java.lang.String[] { "EmailAddress", }); + internal_static_google_storage_v2_Owner_descriptor = + getDescriptor().getMessageTypes().get(55); + internal_static_google_storage_v2_Owner_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Owner_descriptor, + new java.lang.String[] { "Entity", "EntityId", }); + internal_static_google_storage_v2_ContentRange_descriptor = + getDescriptor().getMessageTypes().get(56); + internal_static_google_storage_v2_ContentRange_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ContentRange_descriptor, + new java.lang.String[] { "Start", "End", "CompleteLength", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.api.RoutingProto.routing); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.api.RoutingProto.getDescriptor(); + com.google.iam.v1.IamPolicyProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.DateProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateBucketRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateBucketRequest.java similarity index 76% 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 85cd112fc2..31b018a999 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,24 +5,21 @@ 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_ = ""; @@ -45,38 +27,34 @@ private UpdateBucketRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateBucketRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_UpdateBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_UpdateBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_UpdateBucketRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_UpdateBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.UpdateBucketRequest.class, - com.google.storage.v2.UpdateBucketRequest.Builder.class); + com.google.storage.v2.UpdateBucketRequest.class, com.google.storage.v2.UpdateBucketRequest.Builder.class); } private int bitField0_; public static final int BUCKET_FIELD_NUMBER = 1; private com.google.storage.v2.Bucket bucket_; /** - * - * *
                * Required. The bucket to update.
                * The bucket's `name` field will be used to identify the bucket.
                * 
            * * .google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the bucket field is set. */ @java.lang.Override @@ -84,15 +62,12 @@ 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. */ @java.lang.Override @@ -100,8 +75,6 @@ public com.google.storage.v2.Bucket getBucket() { return bucket_ == null ? com.google.storage.v2.Bucket.getDefaultInstance() : bucket_; } /** - * - * *
                * Required. The bucket to update.
                * The bucket's `name` field will be used to identify the bucket.
            @@ -117,15 +90,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 @@ -133,15 +103,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 @@ -152,15 +119,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 @@ -168,15 +132,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 @@ -185,12 +146,9 @@ public long getIfMetagenerationNotMatch() { } public static final int PREDEFINED_ACL_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object predefinedAcl_ = ""; /** - * - * *
                * Apply a predefined set of access controls to this bucket.
                * Valid values are "authenticatedRead", "private", "projectPrivate",
            @@ -198,7 +156,6 @@ public long getIfMetagenerationNotMatch() {
                * 
            * * string predefined_acl = 8; - * * @return The predefinedAcl. */ @java.lang.Override @@ -207,15 +164,14 @@ public java.lang.String getPredefinedAcl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); predefinedAcl_ = s; return s; } } /** - * - * *
                * Apply a predefined set of access controls to this bucket.
                * Valid values are "authenticatedRead", "private", "projectPrivate",
            @@ -223,15 +179,16 @@ public java.lang.String getPredefinedAcl() {
                * 
            * * string predefined_acl = 8; - * * @return The bytes for predefinedAcl. */ @java.lang.Override - public com.google.protobuf.ByteString getPredefinedAclBytes() { + public com.google.protobuf.ByteString + getPredefinedAclBytes() { java.lang.Object ref = predefinedAcl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); predefinedAcl_ = b; return b; } else { @@ -240,12 +197,9 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() { } public static final int PREDEFINED_DEFAULT_OBJECT_ACL_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private volatile java.lang.Object predefinedDefaultObjectAcl_ = ""; /** - * - * *
                * Apply a predefined set of default object access controls to this bucket.
                * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -253,7 +207,6 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() {
                * 
            * * string predefined_default_object_acl = 9; - * * @return The predefinedDefaultObjectAcl. */ @java.lang.Override @@ -262,15 +215,14 @@ public java.lang.String getPredefinedDefaultObjectAcl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); predefinedDefaultObjectAcl_ = s; return s; } } /** - * - * *
                * Apply a predefined set of default object access controls to this bucket.
                * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -278,15 +230,16 @@ public java.lang.String getPredefinedDefaultObjectAcl() {
                * 
            * * string predefined_default_object_acl = 9; - * * @return The bytes for predefinedDefaultObjectAcl. */ @java.lang.Override - public com.google.protobuf.ByteString getPredefinedDefaultObjectAclBytes() { + public com.google.protobuf.ByteString + getPredefinedDefaultObjectAclBytes() { java.lang.Object ref = predefinedDefaultObjectAcl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); predefinedDefaultObjectAcl_ = b; return b; } else { @@ -297,8 +250,6 @@ public com.google.protobuf.ByteString getPredefinedDefaultObjectAclBytes() { public static final int UPDATE_MASK_FIELD_NUMBER = 6; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
                * Required. List of fields to be updated.
                *
            @@ -310,9 +261,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 @@ -320,8 +269,6 @@ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
                * Required. List of fields to be updated.
                *
            @@ -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.
                *
            @@ -356,8 +299,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
                * Not specifying any fields is an error.
                * 
            * - * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -365,7 +307,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -377,7 +318,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getBucket()); } @@ -406,23 +348,26 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBucket()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBucket()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, ifMetagenerationMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, ifMetagenerationMatch_); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, ifMetagenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, ifMetagenerationNotMatch_); } if (((bitField0_ & 0x00000008) != 0)) { - 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; @@ -432,32 +377,36 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.UpdateBucketRequest)) { return super.equals(obj); } - com.google.storage.v2.UpdateBucketRequest other = - (com.google.storage.v2.UpdateBucketRequest) obj; + com.google.storage.v2.UpdateBucketRequest other = (com.google.storage.v2.UpdateBucketRequest) obj; if (hasBucket() != other.hasBucket()) return false; if (hasBucket()) { - if (!getBucket().equals(other.getBucket())) return false; + if (!getBucket() + .equals(other.getBucket())) return false; } if (hasIfMetagenerationMatch() != other.hasIfMetagenerationMatch()) return false; if (hasIfMetagenerationMatch()) { - if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false; + if (getIfMetagenerationMatch() + != other.getIfMetagenerationMatch()) return false; } if (hasIfMetagenerationNotMatch() != other.hasIfMetagenerationNotMatch()) return false; if (hasIfMetagenerationNotMatch()) { - if (getIfMetagenerationNotMatch() != other.getIfMetagenerationNotMatch()) return false; + if (getIfMetagenerationNotMatch() + != other.getIfMetagenerationNotMatch()) return false; } - if (!getPredefinedAcl().equals(other.getPredefinedAcl())) return false; - if (!getPredefinedDefaultObjectAcl().equals(other.getPredefinedDefaultObjectAcl())) - return false; + if (!getPredefinedAcl() + .equals(other.getPredefinedAcl())) return false; + if (!getPredefinedDefaultObjectAcl() + .equals(other.getPredefinedDefaultObjectAcl())) return false; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -476,11 +425,13 @@ public int hashCode() { } if (hasIfMetagenerationMatch()) { hash = (37 * hash) + IF_METAGENERATION_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationMatch()); } if (hasIfMetagenerationNotMatch()) { hash = (37 * hash) + IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationNotMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationNotMatch()); } hash = (37 * hash) + PREDEFINED_ACL_FIELD_NUMBER; hash = (53 * hash) + getPredefinedAcl().hashCode(); @@ -495,127 +446,120 @@ 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() @@ -623,18 +567,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) { getBucketFieldBuilder(); getUpdateMaskFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -657,9 +601,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_UpdateBucketRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_UpdateBucketRequest_descriptor; } @java.lang.Override @@ -678,11 +622,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; } @@ -691,7 +632,9 @@ private void buildPartial0(com.google.storage.v2.UpdateBucketRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.bucket_ = bucketBuilder_ == null ? bucket_ : bucketBuilder_.build(); + result.bucket_ = bucketBuilder_ == null + ? bucket_ + : bucketBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { @@ -709,7 +652,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(); to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; @@ -719,39 +664,38 @@ private void buildPartial0(com.google.storage.v2.UpdateBucketRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.UpdateBucketRequest) { - return mergeFrom((com.google.storage.v2.UpdateBucketRequest) other); + return mergeFrom((com.google.storage.v2.UpdateBucketRequest)other); } else { super.mergeFrom(other); return this; @@ -808,49 +752,46 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getBucketFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - ifMetagenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - ifMetagenerationNotMatch_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 50: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 66: - { - predefinedAcl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 66 - case 74: - { - predefinedDefaultObjectAcl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 74 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getBucketFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + ifMetagenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + ifMetagenerationNotMatch_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 50: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 66: { + predefinedAcl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 66 + case 74: { + predefinedDefaultObjectAcl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 74 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -860,40 +801,30 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.storage.v2.Bucket bucket_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket, - com.google.storage.v2.Bucket.Builder, - com.google.storage.v2.BucketOrBuilder> - bucketBuilder_; + com.google.storage.v2.Bucket, com.google.storage.v2.Bucket.Builder, com.google.storage.v2.BucketOrBuilder> bucketBuilder_; /** - * - * *
                  * Required. The bucket to update.
                  * The bucket's `name` field will be used to identify the bucket.
                  * 
            * * .google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the bucket field is set. */ public boolean hasBucket() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                  * Required. The bucket to update.
                  * The bucket's `name` field will be used to identify the bucket.
                  * 
            * * .google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bucket. */ public com.google.storage.v2.Bucket getBucket() { @@ -904,8 +835,6 @@ public com.google.storage.v2.Bucket getBucket() { } } /** - * - * *
                  * Required. The bucket to update.
                  * The bucket's `name` field will be used to identify the bucket.
            @@ -927,8 +856,6 @@ public Builder setBucket(com.google.storage.v2.Bucket value) {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Required. The bucket to update.
                  * The bucket's `name` field will be used to identify the bucket.
            @@ -936,7 +863,8 @@ public Builder setBucket(com.google.storage.v2.Bucket value) {
                  *
                  * .google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED];
                  */
            -    public Builder setBucket(com.google.storage.v2.Bucket.Builder builderForValue) {
            +    public Builder setBucket(
            +        com.google.storage.v2.Bucket.Builder builderForValue) {
                   if (bucketBuilder_ == null) {
                     bucket_ = builderForValue.build();
                   } else {
            @@ -947,8 +875,6 @@ public Builder setBucket(com.google.storage.v2.Bucket.Builder builderForValue) {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Required. The bucket to update.
                  * The bucket's `name` field will be used to identify the bucket.
            @@ -958,9 +884,9 @@ public Builder setBucket(com.google.storage.v2.Bucket.Builder builderForValue) {
                  */
                 public Builder mergeBucket(com.google.storage.v2.Bucket value) {
                   if (bucketBuilder_ == null) {
            -        if (((bitField0_ & 0x00000001) != 0)
            -            && bucket_ != null
            -            && bucket_ != com.google.storage.v2.Bucket.getDefaultInstance()) {
            +        if (((bitField0_ & 0x00000001) != 0) &&
            +          bucket_ != null &&
            +          bucket_ != com.google.storage.v2.Bucket.getDefaultInstance()) {
                       getBucketBuilder().mergeFrom(value);
                     } else {
                       bucket_ = value;
            @@ -975,8 +901,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.
            @@ -995,8 +919,6 @@ public Builder clearBucket() {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Required. The bucket to update.
                  * The bucket's `name` field will be used to identify the bucket.
            @@ -1010,8 +932,6 @@ public com.google.storage.v2.Bucket.Builder getBucketBuilder() {
                   return getBucketFieldBuilder().getBuilder();
                 }
                 /**
            -     *
            -     *
                  * 
                  * Required. The bucket to update.
                  * The bucket's `name` field will be used to identify the bucket.
            @@ -1023,12 +943,11 @@ public com.google.storage.v2.BucketOrBuilder getBucketOrBuilder() {
                   if (bucketBuilder_ != null) {
                     return bucketBuilder_.getMessageOrBuilder();
                   } else {
            -        return bucket_ == null ? com.google.storage.v2.Bucket.getDefaultInstance() : bucket_;
            +        return bucket_ == null ?
            +            com.google.storage.v2.Bucket.getDefaultInstance() : bucket_;
                   }
                 }
                 /**
            -     *
            -     *
                  * 
                  * Required. The bucket to update.
                  * The bucket's `name` field will be used to identify the bucket.
            @@ -1037,33 +956,27 @@ public com.google.storage.v2.BucketOrBuilder getBucketOrBuilder() {
                  * .google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED];
                  */
                 private com.google.protobuf.SingleFieldBuilderV3<
            -            com.google.storage.v2.Bucket,
            -            com.google.storage.v2.Bucket.Builder,
            -            com.google.storage.v2.BucketOrBuilder>
            +        com.google.storage.v2.Bucket, com.google.storage.v2.Bucket.Builder, com.google.storage.v2.BucketOrBuilder> 
                     getBucketFieldBuilder() {
                   if (bucketBuilder_ == null) {
            -        bucketBuilder_ =
            -            new com.google.protobuf.SingleFieldBuilderV3<
            -                com.google.storage.v2.Bucket,
            -                com.google.storage.v2.Bucket.Builder,
            -                com.google.storage.v2.BucketOrBuilder>(
            -                getBucket(), getParentForChildren(), isClean());
            +        bucketBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            +            com.google.storage.v2.Bucket, com.google.storage.v2.Bucket.Builder, com.google.storage.v2.BucketOrBuilder>(
            +                getBucket(),
            +                getParentForChildren(),
            +                isClean());
                     bucket_ = null;
                   }
                   return bucketBuilder_;
                 }
             
            -    private long ifMetagenerationMatch_;
            +    private long ifMetagenerationMatch_ ;
                 /**
            -     *
            -     *
                  * 
                  * If set, will only modify the bucket if its metageneration matches this
                  * value.
                  * 
            * * optional int64 if_metageneration_match = 2; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -1071,15 +984,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                  * If set, will only modify the bucket if its metageneration matches this
                  * value.
                  * 
            * * optional int64 if_metageneration_match = 2; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -1087,15 +997,12 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** - * - * *
                  * If set, will only modify the bucket if its metageneration matches this
                  * value.
                  * 
            * * optional int64 if_metageneration_match = 2; - * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -1107,15 +1014,12 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** - * - * *
                  * If set, will only modify the bucket if its metageneration matches this
                  * value.
                  * 
            * * optional int64 if_metageneration_match = 2; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -1125,17 +1029,14 @@ public Builder clearIfMetagenerationMatch() { return this; } - private long ifMetagenerationNotMatch_; + private long ifMetagenerationNotMatch_ ; /** - * - * *
                  * If set, will only modify the bucket if its metageneration does not match
                  * this value.
                  * 
            * * optional int64 if_metageneration_not_match = 3; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -1143,15 +1044,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
                  * If set, will only modify the bucket if its metageneration does not match
                  * this value.
                  * 
            * * optional int64 if_metageneration_not_match = 3; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -1159,15 +1057,12 @@ public long getIfMetagenerationNotMatch() { return ifMetagenerationNotMatch_; } /** - * - * *
                  * If set, will only modify the bucket if its metageneration does not match
                  * this value.
                  * 
            * * optional int64 if_metageneration_not_match = 3; - * * @param value The ifMetagenerationNotMatch to set. * @return This builder for chaining. */ @@ -1179,15 +1074,12 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** - * - * *
                  * If set, will only modify the bucket if its metageneration does not match
                  * this value.
                  * 
            * * optional int64 if_metageneration_not_match = 3; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -1199,8 +1091,6 @@ public Builder clearIfMetagenerationNotMatch() { private java.lang.Object predefinedAcl_ = ""; /** - * - * *
                  * Apply a predefined set of access controls to this bucket.
                  * Valid values are "authenticatedRead", "private", "projectPrivate",
            @@ -1208,13 +1098,13 @@ public Builder clearIfMetagenerationNotMatch() {
                  * 
            * * string predefined_acl = 8; - * * @return The predefinedAcl. */ public java.lang.String getPredefinedAcl() { java.lang.Object ref = predefinedAcl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); predefinedAcl_ = s; return s; @@ -1223,8 +1113,6 @@ public java.lang.String getPredefinedAcl() { } } /** - * - * *
                  * Apply a predefined set of access controls to this bucket.
                  * Valid values are "authenticatedRead", "private", "projectPrivate",
            @@ -1232,14 +1120,15 @@ public java.lang.String getPredefinedAcl() {
                  * 
            * * string predefined_acl = 8; - * * @return The bytes for predefinedAcl. */ - public com.google.protobuf.ByteString getPredefinedAclBytes() { + public com.google.protobuf.ByteString + getPredefinedAclBytes() { java.lang.Object ref = predefinedAcl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); predefinedAcl_ = b; return b; } else { @@ -1247,8 +1136,6 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() { } } /** - * - * *
                  * Apply a predefined set of access controls to this bucket.
                  * Valid values are "authenticatedRead", "private", "projectPrivate",
            @@ -1256,22 +1143,18 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() {
                  * 
            * * string predefined_acl = 8; - * * @param value The predefinedAcl to set. * @return This builder for chaining. */ - public Builder setPredefinedAcl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPredefinedAcl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } predefinedAcl_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
                  * Apply a predefined set of access controls to this bucket.
                  * Valid values are "authenticatedRead", "private", "projectPrivate",
            @@ -1279,7 +1162,6 @@ public Builder setPredefinedAcl(java.lang.String value) {
                  * 
            * * string predefined_acl = 8; - * * @return This builder for chaining. */ public Builder clearPredefinedAcl() { @@ -1289,8 +1171,6 @@ public Builder clearPredefinedAcl() { return this; } /** - * - * *
                  * Apply a predefined set of access controls to this bucket.
                  * Valid values are "authenticatedRead", "private", "projectPrivate",
            @@ -1298,14 +1178,12 @@ public Builder clearPredefinedAcl() {
                  * 
            * * string predefined_acl = 8; - * * @param value The bytes for predefinedAcl to set. * @return This builder for chaining. */ - public Builder setPredefinedAclBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPredefinedAclBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); predefinedAcl_ = value; bitField0_ |= 0x00000008; @@ -1315,8 +1193,6 @@ public Builder setPredefinedAclBytes(com.google.protobuf.ByteString value) { private java.lang.Object predefinedDefaultObjectAcl_ = ""; /** - * - * *
                  * Apply a predefined set of default object access controls to this bucket.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -1324,13 +1200,13 @@ public Builder setPredefinedAclBytes(com.google.protobuf.ByteString value) {
                  * 
            * * string predefined_default_object_acl = 9; - * * @return The predefinedDefaultObjectAcl. */ public java.lang.String getPredefinedDefaultObjectAcl() { java.lang.Object ref = predefinedDefaultObjectAcl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); predefinedDefaultObjectAcl_ = s; return s; @@ -1339,8 +1215,6 @@ public java.lang.String getPredefinedDefaultObjectAcl() { } } /** - * - * *
                  * Apply a predefined set of default object access controls to this bucket.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -1348,14 +1222,15 @@ public java.lang.String getPredefinedDefaultObjectAcl() {
                  * 
            * * string predefined_default_object_acl = 9; - * * @return The bytes for predefinedDefaultObjectAcl. */ - public com.google.protobuf.ByteString getPredefinedDefaultObjectAclBytes() { + public com.google.protobuf.ByteString + getPredefinedDefaultObjectAclBytes() { java.lang.Object ref = predefinedDefaultObjectAcl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); predefinedDefaultObjectAcl_ = b; return b; } else { @@ -1363,8 +1238,6 @@ public com.google.protobuf.ByteString getPredefinedDefaultObjectAclBytes() { } } /** - * - * *
                  * Apply a predefined set of default object access controls to this bucket.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -1372,22 +1245,18 @@ public com.google.protobuf.ByteString getPredefinedDefaultObjectAclBytes() {
                  * 
            * * string predefined_default_object_acl = 9; - * * @param value The predefinedDefaultObjectAcl to set. * @return This builder for chaining. */ - public Builder setPredefinedDefaultObjectAcl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPredefinedDefaultObjectAcl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } predefinedDefaultObjectAcl_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
                  * Apply a predefined set of default object access controls to this bucket.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -1395,7 +1264,6 @@ public Builder setPredefinedDefaultObjectAcl(java.lang.String value) {
                  * 
            * * string predefined_default_object_acl = 9; - * * @return This builder for chaining. */ public Builder clearPredefinedDefaultObjectAcl() { @@ -1405,8 +1273,6 @@ public Builder clearPredefinedDefaultObjectAcl() { return this; } /** - * - * *
                  * Apply a predefined set of default object access controls to this bucket.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -1414,14 +1280,12 @@ public Builder clearPredefinedDefaultObjectAcl() {
                  * 
            * * string predefined_default_object_acl = 9; - * * @param value The bytes for predefinedDefaultObjectAcl to set. * @return This builder for chaining. */ - public Builder setPredefinedDefaultObjectAclBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPredefinedDefaultObjectAclBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); predefinedDefaultObjectAcl_ = value; bitField0_ |= 0x00000010; @@ -1431,13 +1295,8 @@ public Builder setPredefinedDefaultObjectAclBytes(com.google.protobuf.ByteString private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
                  * Required. List of fields to be updated.
                  *
            @@ -1449,17 +1308,13 @@ public Builder setPredefinedDefaultObjectAclBytes(com.google.protobuf.ByteString
                  * Not specifying any fields is an error.
                  * 
            * - * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
                  * Required. List of fields to be updated.
                  *
            @@ -1471,23 +1326,17 @@ public boolean hasUpdateMask() {
                  * Not specifying any fields is an error.
                  * 
            * - * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
                  * Required. List of fields to be updated.
                  *
            @@ -1499,8 +1348,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
                  * Not specifying any fields is an error.
                  * 
            * - * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -1516,8 +1364,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
                  * Required. List of fields to be updated.
                  *
            @@ -1529,10 +1375,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
                  * Not specifying any fields is an error.
                  * 
            * - * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -1543,8 +1389,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
                  * Required. List of fields to be updated.
                  *
            @@ -1556,14 +1400,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
                  * Not specifying any fields is an error.
                  * 
            * - * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -1578,8 +1421,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
                  * Required. List of fields to be updated.
                  *
            @@ -1591,8 +1432,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
                  * Not specifying any fields is an error.
                  * 
            * - * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000020); @@ -1605,8 +1445,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
                  * Required. List of fields to be updated.
                  *
            @@ -1618,8 +1456,7 @@ public Builder clearUpdateMask() {
                  * Not specifying any fields is an error.
                  * 
            * - * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000020; @@ -1627,8 +1464,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
                  * Required. List of fields to be updated.
                  *
            @@ -1640,21 +1475,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
                  * Not specifying any fields is an error.
                  * 
            * - * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
                  * Required. List of fields to be updated.
                  *
            @@ -1666,28 +1497,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
                  * Not specifying any fields is an error.
                  * 
            * - * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1697,12 +1524,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.UpdateBucketRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.UpdateBucketRequest) private static final com.google.storage.v2.UpdateBucketRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.UpdateBucketRequest(); } @@ -1711,27 +1538,27 @@ public static com.google.storage.v2.UpdateBucketRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateBucketRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateBucketRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1746,4 +1573,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.UpdateBucketRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateBucketRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateBucketRequestOrBuilder.java similarity index 83% 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 98179a9935..56fb05950c 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,58 +1,34 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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.
            @@ -63,62 +39,48 @@ public interface UpdateBucketRequestOrBuilder
               com.google.storage.v2.BucketOrBuilder getBucketOrBuilder();
             
               /**
            -   *
            -   *
                * 
                * If set, will only modify the bucket if its metageneration matches this
                * value.
                * 
            * * optional int64 if_metageneration_match = 2; - * * @return Whether the ifMetagenerationMatch field is set. */ boolean hasIfMetagenerationMatch(); /** - * - * *
                * If set, will only modify the bucket if its metageneration matches this
                * value.
                * 
            * * optional int64 if_metageneration_match = 2; - * * @return The ifMetagenerationMatch. */ long getIfMetagenerationMatch(); /** - * - * *
                * If set, will only modify the bucket if its metageneration does not match
                * this value.
                * 
            * * optional int64 if_metageneration_not_match = 3; - * * @return Whether the ifMetagenerationNotMatch field is set. */ boolean hasIfMetagenerationNotMatch(); /** - * - * *
                * If set, will only modify the bucket if its metageneration does not match
                * this value.
                * 
            * * optional int64 if_metageneration_not_match = 3; - * * @return The ifMetagenerationNotMatch. */ long getIfMetagenerationNotMatch(); /** - * - * *
                * Apply a predefined set of access controls to this bucket.
                * Valid values are "authenticatedRead", "private", "projectPrivate",
            @@ -126,13 +88,10 @@ public interface UpdateBucketRequestOrBuilder
                * 
            * * string predefined_acl = 8; - * * @return The predefinedAcl. */ java.lang.String getPredefinedAcl(); /** - * - * *
                * Apply a predefined set of access controls to this bucket.
                * Valid values are "authenticatedRead", "private", "projectPrivate",
            @@ -140,14 +99,12 @@ public interface UpdateBucketRequestOrBuilder
                * 
            * * string predefined_acl = 8; - * * @return The bytes for predefinedAcl. */ - com.google.protobuf.ByteString getPredefinedAclBytes(); + com.google.protobuf.ByteString + getPredefinedAclBytes(); /** - * - * *
                * Apply a predefined set of default object access controls to this bucket.
                * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -155,13 +112,10 @@ public interface UpdateBucketRequestOrBuilder
                * 
            * * string predefined_default_object_acl = 9; - * * @return The predefinedDefaultObjectAcl. */ java.lang.String getPredefinedDefaultObjectAcl(); /** - * - * *
                * Apply a predefined set of default object access controls to this bucket.
                * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -169,14 +123,12 @@ public interface UpdateBucketRequestOrBuilder
                * 
            * * string predefined_default_object_acl = 9; - * * @return The bytes for predefinedDefaultObjectAcl. */ - com.google.protobuf.ByteString getPredefinedDefaultObjectAclBytes(); + com.google.protobuf.ByteString + getPredefinedDefaultObjectAclBytes(); /** - * - * *
                * Required. List of fields to be updated.
                *
            @@ -188,15 +140,11 @@ public interface UpdateBucketRequestOrBuilder
                * Not specifying any fields is an error.
                * 
            * - * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
                * Required. List of fields to be updated.
                *
            @@ -208,15 +156,11 @@ public interface UpdateBucketRequestOrBuilder
                * Not specifying any fields is an error.
                * 
            * - * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
                * Required. List of fields to be updated.
                *
            @@ -228,8 +172,7 @@ public interface UpdateBucketRequestOrBuilder
                * Not specifying any fields is an error.
                * 
            * - * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 6 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequest.java similarity index 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 b6f06d1fe1..df6d32899f 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,8 +5,6 @@ package com.google.storage.v2; /** - * - * *
              * Request object to update an HMAC key state.
              * HmacKeyMetadata.state is required and the only writable field in
            @@ -31,45 +14,42 @@
              *
              * Protobuf type {@code google.storage.v2.UpdateHmacKeyRequest}
              */
            -public final class UpdateHmacKeyRequest extends com.google.protobuf.GeneratedMessageV3
            -    implements
            +public final class UpdateHmacKeyRequest extends
            +    com.google.protobuf.GeneratedMessageV3 implements
                 // @@protoc_insertion_point(message_implements:google.storage.v2.UpdateHmacKeyRequest)
                 UpdateHmacKeyRequestOrBuilder {
            -  private static final long serialVersionUID = 0L;
            +private static final long serialVersionUID = 0L;
               // Use UpdateHmacKeyRequest.newBuilder() to construct.
               private UpdateHmacKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                 super(builder);
               }
            -
            -  private UpdateHmacKeyRequest() {}
            +  private UpdateHmacKeyRequest() {
            +  }
             
               @java.lang.Override
               @SuppressWarnings({"unused"})
            -  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
            +  protected java.lang.Object newInstance(
            +      UnusedPrivateParameter unused) {
                 return new UpdateHmacKeyRequest();
               }
             
            -  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            -    return com.google.storage.v2.StorageProto
            -        .internal_static_google_storage_v2_UpdateHmacKeyRequest_descriptor;
            +  public static final com.google.protobuf.Descriptors.Descriptor
            +      getDescriptor() {
            +    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_UpdateHmacKeyRequest_descriptor;
               }
             
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
            -    return com.google.storage.v2.StorageProto
            -        .internal_static_google_storage_v2_UpdateHmacKeyRequest_fieldAccessorTable
            +    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_UpdateHmacKeyRequest_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
            -            com.google.storage.v2.UpdateHmacKeyRequest.class,
            -            com.google.storage.v2.UpdateHmacKeyRequest.Builder.class);
            +            com.google.storage.v2.UpdateHmacKeyRequest.class, com.google.storage.v2.UpdateHmacKeyRequest.Builder.class);
               }
             
               private int bitField0_;
               public static final int HMAC_KEY_FIELD_NUMBER = 1;
               private com.google.storage.v2.HmacKeyMetadata hmacKey_;
               /**
            -   *
            -   *
                * 
                * Required. The HMAC key to update.
                * If present, the hmac_key's `id` field will be used to identify the key.
            @@ -77,10 +57,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 @@ -88,8 +65,6 @@ 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.
            @@ -97,10 +72,7 @@ public boolean hasHmacKey() {
                * identify the key.
                * 
            * - * - * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The hmacKey. */ @java.lang.Override @@ -108,8 +80,6 @@ public com.google.storage.v2.HmacKeyMetadata getHmacKey() { return hmacKey_ == null ? com.google.storage.v2.HmacKeyMetadata.getDefaultInstance() : hmacKey_; } /** - * - * *
                * Required. The HMAC key to update.
                * If present, the hmac_key's `id` field will be used to identify the key.
            @@ -117,9 +87,7 @@ public com.google.storage.v2.HmacKeyMetadata getHmacKey() {
                * identify the key.
                * 
            * - * - * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeyOrBuilder() { @@ -129,8 +97,6 @@ public com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeyOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 3; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
                * Update mask for hmac_key.
                * Not specifying any fields will mean only the `state` field is updated to
            @@ -138,7 +104,6 @@ public com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeyOrBuilder() {
                * 
            * * .google.protobuf.FieldMask update_mask = 3; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -146,8 +111,6 @@ 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
            @@ -155,7 +118,6 @@ public boolean hasUpdateMask() {
                * 
            * * .google.protobuf.FieldMask update_mask = 3; - * * @return The updateMask. */ @java.lang.Override @@ -163,8 +125,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
                * Update mask for hmac_key.
                * Not specifying any fields will mean only the `state` field is updated to
            @@ -179,7 +139,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
               }
             
               private byte memoizedIsInitialized = -1;
            -
               @java.lang.Override
               public final boolean isInitialized() {
                 byte isInitialized = memoizedIsInitialized;
            @@ -191,7 +150,8 @@ public final boolean isInitialized() {
               }
             
               @java.lang.Override
            -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
            +  public void writeTo(com.google.protobuf.CodedOutputStream output)
            +                      throws java.io.IOException {
                 if (((bitField0_ & 0x00000001) != 0)) {
                   output.writeMessage(1, getHmacKey());
                 }
            @@ -208,10 +168,12 @@ public int getSerializedSize() {
             
                 size = 0;
                 if (((bitField0_ & 0x00000001) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getHmacKey());
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeMessageSize(1, getHmacKey());
                 }
                 if (((bitField0_ & 0x00000002) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask());
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeMessageSize(3, getUpdateMask());
                 }
                 size += getUnknownFields().getSerializedSize();
                 memoizedSize = size;
            @@ -221,21 +183,22 @@ public int getSerializedSize() {
               @java.lang.Override
               public boolean equals(final java.lang.Object obj) {
                 if (obj == this) {
            -      return true;
            +     return true;
                 }
                 if (!(obj instanceof com.google.storage.v2.UpdateHmacKeyRequest)) {
                   return super.equals(obj);
                 }
            -    com.google.storage.v2.UpdateHmacKeyRequest other =
            -        (com.google.storage.v2.UpdateHmacKeyRequest) obj;
            +    com.google.storage.v2.UpdateHmacKeyRequest other = (com.google.storage.v2.UpdateHmacKeyRequest) obj;
             
                 if (hasHmacKey() != other.hasHmacKey()) return false;
                 if (hasHmacKey()) {
            -      if (!getHmacKey().equals(other.getHmacKey())) return false;
            +      if (!getHmacKey()
            +          .equals(other.getHmacKey())) return false;
                 }
                 if (hasUpdateMask() != other.hasUpdateMask()) return false;
                 if (hasUpdateMask()) {
            -      if (!getUpdateMask().equals(other.getUpdateMask())) return false;
            +      if (!getUpdateMask()
            +          .equals(other.getUpdateMask())) return false;
                 }
                 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
                 return true;
            @@ -261,104 +224,99 @@ public int hashCode() {
                 return hash;
               }
             
            -  public static com.google.storage.v2.UpdateHmacKeyRequest parseFrom(java.nio.ByteBuffer data)
            +  public static com.google.storage.v2.UpdateHmacKeyRequest parseFrom(
            +      java.nio.ByteBuffer data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
            -
               public static com.google.storage.v2.UpdateHmacKeyRequest parseFrom(
            -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      java.nio.ByteBuffer data,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
            -
               public static com.google.storage.v2.UpdateHmacKeyRequest parseFrom(
                   com.google.protobuf.ByteString data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
            -
               public static com.google.storage.v2.UpdateHmacKeyRequest parseFrom(
                   com.google.protobuf.ByteString data,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
            -
               public static com.google.storage.v2.UpdateHmacKeyRequest parseFrom(byte[] data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
            -
               public static com.google.storage.v2.UpdateHmacKeyRequest parseFrom(
            -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      byte[] data,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
            -
               public static com.google.storage.v2.UpdateHmacKeyRequest parseFrom(java.io.InputStream input)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input);
               }
            -
               public static com.google.storage.v2.UpdateHmacKeyRequest parseFrom(
            -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      java.io.InputStream input,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            -        PARSER, input, extensionRegistry);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input, extensionRegistry);
               }
             
            -  public static com.google.storage.v2.UpdateHmacKeyRequest parseDelimitedFrom(
            -      java.io.InputStream input) throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
            +  public static com.google.storage.v2.UpdateHmacKeyRequest parseDelimitedFrom(java.io.InputStream input)
            +      throws java.io.IOException {
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseDelimitedWithIOException(PARSER, input);
               }
             
               public static com.google.storage.v2.UpdateHmacKeyRequest parseDelimitedFrom(
            -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      java.io.InputStream input,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            -        PARSER, input, extensionRegistry);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
               }
            -
               public static com.google.storage.v2.UpdateHmacKeyRequest parseFrom(
            -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
            +      com.google.protobuf.CodedInputStream input)
            +      throws java.io.IOException {
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input);
               }
            -
               public static com.google.storage.v2.UpdateHmacKeyRequest parseFrom(
                   com.google.protobuf.CodedInputStream input,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            -        PARSER, input, extensionRegistry);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input, extensionRegistry);
               }
             
               @java.lang.Override
            -  public Builder newBuilderForType() {
            -    return newBuilder();
            -  }
            -
            +  public Builder newBuilderForType() { return newBuilder(); }
               public static Builder newBuilder() {
                 return DEFAULT_INSTANCE.toBuilder();
               }
            -
               public static Builder newBuilder(com.google.storage.v2.UpdateHmacKeyRequest prototype) {
                 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
               }
            -
               @java.lang.Override
               public Builder toBuilder() {
            -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
            +    return this == DEFAULT_INSTANCE
            +        ? new Builder() : new Builder().mergeFrom(this);
               }
             
               @java.lang.Override
            -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            +  protected Builder newBuilderForType(
            +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 Builder builder = new Builder(parent);
                 return builder;
               }
               /**
            -   *
            -   *
                * 
                * Request object to update an HMAC key state.
                * HmacKeyMetadata.state is required and the only writable field in
            @@ -368,23 +326,21 @@ 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()
            @@ -392,18 +348,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) {
                     getHmacKeyFieldBuilder();
                     getUpdateMaskFieldBuilder();
                   }
                 }
            -
                 @java.lang.Override
                 public Builder clear() {
                   super.clear();
            @@ -422,9 +378,9 @@ public Builder clear() {
                 }
             
                 @java.lang.Override
            -    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            -      return com.google.storage.v2.StorageProto
            -          .internal_static_google_storage_v2_UpdateHmacKeyRequest_descriptor;
            +    public com.google.protobuf.Descriptors.Descriptor
            +        getDescriptorForType() {
            +      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_UpdateHmacKeyRequest_descriptor;
                 }
             
                 @java.lang.Override
            @@ -443,11 +399,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;
                 }
            @@ -456,11 +409,15 @@ private void buildPartial0(com.google.storage.v2.UpdateHmacKeyRequest result) {
                   int from_bitField0_ = bitField0_;
                   int to_bitField0_ = 0;
                   if (((from_bitField0_ & 0x00000001) != 0)) {
            -        result.hmacKey_ = hmacKeyBuilder_ == null ? hmacKey_ : hmacKeyBuilder_.build();
            +        result.hmacKey_ = hmacKeyBuilder_ == null
            +            ? hmacKey_
            +            : hmacKeyBuilder_.build();
                     to_bitField0_ |= 0x00000001;
                   }
                   if (((from_bitField0_ & 0x00000002) != 0)) {
            -        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
            +        result.updateMask_ = updateMaskBuilder_ == null
            +            ? updateMask_
            +            : updateMaskBuilder_.build();
                     to_bitField0_ |= 0x00000002;
                   }
                   result.bitField0_ |= to_bitField0_;
            @@ -470,39 +427,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;
            @@ -543,25 +499,26 @@ public Builder mergeFrom(
                         case 0:
                           done = true;
                           break;
            -            case 10:
            -              {
            -                input.readMessage(getHmacKeyFieldBuilder().getBuilder(), extensionRegistry);
            -                bitField0_ |= 0x00000001;
            -                break;
            -              } // case 10
            -            case 26:
            -              {
            -                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
            -                bitField0_ |= 0x00000002;
            -                break;
            -              } // case 26
            -            default:
            -              {
            -                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            -                  done = true; // was an endgroup tag
            -                }
            -                break;
            -              } // default:
            +            case 10: {
            +              input.readMessage(
            +                  getHmacKeyFieldBuilder().getBuilder(),
            +                  extensionRegistry);
            +              bitField0_ |= 0x00000001;
            +              break;
            +            } // case 10
            +            case 26: {
            +              input.readMessage(
            +                  getUpdateMaskFieldBuilder().getBuilder(),
            +                  extensionRegistry);
            +              bitField0_ |= 0x00000002;
            +              break;
            +            } // case 26
            +            default: {
            +              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            +                done = true; // was an endgroup tag
            +              }
            +              break;
            +            } // default:
                       } // switch (tag)
                     } // while (!done)
                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            @@ -571,18 +528,12 @@ public Builder mergeFrom(
                   } // finally
                   return this;
                 }
            -
                 private int bitField0_;
             
                 private com.google.storage.v2.HmacKeyMetadata hmacKey_;
                 private com.google.protobuf.SingleFieldBuilderV3<
            -            com.google.storage.v2.HmacKeyMetadata,
            -            com.google.storage.v2.HmacKeyMetadata.Builder,
            -            com.google.storage.v2.HmacKeyMetadataOrBuilder>
            -        hmacKeyBuilder_;
            +        com.google.storage.v2.HmacKeyMetadata, com.google.storage.v2.HmacKeyMetadata.Builder, com.google.storage.v2.HmacKeyMetadataOrBuilder> hmacKeyBuilder_;
                 /**
            -     *
            -     *
                  * 
                  * Required. The HMAC key to update.
                  * If present, the hmac_key's `id` field will be used to identify the key.
            @@ -590,18 +541,13 @@ public Builder mergeFrom(
                  * identify the key.
                  * 
            * - * - * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hmacKey field is set. */ public boolean hasHmacKey() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                  * Required. The HMAC key to update.
                  * If present, the hmac_key's `id` field will be used to identify the key.
            @@ -609,24 +555,17 @@ public boolean hasHmacKey() {
                  * identify the key.
                  * 
            * - * - * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The hmacKey. */ public com.google.storage.v2.HmacKeyMetadata getHmacKey() { if (hmacKeyBuilder_ == null) { - return hmacKey_ == null - ? com.google.storage.v2.HmacKeyMetadata.getDefaultInstance() - : hmacKey_; + return hmacKey_ == null ? com.google.storage.v2.HmacKeyMetadata.getDefaultInstance() : hmacKey_; } else { return hmacKeyBuilder_.getMessage(); } } /** - * - * *
                  * Required. The HMAC key to update.
                  * If present, the hmac_key's `id` field will be used to identify the key.
            @@ -634,9 +573,7 @@ public com.google.storage.v2.HmacKeyMetadata getHmacKey() {
                  * identify the key.
                  * 
            * - * - * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setHmacKey(com.google.storage.v2.HmacKeyMetadata value) { if (hmacKeyBuilder_ == null) { @@ -652,8 +589,6 @@ public Builder setHmacKey(com.google.storage.v2.HmacKeyMetadata value) { return this; } /** - * - * *
                  * Required. The HMAC key to update.
                  * If present, the hmac_key's `id` field will be used to identify the key.
            @@ -661,11 +596,10 @@ public Builder setHmacKey(com.google.storage.v2.HmacKeyMetadata value) {
                  * identify the key.
                  * 
            * - * - * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setHmacKey(com.google.storage.v2.HmacKeyMetadata.Builder builderForValue) { + public Builder setHmacKey( + com.google.storage.v2.HmacKeyMetadata.Builder builderForValue) { if (hmacKeyBuilder_ == null) { hmacKey_ = builderForValue.build(); } else { @@ -676,8 +610,6 @@ public Builder setHmacKey(com.google.storage.v2.HmacKeyMetadata.Builder builderF return this; } /** - * - * *
                  * Required. The HMAC key to update.
                  * If present, the hmac_key's `id` field will be used to identify the key.
            @@ -685,15 +617,13 @@ public Builder setHmacKey(com.google.storage.v2.HmacKeyMetadata.Builder builderF
                  * identify the key.
                  * 
            * - * - * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeHmacKey(com.google.storage.v2.HmacKeyMetadata value) { if (hmacKeyBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && hmacKey_ != null - && hmacKey_ != com.google.storage.v2.HmacKeyMetadata.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + hmacKey_ != null && + hmacKey_ != com.google.storage.v2.HmacKeyMetadata.getDefaultInstance()) { getHmacKeyBuilder().mergeFrom(value); } else { hmacKey_ = value; @@ -708,8 +638,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.
            @@ -717,9 +645,7 @@ public Builder mergeHmacKey(com.google.storage.v2.HmacKeyMetadata value) {
                  * identify the key.
                  * 
            * - * - * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearHmacKey() { bitField0_ = (bitField0_ & ~0x00000001); @@ -732,8 +658,6 @@ public Builder clearHmacKey() { return this; } /** - * - * *
                  * Required. The HMAC key to update.
                  * If present, the hmac_key's `id` field will be used to identify the key.
            @@ -741,9 +665,7 @@ public Builder clearHmacKey() {
                  * identify the key.
                  * 
            * - * - * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.storage.v2.HmacKeyMetadata.Builder getHmacKeyBuilder() { bitField0_ |= 0x00000001; @@ -751,8 +673,6 @@ public com.google.storage.v2.HmacKeyMetadata.Builder getHmacKeyBuilder() { return getHmacKeyFieldBuilder().getBuilder(); } /** - * - * *
                  * Required. The HMAC key to update.
                  * If present, the hmac_key's `id` field will be used to identify the key.
            @@ -760,22 +680,17 @@ public com.google.storage.v2.HmacKeyMetadata.Builder getHmacKeyBuilder() {
                  * identify the key.
                  * 
            * - * - * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeyOrBuilder() { if (hmacKeyBuilder_ != null) { return hmacKeyBuilder_.getMessageOrBuilder(); } else { - return hmacKey_ == null - ? com.google.storage.v2.HmacKeyMetadata.getDefaultInstance() - : hmacKey_; + return hmacKey_ == null ? + com.google.storage.v2.HmacKeyMetadata.getDefaultInstance() : hmacKey_; } } /** - * - * *
                  * Required. The HMAC key to update.
                  * If present, the hmac_key's `id` field will be used to identify the key.
            @@ -783,22 +698,17 @@ public com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeyOrBuilder() {
                  * identify the key.
                  * 
            * - * - * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.HmacKeyMetadata, - com.google.storage.v2.HmacKeyMetadata.Builder, - com.google.storage.v2.HmacKeyMetadataOrBuilder> + com.google.storage.v2.HmacKeyMetadata, com.google.storage.v2.HmacKeyMetadata.Builder, com.google.storage.v2.HmacKeyMetadataOrBuilder> getHmacKeyFieldBuilder() { if (hmacKeyBuilder_ == null) { - hmacKeyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.HmacKeyMetadata, - com.google.storage.v2.HmacKeyMetadata.Builder, - com.google.storage.v2.HmacKeyMetadataOrBuilder>( - getHmacKey(), getParentForChildren(), isClean()); + hmacKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.HmacKeyMetadata, com.google.storage.v2.HmacKeyMetadata.Builder, com.google.storage.v2.HmacKeyMetadataOrBuilder>( + getHmacKey(), + getParentForChildren(), + isClean()); hmacKey_ = null; } return hmacKeyBuilder_; @@ -806,13 +716,8 @@ public com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeyOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
                  * Update mask for hmac_key.
                  * Not specifying any fields will mean only the `state` field is updated to
            @@ -820,15 +725,12 @@ public com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeyOrBuilder() {
                  * 
            * * .google.protobuf.FieldMask update_mask = 3; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                  * Update mask for hmac_key.
                  * Not specifying any fields will mean only the `state` field is updated to
            @@ -836,21 +738,16 @@ public boolean hasUpdateMask() {
                  * 
            * * .google.protobuf.FieldMask update_mask = 3; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
                  * Update mask for hmac_key.
                  * Not specifying any fields will mean only the `state` field is updated to
            @@ -873,8 +770,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Update mask for hmac_key.
                  * Not specifying any fields will mean only the `state` field is updated to
            @@ -883,7 +778,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
                  *
                  * .google.protobuf.FieldMask update_mask = 3;
                  */
            -    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
            +    public Builder setUpdateMask(
            +        com.google.protobuf.FieldMask.Builder builderForValue) {
                   if (updateMaskBuilder_ == null) {
                     updateMask_ = builderForValue.build();
                   } else {
            @@ -894,8 +790,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Update mask for hmac_key.
                  * Not specifying any fields will mean only the `state` field is updated to
            @@ -906,9 +800,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
                  */
                 public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
                   if (updateMaskBuilder_ == null) {
            -        if (((bitField0_ & 0x00000002) != 0)
            -            && updateMask_ != null
            -            && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
            +        if (((bitField0_ & 0x00000002) != 0) &&
            +          updateMask_ != null &&
            +          updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
                       getUpdateMaskBuilder().mergeFrom(value);
                     } else {
                       updateMask_ = value;
            @@ -923,8 +817,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
            @@ -944,8 +836,6 @@ public Builder clearUpdateMask() {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Update mask for hmac_key.
                  * Not specifying any fields will mean only the `state` field is updated to
            @@ -960,8 +850,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
                   return getUpdateMaskFieldBuilder().getBuilder();
                 }
                 /**
            -     *
            -     *
                  * 
                  * Update mask for hmac_key.
                  * Not specifying any fields will mean only the `state` field is updated to
            @@ -974,14 +862,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
                   if (updateMaskBuilder_ != null) {
                     return updateMaskBuilder_.getMessageOrBuilder();
                   } else {
            -        return updateMask_ == null
            -            ? com.google.protobuf.FieldMask.getDefaultInstance()
            -            : updateMask_;
            +        return updateMask_ == null ?
            +            com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
                   }
                 }
                 /**
            -     *
            -     *
                  * 
                  * Update mask for hmac_key.
                  * Not specifying any fields will mean only the `state` field is updated to
            @@ -991,24 +876,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
                  * .google.protobuf.FieldMask update_mask = 3;
                  */
                 private com.google.protobuf.SingleFieldBuilderV3<
            -            com.google.protobuf.FieldMask,
            -            com.google.protobuf.FieldMask.Builder,
            -            com.google.protobuf.FieldMaskOrBuilder>
            +        com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> 
                     getUpdateMaskFieldBuilder() {
                   if (updateMaskBuilder_ == null) {
            -        updateMaskBuilder_ =
            -            new com.google.protobuf.SingleFieldBuilderV3<
            -                com.google.protobuf.FieldMask,
            -                com.google.protobuf.FieldMask.Builder,
            -                com.google.protobuf.FieldMaskOrBuilder>(
            -                getUpdateMask(), getParentForChildren(), isClean());
            +        updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            +            com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
            +                getUpdateMask(),
            +                getParentForChildren(),
            +                isClean());
                     updateMask_ = null;
                   }
                   return updateMaskBuilder_;
                 }
            -
                 @java.lang.Override
            -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
            +    public final Builder setUnknownFields(
            +        final com.google.protobuf.UnknownFieldSet unknownFields) {
                   return super.setUnknownFields(unknownFields);
                 }
             
            @@ -1018,12 +900,12 @@ public final Builder mergeUnknownFields(
                   return super.mergeUnknownFields(unknownFields);
                 }
             
            +
                 // @@protoc_insertion_point(builder_scope:google.storage.v2.UpdateHmacKeyRequest)
               }
             
               // @@protoc_insertion_point(class_scope:google.storage.v2.UpdateHmacKeyRequest)
               private static final com.google.storage.v2.UpdateHmacKeyRequest DEFAULT_INSTANCE;
            -
               static {
                 DEFAULT_INSTANCE = new com.google.storage.v2.UpdateHmacKeyRequest();
               }
            @@ -1032,27 +914,27 @@ public static com.google.storage.v2.UpdateHmacKeyRequest getDefaultInstance() {
                 return DEFAULT_INSTANCE;
               }
             
            -  private static final com.google.protobuf.Parser PARSER =
            -      new com.google.protobuf.AbstractParser() {
            -        @java.lang.Override
            -        public UpdateHmacKeyRequest parsePartialFrom(
            -            com.google.protobuf.CodedInputStream input,
            -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            -            throws com.google.protobuf.InvalidProtocolBufferException {
            -          Builder builder = newBuilder();
            -          try {
            -            builder.mergeFrom(input, extensionRegistry);
            -          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            -            throw e.setUnfinishedMessage(builder.buildPartial());
            -          } catch (com.google.protobuf.UninitializedMessageException e) {
            -            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
            -          } catch (java.io.IOException e) {
            -            throw new com.google.protobuf.InvalidProtocolBufferException(e)
            -                .setUnfinishedMessage(builder.buildPartial());
            -          }
            -          return builder.buildPartial();
            -        }
            -      };
            +  private static final com.google.protobuf.Parser
            +      PARSER = new com.google.protobuf.AbstractParser() {
            +    @java.lang.Override
            +    public UpdateHmacKeyRequest parsePartialFrom(
            +        com.google.protobuf.CodedInputStream input,
            +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +        throws com.google.protobuf.InvalidProtocolBufferException {
            +      Builder builder = newBuilder();
            +      try {
            +        builder.mergeFrom(input, extensionRegistry);
            +      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            +        throw e.setUnfinishedMessage(builder.buildPartial());
            +      } catch (com.google.protobuf.UninitializedMessageException e) {
            +        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
            +      } catch (java.io.IOException e) {
            +        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            +            .setUnfinishedMessage(builder.buildPartial());
            +      }
            +      return builder.buildPartial();
            +    }
            +  };
             
               public static com.google.protobuf.Parser parser() {
                 return PARSER;
            @@ -1067,4 +949,6 @@ public com.google.protobuf.Parser getParserForType() {
               public com.google.storage.v2.UpdateHmacKeyRequest getDefaultInstanceForType() {
                 return DEFAULT_INSTANCE;
               }
            +
             }
            +
            diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequestOrBuilder.java
            similarity index 67%
            rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequestOrBuilder.java
            rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateHmacKeyRequestOrBuilder.java
            index 8683e6816d..34486a5598 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,32 +1,14 @@
            -/*
            - * Copyright 2024 Google LLC
            - *
            - * Licensed under the Apache License, Version 2.0 (the "License");
            - * you may not use this file except in compliance with the License.
            - * You may obtain a copy of the License at
            - *
            - *     https://www.apache.org/licenses/LICENSE-2.0
            - *
            - * Unless required by applicable law or agreed to in writing, software
            - * distributed under the License is distributed on an "AS IS" BASIS,
            - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            - * See the License for the specific language governing permissions and
            - * limitations under the License.
            - */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
             // Protobuf Java Version: 3.25.3
             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.
            @@ -34,16 +16,11 @@ public interface UpdateHmacKeyRequestOrBuilder
                * identify the key.
                * 
            * - * - * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the hmacKey field is set. */ boolean hasHmacKey(); /** - * - * *
                * Required. The HMAC key to update.
                * If present, the hmac_key's `id` field will be used to identify the key.
            @@ -51,16 +28,11 @@ public interface UpdateHmacKeyRequestOrBuilder
                * identify the key.
                * 
            * - * - * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The hmacKey. */ com.google.storage.v2.HmacKeyMetadata getHmacKey(); /** - * - * *
                * Required. The HMAC key to update.
                * If present, the hmac_key's `id` field will be used to identify the key.
            @@ -68,15 +40,11 @@ public interface UpdateHmacKeyRequestOrBuilder
                * identify the key.
                * 
            * - * - * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeyOrBuilder(); /** - * - * *
                * Update mask for hmac_key.
                * Not specifying any fields will mean only the `state` field is updated to
            @@ -84,13 +52,10 @@ public interface UpdateHmacKeyRequestOrBuilder
                * 
            * * .google.protobuf.FieldMask update_mask = 3; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
                * Update mask for hmac_key.
                * Not specifying any fields will mean only the `state` field is updated to
            @@ -98,13 +63,10 @@ public interface UpdateHmacKeyRequestOrBuilder
                * 
            * * .google.protobuf.FieldMask update_mask = 3; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
                * Update mask for hmac_key.
                * Not specifying any fields will mean only the `state` field is updated to
            diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequest.java
            similarity index 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 f1583c5781..a821d05a49 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,18 +1,3 @@
            -/*
            - * Copyright 2024 Google LLC
            - *
            - * Licensed under the Apache License, Version 2.0 (the "License");
            - * you may not use this file except in compliance with the License.
            - * You may obtain a copy of the License at
            - *
            - *     https://www.apache.org/licenses/LICENSE-2.0
            - *
            - * Unless required by applicable law or agreed to in writing, software
            - * distributed under the License is distributed on an "AS IS" BASIS,
            - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            - * See the License for the specific language governing permissions and
            - * limitations under the License.
            - */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
            @@ -20,55 +5,49 @@
             package com.google.storage.v2;
             
             /**
            - *
            - *
              * 
              * Request message for UpdateObject.
              * 
            * * Protobuf type {@code google.storage.v2.UpdateObjectRequest} */ -public final class UpdateObjectRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateObjectRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.UpdateObjectRequest) UpdateObjectRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateObjectRequest.newBuilder() to construct. private UpdateObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateObjectRequest() { predefinedAcl_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateObjectRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_UpdateObjectRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_UpdateObjectRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_UpdateObjectRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_UpdateObjectRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.UpdateObjectRequest.class, - com.google.storage.v2.UpdateObjectRequest.Builder.class); + com.google.storage.v2.UpdateObjectRequest.class, com.google.storage.v2.UpdateObjectRequest.Builder.class); } private int bitField0_; public static final int OBJECT_FIELD_NUMBER = 1; private com.google.storage.v2.Object object_; /** - * - * *
                * Required. The object to update.
                * The object's bucket and name fields are used to identify the object to
            @@ -78,7 +57,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 @@ -86,8 +64,6 @@ 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
            @@ -97,7 +73,6 @@ public boolean hasObject() {
                * 
            * * .google.storage.v2.Object object = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The object. */ @java.lang.Override @@ -105,8 +80,6 @@ public com.google.storage.v2.Object getObject() { return object_ == null ? com.google.storage.v2.Object.getDefaultInstance() : object_; } /** - * - * *
                * Required. The object to update.
                * The object's bucket and name fields are used to identify the object to
            @@ -125,8 +98,6 @@ public com.google.storage.v2.ObjectOrBuilder getObjectOrBuilder() {
               public static final int IF_GENERATION_MATCH_FIELD_NUMBER = 2;
               private long ifGenerationMatch_ = 0L;
               /**
            -   *
            -   *
                * 
                * Makes the operation conditional on whether the object's current generation
                * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -134,7 +105,6 @@ public com.google.storage.v2.ObjectOrBuilder getObjectOrBuilder() {
                * 
            * * optional int64 if_generation_match = 2; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -142,8 +112,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
            @@ -151,7 +119,6 @@ public boolean hasIfGenerationMatch() {
                * 
            * * optional int64 if_generation_match = 2; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -162,8 +129,6 @@ public long getIfGenerationMatch() { public static final int IF_GENERATION_NOT_MATCH_FIELD_NUMBER = 3; private long ifGenerationNotMatch_ = 0L; /** - * - * *
                * Makes the operation conditional on whether the object's live generation
                * does not match the given value. If no live object exists, the precondition
            @@ -172,7 +137,6 @@ public long getIfGenerationMatch() {
                * 
            * * optional int64 if_generation_not_match = 3; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -180,8 +144,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
            @@ -190,7 +152,6 @@ public boolean hasIfGenerationNotMatch() {
                * 
            * * optional int64 if_generation_not_match = 3; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -201,15 +162,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 @@ -217,15 +175,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 @@ -236,15 +191,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 @@ -252,15 +204,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 @@ -269,12 +218,9 @@ public long getIfMetagenerationNotMatch() { } public static final int PREDEFINED_ACL_FIELD_NUMBER = 10; - @SuppressWarnings("serial") private volatile java.lang.Object predefinedAcl_ = ""; /** - * - * *
                * Apply a predefined set of access controls to this object.
                * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -282,7 +228,6 @@ public long getIfMetagenerationNotMatch() {
                * 
            * * string predefined_acl = 10; - * * @return The predefinedAcl. */ @java.lang.Override @@ -291,15 +236,14 @@ public java.lang.String getPredefinedAcl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); predefinedAcl_ = s; return s; } } /** - * - * *
                * Apply a predefined set of access controls to this object.
                * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -307,15 +251,16 @@ public java.lang.String getPredefinedAcl() {
                * 
            * * string predefined_acl = 10; - * * @return The bytes for predefinedAcl. */ @java.lang.Override - public com.google.protobuf.ByteString getPredefinedAclBytes() { + public com.google.protobuf.ByteString + getPredefinedAclBytes() { java.lang.Object ref = predefinedAcl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); predefinedAcl_ = b; return b; } else { @@ -326,8 +271,6 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() { public static final int UPDATE_MASK_FIELD_NUMBER = 7; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
                * Required. List of fields to be updated.
                *
            @@ -339,9 +282,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 @@ -349,8 +290,6 @@ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
                * Required. List of fields to be updated.
                *
            @@ -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.
                *
            @@ -385,8 +320,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
                * Not specifying any fields is an error.
                * 
            * - * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -396,14 +330,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 @@ -411,25 +342,18 @@ 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. */ @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.
                * 
            @@ -437,15 +361,11 @@ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestPar * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ @java.lang.Override - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -457,7 +377,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getObject()); } @@ -492,27 +413,32 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getObject()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getObject()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, ifGenerationMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, ifGenerationMatch_); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, ifGenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, ifGenerationNotMatch_); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ifMetagenerationMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, ifMetagenerationMatch_); } if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, ifMetagenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, ifMetagenerationNotMatch_); } if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getUpdateMask()); } if (((bitField0_ & 0x00000040) != 0)) { - 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_); @@ -525,43 +451,49 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.UpdateObjectRequest)) { return super.equals(obj); } - com.google.storage.v2.UpdateObjectRequest other = - (com.google.storage.v2.UpdateObjectRequest) obj; + com.google.storage.v2.UpdateObjectRequest other = (com.google.storage.v2.UpdateObjectRequest) obj; if (hasObject() != other.hasObject()) return false; if (hasObject()) { - if (!getObject().equals(other.getObject())) return false; + if (!getObject() + .equals(other.getObject())) return false; } if (hasIfGenerationMatch() != other.hasIfGenerationMatch()) return false; if (hasIfGenerationMatch()) { - if (getIfGenerationMatch() != other.getIfGenerationMatch()) return false; + if (getIfGenerationMatch() + != other.getIfGenerationMatch()) return false; } if (hasIfGenerationNotMatch() != other.hasIfGenerationNotMatch()) return false; if (hasIfGenerationNotMatch()) { - if (getIfGenerationNotMatch() != other.getIfGenerationNotMatch()) return false; + if (getIfGenerationNotMatch() + != other.getIfGenerationNotMatch()) return false; } if (hasIfMetagenerationMatch() != other.hasIfMetagenerationMatch()) return false; if (hasIfMetagenerationMatch()) { - if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false; + if (getIfMetagenerationMatch() + != other.getIfMetagenerationMatch()) return false; } if (hasIfMetagenerationNotMatch() != other.hasIfMetagenerationNotMatch()) return false; if (hasIfMetagenerationNotMatch()) { - if (getIfMetagenerationNotMatch() != other.getIfMetagenerationNotMatch()) return false; + if (getIfMetagenerationNotMatch() + != other.getIfMetagenerationNotMatch()) return false; } - if (!getPredefinedAcl().equals(other.getPredefinedAcl())) return false; + if (!getPredefinedAcl() + .equals(other.getPredefinedAcl())) return false; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasCommonObjectRequestParams() != other.hasCommonObjectRequestParams()) return false; if (hasCommonObjectRequestParams()) { - if (!getCommonObjectRequestParams().equals(other.getCommonObjectRequestParams())) - return false; + if (!getCommonObjectRequestParams() + .equals(other.getCommonObjectRequestParams())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -580,19 +512,23 @@ public int hashCode() { } if (hasIfGenerationMatch()) { hash = (37 * hash) + IF_GENERATION_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfGenerationMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfGenerationMatch()); } if (hasIfGenerationNotMatch()) { hash = (37 * hash) + IF_GENERATION_NOT_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfGenerationNotMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfGenerationNotMatch()); } if (hasIfMetagenerationMatch()) { hash = (37 * hash) + IF_METAGENERATION_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationMatch()); } if (hasIfMetagenerationNotMatch()) { hash = (37 * hash) + IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationNotMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIfMetagenerationNotMatch()); } hash = (37 * hash) + PREDEFINED_ACL_FIELD_NUMBER; hash = (53 * hash) + getPredefinedAcl().hashCode(); @@ -609,127 +545,120 @@ 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() @@ -737,19 +666,19 @@ 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) { getObjectFieldBuilder(); getUpdateMaskFieldBuilder(); getCommonObjectRequestParamsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -778,9 +707,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_UpdateObjectRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_UpdateObjectRequest_descriptor; } @java.lang.Override @@ -799,11 +728,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; } @@ -812,7 +738,9 @@ private void buildPartial0(com.google.storage.v2.UpdateObjectRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.object_ = objectBuilder_ == null ? object_ : objectBuilder_.build(); + result.object_ = objectBuilder_ == null + ? object_ + : objectBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { @@ -835,14 +763,15 @@ 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(); to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.commonObjectRequestParams_ = - commonObjectRequestParamsBuilder_ == null - ? commonObjectRequestParams_ - : commonObjectRequestParamsBuilder_.build(); + result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null + ? commonObjectRequestParams_ + : commonObjectRequestParamsBuilder_.build(); to_bitField0_ |= 0x00000040; } result.bitField0_ |= to_bitField0_; @@ -852,39 +781,38 @@ private void buildPartial0(com.google.storage.v2.UpdateObjectRequest result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.UpdateObjectRequest) { - return mergeFrom((com.google.storage.v2.UpdateObjectRequest) other); + return mergeFrom((com.google.storage.v2.UpdateObjectRequest)other); } else { super.mergeFrom(other); return this; @@ -945,62 +873,58 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getObjectFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - ifGenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - ifGenerationNotMatch_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - ifMetagenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: - { - ifMetagenerationNotMatch_ = input.readInt64(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 58: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - input.readMessage( - getCommonObjectRequestParamsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 82: - { - predefinedAcl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getObjectFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + ifGenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + ifGenerationNotMatch_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + ifMetagenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + ifMetagenerationNotMatch_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 58: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + input.readMessage( + getCommonObjectRequestParamsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 82: { + predefinedAcl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1010,18 +934,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.storage.v2.Object object_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Object, - com.google.storage.v2.Object.Builder, - com.google.storage.v2.ObjectOrBuilder> - objectBuilder_; + com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> objectBuilder_; /** - * - * *
                  * Required. The object to update.
                  * The object's bucket and name fields are used to identify the object to
            @@ -1031,15 +949,12 @@ public Builder mergeFrom(
                  * 
            * * .google.storage.v2.Object object = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the object field is set. */ public boolean hasObject() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                  * Required. The object to update.
                  * The object's bucket and name fields are used to identify the object to
            @@ -1049,7 +964,6 @@ public boolean hasObject() {
                  * 
            * * .google.storage.v2.Object object = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The object. */ public com.google.storage.v2.Object getObject() { @@ -1060,8 +974,6 @@ public com.google.storage.v2.Object getObject() { } } /** - * - * *
                  * Required. The object to update.
                  * The object's bucket and name fields are used to identify the object to
            @@ -1086,8 +998,6 @@ public Builder setObject(com.google.storage.v2.Object value) {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Required. The object to update.
                  * The object's bucket and name fields are used to identify the object to
            @@ -1098,7 +1008,8 @@ public Builder setObject(com.google.storage.v2.Object value) {
                  *
                  * .google.storage.v2.Object object = 1 [(.google.api.field_behavior) = REQUIRED];
                  */
            -    public Builder setObject(com.google.storage.v2.Object.Builder builderForValue) {
            +    public Builder setObject(
            +        com.google.storage.v2.Object.Builder builderForValue) {
                   if (objectBuilder_ == null) {
                     object_ = builderForValue.build();
                   } else {
            @@ -1109,8 +1020,6 @@ public Builder setObject(com.google.storage.v2.Object.Builder builderForValue) {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Required. The object to update.
                  * The object's bucket and name fields are used to identify the object to
            @@ -1123,9 +1032,9 @@ public Builder setObject(com.google.storage.v2.Object.Builder builderForValue) {
                  */
                 public Builder mergeObject(com.google.storage.v2.Object value) {
                   if (objectBuilder_ == null) {
            -        if (((bitField0_ & 0x00000001) != 0)
            -            && object_ != null
            -            && object_ != com.google.storage.v2.Object.getDefaultInstance()) {
            +        if (((bitField0_ & 0x00000001) != 0) &&
            +          object_ != null &&
            +          object_ != com.google.storage.v2.Object.getDefaultInstance()) {
                       getObjectBuilder().mergeFrom(value);
                     } else {
                       object_ = value;
            @@ -1140,8 +1049,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
            @@ -1163,8 +1070,6 @@ public Builder clearObject() {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Required. The object to update.
                  * The object's bucket and name fields are used to identify the object to
            @@ -1181,8 +1086,6 @@ public com.google.storage.v2.Object.Builder getObjectBuilder() {
                   return getObjectFieldBuilder().getBuilder();
                 }
                 /**
            -     *
            -     *
                  * 
                  * Required. The object to update.
                  * The object's bucket and name fields are used to identify the object to
            @@ -1197,12 +1100,11 @@ public com.google.storage.v2.ObjectOrBuilder getObjectOrBuilder() {
                   if (objectBuilder_ != null) {
                     return objectBuilder_.getMessageOrBuilder();
                   } else {
            -        return object_ == null ? com.google.storage.v2.Object.getDefaultInstance() : object_;
            +        return object_ == null ?
            +            com.google.storage.v2.Object.getDefaultInstance() : object_;
                   }
                 }
                 /**
            -     *
            -     *
                  * 
                  * Required. The object to update.
                  * The object's bucket and name fields are used to identify the object to
            @@ -1214,26 +1116,21 @@ public com.google.storage.v2.ObjectOrBuilder getObjectOrBuilder() {
                  * .google.storage.v2.Object object = 1 [(.google.api.field_behavior) = REQUIRED];
                  */
                 private com.google.protobuf.SingleFieldBuilderV3<
            -            com.google.storage.v2.Object,
            -            com.google.storage.v2.Object.Builder,
            -            com.google.storage.v2.ObjectOrBuilder>
            +        com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> 
                     getObjectFieldBuilder() {
                   if (objectBuilder_ == null) {
            -        objectBuilder_ =
            -            new com.google.protobuf.SingleFieldBuilderV3<
            -                com.google.storage.v2.Object,
            -                com.google.storage.v2.Object.Builder,
            -                com.google.storage.v2.ObjectOrBuilder>(
            -                getObject(), getParentForChildren(), isClean());
            +        objectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            +            com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder>(
            +                getObject(),
            +                getParentForChildren(),
            +                isClean());
                     object_ = null;
                   }
                   return objectBuilder_;
                 }
             
            -    private long ifGenerationMatch_;
            +    private long ifGenerationMatch_ ;
                 /**
            -     *
            -     *
                  * 
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -1241,7 +1138,6 @@ public com.google.storage.v2.ObjectOrBuilder getObjectOrBuilder() {
                  * 
            * * optional int64 if_generation_match = 2; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -1249,8 +1145,6 @@ public boolean hasIfGenerationMatch() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -1258,7 +1152,6 @@ public boolean hasIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_match = 2; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -1266,8 +1159,6 @@ public long getIfGenerationMatch() { return ifGenerationMatch_; } /** - * - * *
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -1275,7 +1166,6 @@ public long getIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_match = 2; - * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ @@ -1287,8 +1177,6 @@ public Builder setIfGenerationMatch(long value) { return this; } /** - * - * *
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -1296,7 +1184,6 @@ public Builder setIfGenerationMatch(long value) {
                  * 
            * * optional int64 if_generation_match = 2; - * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -1306,10 +1193,8 @@ public Builder clearIfGenerationMatch() { return this; } - private long ifGenerationNotMatch_; + private long ifGenerationNotMatch_ ; /** - * - * *
                  * Makes the operation conditional on whether the object's live generation
                  * does not match the given value. If no live object exists, the precondition
            @@ -1318,7 +1203,6 @@ public Builder clearIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_not_match = 3; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -1326,8 +1210,6 @@ public boolean hasIfGenerationNotMatch() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
                  * Makes the operation conditional on whether the object's live generation
                  * does not match the given value. If no live object exists, the precondition
            @@ -1336,7 +1218,6 @@ public boolean hasIfGenerationNotMatch() {
                  * 
            * * optional int64 if_generation_not_match = 3; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -1344,8 +1225,6 @@ public long getIfGenerationNotMatch() { return ifGenerationNotMatch_; } /** - * - * *
                  * Makes the operation conditional on whether the object's live generation
                  * does not match the given value. If no live object exists, the precondition
            @@ -1354,7 +1233,6 @@ public long getIfGenerationNotMatch() {
                  * 
            * * optional int64 if_generation_not_match = 3; - * * @param value The ifGenerationNotMatch to set. * @return This builder for chaining. */ @@ -1366,8 +1244,6 @@ public Builder setIfGenerationNotMatch(long value) { return this; } /** - * - * *
                  * Makes the operation conditional on whether the object's live generation
                  * does not match the given value. If no live object exists, the precondition
            @@ -1376,7 +1252,6 @@ public Builder setIfGenerationNotMatch(long value) {
                  * 
            * * optional int64 if_generation_not_match = 3; - * * @return This builder for chaining. */ public Builder clearIfGenerationNotMatch() { @@ -1386,17 +1261,14 @@ public Builder clearIfGenerationNotMatch() { return this; } - private long ifMetagenerationMatch_; + private long ifMetagenerationMatch_ ; /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 4; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -1404,15 +1276,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 4; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -1420,15 +1289,12 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 4; - * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -1440,15 +1306,12 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 4; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -1458,17 +1321,14 @@ public Builder clearIfMetagenerationMatch() { return this; } - private long ifMetagenerationNotMatch_; + private long ifMetagenerationNotMatch_ ; /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 5; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -1476,15 +1336,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 5; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -1492,15 +1349,12 @@ public long getIfMetagenerationNotMatch() { return ifMetagenerationNotMatch_; } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 5; - * * @param value The ifMetagenerationNotMatch to set. * @return This builder for chaining. */ @@ -1512,15 +1366,12 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 5; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -1532,8 +1383,6 @@ public Builder clearIfMetagenerationNotMatch() { private java.lang.Object predefinedAcl_ = ""; /** - * - * *
                  * Apply a predefined set of access controls to this object.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -1541,13 +1390,13 @@ public Builder clearIfMetagenerationNotMatch() {
                  * 
            * * string predefined_acl = 10; - * * @return The predefinedAcl. */ public java.lang.String getPredefinedAcl() { java.lang.Object ref = predefinedAcl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); predefinedAcl_ = s; return s; @@ -1556,8 +1405,6 @@ public java.lang.String getPredefinedAcl() { } } /** - * - * *
                  * Apply a predefined set of access controls to this object.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -1565,14 +1412,15 @@ public java.lang.String getPredefinedAcl() {
                  * 
            * * string predefined_acl = 10; - * * @return The bytes for predefinedAcl. */ - public com.google.protobuf.ByteString getPredefinedAclBytes() { + public com.google.protobuf.ByteString + getPredefinedAclBytes() { java.lang.Object ref = predefinedAcl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); predefinedAcl_ = b; return b; } else { @@ -1580,8 +1428,6 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() { } } /** - * - * *
                  * Apply a predefined set of access controls to this object.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -1589,22 +1435,18 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() {
                  * 
            * * string predefined_acl = 10; - * * @param value The predefinedAcl to set. * @return This builder for chaining. */ - public Builder setPredefinedAcl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPredefinedAcl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } predefinedAcl_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
                  * Apply a predefined set of access controls to this object.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -1612,7 +1454,6 @@ public Builder setPredefinedAcl(java.lang.String value) {
                  * 
            * * string predefined_acl = 10; - * * @return This builder for chaining. */ public Builder clearPredefinedAcl() { @@ -1622,8 +1463,6 @@ public Builder clearPredefinedAcl() { return this; } /** - * - * *
                  * Apply a predefined set of access controls to this object.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -1631,14 +1470,12 @@ public Builder clearPredefinedAcl() {
                  * 
            * * string predefined_acl = 10; - * * @param value The bytes for predefinedAcl to set. * @return This builder for chaining. */ - public Builder setPredefinedAclBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPredefinedAclBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); predefinedAcl_ = value; bitField0_ |= 0x00000020; @@ -1648,13 +1485,8 @@ public Builder setPredefinedAclBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
                  * Required. List of fields to be updated.
                  *
            @@ -1666,17 +1498,13 @@ public Builder setPredefinedAclBytes(com.google.protobuf.ByteString value) {
                  * Not specifying any fields is an error.
                  * 
            * - * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
                  * Required. List of fields to be updated.
                  *
            @@ -1688,23 +1516,17 @@ public boolean hasUpdateMask() {
                  * Not specifying any fields is an error.
                  * 
            * - * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
                  * Required. List of fields to be updated.
                  *
            @@ -1716,8 +1538,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
                  * Not specifying any fields is an error.
                  * 
            * - * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -1733,8 +1554,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
                  * Required. List of fields to be updated.
                  *
            @@ -1746,10 +1565,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
                  * Not specifying any fields is an error.
                  * 
            * - * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -1760,8 +1579,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
                  * Required. List of fields to be updated.
                  *
            @@ -1773,14 +1590,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
                  * Not specifying any fields is an error.
                  * 
            * - * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -1795,8 +1611,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
                  * Required. List of fields to be updated.
                  *
            @@ -1808,8 +1622,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
                  * Not specifying any fields is an error.
                  * 
            * - * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000040); @@ -1822,8 +1635,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
                  * Required. List of fields to be updated.
                  *
            @@ -1835,8 +1646,7 @@ public Builder clearUpdateMask() {
                  * Not specifying any fields is an error.
                  * 
            * - * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000040; @@ -1844,8 +1654,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
                  * Required. List of fields to be updated.
                  *
            @@ -1857,21 +1665,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
                  * Not specifying any fields is an error.
                  * 
            * - * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
                  * Required. List of fields to be updated.
                  *
            @@ -1883,21 +1687,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
                  * Not specifying any fields is an error.
                  * 
            * - * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -1905,55 +1705,41 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> - commonObjectRequestParamsBuilder_; + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> commonObjectRequestParamsBuilder_; /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return Whether the commonObjectRequestParams field is set. */ public boolean hasCommonObjectRequestParams() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return The commonObjectRequestParams. */ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { if (commonObjectRequestParamsBuilder_ == null) { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } else { return commonObjectRequestParamsBuilder_.getMessage(); } } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ - public Builder setCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1967,8 +1753,6 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -1987,21 +1771,17 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ - public Builder mergeCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && commonObjectRequestParams_ != null - && commonObjectRequestParams_ - != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + commonObjectRequestParams_ != null && + commonObjectRequestParams_ != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { getCommonObjectRequestParamsBuilder().mergeFrom(value); } else { commonObjectRequestParams_ = value; @@ -2016,8 +1796,6 @@ public Builder mergeCommonObjectRequestParams( return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -2035,42 +1813,33 @@ public Builder clearCommonObjectRequestParams() { return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ - public com.google.storage.v2.CommonObjectRequestParams.Builder - getCommonObjectRequestParamsBuilder() { + public com.google.storage.v2.CommonObjectRequestParams.Builder getCommonObjectRequestParamsBuilder() { bitField0_ |= 0x00000080; onChanged(); return getCommonObjectRequestParamsFieldBuilder().getBuilder(); } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { if (commonObjectRequestParamsBuilder_ != null) { return commonObjectRequestParamsBuilder_.getMessageOrBuilder(); } else { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? + com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -2078,24 +1847,21 @@ public Builder clearCommonObjectRequestParams() { * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> getCommonObjectRequestParamsFieldBuilder() { if (commonObjectRequestParamsBuilder_ == null) { - commonObjectRequestParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( - getCommonObjectRequestParams(), getParentForChildren(), isClean()); + commonObjectRequestParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( + getCommonObjectRequestParams(), + getParentForChildren(), + isClean()); commonObjectRequestParams_ = null; } return commonObjectRequestParamsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2105,12 +1871,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.UpdateObjectRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.UpdateObjectRequest) private static final com.google.storage.v2.UpdateObjectRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.UpdateObjectRequest(); } @@ -2119,27 +1885,27 @@ public static com.google.storage.v2.UpdateObjectRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateObjectRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateObjectRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2154,4 +1920,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.UpdateObjectRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequestOrBuilder.java similarity index 87% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/UpdateObjectRequestOrBuilder.java index 962d3e3881..bfa5d3848e 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,32 +1,14 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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
            @@ -36,13 +18,10 @@ public interface UpdateObjectRequestOrBuilder
                * 
            * * .google.storage.v2.Object object = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the object field is set. */ boolean hasObject(); /** - * - * *
                * Required. The object to update.
                * The object's bucket and name fields are used to identify the object to
            @@ -52,13 +31,10 @@ public interface UpdateObjectRequestOrBuilder
                * 
            * * .google.storage.v2.Object object = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The object. */ com.google.storage.v2.Object getObject(); /** - * - * *
                * Required. The object to update.
                * The object's bucket and name fields are used to identify the object to
            @@ -72,8 +48,6 @@ public interface UpdateObjectRequestOrBuilder
               com.google.storage.v2.ObjectOrBuilder getObjectOrBuilder();
             
               /**
            -   *
            -   *
                * 
                * Makes the operation conditional on whether the object's current generation
                * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -81,13 +55,10 @@ public interface UpdateObjectRequestOrBuilder
                * 
            * * optional int64 if_generation_match = 2; - * * @return Whether the ifGenerationMatch field is set. */ boolean hasIfGenerationMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's current generation
                * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -95,14 +66,11 @@ public interface UpdateObjectRequestOrBuilder
                * 
            * * optional int64 if_generation_match = 2; - * * @return The ifGenerationMatch. */ long getIfGenerationMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's live generation
                * does not match the given value. If no live object exists, the precondition
            @@ -111,13 +79,10 @@ public interface UpdateObjectRequestOrBuilder
                * 
            * * optional int64 if_generation_not_match = 3; - * * @return Whether the ifGenerationNotMatch field is set. */ boolean hasIfGenerationNotMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's live generation
                * does not match the given value. If no live object exists, the precondition
            @@ -126,68 +91,53 @@ public interface UpdateObjectRequestOrBuilder
                * 
            * * optional int64 if_generation_not_match = 3; - * * @return The ifGenerationNotMatch. */ long getIfGenerationNotMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 4; - * * @return Whether the ifMetagenerationMatch field is set. */ boolean hasIfMetagenerationMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 4; - * * @return The ifMetagenerationMatch. */ long getIfMetagenerationMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 5; - * * @return Whether the ifMetagenerationNotMatch field is set. */ boolean hasIfMetagenerationNotMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 5; - * * @return The ifMetagenerationNotMatch. */ long getIfMetagenerationNotMatch(); /** - * - * *
                * Apply a predefined set of access controls to this object.
                * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -195,13 +145,10 @@ public interface UpdateObjectRequestOrBuilder
                * 
            * * string predefined_acl = 10; - * * @return The predefinedAcl. */ java.lang.String getPredefinedAcl(); /** - * - * *
                * Apply a predefined set of access controls to this object.
                * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -209,14 +156,12 @@ public interface UpdateObjectRequestOrBuilder
                * 
            * * string predefined_acl = 10; - * * @return The bytes for predefinedAcl. */ - com.google.protobuf.ByteString getPredefinedAclBytes(); + com.google.protobuf.ByteString + getPredefinedAclBytes(); /** - * - * *
                * Required. List of fields to be updated.
                *
            @@ -228,15 +173,11 @@ public interface UpdateObjectRequestOrBuilder
                * Not specifying any fields is an error.
                * 
            * - * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
                * Required. List of fields to be updated.
                *
            @@ -248,15 +189,11 @@ public interface UpdateObjectRequestOrBuilder
                * Not specifying any fields is an error.
                * 
            * - * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
                * Required. List of fields to be updated.
                *
            @@ -268,38 +205,29 @@ public interface UpdateObjectRequestOrBuilder
                * Not specifying any fields is an error.
                * 
            * - * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 7 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return Whether the commonObjectRequestParams field is set. */ boolean hasCommonObjectRequestParams(); /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return The commonObjectRequestParams. */ com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams(); /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectRequest.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectRequest.java similarity index 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 aeabc66494..8fb8d5ed26 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,62 +5,55 @@ package com.google.storage.v2; /** - * - * *
              * Request message for WriteObject.
              * 
            * * Protobuf type {@code google.storage.v2.WriteObjectRequest} */ -public final class WriteObjectRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class WriteObjectRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.WriteObjectRequest) WriteObjectRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use WriteObjectRequest.newBuilder() to construct. private WriteObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private WriteObjectRequest() {} + private WriteObjectRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WriteObjectRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_WriteObjectRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_WriteObjectRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_WriteObjectRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_WriteObjectRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.WriteObjectRequest.class, - com.google.storage.v2.WriteObjectRequest.Builder.class); + com.google.storage.v2.WriteObjectRequest.class, com.google.storage.v2.WriteObjectRequest.Builder.class); } private int bitField0_; private int firstMessageCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object firstMessage_; - public enum FirstMessageCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { UPLOAD_ID(1), WRITE_OBJECT_SPEC(2), FIRSTMESSAGE_NOT_SET(0); private final int value; - private FirstMessageCase(int value) { this.value = value; } @@ -91,39 +69,32 @@ public static FirstMessageCase valueOf(int value) { public static FirstMessageCase forNumber(int value) { switch (value) { - case 1: - return UPLOAD_ID; - case 2: - return WRITE_OBJECT_SPEC; - case 0: - return FIRSTMESSAGE_NOT_SET; - default: - return null; + case 1: return UPLOAD_ID; + case 2: return WRITE_OBJECT_SPEC; + case 0: return FIRSTMESSAGE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public FirstMessageCase getFirstMessageCase() { - return FirstMessageCase.forNumber(firstMessageCase_); + public FirstMessageCase + getFirstMessageCase() { + return FirstMessageCase.forNumber( + firstMessageCase_); } private int dataCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object data_; - public enum DataCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CHECKSUMMED_DATA(4), DATA_NOT_SET(0); private final int value; - private DataCase(int value) { this.value = value; } @@ -139,50 +110,42 @@ public static DataCase valueOf(int value) { public static DataCase forNumber(int value) { switch (value) { - case 4: - return CHECKSUMMED_DATA; - case 0: - return DATA_NOT_SET; - default: - return null; + case 4: return CHECKSUMMED_DATA; + case 0: return DATA_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DataCase getDataCase() { - return DataCase.forNumber(dataCase_); + public DataCase + getDataCase() { + return DataCase.forNumber( + dataCase_); } public static final int UPLOAD_ID_FIELD_NUMBER = 1; /** - * - * *
                * For resumable uploads. This should be the `upload_id` returned from a
                * call to `StartResumableWriteResponse`.
                * 
            * * string upload_id = 1; - * * @return Whether the uploadId field is set. */ public boolean hasUploadId() { return firstMessageCase_ == 1; } /** - * - * *
                * For resumable uploads. This should be the `upload_id` returned from a
                * call to `StartResumableWriteResponse`.
                * 
            * * string upload_id = 1; - * * @return The uploadId. */ public java.lang.String getUploadId() { @@ -193,7 +156,8 @@ public java.lang.String getUploadId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (firstMessageCase_ == 1) { firstMessage_ = s; @@ -202,25 +166,24 @@ public java.lang.String getUploadId() { } } /** - * - * *
                * For resumable uploads. This should be the `upload_id` returned from a
                * call to `StartResumableWriteResponse`.
                * 
            * * string upload_id = 1; - * * @return The bytes for uploadId. */ - public com.google.protobuf.ByteString getUploadIdBytes() { + public com.google.protobuf.ByteString + getUploadIdBytes() { java.lang.Object ref = ""; if (firstMessageCase_ == 1) { ref = firstMessage_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (firstMessageCase_ == 1) { firstMessage_ = b; } @@ -232,15 +195,12 @@ public com.google.protobuf.ByteString getUploadIdBytes() { public static final int WRITE_OBJECT_SPEC_FIELD_NUMBER = 2; /** - * - * *
                * For non-resumable uploads. Describes the overall upload, including the
                * destination bucket and object name, preconditions, etc.
                * 
            * * .google.storage.v2.WriteObjectSpec write_object_spec = 2; - * * @return Whether the writeObjectSpec field is set. */ @java.lang.Override @@ -248,27 +208,22 @@ public boolean hasWriteObjectSpec() { return firstMessageCase_ == 2; } /** - * - * *
                * For non-resumable uploads. Describes the overall upload, including the
                * destination bucket and object name, preconditions, etc.
                * 
            * * .google.storage.v2.WriteObjectSpec write_object_spec = 2; - * * @return The writeObjectSpec. */ @java.lang.Override public com.google.storage.v2.WriteObjectSpec getWriteObjectSpec() { if (firstMessageCase_ == 2) { - return (com.google.storage.v2.WriteObjectSpec) firstMessage_; + return (com.google.storage.v2.WriteObjectSpec) firstMessage_; } return com.google.storage.v2.WriteObjectSpec.getDefaultInstance(); } /** - * - * *
                * For non-resumable uploads. Describes the overall upload, including the
                * destination bucket and object name, preconditions, etc.
            @@ -279,7 +234,7 @@ public com.google.storage.v2.WriteObjectSpec getWriteObjectSpec() {
               @java.lang.Override
               public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilder() {
                 if (firstMessageCase_ == 2) {
            -      return (com.google.storage.v2.WriteObjectSpec) firstMessage_;
            +       return (com.google.storage.v2.WriteObjectSpec) firstMessage_;
                 }
                 return com.google.storage.v2.WriteObjectSpec.getDefaultInstance();
               }
            @@ -287,8 +242,6 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde
               public static final int WRITE_OFFSET_FIELD_NUMBER = 3;
               private long writeOffset_ = 0L;
               /**
            -   *
            -   *
                * 
                * Required. The offset from the beginning of the object at which the data
                * should be written.
            @@ -306,7 +259,6 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde
                * 
            * * int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The writeOffset. */ @java.lang.Override @@ -316,15 +268,12 @@ public long getWriteOffset() { public static final int CHECKSUMMED_DATA_FIELD_NUMBER = 4; /** - * - * *
                * The data to insert. If a crc32c checksum is provided that doesn't match
                * the checksum computed by the service, the request will fail.
                * 
            * * .google.storage.v2.ChecksummedData checksummed_data = 4; - * * @return Whether the checksummedData field is set. */ @java.lang.Override @@ -332,27 +281,22 @@ public boolean hasChecksummedData() { return dataCase_ == 4; } /** - * - * *
                * The data to insert. If a crc32c checksum is provided that doesn't match
                * the checksum computed by the service, the request will fail.
                * 
            * * .google.storage.v2.ChecksummedData checksummed_data = 4; - * * @return The checksummedData. */ @java.lang.Override public com.google.storage.v2.ChecksummedData getChecksummedData() { if (dataCase_ == 4) { - return (com.google.storage.v2.ChecksummedData) data_; + return (com.google.storage.v2.ChecksummedData) data_; } return com.google.storage.v2.ChecksummedData.getDefaultInstance(); } /** - * - * *
                * The data to insert. If a crc32c checksum is provided that doesn't match
                * the checksum computed by the service, the request will fail.
            @@ -363,7 +307,7 @@ public com.google.storage.v2.ChecksummedData getChecksummedData() {
               @java.lang.Override
               public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilder() {
                 if (dataCase_ == 4) {
            -      return (com.google.storage.v2.ChecksummedData) data_;
            +       return (com.google.storage.v2.ChecksummedData) data_;
                 }
                 return com.google.storage.v2.ChecksummedData.getDefaultInstance();
               }
            @@ -371,8 +315,6 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
               public static final int OBJECT_CHECKSUMS_FIELD_NUMBER = 6;
               private com.google.storage.v2.ObjectChecksums objectChecksums_;
               /**
            -   *
            -   *
                * 
                * Checksums for the complete object. If the checksums computed by the service
                * don't match the specified checksums the call will fail. May only be
            @@ -381,7 +323,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 @@ -389,8 +330,6 @@ public boolean hasObjectChecksums() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                * Checksums for the complete object. If the checksums computed by the service
                * don't match the specified checksums the call will fail. May only be
            @@ -399,18 +338,13 @@ public boolean hasObjectChecksums() {
                * 
            * * .google.storage.v2.ObjectChecksums object_checksums = 6; - * * @return The objectChecksums. */ @java.lang.Override public com.google.storage.v2.ObjectChecksums getObjectChecksums() { - return objectChecksums_ == null - ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() - : objectChecksums_; + return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_; } /** - * - * *
                * Checksums for the complete object. If the checksums computed by the service
                * don't match the specified checksums the call will fail. May only be
            @@ -422,16 +356,12 @@ public com.google.storage.v2.ObjectChecksums getObjectChecksums() {
                */
               @java.lang.Override
               public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilder() {
            -    return objectChecksums_ == null
            -        ? com.google.storage.v2.ObjectChecksums.getDefaultInstance()
            -        : objectChecksums_;
            +    return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_;
               }
             
               public static final int FINISH_WRITE_FIELD_NUMBER = 7;
               private boolean finishWrite_ = false;
               /**
            -   *
            -   *
                * 
                * If `true`, this indicates that the write is complete. Sending any
                * `WriteObjectRequest`s subsequent to one in which `finish_write` is `true`
            @@ -442,7 +372,6 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
                * 
            * * bool finish_write = 7; - * * @return The finishWrite. */ @java.lang.Override @@ -453,14 +382,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 @@ -468,25 +394,18 @@ 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 = 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.
                * 
            @@ -494,15 +413,11 @@ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestPar * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ @java.lang.Override - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -514,7 +429,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (firstMessageCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, firstMessage_); } @@ -549,28 +465,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, firstMessage_); } if (firstMessageCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.storage.v2.WriteObjectSpec) firstMessage_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.storage.v2.WriteObjectSpec) firstMessage_); } if (writeOffset_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, writeOffset_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, writeOffset_); } if (dataCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.storage.v2.ChecksummedData) data_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.storage.v2.ChecksummedData) data_); } if (((bitField0_ & 0x00000001) != 0)) { - 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 (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, getCommonObjectRequestParams()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getCommonObjectRequestParams()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -580,31 +496,36 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.WriteObjectRequest)) { return super.equals(obj); } com.google.storage.v2.WriteObjectRequest other = (com.google.storage.v2.WriteObjectRequest) obj; - if (getWriteOffset() != other.getWriteOffset()) return false; + if (getWriteOffset() + != other.getWriteOffset()) return false; if (hasObjectChecksums() != other.hasObjectChecksums()) return false; if (hasObjectChecksums()) { - if (!getObjectChecksums().equals(other.getObjectChecksums())) return false; + if (!getObjectChecksums() + .equals(other.getObjectChecksums())) return false; } - if (getFinishWrite() != other.getFinishWrite()) return false; + if (getFinishWrite() + != other.getFinishWrite()) return false; if (hasCommonObjectRequestParams() != other.hasCommonObjectRequestParams()) return false; if (hasCommonObjectRequestParams()) { - if (!getCommonObjectRequestParams().equals(other.getCommonObjectRequestParams())) - return false; + if (!getCommonObjectRequestParams() + .equals(other.getCommonObjectRequestParams())) return false; } if (!getFirstMessageCase().equals(other.getFirstMessageCase())) return false; switch (firstMessageCase_) { case 1: - if (!getUploadId().equals(other.getUploadId())) return false; + if (!getUploadId() + .equals(other.getUploadId())) return false; break; case 2: - if (!getWriteObjectSpec().equals(other.getWriteObjectSpec())) return false; + if (!getWriteObjectSpec() + .equals(other.getWriteObjectSpec())) return false; break; case 0: default: @@ -612,7 +533,8 @@ public boolean equals(final java.lang.Object obj) { if (!getDataCase().equals(other.getDataCase())) return false; switch (dataCase_) { case 4: - if (!getChecksummedData().equals(other.getChecksummedData())) return false; + if (!getChecksummedData() + .equals(other.getChecksummedData())) return false; break; case 0: default: @@ -629,13 +551,15 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + WRITE_OFFSET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getWriteOffset()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getWriteOffset()); if (hasObjectChecksums()) { hash = (37 * hash) + OBJECT_CHECKSUMS_FIELD_NUMBER; hash = (53 * hash) + getObjectChecksums().hashCode(); } hash = (37 * hash) + FINISH_WRITE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFinishWrite()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getFinishWrite()); if (hasCommonObjectRequestParams()) { hash = (37 * hash) + COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER; hash = (53 * hash) + getCommonObjectRequestParams().hashCode(); @@ -665,127 +589,120 @@ 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() @@ -793,18 +710,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) { getObjectChecksumsFieldBuilder(); getCommonObjectRequestParamsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -835,9 +752,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_WriteObjectRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_WriteObjectRequest_descriptor; } @java.lang.Override @@ -856,11 +773,8 @@ public com.google.storage.v2.WriteObjectRequest build() { @java.lang.Override public com.google.storage.v2.WriteObjectRequest buildPartial() { - com.google.storage.v2.WriteObjectRequest result = - new com.google.storage.v2.WriteObjectRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.WriteObjectRequest result = new com.google.storage.v2.WriteObjectRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -873,18 +787,18 @@ private void buildPartial0(com.google.storage.v2.WriteObjectRequest result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { - result.objectChecksums_ = - objectChecksumsBuilder_ == null ? objectChecksums_ : objectChecksumsBuilder_.build(); + result.objectChecksums_ = objectChecksumsBuilder_ == null + ? objectChecksums_ + : objectChecksumsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000020) != 0)) { result.finishWrite_ = finishWrite_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.commonObjectRequestParams_ = - commonObjectRequestParamsBuilder_ == null - ? commonObjectRequestParams_ - : commonObjectRequestParamsBuilder_.build(); + result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null + ? commonObjectRequestParams_ + : commonObjectRequestParamsBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -893,12 +807,14 @@ private void buildPartial0(com.google.storage.v2.WriteObjectRequest result) { 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(); } } @@ -907,39 +823,38 @@ private void buildPartialOneofs(com.google.storage.v2.WriteObjectRequest result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.WriteObjectRequest) { - return mergeFrom((com.google.storage.v2.WriteObjectRequest) other); + return mergeFrom((com.google.storage.v2.WriteObjectRequest)other); } else { super.mergeFrom(other); return this; @@ -961,33 +876,28 @@ public Builder mergeFrom(com.google.storage.v2.WriteObjectRequest other) { mergeCommonObjectRequestParams(other.getCommonObjectRequestParams()); } switch (other.getFirstMessageCase()) { - case UPLOAD_ID: - { - firstMessageCase_ = 1; - firstMessage_ = other.firstMessage_; - onChanged(); - break; - } - case WRITE_OBJECT_SPEC: - { - mergeWriteObjectSpec(other.getWriteObjectSpec()); - break; - } - case FIRSTMESSAGE_NOT_SET: - { - break; - } + case UPLOAD_ID: { + firstMessageCase_ = 1; + firstMessage_ = other.firstMessage_; + onChanged(); + break; + } + case WRITE_OBJECT_SPEC: { + mergeWriteObjectSpec(other.getWriteObjectSpec()); + break; + } + case FIRSTMESSAGE_NOT_SET: { + break; + } } switch (other.getDataCase()) { - case CHECKSUMMED_DATA: - { - mergeChecksummedData(other.getChecksummedData()); - break; - } - case DATA_NOT_SET: - { - break; - } + case CHECKSUMMED_DATA: { + mergeChecksummedData(other.getChecksummedData()); + break; + } + case DATA_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1015,57 +925,56 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - firstMessageCase_ = 1; - firstMessage_ = s; - break; - } // case 10 - case 18: - { - input.readMessage(getWriteObjectSpecFieldBuilder().getBuilder(), extensionRegistry); - firstMessageCase_ = 2; - break; - } // case 18 - case 24: - { - writeOffset_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - input.readMessage(getChecksummedDataFieldBuilder().getBuilder(), extensionRegistry); - dataCase_ = 4; - break; - } // case 34 - case 50: - { - input.readMessage(getObjectChecksumsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 50 - case 56: - { - finishWrite_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 56 - case 66: - { - input.readMessage( - getCommonObjectRequestParamsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + firstMessageCase_ = 1; + firstMessage_ = s; + break; + } // case 10 + case 18: { + input.readMessage( + getWriteObjectSpecFieldBuilder().getBuilder(), + extensionRegistry); + firstMessageCase_ = 2; + break; + } // case 18 + case 24: { + writeOffset_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + input.readMessage( + getChecksummedDataFieldBuilder().getBuilder(), + extensionRegistry); + dataCase_ = 4; + break; + } // case 34 + case 50: { + input.readMessage( + getObjectChecksumsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 56: { + finishWrite_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 56 + case 66: { + input.readMessage( + getCommonObjectRequestParamsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1075,12 +984,12 @@ public Builder mergeFrom( } // finally return this; } - private int firstMessageCase_ = 0; private java.lang.Object firstMessage_; - - public FirstMessageCase getFirstMessageCase() { - return FirstMessageCase.forNumber(firstMessageCase_); + public FirstMessageCase + getFirstMessageCase() { + return FirstMessageCase.forNumber( + firstMessageCase_); } public Builder clearFirstMessage() { @@ -1092,9 +1001,10 @@ public Builder clearFirstMessage() { private int dataCase_ = 0; private java.lang.Object data_; - - public DataCase getDataCase() { - return DataCase.forNumber(dataCase_); + public DataCase + getDataCase() { + return DataCase.forNumber( + dataCase_); } public Builder clearData() { @@ -1107,15 +1017,12 @@ public Builder clearData() { private int bitField0_; /** - * - * *
                  * For resumable uploads. This should be the `upload_id` returned from a
                  * call to `StartResumableWriteResponse`.
                  * 
            * * string upload_id = 1; - * * @return Whether the uploadId field is set. */ @java.lang.Override @@ -1123,15 +1030,12 @@ public boolean hasUploadId() { return firstMessageCase_ == 1; } /** - * - * *
                  * For resumable uploads. This should be the `upload_id` returned from a
                  * call to `StartResumableWriteResponse`.
                  * 
            * * string upload_id = 1; - * * @return The uploadId. */ @java.lang.Override @@ -1141,7 +1045,8 @@ public java.lang.String getUploadId() { ref = firstMessage_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (firstMessageCase_ == 1) { firstMessage_ = s; @@ -1152,26 +1057,25 @@ public java.lang.String getUploadId() { } } /** - * - * *
                  * For resumable uploads. This should be the `upload_id` returned from a
                  * call to `StartResumableWriteResponse`.
                  * 
            * * string upload_id = 1; - * * @return The bytes for uploadId. */ @java.lang.Override - public com.google.protobuf.ByteString getUploadIdBytes() { + public com.google.protobuf.ByteString + getUploadIdBytes() { java.lang.Object ref = ""; if (firstMessageCase_ == 1) { ref = firstMessage_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (firstMessageCase_ == 1) { firstMessage_ = b; } @@ -1181,37 +1085,30 @@ public com.google.protobuf.ByteString getUploadIdBytes() { } } /** - * - * *
                  * For resumable uploads. This should be the `upload_id` returned from a
                  * call to `StartResumableWriteResponse`.
                  * 
            * * string upload_id = 1; - * * @param value The uploadId to set. * @return This builder for chaining. */ - public Builder setUploadId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUploadId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } firstMessageCase_ = 1; firstMessage_ = value; onChanged(); return this; } /** - * - * *
                  * For resumable uploads. This should be the `upload_id` returned from a
                  * call to `StartResumableWriteResponse`.
                  * 
            * * string upload_id = 1; - * * @return This builder for chaining. */ public Builder clearUploadId() { @@ -1223,22 +1120,18 @@ public Builder clearUploadId() { return this; } /** - * - * *
                  * For resumable uploads. This should be the `upload_id` returned from a
                  * call to `StartResumableWriteResponse`.
                  * 
            * * string upload_id = 1; - * * @param value The bytes for uploadId to set. * @return This builder for chaining. */ - public Builder setUploadIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUploadIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); firstMessageCase_ = 1; firstMessage_ = value; @@ -1247,20 +1140,14 @@ public Builder setUploadIdBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.WriteObjectSpec, - com.google.storage.v2.WriteObjectSpec.Builder, - com.google.storage.v2.WriteObjectSpecOrBuilder> - writeObjectSpecBuilder_; + com.google.storage.v2.WriteObjectSpec, com.google.storage.v2.WriteObjectSpec.Builder, com.google.storage.v2.WriteObjectSpecOrBuilder> writeObjectSpecBuilder_; /** - * - * *
                  * For non-resumable uploads. Describes the overall upload, including the
                  * destination bucket and object name, preconditions, etc.
                  * 
            * * .google.storage.v2.WriteObjectSpec write_object_spec = 2; - * * @return Whether the writeObjectSpec field is set. */ @java.lang.Override @@ -1268,15 +1155,12 @@ public boolean hasWriteObjectSpec() { return firstMessageCase_ == 2; } /** - * - * *
                  * For non-resumable uploads. Describes the overall upload, including the
                  * destination bucket and object name, preconditions, etc.
                  * 
            * * .google.storage.v2.WriteObjectSpec write_object_spec = 2; - * * @return The writeObjectSpec. */ @java.lang.Override @@ -1294,8 +1178,6 @@ public com.google.storage.v2.WriteObjectSpec getWriteObjectSpec() { } } /** - * - * *
                  * For non-resumable uploads. Describes the overall upload, including the
                  * destination bucket and object name, preconditions, etc.
            @@ -1317,8 +1199,6 @@ public Builder setWriteObjectSpec(com.google.storage.v2.WriteObjectSpec value) {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * For non-resumable uploads. Describes the overall upload, including the
                  * destination bucket and object name, preconditions, etc.
            @@ -1338,8 +1218,6 @@ public Builder setWriteObjectSpec(
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * For non-resumable uploads. Describes the overall upload, including the
                  * destination bucket and object name, preconditions, etc.
            @@ -1349,13 +1227,10 @@ public Builder setWriteObjectSpec(
                  */
                 public Builder mergeWriteObjectSpec(com.google.storage.v2.WriteObjectSpec value) {
                   if (writeObjectSpecBuilder_ == null) {
            -        if (firstMessageCase_ == 2
            -            && firstMessage_ != com.google.storage.v2.WriteObjectSpec.getDefaultInstance()) {
            -          firstMessage_ =
            -              com.google.storage.v2.WriteObjectSpec.newBuilder(
            -                      (com.google.storage.v2.WriteObjectSpec) firstMessage_)
            -                  .mergeFrom(value)
            -                  .buildPartial();
            +        if (firstMessageCase_ == 2 &&
            +            firstMessage_ != com.google.storage.v2.WriteObjectSpec.getDefaultInstance()) {
            +          firstMessage_ = com.google.storage.v2.WriteObjectSpec.newBuilder((com.google.storage.v2.WriteObjectSpec) firstMessage_)
            +              .mergeFrom(value).buildPartial();
                     } else {
                       firstMessage_ = value;
                     }
            @@ -1371,8 +1246,6 @@ public Builder mergeWriteObjectSpec(com.google.storage.v2.WriteObjectSpec value)
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * For non-resumable uploads. Describes the overall upload, including the
                  * destination bucket and object name, preconditions, etc.
            @@ -1397,8 +1270,6 @@ public Builder clearWriteObjectSpec() {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * For non-resumable uploads. Describes the overall upload, including the
                  * destination bucket and object name, preconditions, etc.
            @@ -1410,8 +1281,6 @@ public com.google.storage.v2.WriteObjectSpec.Builder getWriteObjectSpecBuilder()
                   return getWriteObjectSpecFieldBuilder().getBuilder();
                 }
                 /**
            -     *
            -     *
                  * 
                  * For non-resumable uploads. Describes the overall upload, including the
                  * destination bucket and object name, preconditions, etc.
            @@ -1431,8 +1300,6 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde
                   }
                 }
                 /**
            -     *
            -     *
                  * 
                  * For non-resumable uploads. Describes the overall upload, including the
                  * destination bucket and object name, preconditions, etc.
            @@ -1441,19 +1308,14 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde
                  * .google.storage.v2.WriteObjectSpec write_object_spec = 2;
                  */
                 private com.google.protobuf.SingleFieldBuilderV3<
            -            com.google.storage.v2.WriteObjectSpec,
            -            com.google.storage.v2.WriteObjectSpec.Builder,
            -            com.google.storage.v2.WriteObjectSpecOrBuilder>
            +        com.google.storage.v2.WriteObjectSpec, com.google.storage.v2.WriteObjectSpec.Builder, com.google.storage.v2.WriteObjectSpecOrBuilder> 
                     getWriteObjectSpecFieldBuilder() {
                   if (writeObjectSpecBuilder_ == null) {
                     if (!(firstMessageCase_ == 2)) {
                       firstMessage_ = com.google.storage.v2.WriteObjectSpec.getDefaultInstance();
                     }
            -        writeObjectSpecBuilder_ =
            -            new com.google.protobuf.SingleFieldBuilderV3<
            -                com.google.storage.v2.WriteObjectSpec,
            -                com.google.storage.v2.WriteObjectSpec.Builder,
            -                com.google.storage.v2.WriteObjectSpecOrBuilder>(
            +        writeObjectSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            +            com.google.storage.v2.WriteObjectSpec, com.google.storage.v2.WriteObjectSpec.Builder, com.google.storage.v2.WriteObjectSpecOrBuilder>(
                             (com.google.storage.v2.WriteObjectSpec) firstMessage_,
                             getParentForChildren(),
                             isClean());
            @@ -1464,10 +1326,8 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde
                   return writeObjectSpecBuilder_;
                 }
             
            -    private long writeOffset_;
            +    private long writeOffset_ ;
                 /**
            -     *
            -     *
                  * 
                  * Required. The offset from the beginning of the object at which the data
                  * should be written.
            @@ -1485,7 +1345,6 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde
                  * 
            * * int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The writeOffset. */ @java.lang.Override @@ -1493,8 +1352,6 @@ public long getWriteOffset() { return writeOffset_; } /** - * - * *
                  * Required. The offset from the beginning of the object at which the data
                  * should be written.
            @@ -1512,7 +1369,6 @@ public long getWriteOffset() {
                  * 
            * * int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The writeOffset to set. * @return This builder for chaining. */ @@ -1524,8 +1380,6 @@ public Builder setWriteOffset(long value) { return this; } /** - * - * *
                  * Required. The offset from the beginning of the object at which the data
                  * should be written.
            @@ -1543,7 +1397,6 @@ public Builder setWriteOffset(long value) {
                  * 
            * * int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearWriteOffset() { @@ -1554,20 +1407,14 @@ public Builder clearWriteOffset() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.ChecksummedData, - com.google.storage.v2.ChecksummedData.Builder, - com.google.storage.v2.ChecksummedDataOrBuilder> - checksummedDataBuilder_; + com.google.storage.v2.ChecksummedData, com.google.storage.v2.ChecksummedData.Builder, com.google.storage.v2.ChecksummedDataOrBuilder> checksummedDataBuilder_; /** - * - * *
                  * The data to insert. If a crc32c checksum is provided that doesn't match
                  * the checksum computed by the service, the request will fail.
                  * 
            * * .google.storage.v2.ChecksummedData checksummed_data = 4; - * * @return Whether the checksummedData field is set. */ @java.lang.Override @@ -1575,15 +1422,12 @@ public boolean hasChecksummedData() { return dataCase_ == 4; } /** - * - * *
                  * The data to insert. If a crc32c checksum is provided that doesn't match
                  * the checksum computed by the service, the request will fail.
                  * 
            * * .google.storage.v2.ChecksummedData checksummed_data = 4; - * * @return The checksummedData. */ @java.lang.Override @@ -1601,8 +1445,6 @@ public com.google.storage.v2.ChecksummedData getChecksummedData() { } } /** - * - * *
                  * The data to insert. If a crc32c checksum is provided that doesn't match
                  * the checksum computed by the service, the request will fail.
            @@ -1624,8 +1466,6 @@ public Builder setChecksummedData(com.google.storage.v2.ChecksummedData value) {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * The data to insert. If a crc32c checksum is provided that doesn't match
                  * the checksum computed by the service, the request will fail.
            @@ -1645,8 +1485,6 @@ public Builder setChecksummedData(
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * The data to insert. If a crc32c checksum is provided that doesn't match
                  * the checksum computed by the service, the request will fail.
            @@ -1656,12 +1494,10 @@ public Builder setChecksummedData(
                  */
                 public Builder mergeChecksummedData(com.google.storage.v2.ChecksummedData value) {
                   if (checksummedDataBuilder_ == null) {
            -        if (dataCase_ == 4 && data_ != com.google.storage.v2.ChecksummedData.getDefaultInstance()) {
            -          data_ =
            -              com.google.storage.v2.ChecksummedData.newBuilder(
            -                      (com.google.storage.v2.ChecksummedData) data_)
            -                  .mergeFrom(value)
            -                  .buildPartial();
            +        if (dataCase_ == 4 &&
            +            data_ != com.google.storage.v2.ChecksummedData.getDefaultInstance()) {
            +          data_ = com.google.storage.v2.ChecksummedData.newBuilder((com.google.storage.v2.ChecksummedData) data_)
            +              .mergeFrom(value).buildPartial();
                     } else {
                       data_ = value;
                     }
            @@ -1677,8 +1513,6 @@ public Builder mergeChecksummedData(com.google.storage.v2.ChecksummedData value)
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * The data to insert. If a crc32c checksum is provided that doesn't match
                  * the checksum computed by the service, the request will fail.
            @@ -1703,8 +1537,6 @@ public Builder clearChecksummedData() {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * The data to insert. If a crc32c checksum is provided that doesn't match
                  * the checksum computed by the service, the request will fail.
            @@ -1716,8 +1548,6 @@ public com.google.storage.v2.ChecksummedData.Builder getChecksummedDataBuilder()
                   return getChecksummedDataFieldBuilder().getBuilder();
                 }
                 /**
            -     *
            -     *
                  * 
                  * The data to insert. If a crc32c checksum is provided that doesn't match
                  * the checksum computed by the service, the request will fail.
            @@ -1737,8 +1567,6 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
                   }
                 }
                 /**
            -     *
            -     *
                  * 
                  * The data to insert. If a crc32c checksum is provided that doesn't match
                  * the checksum computed by the service, the request will fail.
            @@ -1747,20 +1575,17 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
                  * .google.storage.v2.ChecksummedData checksummed_data = 4;
                  */
                 private com.google.protobuf.SingleFieldBuilderV3<
            -            com.google.storage.v2.ChecksummedData,
            -            com.google.storage.v2.ChecksummedData.Builder,
            -            com.google.storage.v2.ChecksummedDataOrBuilder>
            +        com.google.storage.v2.ChecksummedData, com.google.storage.v2.ChecksummedData.Builder, com.google.storage.v2.ChecksummedDataOrBuilder> 
                     getChecksummedDataFieldBuilder() {
                   if (checksummedDataBuilder_ == null) {
                     if (!(dataCase_ == 4)) {
                       data_ = com.google.storage.v2.ChecksummedData.getDefaultInstance();
                     }
            -        checksummedDataBuilder_ =
            -            new com.google.protobuf.SingleFieldBuilderV3<
            -                com.google.storage.v2.ChecksummedData,
            -                com.google.storage.v2.ChecksummedData.Builder,
            -                com.google.storage.v2.ChecksummedDataOrBuilder>(
            -                (com.google.storage.v2.ChecksummedData) data_, getParentForChildren(), isClean());
            +        checksummedDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            +            com.google.storage.v2.ChecksummedData, com.google.storage.v2.ChecksummedData.Builder, com.google.storage.v2.ChecksummedDataOrBuilder>(
            +                (com.google.storage.v2.ChecksummedData) data_,
            +                getParentForChildren(),
            +                isClean());
                     data_ = null;
                   }
                   dataCase_ = 4;
            @@ -1770,13 +1595,8 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
             
                 private com.google.storage.v2.ObjectChecksums objectChecksums_;
                 private com.google.protobuf.SingleFieldBuilderV3<
            -            com.google.storage.v2.ObjectChecksums,
            -            com.google.storage.v2.ObjectChecksums.Builder,
            -            com.google.storage.v2.ObjectChecksumsOrBuilder>
            -        objectChecksumsBuilder_;
            +        com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder> objectChecksumsBuilder_;
                 /**
            -     *
            -     *
                  * 
                  * Checksums for the complete object. If the checksums computed by the service
                  * don't match the specified checksums the call will fail. May only be
            @@ -1785,15 +1605,12 @@ public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilde
                  * 
            * * .google.storage.v2.ObjectChecksums object_checksums = 6; - * * @return Whether the objectChecksums field is set. */ public boolean hasObjectChecksums() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
                  * Checksums for the complete object. If the checksums computed by the service
                  * don't match the specified checksums the call will fail. May only be
            @@ -1802,21 +1619,16 @@ public boolean hasObjectChecksums() {
                  * 
            * * .google.storage.v2.ObjectChecksums object_checksums = 6; - * * @return The objectChecksums. */ public com.google.storage.v2.ObjectChecksums getObjectChecksums() { if (objectChecksumsBuilder_ == null) { - return objectChecksums_ == null - ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() - : objectChecksums_; + return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_; } else { return objectChecksumsBuilder_.getMessage(); } } /** - * - * *
                  * Checksums for the complete object. If the checksums computed by the service
                  * don't match the specified checksums the call will fail. May only be
            @@ -1840,8 +1652,6 @@ public Builder setObjectChecksums(com.google.storage.v2.ObjectChecksums value) {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Checksums for the complete object. If the checksums computed by the service
                  * don't match the specified checksums the call will fail. May only be
            @@ -1863,8 +1673,6 @@ public Builder setObjectChecksums(
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Checksums for the complete object. If the checksums computed by the service
                  * don't match the specified checksums the call will fail. May only be
            @@ -1876,9 +1684,9 @@ public Builder setObjectChecksums(
                  */
                 public Builder mergeObjectChecksums(com.google.storage.v2.ObjectChecksums value) {
                   if (objectChecksumsBuilder_ == null) {
            -        if (((bitField0_ & 0x00000010) != 0)
            -            && objectChecksums_ != null
            -            && objectChecksums_ != com.google.storage.v2.ObjectChecksums.getDefaultInstance()) {
            +        if (((bitField0_ & 0x00000010) != 0) &&
            +          objectChecksums_ != null &&
            +          objectChecksums_ != com.google.storage.v2.ObjectChecksums.getDefaultInstance()) {
                       getObjectChecksumsBuilder().mergeFrom(value);
                     } else {
                       objectChecksums_ = value;
            @@ -1893,8 +1701,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 specified checksums the call will fail. May only be
            @@ -1915,8 +1721,6 @@ public Builder clearObjectChecksums() {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * Checksums for the complete object. If the checksums computed by the service
                  * don't match the specified checksums the call will fail. May only be
            @@ -1932,8 +1736,6 @@ public com.google.storage.v2.ObjectChecksums.Builder getObjectChecksumsBuilder()
                   return getObjectChecksumsFieldBuilder().getBuilder();
                 }
                 /**
            -     *
            -     *
                  * 
                  * Checksums for the complete object. If the checksums computed by the service
                  * don't match the specified checksums the call will fail. May only be
            @@ -1947,14 +1749,11 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
                   if (objectChecksumsBuilder_ != null) {
                     return objectChecksumsBuilder_.getMessageOrBuilder();
                   } else {
            -        return objectChecksums_ == null
            -            ? com.google.storage.v2.ObjectChecksums.getDefaultInstance()
            -            : objectChecksums_;
            +        return objectChecksums_ == null ?
            +            com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_;
                   }
                 }
                 /**
            -     *
            -     *
                  * 
                  * Checksums for the complete object. If the checksums computed by the service
                  * don't match the specified checksums the call will fail. May only be
            @@ -1965,26 +1764,21 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
                  * .google.storage.v2.ObjectChecksums object_checksums = 6;
                  */
                 private com.google.protobuf.SingleFieldBuilderV3<
            -            com.google.storage.v2.ObjectChecksums,
            -            com.google.storage.v2.ObjectChecksums.Builder,
            -            com.google.storage.v2.ObjectChecksumsOrBuilder>
            +        com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder> 
                     getObjectChecksumsFieldBuilder() {
                   if (objectChecksumsBuilder_ == null) {
            -        objectChecksumsBuilder_ =
            -            new com.google.protobuf.SingleFieldBuilderV3<
            -                com.google.storage.v2.ObjectChecksums,
            -                com.google.storage.v2.ObjectChecksums.Builder,
            -                com.google.storage.v2.ObjectChecksumsOrBuilder>(
            -                getObjectChecksums(), getParentForChildren(), isClean());
            +        objectChecksumsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            +            com.google.storage.v2.ObjectChecksums, com.google.storage.v2.ObjectChecksums.Builder, com.google.storage.v2.ObjectChecksumsOrBuilder>(
            +                getObjectChecksums(),
            +                getParentForChildren(),
            +                isClean());
                     objectChecksums_ = null;
                   }
                   return objectChecksumsBuilder_;
                 }
             
            -    private boolean finishWrite_;
            +    private boolean finishWrite_ ;
                 /**
            -     *
            -     *
                  * 
                  * If `true`, this indicates that the write is complete. Sending any
                  * `WriteObjectRequest`s subsequent to one in which `finish_write` is `true`
            @@ -1995,7 +1789,6 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
                  * 
            * * bool finish_write = 7; - * * @return The finishWrite. */ @java.lang.Override @@ -2003,8 +1796,6 @@ public boolean getFinishWrite() { return finishWrite_; } /** - * - * *
                  * If `true`, this indicates that the write is complete. Sending any
                  * `WriteObjectRequest`s subsequent to one in which `finish_write` is `true`
            @@ -2015,7 +1806,6 @@ public boolean getFinishWrite() {
                  * 
            * * bool finish_write = 7; - * * @param value The finishWrite to set. * @return This builder for chaining. */ @@ -2027,8 +1817,6 @@ public Builder setFinishWrite(boolean value) { return this; } /** - * - * *
                  * If `true`, this indicates that the write is complete. Sending any
                  * `WriteObjectRequest`s subsequent to one in which `finish_write` is `true`
            @@ -2039,7 +1827,6 @@ public Builder setFinishWrite(boolean value) {
                  * 
            * * bool finish_write = 7; - * * @return This builder for chaining. */ public Builder clearFinishWrite() { @@ -2051,55 +1838,41 @@ public Builder clearFinishWrite() { private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> - commonObjectRequestParamsBuilder_; + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> commonObjectRequestParamsBuilder_; /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return Whether the commonObjectRequestParams field is set. */ public boolean hasCommonObjectRequestParams() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return The commonObjectRequestParams. */ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { if (commonObjectRequestParamsBuilder_ == null) { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } else { return commonObjectRequestParamsBuilder_.getMessage(); } } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ - public Builder setCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2113,8 +1886,6 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -2133,21 +1904,17 @@ public Builder setCommonObjectRequestParams( return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ - public Builder mergeCommonObjectRequestParams( - com.google.storage.v2.CommonObjectRequestParams value) { + public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && commonObjectRequestParams_ != null - && commonObjectRequestParams_ - != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + commonObjectRequestParams_ != null && + commonObjectRequestParams_ != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { getCommonObjectRequestParamsBuilder().mergeFrom(value); } else { commonObjectRequestParams_ = value; @@ -2162,8 +1929,6 @@ public Builder mergeCommonObjectRequestParams( return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -2181,42 +1946,33 @@ public Builder clearCommonObjectRequestParams() { return this; } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ - public com.google.storage.v2.CommonObjectRequestParams.Builder - getCommonObjectRequestParamsBuilder() { + public com.google.storage.v2.CommonObjectRequestParams.Builder getCommonObjectRequestParamsBuilder() { bitField0_ |= 0x00000040; onChanged(); return getCommonObjectRequestParamsFieldBuilder().getBuilder(); } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder - getCommonObjectRequestParamsOrBuilder() { + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { if (commonObjectRequestParamsBuilder_ != null) { return commonObjectRequestParamsBuilder_.getMessageOrBuilder(); } else { - return commonObjectRequestParams_ == null - ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() - : commonObjectRequestParams_; + return commonObjectRequestParams_ == null ? + com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; } } /** - * - * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -2224,24 +1980,21 @@ public Builder clearCommonObjectRequestParams() { * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder> + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> getCommonObjectRequestParamsFieldBuilder() { if (commonObjectRequestParamsBuilder_ == null) { - commonObjectRequestParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, - com.google.storage.v2.CommonObjectRequestParams.Builder, - com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( - getCommonObjectRequestParams(), getParentForChildren(), isClean()); + commonObjectRequestParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder>( + getCommonObjectRequestParams(), + getParentForChildren(), + isClean()); commonObjectRequestParams_ = null; } return commonObjectRequestParamsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2251,12 +2004,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.WriteObjectRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.WriteObjectRequest) private static final com.google.storage.v2.WriteObjectRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.WriteObjectRequest(); } @@ -2265,27 +2018,27 @@ public static com.google.storage.v2.WriteObjectRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WriteObjectRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WriteObjectRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2300,4 +2053,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.WriteObjectRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectRequestOrBuilder.java similarity index 88% 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 fd2a6639a1..fe33c03f29 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,98 +1,66 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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.
            @@ -103,8 +71,6 @@ public interface WriteObjectRequestOrBuilder
               com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilder();
             
               /**
            -   *
            -   *
                * 
                * Required. The offset from the beginning of the object at which the data
                * should be written.
            @@ -122,40 +88,31 @@ public interface WriteObjectRequestOrBuilder
                * 
            * * int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The writeOffset. */ long getWriteOffset(); /** - * - * *
                * The data to insert. If a crc32c checksum is provided that doesn't match
                * the checksum computed by the service, the request will fail.
                * 
            * * .google.storage.v2.ChecksummedData checksummed_data = 4; - * * @return Whether the checksummedData field is set. */ boolean hasChecksummedData(); /** - * - * *
                * The data to insert. If a crc32c checksum is provided that doesn't match
                * the checksum computed by the service, the request will fail.
                * 
            * * .google.storage.v2.ChecksummedData checksummed_data = 4; - * * @return The checksummedData. */ com.google.storage.v2.ChecksummedData getChecksummedData(); /** - * - * *
                * The data to insert. If a crc32c checksum is provided that doesn't match
                * the checksum computed by the service, the request will fail.
            @@ -166,8 +123,6 @@ public interface WriteObjectRequestOrBuilder
               com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilder();
             
               /**
            -   *
            -   *
                * 
                * Checksums for the complete object. If the checksums computed by the service
                * don't match the specified checksums the call will fail. May only be
            @@ -176,13 +131,10 @@ public interface WriteObjectRequestOrBuilder
                * 
            * * .google.storage.v2.ObjectChecksums object_checksums = 6; - * * @return Whether the objectChecksums field is set. */ boolean hasObjectChecksums(); /** - * - * *
                * Checksums for the complete object. If the checksums computed by the service
                * don't match the specified checksums the call will fail. May only be
            @@ -191,13 +143,10 @@ public interface WriteObjectRequestOrBuilder
                * 
            * * .google.storage.v2.ObjectChecksums object_checksums = 6; - * * @return The objectChecksums. */ com.google.storage.v2.ObjectChecksums getObjectChecksums(); /** - * - * *
                * Checksums for the complete object. If the checksums computed by the service
                * don't match the specified checksums the call will fail. May only be
            @@ -210,8 +159,6 @@ public interface WriteObjectRequestOrBuilder
               com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilder();
             
               /**
            -   *
            -   *
                * 
                * If `true`, this indicates that the write is complete. Sending any
                * `WriteObjectRequest`s subsequent to one in which `finish_write` is `true`
            @@ -222,38 +169,29 @@ public interface WriteObjectRequestOrBuilder
                * 
            * * bool finish_write = 7; - * * @return The finishWrite. */ boolean getFinishWrite(); /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return Whether the commonObjectRequestParams field is set. */ boolean hasCommonObjectRequestParams(); /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; - * * @return The commonObjectRequestParams. */ com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams(); /** - * - * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponse.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponse.java similarity index 69% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponse.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponse.java index b01fd73775..8f81772c0f 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,18 +1,3 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -20,61 +5,54 @@ package com.google.storage.v2; /** - * - * *
              * Response message for WriteObject.
              * 
            * * Protobuf type {@code google.storage.v2.WriteObjectResponse} */ -public final class WriteObjectResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class WriteObjectResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.WriteObjectResponse) WriteObjectResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use WriteObjectResponse.newBuilder() to construct. private WriteObjectResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private WriteObjectResponse() {} + private WriteObjectResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WriteObjectResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_WriteObjectResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_WriteObjectResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_WriteObjectResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_WriteObjectResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.WriteObjectResponse.class, - com.google.storage.v2.WriteObjectResponse.Builder.class); + com.google.storage.v2.WriteObjectResponse.class, com.google.storage.v2.WriteObjectResponse.Builder.class); } private int writeStatusCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object writeStatus_; - public enum WriteStatusCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PERSISTED_SIZE(1), RESOURCE(2), WRITESTATUS_NOT_SET(0); private final int value; - private WriteStatusCase(int value) { this.value = value; } @@ -90,37 +68,31 @@ public static WriteStatusCase valueOf(int value) { public static WriteStatusCase forNumber(int value) { switch (value) { - case 1: - return PERSISTED_SIZE; - case 2: - return RESOURCE; - case 0: - return WRITESTATUS_NOT_SET; - default: - return null; + case 1: return PERSISTED_SIZE; + case 2: return RESOURCE; + case 0: return WRITESTATUS_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public WriteStatusCase getWriteStatusCase() { - return WriteStatusCase.forNumber(writeStatusCase_); + public WriteStatusCase + getWriteStatusCase() { + return WriteStatusCase.forNumber( + writeStatusCase_); } public static final int PERSISTED_SIZE_FIELD_NUMBER = 1; /** - * - * *
                * The total number of bytes that have been processed for the given object
                * from all `WriteObject` calls. Only set if the upload has not finalized.
                * 
            * * int64 persisted_size = 1; - * * @return Whether the persistedSize field is set. */ @java.lang.Override @@ -128,15 +100,12 @@ public boolean hasPersistedSize() { return writeStatusCase_ == 1; } /** - * - * *
                * The total number of bytes that have been processed for the given object
                * from all `WriteObject` calls. Only set if the upload has not finalized.
                * 
            * * int64 persisted_size = 1; - * * @return The persistedSize. */ @java.lang.Override @@ -149,15 +118,12 @@ public long getPersistedSize() { public static final int RESOURCE_FIELD_NUMBER = 2; /** - * - * *
                * A resource containing the metadata for the uploaded object. Only set if
                * the upload has finalized.
                * 
            * * .google.storage.v2.Object resource = 2; - * * @return Whether the resource field is set. */ @java.lang.Override @@ -165,27 +131,22 @@ public boolean hasResource() { return writeStatusCase_ == 2; } /** - * - * *
                * A resource containing the metadata for the uploaded object. Only set if
                * the upload has finalized.
                * 
            * * .google.storage.v2.Object resource = 2; - * * @return The resource. */ @java.lang.Override public com.google.storage.v2.Object getResource() { if (writeStatusCase_ == 2) { - return (com.google.storage.v2.Object) writeStatus_; + return (com.google.storage.v2.Object) writeStatus_; } return com.google.storage.v2.Object.getDefaultInstance(); } /** - * - * *
                * A resource containing the metadata for the uploaded object. Only set if
                * the upload has finalized.
            @@ -196,13 +157,12 @@ public com.google.storage.v2.Object getResource() {
               @java.lang.Override
               public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
                 if (writeStatusCase_ == 2) {
            -      return (com.google.storage.v2.Object) writeStatus_;
            +       return (com.google.storage.v2.Object) writeStatus_;
                 }
                 return com.google.storage.v2.Object.getDefaultInstance();
               }
             
               private byte memoizedIsInitialized = -1;
            -
               @java.lang.Override
               public final boolean isInitialized() {
                 byte isInitialized = memoizedIsInitialized;
            @@ -214,9 +174,11 @@ public final boolean isInitialized() {
               }
             
               @java.lang.Override
            -  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
            +  public void writeTo(com.google.protobuf.CodedOutputStream output)
            +                      throws java.io.IOException {
                 if (writeStatusCase_ == 1) {
            -      output.writeInt64(1, (long) ((java.lang.Long) writeStatus_));
            +      output.writeInt64(
            +          1, (long)((java.lang.Long) writeStatus_));
                 }
                 if (writeStatusCase_ == 2) {
                   output.writeMessage(2, (com.google.storage.v2.Object) writeStatus_);
            @@ -231,14 +193,13 @@ public int getSerializedSize() {
             
                 size = 0;
                 if (writeStatusCase_ == 1) {
            -      size +=
            -          com.google.protobuf.CodedOutputStream.computeInt64Size(
            -              1, (long) ((java.lang.Long) writeStatus_));
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeInt64Size(
            +            1, (long)((java.lang.Long) writeStatus_));
                 }
                 if (writeStatusCase_ == 2) {
            -      size +=
            -          com.google.protobuf.CodedOutputStream.computeMessageSize(
            -              2, (com.google.storage.v2.Object) writeStatus_);
            +      size += com.google.protobuf.CodedOutputStream
            +        .computeMessageSize(2, (com.google.storage.v2.Object) writeStatus_);
                 }
                 size += getUnknownFields().getSerializedSize();
                 memoizedSize = size;
            @@ -248,21 +209,22 @@ public int getSerializedSize() {
               @java.lang.Override
               public boolean equals(final java.lang.Object obj) {
                 if (obj == this) {
            -      return true;
            +     return true;
                 }
                 if (!(obj instanceof com.google.storage.v2.WriteObjectResponse)) {
                   return super.equals(obj);
                 }
            -    com.google.storage.v2.WriteObjectResponse other =
            -        (com.google.storage.v2.WriteObjectResponse) obj;
            +    com.google.storage.v2.WriteObjectResponse other = (com.google.storage.v2.WriteObjectResponse) obj;
             
                 if (!getWriteStatusCase().equals(other.getWriteStatusCase())) return false;
                 switch (writeStatusCase_) {
                   case 1:
            -        if (getPersistedSize() != other.getPersistedSize()) return false;
            +        if (getPersistedSize()
            +            != other.getPersistedSize()) return false;
                     break;
                   case 2:
            -        if (!getResource().equals(other.getResource())) return false;
            +        if (!getResource()
            +            .equals(other.getResource())) return false;
                     break;
                   case 0:
                   default:
            @@ -281,7 +243,8 @@ public int hashCode() {
                 switch (writeStatusCase_) {
                   case 1:
                     hash = (37 * hash) + PERSISTED_SIZE_FIELD_NUMBER;
            -        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPersistedSize());
            +        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            +            getPersistedSize());
                     break;
                   case 2:
                     hash = (37 * hash) + RESOURCE_FIELD_NUMBER;
            @@ -295,136 +258,132 @@ public int hashCode() {
                 return hash;
               }
             
            -  public static com.google.storage.v2.WriteObjectResponse parseFrom(java.nio.ByteBuffer data)
            +  public static com.google.storage.v2.WriteObjectResponse parseFrom(
            +      java.nio.ByteBuffer data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
            -
               public static com.google.storage.v2.WriteObjectResponse parseFrom(
            -      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      java.nio.ByteBuffer data,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
            -
               public static com.google.storage.v2.WriteObjectResponse parseFrom(
                   com.google.protobuf.ByteString data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
            -
               public static com.google.storage.v2.WriteObjectResponse parseFrom(
                   com.google.protobuf.ByteString data,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
            -
               public static com.google.storage.v2.WriteObjectResponse parseFrom(byte[] data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
            -
               public static com.google.storage.v2.WriteObjectResponse parseFrom(
            -      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      byte[] data,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
            -
               public static com.google.storage.v2.WriteObjectResponse parseFrom(java.io.InputStream input)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input);
               }
            -
               public static com.google.storage.v2.WriteObjectResponse parseFrom(
            -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      java.io.InputStream input,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            -        PARSER, input, extensionRegistry);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input, extensionRegistry);
               }
             
            -  public static com.google.storage.v2.WriteObjectResponse parseDelimitedFrom(
            -      java.io.InputStream input) throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
            +  public static com.google.storage.v2.WriteObjectResponse parseDelimitedFrom(java.io.InputStream input)
            +      throws java.io.IOException {
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseDelimitedWithIOException(PARSER, input);
               }
             
               public static com.google.storage.v2.WriteObjectResponse parseDelimitedFrom(
            -      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      java.io.InputStream input,
            +      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            -        PARSER, input, extensionRegistry);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
               }
            -
               public static com.google.storage.v2.WriteObjectResponse parseFrom(
            -      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
            +      com.google.protobuf.CodedInputStream input)
            +      throws java.io.IOException {
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input);
               }
            -
               public static com.google.storage.v2.WriteObjectResponse parseFrom(
                   com.google.protobuf.CodedInputStream input,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            -        PARSER, input, extensionRegistry);
            +    return com.google.protobuf.GeneratedMessageV3
            +        .parseWithIOException(PARSER, input, extensionRegistry);
               }
             
               @java.lang.Override
            -  public Builder newBuilderForType() {
            -    return newBuilder();
            -  }
            -
            +  public Builder newBuilderForType() { return newBuilder(); }
               public static Builder newBuilder() {
                 return DEFAULT_INSTANCE.toBuilder();
               }
            -
               public static Builder newBuilder(com.google.storage.v2.WriteObjectResponse prototype) {
                 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
               }
            -
               @java.lang.Override
               public Builder toBuilder() {
            -    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
            +    return this == DEFAULT_INSTANCE
            +        ? new Builder() : new Builder().mergeFrom(this);
               }
             
               @java.lang.Override
            -  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            +  protected Builder newBuilderForType(
            +      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 Builder builder = new Builder(parent);
                 return builder;
               }
               /**
            -   *
            -   *
                * 
                * Response message for WriteObject.
                * 
            * * Protobuf type {@code google.storage.v2.WriteObjectResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.storage.v2.WriteObjectResponse) com.google.storage.v2.WriteObjectResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_WriteObjectResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_WriteObjectResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_WriteObjectResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_WriteObjectResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.WriteObjectResponse.class, - com.google.storage.v2.WriteObjectResponse.Builder.class); + com.google.storage.v2.WriteObjectResponse.class, com.google.storage.v2.WriteObjectResponse.Builder.class); } // Construct using com.google.storage.v2.WriteObjectResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -438,9 +397,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_WriteObjectResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_WriteObjectResponse_descriptor; } @java.lang.Override @@ -459,11 +418,8 @@ public com.google.storage.v2.WriteObjectResponse build() { @java.lang.Override public com.google.storage.v2.WriteObjectResponse buildPartial() { - com.google.storage.v2.WriteObjectResponse result = - new com.google.storage.v2.WriteObjectResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.storage.v2.WriteObjectResponse result = new com.google.storage.v2.WriteObjectResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -476,7 +432,8 @@ private void buildPartial0(com.google.storage.v2.WriteObjectResponse result) { private void buildPartialOneofs(com.google.storage.v2.WriteObjectResponse result) { result.writeStatusCase_ = writeStatusCase_; result.writeStatus_ = this.writeStatus_; - if (writeStatusCase_ == 2 && resourceBuilder_ != null) { + if (writeStatusCase_ == 2 && + resourceBuilder_ != null) { result.writeStatus_ = resourceBuilder_.build(); } } @@ -485,39 +442,38 @@ private void buildPartialOneofs(com.google.storage.v2.WriteObjectResponse result public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.WriteObjectResponse) { - return mergeFrom((com.google.storage.v2.WriteObjectResponse) other); + return mergeFrom((com.google.storage.v2.WriteObjectResponse)other); } else { super.mergeFrom(other); return this; @@ -527,20 +483,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.storage.v2.WriteObjectResponse other) { if (other == com.google.storage.v2.WriteObjectResponse.getDefaultInstance()) return this; switch (other.getWriteStatusCase()) { - case PERSISTED_SIZE: - { - setPersistedSize(other.getPersistedSize()); - break; - } - case RESOURCE: - { - mergeResource(other.getResource()); - break; - } - case WRITESTATUS_NOT_SET: - { - break; - } + case PERSISTED_SIZE: { + setPersistedSize(other.getPersistedSize()); + break; + } + case RESOURCE: { + mergeResource(other.getResource()); + break; + } + case WRITESTATUS_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -568,25 +521,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - writeStatus_ = input.readInt64(); - writeStatusCase_ = 1; - break; - } // case 8 - case 18: - { - input.readMessage(getResourceFieldBuilder().getBuilder(), extensionRegistry); - writeStatusCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + writeStatus_ = input.readInt64(); + writeStatusCase_ = 1; + break; + } // case 8 + case 18: { + input.readMessage( + getResourceFieldBuilder().getBuilder(), + extensionRegistry); + writeStatusCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -596,12 +548,12 @@ public Builder mergeFrom( } // finally return this; } - private int writeStatusCase_ = 0; private java.lang.Object writeStatus_; - - public WriteStatusCase getWriteStatusCase() { - return WriteStatusCase.forNumber(writeStatusCase_); + public WriteStatusCase + getWriteStatusCase() { + return WriteStatusCase.forNumber( + writeStatusCase_); } public Builder clearWriteStatus() { @@ -614,30 +566,24 @@ public Builder clearWriteStatus() { private int bitField0_; /** - * - * *
                  * The total number of bytes that have been processed for the given object
                  * from all `WriteObject` calls. Only set if the upload has not finalized.
                  * 
            * * int64 persisted_size = 1; - * * @return Whether the persistedSize field is set. */ public boolean hasPersistedSize() { return writeStatusCase_ == 1; } /** - * - * *
                  * The total number of bytes that have been processed for the given object
                  * from all `WriteObject` calls. Only set if the upload has not finalized.
                  * 
            * * int64 persisted_size = 1; - * * @return The persistedSize. */ public long getPersistedSize() { @@ -647,15 +593,12 @@ public long getPersistedSize() { return 0L; } /** - * - * *
                  * The total number of bytes that have been processed for the given object
                  * from all `WriteObject` calls. Only set if the upload has not finalized.
                  * 
            * * int64 persisted_size = 1; - * * @param value The persistedSize to set. * @return This builder for chaining. */ @@ -667,15 +610,12 @@ public Builder setPersistedSize(long value) { return this; } /** - * - * *
                  * The total number of bytes that have been processed for the given object
                  * from all `WriteObject` calls. Only set if the upload has not finalized.
                  * 
            * * int64 persisted_size = 1; - * * @return This builder for chaining. */ public Builder clearPersistedSize() { @@ -688,20 +628,14 @@ public Builder clearPersistedSize() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Object, - com.google.storage.v2.Object.Builder, - com.google.storage.v2.ObjectOrBuilder> - resourceBuilder_; + com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> resourceBuilder_; /** - * - * *
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
                  * 
            * * .google.storage.v2.Object resource = 2; - * * @return Whether the resource field is set. */ @java.lang.Override @@ -709,15 +643,12 @@ public boolean hasResource() { return writeStatusCase_ == 2; } /** - * - * *
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
                  * 
            * * .google.storage.v2.Object resource = 2; - * * @return The resource. */ @java.lang.Override @@ -735,8 +666,6 @@ public com.google.storage.v2.Object getResource() { } } /** - * - * *
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
            @@ -758,8 +687,6 @@ public Builder setResource(com.google.storage.v2.Object value) {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
            @@ -767,7 +694,8 @@ public Builder setResource(com.google.storage.v2.Object value) {
                  *
                  * .google.storage.v2.Object resource = 2;
                  */
            -    public Builder setResource(com.google.storage.v2.Object.Builder builderForValue) {
            +    public Builder setResource(
            +        com.google.storage.v2.Object.Builder builderForValue) {
                   if (resourceBuilder_ == null) {
                     writeStatus_ = builderForValue.build();
                     onChanged();
            @@ -778,8 +706,6 @@ public Builder setResource(com.google.storage.v2.Object.Builder builderForValue)
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
            @@ -789,12 +715,10 @@ public Builder setResource(com.google.storage.v2.Object.Builder builderForValue)
                  */
                 public Builder mergeResource(com.google.storage.v2.Object value) {
                   if (resourceBuilder_ == null) {
            -        if (writeStatusCase_ == 2
            -            && writeStatus_ != com.google.storage.v2.Object.getDefaultInstance()) {
            -          writeStatus_ =
            -              com.google.storage.v2.Object.newBuilder((com.google.storage.v2.Object) writeStatus_)
            -                  .mergeFrom(value)
            -                  .buildPartial();
            +        if (writeStatusCase_ == 2 &&
            +            writeStatus_ != com.google.storage.v2.Object.getDefaultInstance()) {
            +          writeStatus_ = com.google.storage.v2.Object.newBuilder((com.google.storage.v2.Object) writeStatus_)
            +              .mergeFrom(value).buildPartial();
                     } else {
                       writeStatus_ = value;
                     }
            @@ -810,8 +734,6 @@ public Builder mergeResource(com.google.storage.v2.Object value) {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
            @@ -836,8 +758,6 @@ public Builder clearResource() {
                   return this;
                 }
                 /**
            -     *
            -     *
                  * 
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
            @@ -849,8 +769,6 @@ public com.google.storage.v2.Object.Builder getResourceBuilder() {
                   return getResourceFieldBuilder().getBuilder();
                 }
                 /**
            -     *
            -     *
                  * 
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
            @@ -870,8 +788,6 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
                   }
                 }
                 /**
            -     *
            -     *
                  * 
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
            @@ -880,29 +796,26 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
                  * .google.storage.v2.Object resource = 2;
                  */
                 private com.google.protobuf.SingleFieldBuilderV3<
            -            com.google.storage.v2.Object,
            -            com.google.storage.v2.Object.Builder,
            -            com.google.storage.v2.ObjectOrBuilder>
            +        com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> 
                     getResourceFieldBuilder() {
                   if (resourceBuilder_ == null) {
                     if (!(writeStatusCase_ == 2)) {
                       writeStatus_ = com.google.storage.v2.Object.getDefaultInstance();
                     }
            -        resourceBuilder_ =
            -            new com.google.protobuf.SingleFieldBuilderV3<
            -                com.google.storage.v2.Object,
            -                com.google.storage.v2.Object.Builder,
            -                com.google.storage.v2.ObjectOrBuilder>(
            -                (com.google.storage.v2.Object) writeStatus_, getParentForChildren(), isClean());
            +        resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            +            com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder>(
            +                (com.google.storage.v2.Object) writeStatus_,
            +                getParentForChildren(),
            +                isClean());
                     writeStatus_ = null;
                   }
                   writeStatusCase_ = 2;
                   onChanged();
                   return resourceBuilder_;
                 }
            -
                 @java.lang.Override
            -    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
            +    public final Builder setUnknownFields(
            +        final com.google.protobuf.UnknownFieldSet unknownFields) {
                   return super.setUnknownFields(unknownFields);
                 }
             
            @@ -912,12 +825,12 @@ public final Builder mergeUnknownFields(
                   return super.mergeUnknownFields(unknownFields);
                 }
             
            +
                 // @@protoc_insertion_point(builder_scope:google.storage.v2.WriteObjectResponse)
               }
             
               // @@protoc_insertion_point(class_scope:google.storage.v2.WriteObjectResponse)
               private static final com.google.storage.v2.WriteObjectResponse DEFAULT_INSTANCE;
            -
               static {
                 DEFAULT_INSTANCE = new com.google.storage.v2.WriteObjectResponse();
               }
            @@ -926,27 +839,27 @@ public static com.google.storage.v2.WriteObjectResponse getDefaultInstance() {
                 return DEFAULT_INSTANCE;
               }
             
            -  private static final com.google.protobuf.Parser PARSER =
            -      new com.google.protobuf.AbstractParser() {
            -        @java.lang.Override
            -        public WriteObjectResponse parsePartialFrom(
            -            com.google.protobuf.CodedInputStream input,
            -            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            -            throws com.google.protobuf.InvalidProtocolBufferException {
            -          Builder builder = newBuilder();
            -          try {
            -            builder.mergeFrom(input, extensionRegistry);
            -          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            -            throw e.setUnfinishedMessage(builder.buildPartial());
            -          } catch (com.google.protobuf.UninitializedMessageException e) {
            -            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
            -          } catch (java.io.IOException e) {
            -            throw new com.google.protobuf.InvalidProtocolBufferException(e)
            -                .setUnfinishedMessage(builder.buildPartial());
            -          }
            -          return builder.buildPartial();
            -        }
            -      };
            +  private static final com.google.protobuf.Parser
            +      PARSER = new com.google.protobuf.AbstractParser() {
            +    @java.lang.Override
            +    public WriteObjectResponse parsePartialFrom(
            +        com.google.protobuf.CodedInputStream input,
            +        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +        throws com.google.protobuf.InvalidProtocolBufferException {
            +      Builder builder = newBuilder();
            +      try {
            +        builder.mergeFrom(input, extensionRegistry);
            +      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            +        throw e.setUnfinishedMessage(builder.buildPartial());
            +      } catch (com.google.protobuf.UninitializedMessageException e) {
            +        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
            +      } catch (java.io.IOException e) {
            +        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            +            .setUnfinishedMessage(builder.buildPartial());
            +      }
            +      return builder.buildPartial();
            +    }
            +  };
             
               public static com.google.protobuf.Parser parser() {
                 return PARSER;
            @@ -961,4 +874,6 @@ public com.google.protobuf.Parser getParserForType() {
               public com.google.storage.v2.WriteObjectResponse getDefaultInstanceForType() {
                 return DEFAULT_INSTANCE;
               }
            +
             }
            +
            diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponseOrBuilder.java
            similarity index 71%
            rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponseOrBuilder.java
            rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectResponseOrBuilder.java
            index 536ca8263e..4d3ed1afa1 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,85 +1,55 @@
            -/*
            - * Copyright 2024 Google LLC
            - *
            - * Licensed under the Apache License, Version 2.0 (the "License");
            - * you may not use this file except in compliance with the License.
            - * You may obtain a copy of the License at
            - *
            - *     https://www.apache.org/licenses/LICENSE-2.0
            - *
            - * Unless required by applicable law or agreed to in writing, software
            - * distributed under the License is distributed on an "AS IS" BASIS,
            - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            - * See the License for the specific language governing permissions and
            - * limitations under the License.
            - */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
             // Protobuf Java Version: 3.25.3
             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 867a6ade1d..7927cbe8c6 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,18 +1,3 @@
            -/*
            - * Copyright 2024 Google LLC
            - *
            - * Licensed under the Apache License, Version 2.0 (the "License");
            - * you may not use this file except in compliance with the License.
            - * You may obtain a copy of the License at
            - *
            - *     https://www.apache.org/licenses/LICENSE-2.0
            - *
            - * Unless required by applicable law or agreed to in writing, software
            - * distributed under the License is distributed on an "AS IS" BASIS,
            - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            - * See the License for the specific language governing permissions and
            - * limitations under the License.
            - */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
            @@ -20,61 +5,54 @@
             package com.google.storage.v2;
             
             /**
            - *
            - *
              * 
              * Describes an attempt to insert an object, possibly over multiple requests.
              * 
            * * Protobuf type {@code google.storage.v2.WriteObjectSpec} */ -public final class WriteObjectSpec extends com.google.protobuf.GeneratedMessageV3 - implements +public final class WriteObjectSpec extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.storage.v2.WriteObjectSpec) WriteObjectSpecOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use WriteObjectSpec.newBuilder() to construct. private WriteObjectSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WriteObjectSpec() { predefinedAcl_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WriteObjectSpec(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_WriteObjectSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_WriteObjectSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_WriteObjectSpec_fieldAccessorTable + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_WriteObjectSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.WriteObjectSpec.class, - com.google.storage.v2.WriteObjectSpec.Builder.class); + com.google.storage.v2.WriteObjectSpec.class, com.google.storage.v2.WriteObjectSpec.Builder.class); } private int bitField0_; public static final int RESOURCE_FIELD_NUMBER = 1; private com.google.storage.v2.Object resource_; /** - * - * *
                * Required. Destination object, including its name and its metadata.
                * 
            * * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the resource field is set. */ @java.lang.Override @@ -82,14 +60,11 @@ 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]; - * * @return The resource. */ @java.lang.Override @@ -97,8 +72,6 @@ public com.google.storage.v2.Object getResource() { return resource_ == null ? com.google.storage.v2.Object.getDefaultInstance() : resource_; } /** - * - * *
                * Required. Destination object, including its name and its metadata.
                * 
            @@ -111,12 +84,9 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() { } public static final int PREDEFINED_ACL_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object predefinedAcl_ = ""; /** - * - * *
                * Apply a predefined set of access controls to this object.
                * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -124,7 +94,6 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
                * 
            * * string predefined_acl = 7; - * * @return The predefinedAcl. */ @java.lang.Override @@ -133,15 +102,14 @@ public java.lang.String getPredefinedAcl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); predefinedAcl_ = s; return s; } } /** - * - * *
                * Apply a predefined set of access controls to this object.
                * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -149,15 +117,16 @@ public java.lang.String getPredefinedAcl() {
                * 
            * * string predefined_acl = 7; - * * @return The bytes for predefinedAcl. */ @java.lang.Override - public com.google.protobuf.ByteString getPredefinedAclBytes() { + public com.google.protobuf.ByteString + getPredefinedAclBytes() { java.lang.Object ref = predefinedAcl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); predefinedAcl_ = b; return b; } else { @@ -168,8 +137,6 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() { public static final int IF_GENERATION_MATCH_FIELD_NUMBER = 3; private long ifGenerationMatch_ = 0L; /** - * - * *
                * Makes the operation conditional on whether the object's current
                * generation matches the given value. Setting to 0 makes the operation
            @@ -177,7 +144,6 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() {
                * 
            * * optional int64 if_generation_match = 3; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -185,8 +151,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
            @@ -194,7 +158,6 @@ public boolean hasIfGenerationMatch() {
                * 
            * * optional int64 if_generation_match = 3; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -205,8 +168,6 @@ public long getIfGenerationMatch() { public static final int IF_GENERATION_NOT_MATCH_FIELD_NUMBER = 4; private long ifGenerationNotMatch_ = 0L; /** - * - * *
                * Makes the operation conditional on whether the object's live
                * generation does not match the given value. If no live object exists, the
            @@ -215,7 +176,6 @@ public long getIfGenerationMatch() {
                * 
            * * optional int64 if_generation_not_match = 4; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -223,8 +183,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
            @@ -233,7 +191,6 @@ public boolean hasIfGenerationNotMatch() {
                * 
            * * optional int64 if_generation_not_match = 4; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -244,15 +201,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 @@ -260,15 +214,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 = 5; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -279,15 +230,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 @@ -295,15 +243,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 = 6; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -314,8 +259,6 @@ public long getIfMetagenerationNotMatch() { public static final int OBJECT_SIZE_FIELD_NUMBER = 8; private long objectSize_ = 0L; /** - * - * *
                * The expected final object size being uploaded.
                * If this value is set, closing the stream after writing fewer or more than
            @@ -327,7 +270,6 @@ public long getIfMetagenerationNotMatch() {
                * 
            * * optional int64 object_size = 8; - * * @return Whether the objectSize field is set. */ @java.lang.Override @@ -335,8 +277,6 @@ public boolean hasObjectSize() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
                * The expected final object size being uploaded.
                * If this value is set, closing the stream after writing fewer or more than
            @@ -348,7 +288,6 @@ public boolean hasObjectSize() {
                * 
            * * optional int64 object_size = 8; - * * @return The objectSize. */ @java.lang.Override @@ -357,7 +296,6 @@ public long getObjectSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -369,7 +307,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getResource()); } @@ -401,25 +340,31 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getResource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getResource()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, ifGenerationMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, ifGenerationMatch_); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ifGenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, ifGenerationNotMatch_); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, ifMetagenerationMatch_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, ifMetagenerationMatch_); } if (((bitField0_ & 0x00000010) != 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_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, objectSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(8, objectSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -429,7 +374,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.WriteObjectSpec)) { return super.equals(obj); @@ -438,28 +383,35 @@ public boolean equals(final java.lang.Object obj) { if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource().equals(other.getResource())) return false; + if (!getResource() + .equals(other.getResource())) return false; } - if (!getPredefinedAcl().equals(other.getPredefinedAcl())) return false; + if (!getPredefinedAcl() + .equals(other.getPredefinedAcl())) return false; if (hasIfGenerationMatch() != other.hasIfGenerationMatch()) return false; if (hasIfGenerationMatch()) { - if (getIfGenerationMatch() != other.getIfGenerationMatch()) return false; + if (getIfGenerationMatch() + != other.getIfGenerationMatch()) return false; } if (hasIfGenerationNotMatch() != other.hasIfGenerationNotMatch()) return false; if (hasIfGenerationNotMatch()) { - if (getIfGenerationNotMatch() != other.getIfGenerationNotMatch()) return false; + if (getIfGenerationNotMatch() + != other.getIfGenerationNotMatch()) return false; } if (hasIfMetagenerationMatch() != other.hasIfMetagenerationMatch()) return false; if (hasIfMetagenerationMatch()) { - if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false; + if (getIfMetagenerationMatch() + != other.getIfMetagenerationMatch()) return false; } if (hasIfMetagenerationNotMatch() != other.hasIfMetagenerationNotMatch()) return false; if (hasIfMetagenerationNotMatch()) { - if (getIfMetagenerationNotMatch() != other.getIfMetagenerationNotMatch()) return false; + if (getIfMetagenerationNotMatch() + != other.getIfMetagenerationNotMatch()) return false; } if (hasObjectSize() != other.hasObjectSize()) return false; if (hasObjectSize()) { - if (getObjectSize() != other.getObjectSize()) return false; + if (getObjectSize() + != other.getObjectSize()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -480,149 +432,148 @@ 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() @@ -630,17 +581,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) { getResourceFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -660,9 +611,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.storage.v2.StorageProto - .internal_static_google_storage_v2_WriteObjectSpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_WriteObjectSpec_descriptor; } @java.lang.Override @@ -681,11 +632,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; } @@ -694,7 +642,9 @@ private void buildPartial0(com.google.storage.v2.WriteObjectSpec result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.resource_ = resourceBuilder_ == null ? resource_ : resourceBuilder_.build(); + result.resource_ = resourceBuilder_ == null + ? resource_ + : resourceBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { @@ -727,39 +677,38 @@ private void buildPartial0(com.google.storage.v2.WriteObjectSpec result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.WriteObjectSpec) { - return mergeFrom((com.google.storage.v2.WriteObjectSpec) other); + return mergeFrom((com.google.storage.v2.WriteObjectSpec)other); } else { super.mergeFrom(other); return this; @@ -817,55 +766,49 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getResourceFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 24: - { - ifGenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - ifGenerationNotMatch_ = input.readInt64(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: - { - ifMetagenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: - { - ifMetagenerationNotMatch_ = input.readInt64(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: - { - predefinedAcl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 58 - case 64: - { - objectSize_ = input.readInt64(); - bitField0_ |= 0x00000040; - break; - } // case 64 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getResourceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 24: { + ifGenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + ifGenerationNotMatch_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + ifMetagenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + ifMetagenerationNotMatch_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: { + predefinedAcl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 58 + case 64: { + objectSize_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 64 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -875,40 +818,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.storage.v2.Object resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Object, - com.google.storage.v2.Object.Builder, - com.google.storage.v2.ObjectOrBuilder> - resourceBuilder_; + com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> resourceBuilder_; /** - * - * *
                  * Required. Destination object, including its name and its metadata.
                  * 
            * - * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the resource field is set. */ public boolean hasResource() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
                  * Required. Destination object, including its name and its metadata.
                  * 
            * - * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The resource. */ public com.google.storage.v2.Object getResource() { @@ -919,14 +850,11 @@ public com.google.storage.v2.Object getResource() { } } /** - * - * *
                  * Required. Destination object, including its name and its metadata.
                  * 
            * - * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setResource(com.google.storage.v2.Object value) { if (resourceBuilder_ == null) { @@ -942,16 +870,14 @@ public Builder setResource(com.google.storage.v2.Object value) { return this; } /** - * - * *
                  * Required. Destination object, including its name and its metadata.
                  * 
            * - * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setResource(com.google.storage.v2.Object.Builder builderForValue) { + public Builder setResource( + com.google.storage.v2.Object.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); } else { @@ -962,20 +888,17 @@ public Builder setResource(com.google.storage.v2.Object.Builder builderForValue) return this; } /** - * - * *
                  * Required. Destination object, including its name and its metadata.
                  * 
            * - * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeResource(com.google.storage.v2.Object value) { if (resourceBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && resource_ != null - && resource_ != com.google.storage.v2.Object.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + resource_ != null && + resource_ != com.google.storage.v2.Object.getDefaultInstance()) { getResourceBuilder().mergeFrom(value); } else { resource_ = value; @@ -990,14 +913,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); @@ -1010,14 +930,11 @@ public Builder clearResource() { return this; } /** - * - * *
                  * Required. Destination object, including its name and its metadata.
                  * 
            * - * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.storage.v2.Object.Builder getResourceBuilder() { bitField0_ |= 0x00000001; @@ -1025,44 +942,36 @@ public com.google.storage.v2.Object.Builder getResourceBuilder() { return getResourceFieldBuilder().getBuilder(); } /** - * - * *
                  * Required. Destination object, including its name and its metadata.
                  * 
            * - * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null ? com.google.storage.v2.Object.getDefaultInstance() : resource_; + return resource_ == null ? + com.google.storage.v2.Object.getDefaultInstance() : resource_; } } /** - * - * *
                  * Required. Destination object, including its name and its metadata.
                  * 
            * - * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Object, - com.google.storage.v2.Object.Builder, - com.google.storage.v2.ObjectOrBuilder> + com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Object, - com.google.storage.v2.Object.Builder, - com.google.storage.v2.ObjectOrBuilder>( - getResource(), getParentForChildren(), isClean()); + resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.Object, com.google.storage.v2.Object.Builder, com.google.storage.v2.ObjectOrBuilder>( + getResource(), + getParentForChildren(), + isClean()); resource_ = null; } return resourceBuilder_; @@ -1070,8 +979,6 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() { private java.lang.Object predefinedAcl_ = ""; /** - * - * *
                  * Apply a predefined set of access controls to this object.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -1079,13 +986,13 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
                  * 
            * * string predefined_acl = 7; - * * @return The predefinedAcl. */ public java.lang.String getPredefinedAcl() { java.lang.Object ref = predefinedAcl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); predefinedAcl_ = s; return s; @@ -1094,8 +1001,6 @@ public java.lang.String getPredefinedAcl() { } } /** - * - * *
                  * Apply a predefined set of access controls to this object.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -1103,14 +1008,15 @@ public java.lang.String getPredefinedAcl() {
                  * 
            * * string predefined_acl = 7; - * * @return The bytes for predefinedAcl. */ - public com.google.protobuf.ByteString getPredefinedAclBytes() { + public com.google.protobuf.ByteString + getPredefinedAclBytes() { java.lang.Object ref = predefinedAcl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); predefinedAcl_ = b; return b; } else { @@ -1118,8 +1024,6 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() { } } /** - * - * *
                  * Apply a predefined set of access controls to this object.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -1127,22 +1031,18 @@ public com.google.protobuf.ByteString getPredefinedAclBytes() {
                  * 
            * * string predefined_acl = 7; - * * @param value The predefinedAcl to set. * @return This builder for chaining. */ - public Builder setPredefinedAcl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPredefinedAcl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } predefinedAcl_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
                  * Apply a predefined set of access controls to this object.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -1150,7 +1050,6 @@ public Builder setPredefinedAcl(java.lang.String value) {
                  * 
            * * string predefined_acl = 7; - * * @return This builder for chaining. */ public Builder clearPredefinedAcl() { @@ -1160,8 +1059,6 @@ public Builder clearPredefinedAcl() { return this; } /** - * - * *
                  * Apply a predefined set of access controls to this object.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -1169,14 +1066,12 @@ public Builder clearPredefinedAcl() {
                  * 
            * * string predefined_acl = 7; - * * @param value The bytes for predefinedAcl to set. * @return This builder for chaining. */ - public Builder setPredefinedAclBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPredefinedAclBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); predefinedAcl_ = value; bitField0_ |= 0x00000002; @@ -1184,10 +1079,8 @@ public Builder setPredefinedAclBytes(com.google.protobuf.ByteString value) { return this; } - private long ifGenerationMatch_; + private long ifGenerationMatch_ ; /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * generation matches the given value. Setting to 0 makes the operation
            @@ -1195,7 +1088,6 @@ public Builder setPredefinedAclBytes(com.google.protobuf.ByteString value) {
                  * 
            * * optional int64 if_generation_match = 3; - * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -1203,8 +1095,6 @@ public boolean hasIfGenerationMatch() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * generation matches the given value. Setting to 0 makes the operation
            @@ -1212,7 +1102,6 @@ public boolean hasIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_match = 3; - * * @return The ifGenerationMatch. */ @java.lang.Override @@ -1220,8 +1109,6 @@ public long getIfGenerationMatch() { return ifGenerationMatch_; } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * generation matches the given value. Setting to 0 makes the operation
            @@ -1229,7 +1116,6 @@ public long getIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_match = 3; - * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ @@ -1241,8 +1127,6 @@ public Builder setIfGenerationMatch(long value) { return this; } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * generation matches the given value. Setting to 0 makes the operation
            @@ -1250,7 +1134,6 @@ public Builder setIfGenerationMatch(long value) {
                  * 
            * * optional int64 if_generation_match = 3; - * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -1260,10 +1143,8 @@ public Builder clearIfGenerationMatch() { return this; } - private long ifGenerationNotMatch_; + private long ifGenerationNotMatch_ ; /** - * - * *
                  * Makes the operation conditional on whether the object's live
                  * generation does not match the given value. If no live object exists, the
            @@ -1272,7 +1153,6 @@ public Builder clearIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_not_match = 4; - * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -1280,8 +1160,6 @@ public boolean hasIfGenerationNotMatch() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
                  * Makes the operation conditional on whether the object's live
                  * generation does not match the given value. If no live object exists, the
            @@ -1290,7 +1168,6 @@ public boolean hasIfGenerationNotMatch() {
                  * 
            * * optional int64 if_generation_not_match = 4; - * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -1298,8 +1175,6 @@ public long getIfGenerationNotMatch() { return ifGenerationNotMatch_; } /** - * - * *
                  * Makes the operation conditional on whether the object's live
                  * generation does not match the given value. If no live object exists, the
            @@ -1308,7 +1183,6 @@ public long getIfGenerationNotMatch() {
                  * 
            * * optional int64 if_generation_not_match = 4; - * * @param value The ifGenerationNotMatch to set. * @return This builder for chaining. */ @@ -1320,8 +1194,6 @@ public Builder setIfGenerationNotMatch(long value) { return this; } /** - * - * *
                  * Makes the operation conditional on whether the object's live
                  * generation does not match the given value. If no live object exists, the
            @@ -1330,7 +1202,6 @@ public Builder setIfGenerationNotMatch(long value) {
                  * 
            * * optional int64 if_generation_not_match = 4; - * * @return This builder for chaining. */ public Builder clearIfGenerationNotMatch() { @@ -1340,17 +1211,14 @@ public Builder clearIfGenerationNotMatch() { return this; } - private long ifMetagenerationMatch_; + private long ifMetagenerationMatch_ ; /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 5; - * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -1358,15 +1226,12 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 5; - * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -1374,15 +1239,12 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 5; - * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -1394,15 +1256,12 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 5; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -1412,17 +1271,14 @@ public Builder clearIfMetagenerationMatch() { return this; } - private long ifMetagenerationNotMatch_; + private long ifMetagenerationNotMatch_ ; /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 6; - * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -1430,15 +1286,12 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 6; - * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -1446,15 +1299,12 @@ public long getIfMetagenerationNotMatch() { return ifMetagenerationNotMatch_; } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 6; - * * @param value The ifMetagenerationNotMatch to set. * @return This builder for chaining. */ @@ -1466,15 +1316,12 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** - * - * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 6; - * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -1484,10 +1331,8 @@ public Builder clearIfMetagenerationNotMatch() { return this; } - private long objectSize_; + private long objectSize_ ; /** - * - * *
                  * The expected final object size being uploaded.
                  * If this value is set, closing the stream after writing fewer or more than
            @@ -1499,7 +1344,6 @@ public Builder clearIfMetagenerationNotMatch() {
                  * 
            * * optional int64 object_size = 8; - * * @return Whether the objectSize field is set. */ @java.lang.Override @@ -1507,8 +1351,6 @@ public boolean hasObjectSize() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
                  * The expected final object size being uploaded.
                  * If this value is set, closing the stream after writing fewer or more than
            @@ -1520,7 +1362,6 @@ public boolean hasObjectSize() {
                  * 
            * * optional int64 object_size = 8; - * * @return The objectSize. */ @java.lang.Override @@ -1528,8 +1369,6 @@ public long getObjectSize() { return objectSize_; } /** - * - * *
                  * The expected final object size being uploaded.
                  * If this value is set, closing the stream after writing fewer or more than
            @@ -1541,7 +1380,6 @@ public long getObjectSize() {
                  * 
            * * optional int64 object_size = 8; - * * @param value The objectSize to set. * @return This builder for chaining. */ @@ -1553,8 +1391,6 @@ public Builder setObjectSize(long value) { return this; } /** - * - * *
                  * The expected final object size being uploaded.
                  * If this value is set, closing the stream after writing fewer or more than
            @@ -1566,7 +1402,6 @@ public Builder setObjectSize(long value) {
                  * 
            * * optional int64 object_size = 8; - * * @return This builder for chaining. */ public Builder clearObjectSize() { @@ -1575,9 +1410,9 @@ public Builder clearObjectSize() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1587,12 +1422,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.storage.v2.WriteObjectSpec) } // @@protoc_insertion_point(class_scope:google.storage.v2.WriteObjectSpec) private static final com.google.storage.v2.WriteObjectSpec DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.storage.v2.WriteObjectSpec(); } @@ -1601,27 +1436,27 @@ public static com.google.storage.v2.WriteObjectSpec getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WriteObjectSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WriteObjectSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1636,4 +1471,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.WriteObjectSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectSpecOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectSpecOrBuilder.java similarity index 86% rename from proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectSpecOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/WriteObjectSpecOrBuilder.java index 6c0bdb6b6f..800cf69b90 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,56 +1,32 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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.
                * 
            @@ -60,8 +36,6 @@ public interface WriteObjectSpecOrBuilder com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder(); /** - * - * *
                * Apply a predefined set of access controls to this object.
                * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -69,13 +43,10 @@ public interface WriteObjectSpecOrBuilder
                * 
            * * string predefined_acl = 7; - * * @return The predefinedAcl. */ java.lang.String getPredefinedAcl(); /** - * - * *
                * Apply a predefined set of access controls to this object.
                * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -83,14 +54,12 @@ public interface WriteObjectSpecOrBuilder
                * 
            * * string predefined_acl = 7; - * * @return The bytes for predefinedAcl. */ - com.google.protobuf.ByteString getPredefinedAclBytes(); + com.google.protobuf.ByteString + getPredefinedAclBytes(); /** - * - * *
                * Makes the operation conditional on whether the object's current
                * generation matches the given value. Setting to 0 makes the operation
            @@ -98,13 +67,10 @@ public interface WriteObjectSpecOrBuilder
                * 
            * * optional int64 if_generation_match = 3; - * * @return Whether the ifGenerationMatch field is set. */ boolean hasIfGenerationMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's current
                * generation matches the given value. Setting to 0 makes the operation
            @@ -112,14 +78,11 @@ public interface WriteObjectSpecOrBuilder
                * 
            * * optional int64 if_generation_match = 3; - * * @return The ifGenerationMatch. */ long getIfGenerationMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's live
                * generation does not match the given value. If no live object exists, the
            @@ -128,13 +91,10 @@ public interface WriteObjectSpecOrBuilder
                * 
            * * optional int64 if_generation_not_match = 4; - * * @return Whether the ifGenerationNotMatch field is set. */ boolean hasIfGenerationNotMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's live
                * generation does not match the given value. If no live object exists, the
            @@ -143,68 +103,53 @@ public interface WriteObjectSpecOrBuilder
                * 
            * * optional int64 if_generation_not_match = 4; - * * @return The ifGenerationNotMatch. */ long getIfGenerationNotMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 5; - * * @return Whether the ifMetagenerationMatch field is set. */ boolean hasIfMetagenerationMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 5; - * * @return The ifMetagenerationMatch. */ long getIfMetagenerationMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 6; - * * @return Whether the ifMetagenerationNotMatch field is set. */ boolean hasIfMetagenerationNotMatch(); /** - * - * *
                * Makes the operation conditional on whether the object's current
                * metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 6; - * * @return The ifMetagenerationNotMatch. */ long getIfMetagenerationNotMatch(); /** - * - * *
                * The expected final object size being uploaded.
                * If this value is set, closing the stream after writing fewer or more than
            @@ -216,13 +161,10 @@ public interface WriteObjectSpecOrBuilder
                * 
            * * optional int64 object_size = 8; - * * @return Whether the objectSize field is set. */ boolean hasObjectSize(); /** - * - * *
                * The expected final object size being uploaded.
                * If this value is set, closing the stream after writing fewer or more than
            @@ -234,7 +176,6 @@ public interface WriteObjectSpecOrBuilder
                * 
            * * optional int64 object_size = 8; - * * @return The objectSize. */ long getObjectSize(); diff --git a/proto-google-cloud-storage-v2/src/main/proto/google/storage/v2/storage.proto b/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/proto/google/storage/v2/storage.proto similarity index 100% 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 diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlProto.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlProto.java deleted file mode 100644 index 3c7736c1b2..0000000000 --- a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlProto.java +++ /dev/null @@ -1,511 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/storage/control/v2/storage_control.proto - -// Protobuf Java Version: 3.25.3 -package com.google.storage.control.v2; - -public final class StorageControlProto { - private StorageControlProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_PendingRenameInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_PendingRenameInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_Folder_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_Folder_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_GetFolderRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_GetFolderRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_CreateFolderRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_CreateFolderRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_DeleteFolderRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_DeleteFolderRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_ListFoldersRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_ListFoldersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_ListFoldersResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_ListFoldersResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_RenameFolderRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_RenameFolderRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_RenameFolderMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_RenameFolderMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_StorageLayout_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_StorageLayout_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_GetStorageLayoutRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_GetStorageLayoutRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_ManagedFolder_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_ManagedFolder_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_GetManagedFolderRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_GetManagedFolderRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_CreateManagedFolderRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_CreateManagedFolderRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_DeleteManagedFolderRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_DeleteManagedFolderRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_ListManagedFoldersRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_ListManagedFoldersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_ListManagedFoldersResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_ListManagedFoldersResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n/google/storage/control/v2/storage_cont" - + "rol.proto\022\031google.storage.control.v2\032\027go" - + "ogle/api/client.proto\032\037google/api/field_" - + "behavior.proto\032\033google/api/field_info.pr" - + "oto\032\031google/api/resource.proto\032\030google/a" - + "pi/routing.proto\032#google/longrunning/ope" - + "rations.proto\032\033google/protobuf/empty.pro" - + "to\032\037google/protobuf/timestamp.proto\"+\n\021P" - + "endingRenameInfo\022\026\n\toperation\030\001 \001(\tB\003\340A\003" - + "\"\342\002\n\006Folder\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\033\n\016metage" - + "neration\030\003 \001(\003B\003\340A\003\0224\n\013create_time\030\004 \001(\013" - + "2\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upd" - + "ate_time\030\005 \001(\0132\032.google.protobuf.Timesta" - + "mpB\003\340A\003\022N\n\023pending_rename_info\030\007 \001(\0132,.g" - + "oogle.storage.control.v2.PendingRenameIn" - + "foB\003\340A\003:l\352Ai\n\035storage.googleapis.com/Fol" - + "der\0227projects/{project}/buckets/{bucket}" - + "/folders/{folder=**}*\007folders2\006folder\"\364\001" - + "\n\020GetFolderRequest\0223\n\004name\030\006 \001(\tB%\340A\002\372A\037" - + "\n\035storage.googleapis.com/Folder\022$\n\027if_me" - + "tageneration_match\030\003 \001(\003H\000\210\001\001\022(\n\033if_meta" - + "generation_not_match\030\004 \001(\003H\001\210\001\001\022\037\n\nreque" - + "st_id\030\005 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001B\032\n\030_if_metagene" - + "ration_matchB\036\n\034_if_metageneration_not_m" - + "atch\"\325\001\n\023CreateFolderRequest\0225\n\006parent\030\001" - + " \001(\tB%\340A\002\372A\037\022\035storage.googleapis.com/Fol" - + "der\0226\n\006folder\030\002 \001(\0132!.google.storage.con" - + "trol.v2.FolderB\003\340A\002\022\026\n\tfolder_id\030\003 \001(\tB\003" - + "\340A\002\022\026\n\trecursive\030\004 \001(\010B\003\340A\001\022\037\n\nrequest_i" - + "d\030\005 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\367\001\n\023DeleteFolderReq" - + "uest\0223\n\004name\030\006 \001(\tB%\340A\002\372A\037\n\035storage.goog" - + "leapis.com/Folder\022$\n\027if_metageneration_m" - + "atch\030\003 \001(\003H\000\210\001\001\022(\n\033if_metageneration_not" - + "_match\030\004 \001(\003H\001\210\001\001\022\037\n\nrequest_id\030\005 \001(\tB\013\340" - + "A\001\342\214\317\327\010\002\010\001B\032\n\030_if_metageneration_matchB\036" - + "\n\034_if_metageneration_not_match\"\214\002\n\022ListF" - + "oldersRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\022\035s" - + "torage.googleapis.com/Folder\022\026\n\tpage_siz" - + "e\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n" - + "\006prefix\030\004 \001(\tB\003\340A\001\022\026\n\tdelimiter\030\010 \001(\tB\003\340" - + "A\001\022 \n\023lexicographic_start\030\006 \001(\tB\003\340A\001\022\036\n\021" - + "lexicographic_end\030\007 \001(\tB\003\340A\001\022\037\n\nrequest_" - + "id\030\t \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"b\n\023ListFoldersResp" - + "onse\0222\n\007folders\030\001 \003(\0132!.google.storage.c" - + "ontrol.v2.Folder\022\027\n\017next_page_token\030\002 \001(" - + "\t\"\233\002\n\023RenameFolderRequest\0223\n\004name\030\007 \001(\tB" - + "%\340A\002\372A\037\n\035storage.googleapis.com/Folder\022\"" - + "\n\025destination_folder_id\030\010 \001(\tB\003\340A\002\022$\n\027if" - + "_metageneration_match\030\004 \001(\003H\000\210\001\001\022(\n\033if_m" - + "etageneration_not_match\030\005 \001(\003H\001\210\001\001\022\037\n\nre" - + "quest_id\030\006 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001B\032\n\030_if_metag" - + "eneration_matchB\036\n\034_if_metageneration_no" - + "t_match\"\232\002\n\"CommonLongRunningOperationMe" - + "tadata\0224\n\013create_time\030\001 \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032" - + ".google.protobuf.TimestampB\003\340A\003\0224\n\013updat" - + "e_time\030\003 \001(\0132\032.google.protobuf.Timestamp" - + "B\003\340A\003\022\021\n\004type\030\004 \001(\tB\003\340A\003\022#\n\026requested_ca" - + "ncellation\030\005 \001(\010B\003\340A\003\022\035\n\020progress_percen" - + "t\030\006 \001(\005B\003\340A\003\"\247\001\n\024RenameFolderMetadata\022V\n" - + "\017common_metadata\030\001 \001(\0132=.google.storage." - + "control.v2.CommonLongRunningOperationMet" - + "adata\022\030\n\020source_folder_id\030\002 \001(\t\022\035\n\025desti" - + "nation_folder_id\030\003 \001(\t\"\331\003\n\rStorageLayout" - + "\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\025\n\010location\030\002 \001(\tB\003\340" - + "A\003\022\032\n\rlocation_type\030\003 \001(\tB\003\340A\003\022d\n\027custom" - + "_placement_config\030\004 \001(\0132>.google.storage" - + ".control.v2.StorageLayout.CustomPlacemen" - + "tConfigB\003\340A\003\022c\n\026hierarchical_namespace\030\005" - + " \001(\0132>.google.storage.control.v2.Storage" - + "Layout.HierarchicalNamespaceB\003\340A\003\032/\n\025Cus" - + "tomPlacementConfig\022\026\n\016data_locations\030\001 \003" - + "(\t\032(\n\025HierarchicalNamespace\022\017\n\007enabled\030\001" - + " \001(\010:\\\352AY\n$storage.googleapis.com/Storag" - + "eLayout\0221projects/{project}/buckets/{buc" - + "ket}/storageLayout\"\206\001\n\027GetStorageLayoutR" - + "equest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$storage.go" - + "ogleapis.com/StorageLayout\022\016\n\006prefix\030\002 \001" - + "(\t\022\037\n\nrequest_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\277\002\n\r" - + "ManagedFolder\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\033\n\016meta" - + "generation\030\003 \001(\003B\003\340A\003\0224\n\013create_time\030\004 \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013u" - + "pdate_time\030\005 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003:\221\001\352A\215\001\n$storage.googleapis.com" - + "/ManagedFolder\022Fprojects/{project}/bucke" - + "ts/{bucket}/managedFolders/{managed_fold" - + "er=**}*\016managedFolders2\rmanagedFolder\"\202\002" - + "\n\027GetManagedFolderRequest\022:\n\004name\030\006 \001(\tB" - + ",\340A\002\372A&\n$storage.googleapis.com/ManagedF" - + "older\022$\n\027if_metageneration_match\030\003 \001(\003H\000" - + "\210\001\001\022(\n\033if_metageneration_not_match\030\004 \001(\003" - + "H\001\210\001\001\022\037\n\nrequest_id\030\005 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001B\032" - + "\n\030_if_metageneration_matchB\036\n\034_if_metage" - + "neration_not_match\"\342\001\n\032CreateManagedFold" - + "erRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\022$stora" - + "ge.googleapis.com/ManagedFolder\022E\n\016manag" - + "ed_folder\030\002 \001(\0132(.google.storage.control" - + ".v2.ManagedFolderB\003\340A\002\022\036\n\021managed_folder" - + "_id\030\003 \001(\tB\003\340A\002\022\037\n\nrequest_id\030\004 \001(\tB\013\340A\001\342" - + "\214\317\327\010\002\010\001\"\236\002\n\032DeleteManagedFolderRequest\022:" - + "\n\004name\030\007 \001(\tB,\340A\002\372A&\n$storage.googleapis" - + ".com/ManagedFolder\022$\n\027if_metageneration_" - + "match\030\003 \001(\003H\000\210\001\001\022(\n\033if_metageneration_no" - + "t_match\030\004 \001(\003H\001\210\001\001\022\027\n\017allow_non_empty\030\005 " - + "\001(\010\022\037\n\nrequest_id\030\006 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001B\032\n\030" - + "_if_metageneration_matchB\036\n\034_if_metagene" - + "ration_not_match\"\300\001\n\031ListManagedFoldersR" - + "equest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\022$storage." - + "googleapis.com/ManagedFolder\022\026\n\tpage_siz" - + "e\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n" - + "\006prefix\030\004 \001(\tB\003\340A\001\022\037\n\nrequest_id\030\005 \001(\tB\013" - + "\340A\001\342\214\317\327\010\002\010\001\"x\n\032ListManagedFoldersRespons" - + "e\022A\n\017managed_folders\030\001 \003(\0132(.google.stor" - + "age.control.v2.ManagedFolder\022\027\n\017next_pag" - + "e_token\030\002 \001(\t2\315\017\n\016StorageControl\022\232\001\n\014Cre" - + "ateFolder\022..google.storage.control.v2.Cr" - + "eateFolderRequest\032!.google.storage.contr" - + "ol.v2.Folder\"7\332A\027parent,folder,folder_id" - + "\212\323\344\223\002\027\022\025\n\006parent\022\013{bucket=**}\022\217\001\n\014Delete" - + "Folder\022..google.storage.control.v2.Delet" - + "eFolderRequest\032\026.google.protobuf.Empty\"7" - + "\332A\004name\212\323\344\223\002*\022(\n\004name\022 {bucket=projects/" - + "*/buckets/*}/**\022\224\001\n\tGetFolder\022+.google.s" - + "torage.control.v2.GetFolderRequest\032!.goo" - + "gle.storage.control.v2.Folder\"7\332A\004name\212\323" - + "\344\223\002*\022(\n\004name\022 {bucket=projects/*/buckets" - + "/*}/**\022\224\001\n\013ListFolders\022-.google.storage." - + "control.v2.ListFoldersRequest\032..google.s" - + "torage.control.v2.ListFoldersResponse\"&\332" - + "A\006parent\212\323\344\223\002\027\022\025\n\006parent\022\013{bucket=**}\022\315\001" - + "\n\014RenameFolder\022..google.storage.control." - + "v2.RenameFolderRequest\032\035.google.longrunn" - + "ing.Operation\"n\312A\036\n\006Folder\022\024RenameFolder" - + "Metadata\332A\032name,destination_folder_id\212\323\344" - + "\223\002*\022(\n\004name\022 {bucket=projects/*/buckets/" - + "*}/**\022\251\001\n\020GetStorageLayout\0222.google.stor" - + "age.control.v2.GetStorageLayoutRequest\032(" - + ".google.storage.control.v2.StorageLayout" - + "\"7\332A\004name\212\323\344\223\002*\022(\n\004name\022 {bucket=project" - + "s/*/buckets/*}/**\022\277\001\n\023CreateManagedFolde" - + "r\0225.google.storage.control.v2.CreateMana" - + "gedFolderRequest\032(.google.storage.contro" - + "l.v2.ManagedFolder\"G\332A\'parent,managed_fo" - + "lder,managed_folder_id\212\323\344\223\002\027\022\025\n\006parent\022\013" - + "{bucket=**}\022\235\001\n\023DeleteManagedFolder\0225.go" - + "ogle.storage.control.v2.DeleteManagedFol" - + "derRequest\032\026.google.protobuf.Empty\"7\332A\004n" - + "ame\212\323\344\223\002*\022(\n\004name\022 {bucket=projects/*/bu" - + "ckets/*}/**\022\251\001\n\020GetManagedFolder\0222.googl" - + "e.storage.control.v2.GetManagedFolderReq" - + "uest\032(.google.storage.control.v2.Managed" - + "Folder\"7\332A\004name\212\323\344\223\002*\022(\n\004name\022 {bucket=p" - + "rojects/*/buckets/*}/**\022\251\001\n\022ListManagedF" - + "olders\0224.google.storage.control.v2.ListM" - + "anagedFoldersRequest\0325.google.storage.co" - + "ntrol.v2.ListManagedFoldersResponse\"&\332A\006" - + "parent\212\323\344\223\002\027\022\025\n\006parent\022\013{bucket=**}\032\247\002\312A" - + "\026storage.googleapis.com\322A\212\002https://www.g" - + "oogleapis.com/auth/cloud-platform,https:" - + "//www.googleapis.com/auth/cloud-platform" - + ".read-only,https://www.googleapis.com/au" - + "th/devstorage.full_control,https://www.g" - + "oogleapis.com/auth/devstorage.read_only," - + "https://www.googleapis.com/auth/devstora" - + "ge.read_writeB\246\002\n\035com.google.storage.con" - + "trol.v2B\023StorageControlProtoP\001Z=cloud.go" - + "ogle.com/go/storage/control/apiv2/contro" - + "lpb;controlpb\252\002\037Google.Cloud.Storage.Con" - + "trol.V2\312\002\037Google\\Cloud\\Storage\\Control\\V" - + "2\352\002#Google::Cloud::Storage::Control::V2\352" - + "AD\n\035storage.googleapis.com/Bucket\022#proje" - + "cts/{project}/buckets/{bucket}b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.FieldInfoProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.api.RoutingProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_storage_control_v2_PendingRenameInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_storage_control_v2_PendingRenameInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_PendingRenameInfo_descriptor, - new java.lang.String[] { - "Operation", - }); - internal_static_google_storage_control_v2_Folder_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_storage_control_v2_Folder_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_Folder_descriptor, - new java.lang.String[] { - "Name", "Metageneration", "CreateTime", "UpdateTime", "PendingRenameInfo", - }); - internal_static_google_storage_control_v2_GetFolderRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_storage_control_v2_GetFolderRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_GetFolderRequest_descriptor, - new java.lang.String[] { - "Name", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "RequestId", - }); - internal_static_google_storage_control_v2_CreateFolderRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_storage_control_v2_CreateFolderRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_CreateFolderRequest_descriptor, - new java.lang.String[] { - "Parent", "Folder", "FolderId", "Recursive", "RequestId", - }); - internal_static_google_storage_control_v2_DeleteFolderRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_storage_control_v2_DeleteFolderRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_DeleteFolderRequest_descriptor, - new java.lang.String[] { - "Name", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "RequestId", - }); - internal_static_google_storage_control_v2_ListFoldersRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_storage_control_v2_ListFoldersRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_ListFoldersRequest_descriptor, - new java.lang.String[] { - "Parent", - "PageSize", - "PageToken", - "Prefix", - "Delimiter", - "LexicographicStart", - "LexicographicEnd", - "RequestId", - }); - internal_static_google_storage_control_v2_ListFoldersResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_storage_control_v2_ListFoldersResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_ListFoldersResponse_descriptor, - new java.lang.String[] { - "Folders", "NextPageToken", - }); - internal_static_google_storage_control_v2_RenameFolderRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_storage_control_v2_RenameFolderRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_RenameFolderRequest_descriptor, - new java.lang.String[] { - "Name", - "DestinationFolderId", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - "RequestId", - }); - internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - "EndTime", - "UpdateTime", - "Type", - "RequestedCancellation", - "ProgressPercent", - }); - internal_static_google_storage_control_v2_RenameFolderMetadata_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_storage_control_v2_RenameFolderMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_RenameFolderMetadata_descriptor, - new java.lang.String[] { - "CommonMetadata", "SourceFolderId", "DestinationFolderId", - }); - internal_static_google_storage_control_v2_StorageLayout_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_storage_control_v2_StorageLayout_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_StorageLayout_descriptor, - new java.lang.String[] { - "Name", "Location", "LocationType", "CustomPlacementConfig", "HierarchicalNamespace", - }); - internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_descriptor = - internal_static_google_storage_control_v2_StorageLayout_descriptor.getNestedTypes().get(0); - internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_descriptor, - new java.lang.String[] { - "DataLocations", - }); - internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_descriptor = - internal_static_google_storage_control_v2_StorageLayout_descriptor.getNestedTypes().get(1); - internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_descriptor, - new java.lang.String[] { - "Enabled", - }); - internal_static_google_storage_control_v2_GetStorageLayoutRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_storage_control_v2_GetStorageLayoutRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_GetStorageLayoutRequest_descriptor, - new java.lang.String[] { - "Name", "Prefix", "RequestId", - }); - internal_static_google_storage_control_v2_ManagedFolder_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_storage_control_v2_ManagedFolder_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_ManagedFolder_descriptor, - new java.lang.String[] { - "Name", "Metageneration", "CreateTime", "UpdateTime", - }); - internal_static_google_storage_control_v2_GetManagedFolderRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_storage_control_v2_GetManagedFolderRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_GetManagedFolderRequest_descriptor, - new java.lang.String[] { - "Name", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "RequestId", - }); - internal_static_google_storage_control_v2_CreateManagedFolderRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_storage_control_v2_CreateManagedFolderRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_CreateManagedFolderRequest_descriptor, - new java.lang.String[] { - "Parent", "ManagedFolder", "ManagedFolderId", "RequestId", - }); - internal_static_google_storage_control_v2_DeleteManagedFolderRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_storage_control_v2_DeleteManagedFolderRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_DeleteManagedFolderRequest_descriptor, - new java.lang.String[] { - "Name", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - "AllowNonEmpty", - "RequestId", - }); - internal_static_google_storage_control_v2_ListManagedFoldersRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_storage_control_v2_ListManagedFoldersRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_ListManagedFoldersRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Prefix", "RequestId", - }); - internal_static_google_storage_control_v2_ListManagedFoldersResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_storage_control_v2_ListManagedFoldersResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_ListManagedFoldersResponse_descriptor, - new java.lang.String[] { - "ManagedFolders", "NextPageToken", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.FieldInfoProto.fieldInfo); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.api.RoutingProto.routing); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.FieldInfoProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.api.RoutingProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteResponseOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteResponseOrBuilder.java deleted file mode 100644 index ba03212461..0000000000 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteResponseOrBuilder.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/storage/v2/storage.proto - -// Protobuf Java Version: 3.25.3 -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 fb106cbd0d..0000000000 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequestOrBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/storage/v2/storage.proto - -// Protobuf Java Version: 3.25.3 -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 c0b97b8da3..0000000000 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequestOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/storage/v2/storage.proto - -// Protobuf Java Version: 3.25.3 -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 722654bff8..0000000000 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequestOrBuilder.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/storage/v2/storage.proto - -// Protobuf Java Version: 3.25.3 -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 9d883a5127..0000000000 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequestOrBuilder.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/storage/v2/storage.proto - -// Protobuf Java Version: 3.25.3 -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 8c9b7e67c8..0000000000 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequestOrBuilder.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/storage/v2/storage.proto - -// Protobuf Java Version: 3.25.3 -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 835c27b6af..0000000000 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccountOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/storage/v2/storage.proto - -// Protobuf Java Version: 3.25.3 -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 db818ba878..0000000000 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstantsOrBuilder.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/storage/v2/storage.proto - -// Protobuf Java Version: 3.25.3 -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 caa3bf077d..0000000000 --- a/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageProto.java +++ /dev/null @@ -1,1830 +0,0 @@ -/* - * Copyright 2024 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/storage/v2/storage.proto - -// Protobuf Java Version: 3.25.3 -package com.google.storage.v2; - -public final class StorageProto { - private StorageProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_DeleteBucketRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_DeleteBucketRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_GetBucketRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_GetBucketRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_CreateBucketRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_CreateBucketRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ListBucketsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ListBucketsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ListBucketsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ListBucketsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_UpdateBucketRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_UpdateBucketRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_DeleteNotificationConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_DeleteNotificationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_GetNotificationConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_GetNotificationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_CreateNotificationConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_CreateNotificationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ListNotificationConfigsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ListNotificationConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ListNotificationConfigsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ListNotificationConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ComposeObjectRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ComposeObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_DeleteObjectRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_DeleteObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_RestoreObjectRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_RestoreObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_CancelResumableWriteRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_CancelResumableWriteRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_CancelResumableWriteResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_CancelResumableWriteResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ReadObjectRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ReadObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_GetObjectRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_GetObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ReadObjectResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ReadObjectResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_WriteObjectSpec_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_WriteObjectSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_WriteObjectRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_WriteObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_WriteObjectResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_WriteObjectResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_BidiWriteObjectRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_BidiWriteObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_BidiWriteObjectResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_BidiWriteObjectResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ListObjectsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ListObjectsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_QueryWriteStatusRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_QueryWriteStatusRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_QueryWriteStatusResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_QueryWriteStatusResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_RewriteObjectRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_RewriteObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_RewriteResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_RewriteResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_StartResumableWriteRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_StartResumableWriteRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_StartResumableWriteResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_StartResumableWriteResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_UpdateObjectRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_UpdateObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_GetServiceAccountRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_GetServiceAccountRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_CreateHmacKeyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_CreateHmacKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_CreateHmacKeyResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_CreateHmacKeyResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_DeleteHmacKeyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_DeleteHmacKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_GetHmacKeyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_GetHmacKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ListHmacKeysRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ListHmacKeysRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ListHmacKeysResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ListHmacKeysResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_UpdateHmacKeyRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_UpdateHmacKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_CommonObjectRequestParams_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_CommonObjectRequestParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ServiceConstants_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ServiceConstants_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_Billing_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_Billing_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_Cors_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_Cors_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_Encryption_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_Encryption_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_IamConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_IamConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_Lifecycle_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_Lifecycle_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_Logging_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_Logging_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_RetentionPolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_RetentionPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_SoftDeletePolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_Versioning_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_Versioning_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_Website_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_Website_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_CustomPlacementConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_CustomPlacementConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_Autoclass_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_Autoclass_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_HierarchicalNamespace_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_HierarchicalNamespace_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_BucketAccessControl_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_BucketAccessControl_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ChecksummedData_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ChecksummedData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ObjectChecksums_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ObjectChecksums_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_HmacKeyMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_HmacKeyMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_NotificationConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_NotificationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_NotificationConfig_CustomAttributesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_NotificationConfig_CustomAttributesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_CustomerEncryption_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_CustomerEncryption_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Object_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Object_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Object_MetadataEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Object_MetadataEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ObjectAccessControl_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ObjectAccessControl_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ListObjectsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ListObjectsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ProjectTeam_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ProjectTeam_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ServiceAccount_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ServiceAccount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Owner_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Owner_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ContentRange_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ContentRange_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n\037google/storage/v2/storage.proto\022\021googl" - + "e.storage.v2\032\027google/api/client.proto\032\037g" - + "oogle/api/field_behavior.proto\032\031google/a" - + "pi/resource.proto\032\030google/api/routing.pr" - + "oto\032\036google/iam/v1/iam_policy.proto\032\032goo" - + "gle/iam/v1/policy.proto\032\036google/protobuf" - + "/duration.proto\032\033google/protobuf/empty.p" - + "roto\032 google/protobuf/field_mask.proto\032\037" - + "google/protobuf/timestamp.proto\032\026google/" - + "type/date.proto\"\326\001\n\023DeleteBucketRequest\022" - + "3\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035storage.googleapi" - + "s.com/Bucket\022$\n\027if_metageneration_match\030" - + "\002 \001(\003H\000\210\001\001\022(\n\033if_metageneration_not_matc" - + "h\030\003 \001(\003H\001\210\001\001B\032\n\030_if_metageneration_match" - + "B\036\n\034_if_metageneration_not_match\"\225\002\n\020Get" - + "BucketRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035sto" - + "rage.googleapis.com/Bucket\022$\n\027if_metagen" - + "eration_match\030\002 \001(\003H\000\210\001\001\022(\n\033if_metagener" - + "ation_not_match\030\003 \001(\003H\001\210\001\001\0222\n\tread_mask\030" - + "\005 \001(\0132\032.google.protobuf.FieldMaskH\002\210\001\001B\032" - + "\n\030_if_metageneration_matchB\036\n\034_if_metage" - + "neration_not_matchB\014\n\n_read_mask\"\316\001\n\023Cre" - + "ateBucketRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037" - + "\022\035storage.googleapis.com/Bucket\022)\n\006bucke" - + "t\030\002 \001(\0132\031.google.storage.v2.Bucket\022\026\n\tbu" - + "cket_id\030\003 \001(\tB\003\340A\002\022\026\n\016predefined_acl\030\006 \001" - + "(\t\022%\n\035predefined_default_object_acl\030\007 \001(" - + "\t\"\304\001\n\022ListBucketsRequest\0225\n\006parent\030\001 \001(\t" - + "B%\340A\002\372A\037\022\035storage.googleapis.com/Bucket\022" - + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016" - + "\n\006prefix\030\004 \001(\t\0222\n\tread_mask\030\005 \001(\0132\032.goog" - + "le.protobuf.FieldMaskH\000\210\001\001B\014\n\n_read_mask" - + "\"Z\n\023ListBucketsResponse\022*\n\007buckets\030\001 \003(\013" - + "2\031.google.storage.v2.Bucket\022\027\n\017next_page" - + "_token\030\002 \001(\t\"\177\n LockBucketRetentionPolic" - + "yRequest\0225\n\006bucket\030\001 \001(\tB%\340A\002\372A\037\n\035storag" - + "e.googleapis.com/Bucket\022$\n\027if_metagenera" - + "tion_match\030\002 \001(\003B\003\340A\002\"\306\002\n\023UpdateBucketRe" - + "quest\022.\n\006bucket\030\001 \001(\0132\031.google.storage.v" - + "2.BucketB\003\340A\002\022$\n\027if_metageneration_match" - + "\030\002 \001(\003H\000\210\001\001\022(\n\033if_metageneration_not_mat" - + "ch\030\003 \001(\003H\001\210\001\001\022\026\n\016predefined_acl\030\010 \001(\t\022%\n" - + "\035predefined_default_object_acl\030\t \001(\t\0224\n\013" - + "update_mask\030\006 \001(\0132\032.google.protobuf.Fiel" - + "dMaskB\003\340A\002B\032\n\030_if_metageneration_matchB\036" - + "\n\034_if_metageneration_not_match\"b\n\037Delete" - + "NotificationConfigRequest\022?\n\004name\030\001 \001(\tB" - + "1\340A\002\372A+\n)storage.googleapis.com/Notifica" - + "tionConfig\"_\n\034GetNotificationConfigReque" - + "st\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)storage.google" - + "apis.com/NotificationConfig\"\255\001\n\037CreateNo" - + "tificationConfigRequest\022A\n\006parent\030\001 \001(\tB" - + "1\340A\002\372A+\022)storage.googleapis.com/Notifica" - + "tionConfig\022G\n\023notification_config\030\002 \001(\0132" - + "%.google.storage.v2.NotificationConfigB\003" - + "\340A\002\"\212\001\n\036ListNotificationConfigsRequest\022A" - + "\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)storage.googleap" - + "is.com/NotificationConfig\022\021\n\tpage_size\030\002" - + " \001(\005\022\022\n\npage_token\030\003 \001(\t\"\177\n\037ListNotifica" - + "tionConfigsResponse\022C\n\024notification_conf" - + "igs\030\001 \003(\0132%.google.storage.v2.Notificati" - + "onConfig\022\027\n\017next_page_token\030\002 \001(\t\"\365\005\n\024Co" - + "mposeObjectRequest\0223\n\013destination\030\001 \001(\0132" - + "\031.google.storage.v2.ObjectB\003\340A\002\022L\n\016sourc" - + "e_objects\030\002 \003(\01324.google.storage.v2.Comp" - + "oseObjectRequest.SourceObject\022\"\n\032destina" - + "tion_predefined_acl\030\t \001(\t\022 \n\023if_generati" - + "on_match\030\004 \001(\003H\000\210\001\001\022$\n\027if_metageneration" - + "_match\030\005 \001(\003H\001\210\001\001\0227\n\007kms_key\030\006 \001(\tB&\372A#\n" - + "!cloudkms.googleapis.com/CryptoKey\022R\n\034co" - + "mmon_object_request_params\030\007 \001(\0132,.googl" - + "e.storage.v2.CommonObjectRequestParams\022<" - + "\n\020object_checksums\030\n \001(\0132\".google.storag" - + "e.v2.ObjectChecksums\032\356\001\n\014SourceObject\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\002\022\022\n\ngeneration\030\002 \001(\003\022f\n\024" - + "object_preconditions\030\003 \001(\0132H.google.stor" - + "age.v2.ComposeObjectRequest.SourceObject" - + ".ObjectPreconditions\032O\n\023ObjectPreconditi" - + "ons\022 \n\023if_generation_match\030\001 \001(\003H\000\210\001\001B\026\n" - + "\024_if_generation_matchB\026\n\024_if_generation_" - + "matchB\032\n\030_if_metageneration_match\"\321\003\n\023De" - + "leteObjectRequest\0225\n\006bucket\030\001 \001(\tB%\340A\002\372A" - + "\037\n\035storage.googleapis.com/Bucket\022\023\n\006obje" - + "ct\030\002 \001(\tB\003\340A\002\022\022\n\ngeneration\030\004 \001(\003\022 \n\023if_" - + "generation_match\030\005 \001(\003H\000\210\001\001\022$\n\027if_genera" - + "tion_not_match\030\006 \001(\003H\001\210\001\001\022$\n\027if_metagene" - + "ration_match\030\007 \001(\003H\002\210\001\001\022(\n\033if_metagenera" - + "tion_not_match\030\010 \001(\003H\003\210\001\001\022R\n\034common_obje" - + "ct_request_params\030\n \001(\0132,.google.storage" - + ".v2.CommonObjectRequestParamsB\026\n\024_if_gen" - + "eration_matchB\032\n\030_if_generation_not_matc" - + "hB\032\n\030_if_metageneration_matchB\036\n\034_if_met" - + "ageneration_not_match\"\211\004\n\024RestoreObjectR" - + "equest\0225\n\006bucket\030\001 \001(\tB%\340A\002\372A\037\n\035storage." - + "googleapis.com/Bucket\022\023\n\006object\030\002 \001(\tB\003\340" - + "A\002\022\027\n\ngeneration\030\003 \001(\003B\003\340A\002\022 \n\023if_genera" - + "tion_match\030\004 \001(\003H\000\210\001\001\022$\n\027if_generation_n" - + "ot_match\030\005 \001(\003H\001\210\001\001\022$\n\027if_metageneration" - + "_match\030\006 \001(\003H\002\210\001\001\022(\n\033if_metageneration_n" - + "ot_match\030\007 \001(\003H\003\210\001\001\022\034\n\017copy_source_acl\030\t" - + " \001(\010H\004\210\001\001\022R\n\034common_object_request_param" - + "s\030\010 \001(\0132,.google.storage.v2.CommonObject" - + "RequestParamsB\026\n\024_if_generation_matchB\032\n" - + "\030_if_generation_not_matchB\032\n\030_if_metagen" - + "eration_matchB\036\n\034_if_metageneration_not_" - + "matchB\022\n\020_copy_source_acl\"5\n\033CancelResum" - + "ableWriteRequest\022\026\n\tupload_id\030\001 \001(\tB\003\340A\002" - + "\"\036\n\034CancelResumableWriteResponse\"\272\004\n\021Rea" - + "dObjectRequest\0225\n\006bucket\030\001 \001(\tB%\340A\002\372A\037\n\035" - + "storage.googleapis.com/Bucket\022\023\n\006object\030" - + "\002 \001(\tB\003\340A\002\022\022\n\ngeneration\030\003 \001(\003\022\023\n\013read_o" - + "ffset\030\004 \001(\003\022\022\n\nread_limit\030\005 \001(\003\022 \n\023if_ge" - + "neration_match\030\006 \001(\003H\000\210\001\001\022$\n\027if_generati" - + "on_not_match\030\007 \001(\003H\001\210\001\001\022$\n\027if_metagenera" - + "tion_match\030\010 \001(\003H\002\210\001\001\022(\n\033if_metagenerati" - + "on_not_match\030\t \001(\003H\003\210\001\001\022R\n\034common_object" - + "_request_params\030\n \001(\0132,.google.storage.v" - + "2.CommonObjectRequestParams\0222\n\tread_mask" - + "\030\014 \001(\0132\032.google.protobuf.FieldMaskH\004\210\001\001B" - + "\026\n\024_if_generation_matchB\032\n\030_if_generatio" - + "n_not_matchB\032\n\030_if_metageneration_matchB" - + "\036\n\034_if_metageneration_not_matchB\014\n\n_read" - + "_mask\"\274\004\n\020GetObjectRequest\0225\n\006bucket\030\001 \001" - + "(\tB%\340A\002\372A\037\n\035storage.googleapis.com/Bucke" - + "t\022\023\n\006object\030\002 \001(\tB\003\340A\002\022\022\n\ngeneration\030\003 \001" - + "(\003\022\031\n\014soft_deleted\030\013 \001(\010H\000\210\001\001\022 \n\023if_gene" - + "ration_match\030\004 \001(\003H\001\210\001\001\022$\n\027if_generation" - + "_not_match\030\005 \001(\003H\002\210\001\001\022$\n\027if_metagenerati" - + "on_match\030\006 \001(\003H\003\210\001\001\022(\n\033if_metageneration" - + "_not_match\030\007 \001(\003H\004\210\001\001\022R\n\034common_object_r" - + "equest_params\030\010 \001(\0132,.google.storage.v2." - + "CommonObjectRequestParams\0222\n\tread_mask\030\n" - + " \001(\0132\032.google.protobuf.FieldMaskH\005\210\001\001B\017\n" - + "\r_soft_deletedB\026\n\024_if_generation_matchB\032" - + "\n\030_if_generation_not_matchB\032\n\030_if_metage" - + "neration_matchB\036\n\034_if_metageneration_not" - + "_matchB\014\n\n_read_mask\"\365\001\n\022ReadObjectRespo" - + "nse\022<\n\020checksummed_data\030\001 \001(\0132\".google.s" - + "torage.v2.ChecksummedData\022<\n\020object_chec" - + "ksums\030\002 \001(\0132\".google.storage.v2.ObjectCh" - + "ecksums\0226\n\rcontent_range\030\003 \001(\0132\037.google." - + "storage.v2.ContentRange\022+\n\010metadata\030\004 \001(" - + "\0132\031.google.storage.v2.Object\"\215\003\n\017WriteOb" - + "jectSpec\0220\n\010resource\030\001 \001(\0132\031.google.stor" - + "age.v2.ObjectB\003\340A\002\022\026\n\016predefined_acl\030\007 \001" - + "(\t\022 \n\023if_generation_match\030\003 \001(\003H\000\210\001\001\022$\n\027" - + "if_generation_not_match\030\004 \001(\003H\001\210\001\001\022$\n\027if" - + "_metageneration_match\030\005 \001(\003H\002\210\001\001\022(\n\033if_m" - + "etageneration_not_match\030\006 \001(\003H\003\210\001\001\022\030\n\013ob" - + "ject_size\030\010 \001(\003H\004\210\001\001B\026\n\024_if_generation_m" - + "atchB\032\n\030_if_generation_not_matchB\032\n\030_if_" - + "metageneration_matchB\036\n\034_if_metagenerati" - + "on_not_matchB\016\n\014_object_size\"\206\003\n\022WriteOb" - + "jectRequest\022\023\n\tupload_id\030\001 \001(\tH\000\022?\n\021writ" - + "e_object_spec\030\002 \001(\0132\".google.storage.v2." - + "WriteObjectSpecH\000\022\031\n\014write_offset\030\003 \001(\003B" - + "\003\340A\002\022>\n\020checksummed_data\030\004 \001(\0132\".google." - + "storage.v2.ChecksummedDataH\001\022<\n\020object_c" - + "hecksums\030\006 \001(\0132\".google.storage.v2.Objec" - + "tChecksums\022\024\n\014finish_write\030\007 \001(\010\022R\n\034comm" - + "on_object_request_params\030\010 \001(\0132,.google." - + "storage.v2.CommonObjectRequestParamsB\017\n\r" - + "first_messageB\006\n\004data\"n\n\023WriteObjectResp" - + "onse\022\030\n\016persisted_size\030\001 \001(\003H\000\022-\n\010resour" - + "ce\030\002 \001(\0132\031.google.storage.v2.ObjectH\000B\016\n" - + "\014write_status\"\257\003\n\026BidiWriteObjectRequest" - + "\022\023\n\tupload_id\030\001 \001(\tH\000\022?\n\021write_object_sp" - + "ec\030\002 \001(\0132\".google.storage.v2.WriteObject" - + "SpecH\000\022\031\n\014write_offset\030\003 \001(\003B\003\340A\002\022>\n\020che" - + "cksummed_data\030\004 \001(\0132\".google.storage.v2." - + "ChecksummedDataH\001\022<\n\020object_checksums\030\006 " - + "\001(\0132\".google.storage.v2.ObjectChecksums\022" - + "\024\n\014state_lookup\030\007 \001(\010\022\r\n\005flush\030\010 \001(\010\022\024\n\014" - + "finish_write\030\t \001(\010\022R\n\034common_object_requ" - + "est_params\030\n \001(\0132,.google.storage.v2.Com" - + "monObjectRequestParamsB\017\n\rfirst_messageB" - + "\006\n\004data\"r\n\027BidiWriteObjectResponse\022\030\n\016pe" - + "rsisted_size\030\001 \001(\003H\000\022-\n\010resource\030\002 \001(\0132\031" - + ".google.storage.v2.ObjectH\000B\016\n\014write_sta" - + "tus\"\255\003\n\022ListObjectsRequest\0225\n\006parent\030\001 \001" - + "(\tB%\340A\002\372A\037\n\035storage.googleapis.com/Bucke" - + "t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t" - + "\022\021\n\tdelimiter\030\004 \001(\t\022\"\n\032include_trailing_" - + "delimiter\030\005 \001(\010\022\016\n\006prefix\030\006 \001(\t\022\020\n\010versi" - + "ons\030\007 \001(\010\0222\n\tread_mask\030\010 \001(\0132\032.google.pr" - + "otobuf.FieldMaskH\000\210\001\001\022 \n\023lexicographic_s" - + "tart\030\n \001(\tB\003\340A\001\022\036\n\021lexicographic_end\030\013 \001" - + "(\tB\003\340A\001\022\031\n\014soft_deleted\030\014 \001(\010B\003\340A\001\022(\n\033in" - + "clude_folders_as_prefixes\030\r \001(\010B\003\340A\001\022\027\n\n" - + "match_glob\030\016 \001(\tB\003\340A\001B\014\n\n_read_mask\"\205\001\n\027" - + "QueryWriteStatusRequest\022\026\n\tupload_id\030\001 \001" - + "(\tB\003\340A\002\022R\n\034common_object_request_params\030" - + "\002 \001(\0132,.google.storage.v2.CommonObjectRe" - + "questParams\"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\014writ" - + "e_status\"\250\n\n\024RewriteObjectRequest\022 \n\020des" - + "tination_name\030\030 \001(\tB\006\340A\002\340A\005\022D\n\022destinati" - + "on_bucket\030\031 \001(\tB(\340A\002\340A\005\372A\037\n\035storage.goog" - + "leapis.com/Bucket\022C\n\023destination_kms_key" - + "\030\033 \001(\tB&\372A#\n!cloudkms.googleapis.com/Cry" - + "ptoKey\022.\n\013destination\030\001 \001(\0132\031.google.sto" - + "rage.v2.Object\022<\n\rsource_bucket\030\002 \001(\tB%\340" - + "A\002\372A\037\n\035storage.googleapis.com/Bucket\022\032\n\r" - + "source_object\030\003 \001(\tB\003\340A\002\022\031\n\021source_gener" - + "ation\030\004 \001(\003\022\025\n\rrewrite_token\030\005 \001(\t\022\"\n\032de" - + "stination_predefined_acl\030\034 \001(\t\022 \n\023if_gen" - + "eration_match\030\007 \001(\003H\000\210\001\001\022$\n\027if_generatio" - + "n_not_match\030\010 \001(\003H\001\210\001\001\022$\n\027if_metagenerat" - + "ion_match\030\t \001(\003H\002\210\001\001\022(\n\033if_metageneratio" - + "n_not_match\030\n \001(\003H\003\210\001\001\022\'\n\032if_source_gene" - + "ration_match\030\013 \001(\003H\004\210\001\001\022+\n\036if_source_gen" - + "eration_not_match\030\014 \001(\003H\005\210\001\001\022+\n\036if_sourc" - + "e_metageneration_match\030\r \001(\003H\006\210\001\001\022/\n\"if_" - + "source_metageneration_not_match\030\016 \001(\003H\007\210" - + "\001\001\022$\n\034max_bytes_rewritten_per_call\030\017 \001(\003" - + "\022(\n copy_source_encryption_algorithm\030\020 \001" - + "(\t\022(\n copy_source_encryption_key_bytes\030\025" - + " \001(\014\022/\n\'copy_source_encryption_key_sha25" - + "6_bytes\030\026 \001(\014\022R\n\034common_object_request_p" - + "arams\030\023 \001(\0132,.google.storage.v2.CommonOb" - + "jectRequestParams\022<\n\020object_checksums\030\035 " - + "\001(\0132\".google.storage.v2.ObjectChecksumsB" - + "\026\n\024_if_generation_matchB\032\n\030_if_generatio" - + "n_not_matchB\032\n\030_if_metageneration_matchB" - + "\036\n\034_if_metageneration_not_matchB\035\n\033_if_s" - + "ource_generation_matchB!\n\037_if_source_gen" - + "eration_not_matchB!\n\037_if_source_metagene" - + "ration_matchB%\n#_if_source_metageneratio" - + "n_not_match\"\227\001\n\017RewriteResponse\022\035\n\025total" - + "_bytes_rewritten\030\001 \001(\003\022\023\n\013object_size\030\002 " - + "\001(\003\022\014\n\004done\030\003 \001(\010\022\025\n\rrewrite_token\030\004 \001(\t" - + "\022+\n\010resource\030\005 \001(\0132\031.google.storage.v2.O" - + "bject\"\362\001\n\032StartResumableWriteRequest\022B\n\021" - + "write_object_spec\030\001 \001(\0132\".google.storage" - + ".v2.WriteObjectSpecB\003\340A\002\022R\n\034common_objec" - + "t_request_params\030\003 \001(\0132,.google.storage." - + "v2.CommonObjectRequestParams\022<\n\020object_c" - + "hecksums\030\005 \001(\0132\".google.storage.v2.Objec" - + "tChecksums\"0\n\033StartResumableWriteRespons" - + "e\022\021\n\tupload_id\030\001 \001(\t\"\357\003\n\023UpdateObjectReq" - + "uest\022.\n\006object\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_metageneration_match\030\004 \001(\003H\002\210" - + "\001\001\022(\n\033if_metageneration_not_match\030\005 \001(\003H" - + "\003\210\001\001\022\026\n\016predefined_acl\030\n \001(\t\0224\n\013update_m" - + "ask\030\007 \001(\0132\032.google.protobuf.FieldMaskB\003\340" - + "A\002\022R\n\034common_object_request_params\030\010 \001(\013" - + "2,.google.storage.v2.CommonObjectRequest" - + "ParamsB\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_match\"`" - + "\n\030GetServiceAccountRequest\022D\n\007project\030\001 " - + "\001(\tB3\340A\002\372A-\n+cloudresourcemanager.google" - + "apis.com/Project\"\200\001\n\024CreateHmacKeyReques" - + "t\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudresourc" - + "emanager.googleapis.com/Project\022\"\n\025servi" - + "ce_account_email\030\002 \001(\tB\003\340A\002\"g\n\025CreateHma" - + "cKeyResponse\0224\n\010metadata\030\001 \001(\0132\".google." - + "storage.v2.HmacKeyMetadata\022\030\n\020secret_key" - + "_bytes\030\003 \001(\014\"t\n\024DeleteHmacKeyRequest\022\026\n\t" - + "access_id\030\001 \001(\tB\003\340A\002\022D\n\007project\030\002 \001(\tB3\340" - + "A\002\372A-\n+cloudresourcemanager.googleapis.c" - + "om/Project\"q\n\021GetHmacKeyRequest\022\026\n\tacces" - + "s_id\030\001 \001(\tB\003\340A\002\022D\n\007project\030\002 \001(\tB3\340A\002\372A-" - + "\n+cloudresourcemanager.googleapis.com/Pr" - + "oject\"\274\001\n\023ListHmacKeysRequest\022D\n\007project" - + "\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.goo" - + "gleapis.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_em" - + "ail\030\004 \001(\t\022\031\n\021show_deleted_keys\030\005 \001(\010\"f\n\024" - + "ListHmacKeysResponse\0225\n\thmac_keys\030\001 \003(\0132" - + "\".google.storage.v2.HmacKeyMetadata\022\027\n\017n" - + "ext_page_token\030\002 \001(\t\"\202\001\n\024UpdateHmacKeyRe" - + "quest\0229\n\010hmac_key\030\001 \001(\0132\".google.storage" - + ".v2.HmacKeyMetadataB\003\340A\002\022/\n\013update_mask\030" - + "\003 \001(\0132\032.google.protobuf.FieldMask\"|\n\031Com" - + "monObjectRequestParams\022\034\n\024encryption_alg" - + "orithm\030\001 \001(\t\022\034\n\024encryption_key_bytes\030\004 \001" - + "(\014\022#\n\033encryption_key_sha256_bytes\030\005 \001(\014\"" - + "\312\005\n\020ServiceConstants\"\265\005\n\006Values\022\026\n\022VALUE" - + "S_UNSPECIFIED\020\000\022\033\n\024MAX_READ_CHUNK_BYTES\020" - + "\200\200\200\001\022\034\n\025MAX_WRITE_CHUNK_BYTES\020\200\200\200\001\022\031\n\022MA" - + "X_OBJECT_SIZE_MB\020\200\200\300\002\022)\n$MAX_CUSTOM_META" - + "DATA_FIELD_NAME_BYTES\020\200\010\022*\n%MAX_CUSTOM_M" - + "ETADATA_FIELD_VALUE_BYTES\020\200 \022)\n$MAX_CUST" - + "OM_METADATA_TOTAL_SIZE_BYTES\020\200@\022*\n$MAX_B" - + "UCKET_METADATA_TOTAL_SIZE_BYTES\020\200\240\001\022\'\n#M" - + "AX_NOTIFICATION_CONFIGS_PER_BUCKET\020d\022\"\n\036" - + "MAX_LIFECYCLE_RULES_PER_BUCKET\020d\022&\n\"MAX_" - + "NOTIFICATION_CUSTOM_ATTRIBUTES\020\005\0221\n,MAX_" - + "NOTIFICATION_CUSTOM_ATTRIBUTE_KEY_LENGTH" - + "\020\200\002\0223\n.MAX_NOTIFICATION_CUSTOM_ATTRIBUTE" - + "_VALUE_LENGTH\020\200\010\022\034\n\030MAX_LABELS_ENTRIES_C" - + "OUNT\020@\022\037\n\033MAX_LABELS_KEY_VALUE_LENGTH\020?\022" - + "\037\n\032MAX_LABELS_KEY_VALUE_BYTES\020\200\001\022.\n)MAX_" - + "OBJECT_IDS_PER_DELETE_OBJECTS_REQUEST\020\350\007" - + "\022\036\n\032SPLIT_TOKEN_MAX_VALID_DAYS\020\016\032\002\020\001\"\222\034\n" - + "\006Bucket\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\026\n\tbucket_id\030" - + "\002 \001(\tB\003\340A\003\022\014\n\004etag\030\035 \001(\t\022D\n\007project\030\003 \001(" - + "\tB3\340A\005\372A-\n+cloudresourcemanager.googleap" - + "is.com/Project\022\033\n\016metageneration\030\004 \001(\003B\003" - + "\340A\003\022\025\n\010location\030\005 \001(\tB\003\340A\005\022\032\n\rlocation_t" - + "ype\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.BucketAccessControl\022B\n\022default_objec" - + "t_acl\030\t \003(\0132&.google.storage.v2.ObjectAc" - + "cessControl\0226\n\tlifecycle\030\n \001(\0132#.google." - + "storage.v2.Bucket.Lifecycle\0224\n\013create_ti" - + "me\030\013 \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\003\022,\n\004cors\030\014 \003(\0132\036.google.storage.v2.Buck" - + "et.Cors\0224\n\013update_time\030\r \001(\0132\032.google.pr" - + "otobuf.TimestampB\003\340A\003\022 \n\030default_event_b" - + "ased_hold\030\016 \001(\010\0225\n\006labels\030\017 \003(\0132%.google" - + ".storage.v2.Bucket.LabelsEntry\0222\n\007websit" - + "e\030\020 \001(\0132!.google.storage.v2.Bucket.Websi" - + "te\0228\n\nversioning\030\021 \001(\0132$.google.storage." - + "v2.Bucket.Versioning\0222\n\007logging\030\022 \001(\0132!." - + "google.storage.v2.Bucket.Logging\022,\n\005owne" - + "r\030\023 \001(\0132\030.google.storage.v2.OwnerB\003\340A\003\0228" - + "\n\nencryption\030\024 \001(\0132$.google.storage.v2.B" - + "ucket.Encryption\0222\n\007billing\030\025 \001(\0132!.goog" - + "le.storage.v2.Bucket.Billing\022C\n\020retentio" - + "n_policy\030\026 \001(\0132).google.storage.v2.Bucke" - + "t.RetentionPolicy\0227\n\niam_config\030\027 \001(\0132#." - + "google.storage.v2.Bucket.IamConfig\022\025\n\rsa" - + "tisfies_pzs\030\031 \001(\010\022P\n\027custom_placement_co" - + "nfig\030\032 \001(\0132/.google.storage.v2.Bucket.Cu" - + "stomPlacementConfig\0226\n\tautoclass\030\034 \001(\0132#" - + ".google.storage.v2.Bucket.Autoclass\022T\n\026h" - + "ierarchical_namespace\030 \001(\0132/.google.sto" - + "rage.v2.Bucket.HierarchicalNamespaceB\003\340A" - + "\001\022K\n\022soft_delete_policy\030\037 \001(\0132*.google.s" - + "torage.v2.Bucket.SoftDeletePolicyB\003\340A\001\032!" - + "\n\007Billing\022\026\n\016requester_pays\030\001 \001(\010\032X\n\004Cor" - + "s\022\016\n\006origin\030\001 \003(\t\022\016\n\006method\030\002 \003(\t\022\027\n\017res" - + "ponse_header\030\003 \003(\t\022\027\n\017max_age_seconds\030\004 " - + "\001(\005\032M\n\nEncryption\022?\n\017default_kms_key\030\001 \001" - + "(\tB&\372A#\n!cloudkms.googleapis.com/CryptoK" - + "ey\032\354\001\n\tIamConfig\022a\n\033uniform_bucket_level" - + "_access\030\001 \001(\0132<.google.storage.v2.Bucket" - + ".IamConfig.UniformBucketLevelAccess\022 \n\030p" - + "ublic_access_prevention\030\003 \001(\t\032Z\n\030Uniform" - + "BucketLevelAccess\022\017\n\007enabled\030\001 \001(\010\022-\n\tlo" - + "ck_time\030\002 \001(\0132\032.google.protobuf.Timestam" - + "p\032\363\005\n\tLifecycle\0226\n\004rule\030\001 \003(\0132(.google.s" - + "torage.v2.Bucket.Lifecycle.Rule\032\255\005\n\004Rule" - + "\022?\n\006action\030\001 \001(\0132/.google.storage.v2.Buc" - + "ket.Lifecycle.Rule.Action\022E\n\tcondition\030\002" - + " \001(\01322.google.storage.v2.Bucket.Lifecycl" - + "e.Rule.Condition\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.google.type.Date\022\024\n\007is_live\030\003 \001(\010" - + "H\001\210\001\001\022\037\n\022num_newer_versions\030\004 \001(\005H\002\210\001\001\022\035" - + "\n\025matches_storage_class\030\005 \003(\t\022#\n\026days_si" - + "nce_custom_time\030\007 \001(\005H\003\210\001\001\022-\n\022custom_tim" - + "e_before\030\010 \001(\0132\021.google.type.Date\022\'\n\032day" - + "s_since_noncurrent_time\030\t \001(\005H\004\210\001\001\0221\n\026no" - + "ncurrent_time_before\030\n \001(\0132\021.google.type" - + ".Date\022\026\n\016matches_prefix\030\013 \003(\t\022\026\n\016matches" - + "_suffix\030\014 \003(\tB\013\n\t_age_daysB\n\n\010_is_liveB\025" - + "\n\023_num_newer_versionsB\031\n\027_days_since_cus" - + "tom_timeB\035\n\033_days_since_noncurrent_time\032" - + "8\n\007Logging\022\022\n\nlog_bucket\030\001 \001(\t\022\031\n\021log_ob" - + "ject_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\022retentio" - + "n_duration\030\004 \001(\0132\031.google.protobuf.Durat" - + "ion\032\261\001\n\020SoftDeletePolicy\022:\n\022retention_du" - + "ration\030\001 \001(\0132\031.google.protobuf.DurationH" - + "\000\210\001\001\0227\n\016effective_time\030\002 \001(\0132\032.google.pr" - + "otobuf.TimestampH\001\210\001\001B\025\n\023_retention_dura" - + "tionB\021\n\017_effective_time\032\035\n\nVersioning\022\017\n" - + "\007enabled\030\001 \001(\010\032;\n\007Website\022\030\n\020main_page_s" - + "uffix\030\001 \001(\t\022\026\n\016not_found_page\030\002 \001(\t\032/\n\025C" - + "ustomPlacementConfig\022\026\n\016data_locations\030\001" - + " \003(\t\032\213\002\n\tAutoclass\022\017\n\007enabled\030\001 \001(\010\0224\n\013t" - + "oggle_time\030\002 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\022#\n\026terminal_storage_class\030\003 \001(" - + "\tH\000\210\001\001\022P\n\"terminal_storage_class_update_" - + "time\030\004 \001(\0132\032.google.protobuf.TimestampB\003" - + "\340A\003H\001\210\001\001B\031\n\027_terminal_storage_classB%\n#_" - + "terminal_storage_class_update_time\032-\n\025Hi" - + "erarchicalNamespace\022\024\n\007enabled\030\001 \001(\010B\003\340A" - + "\001\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.googleapis.com/Bu" - + "cket\022#projects/{project}/buckets/{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_al" - + "t\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\014" - + "project_team\030\007 \001(\0132\036.google.storage.v2.P" - + "rojectTeam\"I\n\017ChecksummedData\022\026\n\007content" - + "\030\001 \001(\014B\005\010\001\340A\001\022\023\n\006crc32c\030\002 \001(\007H\000\210\001\001B\t\n\007_c" - + "rc32c\"C\n\017ObjectChecksums\022\023\n\006crc32c\030\001 \001(\007" - + "H\000\210\001\001\022\020\n\010md5_hash\030\002 \001(\014B\t\n\007_crc32c\"\255\002\n\017H" - + "macKeyMetadata\022\017\n\002id\030\001 \001(\tB\003\340A\005\022\026\n\tacces" - + "s_id\030\002 \001(\tB\003\340A\005\022D\n\007project\030\003 \001(\tB3\340A\005\372A-", - "\n+cloudresourcemanager.googleapis.com/Pr" - + "oject\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\0224\n\013update" - + "_time\030\007 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003\022\014\n\004etag\030\010 \001(\t\"\247\003\n\022NotificationConfi" - + "g\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\021c" - + "ustom_attributes\030\004 \003(\0132;.google.storage." - + "v2.NotificationConfig.CustomAttributesEn" - + "try\022\032\n\022object_name_prefix\030\005 \001(\t\022\033\n\016paylo" - + "ad_format\030\006 \001(\tB\003\340A\002\0327\n\025CustomAttributes" - + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:}\352" - + "Az\n)storage.googleapis.com/NotificationC" - + "onfig\022Mprojects/{project}/buckets/{bucke" - + "t}/notificationConfigs/{notification_con" - + "fig}\"L\n\022CustomerEncryption\022\034\n\024encryption" - + "_algorithm\030\001 \001(\t\022\030\n\020key_sha256_bytes\030\003 \001" - + "(\014\"\254\n\n\006Object\022\021\n\004name\030\001 \001(\tB\003\340A\005\0225\n\006buck" - + "et\030\002 \001(\tB%\340A\005\372A\037\n\035storage.googleapis.com" - + "/Bucket\022\014\n\004etag\030\033 \001(\t\022\027\n\ngeneration\030\003 \001(" - + "\003B\003\340A\005\022\033\n\016metageneration\030\004 \001(\003B\003\340A\003\022\025\n\rs" - + "torage_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\023content_dispo" - + "sition\030\010 \001(\t\022\025\n\rcache_control\030\t \001(\t\0223\n\003a" - + "cl\030\n \003(\0132&.google.storage.v2.ObjectAcces" - + "sControl\022\030\n\020content_language\030\013 \001(\t\0224\n\013de" - + "lete_time\030\014 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\022\024\n\014content_type\030\r \001(\t\0224\n\013create" - + "_time\030\016 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003\022\034\n\017component_count\030\017 \001(\005B\003\340A\003\022:\n\tch" - + "ecksums\030\020 \001(\0132\".google.storage.v2.Object" - + "ChecksumsB\003\340A\003\0224\n\013update_time\030\021 \001(\0132\032.go" - + "ogle.protobuf.TimestampB\003\340A\003\0227\n\007kms_key\030" - + "\022 \001(\tB&\372A#\n!cloudkms.googleapis.com/Cryp" - + "toKey\022B\n\031update_storage_class_time\030\023 \001(\013" - + "2\032.google.protobuf.TimestampB\003\340A\003\022\026\n\016tem" - + "porary_hold\030\024 \001(\010\0229\n\025retention_expire_ti" - + "me\030\025 \001(\0132\032.google.protobuf.Timestamp\0229\n\010" - + "metadata\030\026 \003(\0132\'.google.storage.v2.Objec" - + "t.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.v" - + "2.OwnerB\003\340A\003\022B\n\023customer_encryption\030\031 \001(" - + "\0132%.google.storage.v2.CustomerEncryption" - + "\022/\n\013custom_time\030\032 \001(\0132\032.google.protobuf." - + "Timestamp\022>\n\020soft_delete_time\030\034 \001(\0132\032.go" - + "ogle.protobuf.TimestampB\003\340A\003H\001\210\001\001\022>\n\020har" - + "d_delete_time\030\035 \001(\0132\032.google.protobuf.Ti" - + "mestampB\003\340A\003H\002\210\001\001\032/\n\rMetadataEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\023\n\021_event_bas" - + "ed_holdB\023\n\021_soft_delete_timeB\023\n\021_hard_de" - + "lete_time\"\316\001\n\023ObjectAccessControl\022\014\n\004rol" - + "e\030\001 \001(\t\022\n\n\002id\030\002 \001(\t\022\016\n\006entity\030\003 \001(\t\022\027\n\ne" - + "ntity_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.stor" - + "age.v2.ProjectTeam\"l\n\023ListObjectsRespons" - + "e\022*\n\007objects\030\001 \003(\0132\031.google.storage.v2.O" - + "bject\022\020\n\010prefixes\030\002 \003(\t\022\027\n\017next_page_tok" - + "en\030\003 \001(\t\"3\n\013ProjectTeam\022\026\n\016project_numbe" - + "r\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\006entit" - + "y\030\001 \001(\t\022\021\n\tentity_id\030\002 \001(\t\"C\n\014ContentRan" - + "ge\022\r\n\005start\030\001 \001(\003\022\013\n\003end\030\002 \001(\003\022\027\n\017comple" - + "te_length\030\003 \001(\0032\252\'\n\007Storage\022r\n\014DeleteBuc" - + "ket\022&.google.storage.v2.DeleteBucketRequ" - + "est\032\026.google.protobuf.Empty\"\"\332A\004name\212\323\344\223" - + "\002\025\022\023\n\004name\022\013{bucket=**}\022o\n\tGetBucket\022#.g" - + "oogle.storage.v2.GetBucketRequest\032\031.goog" - + "le.storage.v2.Bucket\"\"\332A\004name\212\323\344\223\002\025\022\023\n\004n" - + "ame\022\013{bucket=**}\022\253\001\n\014CreateBucket\022&.goog" - + "le.storage.v2.CreateBucketRequest\032\031.goog" - + "le.storage.v2.Bucket\"X\332A\027parent,bucket,b" - + "ucket_id\212\323\344\223\0028\022\026\n\006parent\022\014{project=**}\022\036" - + "\n\016bucket.project\022\014{project=**}\022\205\001\n\013ListB" - + "uckets\022%.google.storage.v2.ListBucketsRe" - + "quest\032&.google.storage.v2.ListBucketsRes" - + "ponse\"\'\332A\006parent\212\323\344\223\002\030\022\026\n\006parent\022\014{proje" - + "ct=**}\022\223\001\n\031LockBucketRetentionPolicy\0223.g" - + "oogle.storage.v2.LockBucketRetentionPoli" - + "cyRequest\032\031.google.storage.v2.Bucket\"&\332A" - + "\006bucket\212\323\344\223\002\027\022\025\n\006bucket\022\013{bucket=**}\022u\n\014" - + "GetIamPolicy\022\".google.iam.v1.GetIamPolic" - + "yRequest\032\025.google.iam.v1.Policy\"*\332A\010reso" - + "urce\212\323\344\223\002\031\022\027\n\010resource\022\013{bucket=**}\022|\n\014S" - + "etIamPolicy\022\".google.iam.v1.SetIamPolicy" - + "Request\032\025.google.iam.v1.Policy\"1\332A\017resou" - + "rce,policy\212\323\344\223\002\031\022\027\n\010resource\022\013{bucket=**" - + "}\022\327\001\n\022TestIamPermissions\022(.google.iam.v1" - + ".TestIamPermissionsRequest\032).google.iam." - + "v1.TestIamPermissionsResponse\"l\332A\024resour" - + "ce,permissions\212\323\344\223\002O\022\027\n\010resource\022\013{bucke" - + "t=**}\0224\n\010resource\022({bucket=projects/*/bu" - + "ckets/*}/objects/**\022\212\001\n\014UpdateBucket\022&.g" - + "oogle.storage.v2.UpdateBucketRequest\032\031.g" - + "oogle.storage.v2.Bucket\"7\332A\022bucket,updat" - + "e_mask\212\323\344\223\002\034\022\032\n\013bucket.name\022\013{bucket=**}" - + "\022\237\001\n\030DeleteNotificationConfig\0222.google.s" - + "torage.v2.DeleteNotificationConfigReques" - + "t\032\026.google.protobuf.Empty\"7\332A\004name\212\323\344\223\002*" - + "\022(\n\004name\022 {bucket=projects/*/buckets/*}/" - + "**\022\250\001\n\025GetNotificationConfig\022/.google.st" - + "orage.v2.GetNotificationConfigRequest\032%." - + "google.storage.v2.NotificationConfig\"7\332A" - + "\004name\212\323\344\223\002*\022(\n\004name\022 {bucket=projects/*/" - + "buckets/*}/**\022\261\001\n\030CreateNotificationConf" - + "ig\0222.google.storage.v2.CreateNotificatio" - + "nConfigRequest\032%.google.storage.v2.Notif" - + "icationConfig\":\332A\032parent,notification_co" - + "nfig\212\323\344\223\002\027\022\025\n\006parent\022\013{bucket=**}\022\250\001\n\027Li" - + "stNotificationConfigs\0221.google.storage.v" - + "2.ListNotificationConfigsRequest\0322.googl" - + "e.storage.v2.ListNotificationConfigsResp" - + "onse\"&\332A\006parent\212\323\344\223\002\027\022\025\n\006parent\022\013{bucket" - + "=**}\022~\n\rComposeObject\022\'.google.storage.v" - + "2.ComposeObjectRequest\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.s" - + "torage.v2.DeleteObjectRequest\032\026.google.p" - + "rotobuf.Empty\"H\332A\rbucket,object\332A\030bucket" - + ",object,generation\212\323\344\223\002\027\022\025\n\006bucket\022\013{buc" - + "ket=**}\022\215\001\n\rRestoreObject\022\'.google.stora" - + "ge.v2.RestoreObjectRequest\032\031.google.stor" - + "age.v2.Object\"8\332A\030bucket,object,generati" - + "on\212\323\344\223\002\027\022\025\n\006bucket\022\013{bucket=**}\022\272\001\n\024Canc" - + "elResumableWrite\022..google.storage.v2.Can" - + "celResumableWriteRequest\032/.google.storag" - + "e.v2.CancelResumableWriteResponse\"A\332A\tup" - + "load_id\212\323\344\223\002/\022-\n\tupload_id\022 {bucket=proj" - + "ects/*/buckets/*}/**\022\225\001\n\tGetObject\022#.goo" - + "gle.storage.v2.GetObjectRequest\032\031.google" - + ".storage.v2.Object\"H\332A\rbucket,object\332A\030b" - + "ucket,object,generation\212\323\344\223\002\027\022\025\n\006bucket\022" - + "\013{bucket=**}\022\245\001\n\nReadObject\022$.google.sto" - + "rage.v2.ReadObjectRequest\032%.google.stora" - + "ge.v2.ReadObjectResponse\"H\332A\rbucket,obje" - + "ct\332A\030bucket,object,generation\212\323\344\223\002\027\022\025\n\006b" - + "ucket\022\013{bucket=**}0\001\022\214\001\n\014UpdateObject\022&." - + "google.storage.v2.UpdateObjectRequest\032\031." - + "google.storage.v2.Object\"9\332A\022object,upda" - + "te_mask\212\323\344\223\002\036\022\034\n\robject.bucket\022\013{bucket=" - + "**}\022`\n\013WriteObject\022%.google.storage.v2.W" - + "riteObjectRequest\032&.google.storage.v2.Wr" - + "iteObjectResponse\"\000(\001\022n\n\017BidiWriteObject" - + "\022).google.storage.v2.BidiWriteObjectRequ" - + "est\032*.google.storage.v2.BidiWriteObjectR" - + "esponse\"\000(\0010\001\022\204\001\n\013ListObjects\022%.google.s" - + "torage.v2.ListObjectsRequest\032&.google.st" - + "orage.v2.ListObjectsResponse\"&\332A\006parent\212" - + "\323\344\223\002\027\022\025\n\006parent\022\013{bucket=**}\022\230\001\n\rRewrite" - + "Object\022\'.google.storage.v2.RewriteObject" - + "Request\032\".google.storage.v2.RewriteRespo" - + "nse\":\212\323\344\223\0024\022\017\n\rsource_bucket\022!\n\022destinat" - + "ion_bucket\022\013{bucket=**}\022\256\001\n\023StartResumab" - + "leWrite\022-.google.storage.v2.StartResumab" - + "leWriteRequest\032..google.storage.v2.Start" - + "ResumableWriteResponse\"8\212\323\344\223\0022\0220\n!write_" - + "object_spec.resource.bucket\022\013{bucket=**}" - + "\022\256\001\n\020QueryWriteStatus\022*.google.storage.v" - + "2.QueryWriteStatusRequest\032+.google.stora" - + "ge.v2.QueryWriteStatusResponse\"A\332A\tuploa" - + "d_id\212\323\344\223\002/\022-\n\tupload_id\022 {bucket=project" - + "s/*/buckets/*}/**\022\200\001\n\021GetServiceAccount\022" - + "+.google.storage.v2.GetServiceAccountReq" - + "uest\032!.google.storage.v2.ServiceAccount\"" - + "\033\332A\007project\212\323\344\223\002\013\022\t\n\007project\022\225\001\n\rCreateH" - + "macKey\022\'.google.storage.v2.CreateHmacKey" - + "Request\032(.google.storage.v2.CreateHmacKe" - + "yResponse\"1\332A\035project,service_account_em" - + "ail\212\323\344\223\002\013\022\t\n\007project\022w\n\rDeleteHmacKey\022\'." - + "google.storage.v2.DeleteHmacKeyRequest\032\026" - + ".google.protobuf.Empty\"%\332A\021access_id,pro" - + "ject\212\323\344\223\002\013\022\t\n\007project\022}\n\nGetHmacKey\022$.go" - + "ogle.storage.v2.GetHmacKeyRequest\032\".goog" - + "le.storage.v2.HmacKeyMetadata\"%\332A\021access" - + "_id,project\212\323\344\223\002\013\022\t\n\007project\022|\n\014ListHmac" - + "Keys\022&.google.storage.v2.ListHmacKeysReq" - + "uest\032\'.google.storage.v2.ListHmacKeysRes" - + "ponse\"\033\332A\007project\212\323\344\223\002\013\022\t\n\007project\022\235\001\n\rU" - + "pdateHmacKey\022\'.google.storage.v2.UpdateH" - + "macKeyRequest\032\".google.storage.v2.HmacKe" - + "yMetadata\"?\332A\024hmac_key,update_mask\212\323\344\223\002\"" - + "\022 \n\020hmac_key.project\022\014{project=**}\032\247\002\312A\026" - + "storage.googleapis.com\322A\212\002https://www.go" - + "ogleapis.com/auth/cloud-platform,https:/" - + "/www.googleapis.com/auth/cloud-platform." - + "read-only,https://www.googleapis.com/aut" - + "h/devstorage.full_control,https://www.go" - + "ogleapis.com/auth/devstorage.read_only,h" - + "ttps://www.googleapis.com/auth/devstorag" - + "e.read_writeB\342\001\n\025com.google.storage.v2B\014" - + "StorageProtoP\001Z>cloud.google.com/go/stor" - + "age/internal/apiv2/storagepb;storagepb\352A" - + "x\n!cloudkms.googleapis.com/CryptoKey\022Spr" - + "ojects/{project}/locations/{location}/ke" - + "yRings/{key_ring}/cryptoKeys/{crypto_key" - + "}b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.api.RoutingProto.getDescriptor(), - com.google.iam.v1.IamPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.type.DateProto.getDescriptor(), - }); - internal_static_google_storage_v2_DeleteBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_storage_v2_DeleteBucketRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_DeleteBucketRequest_descriptor, - new java.lang.String[] { - "Name", "IfMetagenerationMatch", "IfMetagenerationNotMatch", - }); - internal_static_google_storage_v2_GetBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_storage_v2_GetBucketRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_GetBucketRequest_descriptor, - new java.lang.String[] { - "Name", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "ReadMask", - }); - internal_static_google_storage_v2_CreateBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_storage_v2_CreateBucketRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_CreateBucketRequest_descriptor, - new java.lang.String[] { - "Parent", "Bucket", "BucketId", "PredefinedAcl", "PredefinedDefaultObjectAcl", - }); - internal_static_google_storage_v2_ListBucketsRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_storage_v2_ListBucketsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ListBucketsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Prefix", "ReadMask", - }); - internal_static_google_storage_v2_ListBucketsResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_storage_v2_ListBucketsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ListBucketsResponse_descriptor, - new java.lang.String[] { - "Buckets", "NextPageToken", - }); - internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_descriptor, - new java.lang.String[] { - "Bucket", "IfMetagenerationMatch", - }); - internal_static_google_storage_v2_UpdateBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_storage_v2_UpdateBucketRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_UpdateBucketRequest_descriptor, - new java.lang.String[] { - "Bucket", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - "PredefinedAcl", - "PredefinedDefaultObjectAcl", - "UpdateMask", - }); - internal_static_google_storage_v2_DeleteNotificationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_storage_v2_DeleteNotificationConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_DeleteNotificationConfigRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_storage_v2_GetNotificationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_storage_v2_GetNotificationConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_GetNotificationConfigRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_storage_v2_CreateNotificationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_storage_v2_CreateNotificationConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_CreateNotificationConfigRequest_descriptor, - new java.lang.String[] { - "Parent", "NotificationConfig", - }); - internal_static_google_storage_v2_ListNotificationConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_storage_v2_ListNotificationConfigsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ListNotificationConfigsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_storage_v2_ListNotificationConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_storage_v2_ListNotificationConfigsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ListNotificationConfigsResponse_descriptor, - new java.lang.String[] { - "NotificationConfigs", "NextPageToken", - }); - internal_static_google_storage_v2_ComposeObjectRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_storage_v2_ComposeObjectRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ComposeObjectRequest_descriptor, - new java.lang.String[] { - "Destination", - "SourceObjects", - "DestinationPredefinedAcl", - "IfGenerationMatch", - "IfMetagenerationMatch", - "KmsKey", - "CommonObjectRequestParams", - "ObjectChecksums", - }); - internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor = - internal_static_google_storage_v2_ComposeObjectRequest_descriptor.getNestedTypes().get(0); - internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor, - new java.lang.String[] { - "Name", "Generation", "ObjectPreconditions", - }); - internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_descriptor = - internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor - .getNestedTypes() - .get(0); - internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_descriptor, - new java.lang.String[] { - "IfGenerationMatch", - }); - internal_static_google_storage_v2_DeleteObjectRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_storage_v2_DeleteObjectRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_DeleteObjectRequest_descriptor, - new java.lang.String[] { - "Bucket", - "Object", - "Generation", - "IfGenerationMatch", - "IfGenerationNotMatch", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - "CommonObjectRequestParams", - }); - internal_static_google_storage_v2_RestoreObjectRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_storage_v2_RestoreObjectRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_RestoreObjectRequest_descriptor, - new java.lang.String[] { - "Bucket", - "Object", - "Generation", - "IfGenerationMatch", - "IfGenerationNotMatch", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - "CopySourceAcl", - "CommonObjectRequestParams", - }); - internal_static_google_storage_v2_CancelResumableWriteRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_storage_v2_CancelResumableWriteRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_CancelResumableWriteRequest_descriptor, - new java.lang.String[] { - "UploadId", - }); - internal_static_google_storage_v2_CancelResumableWriteResponse_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_storage_v2_CancelResumableWriteResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_CancelResumableWriteResponse_descriptor, - new java.lang.String[] {}); - internal_static_google_storage_v2_ReadObjectRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_storage_v2_ReadObjectRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ReadObjectRequest_descriptor, - new java.lang.String[] { - "Bucket", - "Object", - "Generation", - "ReadOffset", - "ReadLimit", - "IfGenerationMatch", - "IfGenerationNotMatch", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - "CommonObjectRequestParams", - "ReadMask", - }); - internal_static_google_storage_v2_GetObjectRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_storage_v2_GetObjectRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_GetObjectRequest_descriptor, - new java.lang.String[] { - "Bucket", - "Object", - "Generation", - "SoftDeleted", - "IfGenerationMatch", - "IfGenerationNotMatch", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - "CommonObjectRequestParams", - "ReadMask", - }); - internal_static_google_storage_v2_ReadObjectResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_storage_v2_ReadObjectResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ReadObjectResponse_descriptor, - new java.lang.String[] { - "ChecksummedData", "ObjectChecksums", "ContentRange", "Metadata", - }); - internal_static_google_storage_v2_WriteObjectSpec_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_storage_v2_WriteObjectSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_WriteObjectSpec_descriptor, - new java.lang.String[] { - "Resource", - "PredefinedAcl", - "IfGenerationMatch", - "IfGenerationNotMatch", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - "ObjectSize", - }); - internal_static_google_storage_v2_WriteObjectRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_storage_v2_WriteObjectRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_WriteObjectRequest_descriptor, - new java.lang.String[] { - "UploadId", - "WriteObjectSpec", - "WriteOffset", - "ChecksummedData", - "ObjectChecksums", - "FinishWrite", - "CommonObjectRequestParams", - "FirstMessage", - "Data", - }); - internal_static_google_storage_v2_WriteObjectResponse_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_storage_v2_WriteObjectResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_WriteObjectResponse_descriptor, - new java.lang.String[] { - "PersistedSize", "Resource", "WriteStatus", - }); - internal_static_google_storage_v2_BidiWriteObjectRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_storage_v2_BidiWriteObjectRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_BidiWriteObjectRequest_descriptor, - new java.lang.String[] { - "UploadId", - "WriteObjectSpec", - "WriteOffset", - "ChecksummedData", - "ObjectChecksums", - "StateLookup", - "Flush", - "FinishWrite", - "CommonObjectRequestParams", - "FirstMessage", - "Data", - }); - internal_static_google_storage_v2_BidiWriteObjectResponse_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_storage_v2_BidiWriteObjectResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_BidiWriteObjectResponse_descriptor, - new java.lang.String[] { - "PersistedSize", "Resource", "WriteStatus", - }); - internal_static_google_storage_v2_ListObjectsRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_storage_v2_ListObjectsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ListObjectsRequest_descriptor, - new java.lang.String[] { - "Parent", - "PageSize", - "PageToken", - "Delimiter", - "IncludeTrailingDelimiter", - "Prefix", - "Versions", - "ReadMask", - "LexicographicStart", - "LexicographicEnd", - "SoftDeleted", - "IncludeFoldersAsPrefixes", - "MatchGlob", - }); - internal_static_google_storage_v2_QueryWriteStatusRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_storage_v2_QueryWriteStatusRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_QueryWriteStatusRequest_descriptor, - new java.lang.String[] { - "UploadId", "CommonObjectRequestParams", - }); - internal_static_google_storage_v2_QueryWriteStatusResponse_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_storage_v2_QueryWriteStatusResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_QueryWriteStatusResponse_descriptor, - new java.lang.String[] { - "PersistedSize", "Resource", "WriteStatus", - }); - internal_static_google_storage_v2_RewriteObjectRequest_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_storage_v2_RewriteObjectRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_RewriteObjectRequest_descriptor, - new java.lang.String[] { - "DestinationName", - "DestinationBucket", - "DestinationKmsKey", - "Destination", - "SourceBucket", - "SourceObject", - "SourceGeneration", - "RewriteToken", - "DestinationPredefinedAcl", - "IfGenerationMatch", - "IfGenerationNotMatch", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - "IfSourceGenerationMatch", - "IfSourceGenerationNotMatch", - "IfSourceMetagenerationMatch", - "IfSourceMetagenerationNotMatch", - "MaxBytesRewrittenPerCall", - "CopySourceEncryptionAlgorithm", - "CopySourceEncryptionKeyBytes", - "CopySourceEncryptionKeySha256Bytes", - "CommonObjectRequestParams", - "ObjectChecksums", - }); - internal_static_google_storage_v2_RewriteResponse_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_storage_v2_RewriteResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_RewriteResponse_descriptor, - new java.lang.String[] { - "TotalBytesRewritten", "ObjectSize", "Done", "RewriteToken", "Resource", - }); - internal_static_google_storage_v2_StartResumableWriteRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_storage_v2_StartResumableWriteRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_StartResumableWriteRequest_descriptor, - new java.lang.String[] { - "WriteObjectSpec", "CommonObjectRequestParams", "ObjectChecksums", - }); - internal_static_google_storage_v2_StartResumableWriteResponse_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_storage_v2_StartResumableWriteResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_StartResumableWriteResponse_descriptor, - new java.lang.String[] { - "UploadId", - }); - internal_static_google_storage_v2_UpdateObjectRequest_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_storage_v2_UpdateObjectRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_UpdateObjectRequest_descriptor, - new java.lang.String[] { - "Object", - "IfGenerationMatch", - "IfGenerationNotMatch", - "IfMetagenerationMatch", - "IfMetagenerationNotMatch", - "PredefinedAcl", - "UpdateMask", - "CommonObjectRequestParams", - }); - internal_static_google_storage_v2_GetServiceAccountRequest_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_storage_v2_GetServiceAccountRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_GetServiceAccountRequest_descriptor, - new java.lang.String[] { - "Project", - }); - internal_static_google_storage_v2_CreateHmacKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_storage_v2_CreateHmacKeyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_CreateHmacKeyRequest_descriptor, - new java.lang.String[] { - "Project", "ServiceAccountEmail", - }); - internal_static_google_storage_v2_CreateHmacKeyResponse_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_storage_v2_CreateHmacKeyResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_CreateHmacKeyResponse_descriptor, - new java.lang.String[] { - "Metadata", "SecretKeyBytes", - }); - internal_static_google_storage_v2_DeleteHmacKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_storage_v2_DeleteHmacKeyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_DeleteHmacKeyRequest_descriptor, - new java.lang.String[] { - "AccessId", "Project", - }); - internal_static_google_storage_v2_GetHmacKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_google_storage_v2_GetHmacKeyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_GetHmacKeyRequest_descriptor, - new java.lang.String[] { - "AccessId", "Project", - }); - internal_static_google_storage_v2_ListHmacKeysRequest_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_google_storage_v2_ListHmacKeysRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ListHmacKeysRequest_descriptor, - new java.lang.String[] { - "Project", "PageSize", "PageToken", "ServiceAccountEmail", "ShowDeletedKeys", - }); - internal_static_google_storage_v2_ListHmacKeysResponse_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_google_storage_v2_ListHmacKeysResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ListHmacKeysResponse_descriptor, - new java.lang.String[] { - "HmacKeys", "NextPageToken", - }); - internal_static_google_storage_v2_UpdateHmacKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_google_storage_v2_UpdateHmacKeyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_UpdateHmacKeyRequest_descriptor, - new java.lang.String[] { - "HmacKey", "UpdateMask", - }); - internal_static_google_storage_v2_CommonObjectRequestParams_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_google_storage_v2_CommonObjectRequestParams_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_CommonObjectRequestParams_descriptor, - new java.lang.String[] { - "EncryptionAlgorithm", "EncryptionKeyBytes", "EncryptionKeySha256Bytes", - }); - internal_static_google_storage_v2_ServiceConstants_descriptor = - getDescriptor().getMessageTypes().get(42); - internal_static_google_storage_v2_ServiceConstants_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ServiceConstants_descriptor, - new java.lang.String[] {}); - internal_static_google_storage_v2_Bucket_descriptor = getDescriptor().getMessageTypes().get(43); - internal_static_google_storage_v2_Bucket_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_descriptor, - new java.lang.String[] { - "Name", - "BucketId", - "Etag", - "Project", - "Metageneration", - "Location", - "LocationType", - "StorageClass", - "Rpo", - "Acl", - "DefaultObjectAcl", - "Lifecycle", - "CreateTime", - "Cors", - "UpdateTime", - "DefaultEventBasedHold", - "Labels", - "Website", - "Versioning", - "Logging", - "Owner", - "Encryption", - "Billing", - "RetentionPolicy", - "IamConfig", - "SatisfiesPzs", - "CustomPlacementConfig", - "Autoclass", - "HierarchicalNamespace", - "SoftDeletePolicy", - }); - internal_static_google_storage_v2_Bucket_Billing_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(0); - internal_static_google_storage_v2_Bucket_Billing_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_Billing_descriptor, - new java.lang.String[] { - "RequesterPays", - }); - internal_static_google_storage_v2_Bucket_Cors_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(1); - internal_static_google_storage_v2_Bucket_Cors_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_Cors_descriptor, - new java.lang.String[] { - "Origin", "Method", "ResponseHeader", "MaxAgeSeconds", - }); - internal_static_google_storage_v2_Bucket_Encryption_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(2); - internal_static_google_storage_v2_Bucket_Encryption_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_Encryption_descriptor, - new java.lang.String[] { - "DefaultKmsKey", - }); - internal_static_google_storage_v2_Bucket_IamConfig_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(3); - internal_static_google_storage_v2_Bucket_IamConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_IamConfig_descriptor, - new java.lang.String[] { - "UniformBucketLevelAccess", "PublicAccessPrevention", - }); - internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_descriptor = - internal_static_google_storage_v2_Bucket_IamConfig_descriptor.getNestedTypes().get(0); - internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_descriptor, - new java.lang.String[] { - "Enabled", "LockTime", - }); - internal_static_google_storage_v2_Bucket_Lifecycle_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(4); - internal_static_google_storage_v2_Bucket_Lifecycle_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_Lifecycle_descriptor, - new java.lang.String[] { - "Rule", - }); - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor = - internal_static_google_storage_v2_Bucket_Lifecycle_descriptor.getNestedTypes().get(0); - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor, - new java.lang.String[] { - "Action", "Condition", - }); - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_descriptor = - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor.getNestedTypes().get(0); - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_descriptor, - new java.lang.String[] { - "Type", "StorageClass", - }); - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_descriptor = - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor.getNestedTypes().get(1); - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_descriptor, - new java.lang.String[] { - "AgeDays", - "CreatedBefore", - "IsLive", - "NumNewerVersions", - "MatchesStorageClass", - "DaysSinceCustomTime", - "CustomTimeBefore", - "DaysSinceNoncurrentTime", - "NoncurrentTimeBefore", - "MatchesPrefix", - "MatchesSuffix", - }); - internal_static_google_storage_v2_Bucket_Logging_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(5); - internal_static_google_storage_v2_Bucket_Logging_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_Logging_descriptor, - new java.lang.String[] { - "LogBucket", "LogObjectPrefix", - }); - internal_static_google_storage_v2_Bucket_RetentionPolicy_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(6); - internal_static_google_storage_v2_Bucket_RetentionPolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_RetentionPolicy_descriptor, - new java.lang.String[] { - "EffectiveTime", "IsLocked", "RetentionDuration", - }); - internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(7); - internal_static_google_storage_v2_Bucket_SoftDeletePolicy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor, - new java.lang.String[] { - "RetentionDuration", "EffectiveTime", - }); - internal_static_google_storage_v2_Bucket_Versioning_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(8); - internal_static_google_storage_v2_Bucket_Versioning_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_Versioning_descriptor, - new java.lang.String[] { - "Enabled", - }); - internal_static_google_storage_v2_Bucket_Website_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(9); - internal_static_google_storage_v2_Bucket_Website_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_Website_descriptor, - new java.lang.String[] { - "MainPageSuffix", "NotFoundPage", - }); - internal_static_google_storage_v2_Bucket_CustomPlacementConfig_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(10); - internal_static_google_storage_v2_Bucket_CustomPlacementConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_CustomPlacementConfig_descriptor, - new java.lang.String[] { - "DataLocations", - }); - internal_static_google_storage_v2_Bucket_Autoclass_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(11); - internal_static_google_storage_v2_Bucket_Autoclass_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_Autoclass_descriptor, - new java.lang.String[] { - "Enabled", "ToggleTime", "TerminalStorageClass", "TerminalStorageClassUpdateTime", - }); - internal_static_google_storage_v2_Bucket_HierarchicalNamespace_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(12); - internal_static_google_storage_v2_Bucket_HierarchicalNamespace_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_HierarchicalNamespace_descriptor, - new java.lang.String[] { - "Enabled", - }); - internal_static_google_storage_v2_Bucket_LabelsEntry_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(13); - internal_static_google_storage_v2_Bucket_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_storage_v2_BucketAccessControl_descriptor = - getDescriptor().getMessageTypes().get(44); - internal_static_google_storage_v2_BucketAccessControl_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_BucketAccessControl_descriptor, - new java.lang.String[] { - "Role", - "Id", - "Entity", - "EntityAlt", - "EntityId", - "Etag", - "Email", - "Domain", - "ProjectTeam", - }); - internal_static_google_storage_v2_ChecksummedData_descriptor = - getDescriptor().getMessageTypes().get(45); - internal_static_google_storage_v2_ChecksummedData_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ChecksummedData_descriptor, - new java.lang.String[] { - "Content", "Crc32C", - }); - internal_static_google_storage_v2_ObjectChecksums_descriptor = - getDescriptor().getMessageTypes().get(46); - internal_static_google_storage_v2_ObjectChecksums_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ObjectChecksums_descriptor, - new java.lang.String[] { - "Crc32C", "Md5Hash", - }); - internal_static_google_storage_v2_HmacKeyMetadata_descriptor = - getDescriptor().getMessageTypes().get(47); - internal_static_google_storage_v2_HmacKeyMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_HmacKeyMetadata_descriptor, - new java.lang.String[] { - "Id", - "AccessId", - "Project", - "ServiceAccountEmail", - "State", - "CreateTime", - "UpdateTime", - "Etag", - }); - internal_static_google_storage_v2_NotificationConfig_descriptor = - getDescriptor().getMessageTypes().get(48); - internal_static_google_storage_v2_NotificationConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_NotificationConfig_descriptor, - new java.lang.String[] { - "Name", - "Topic", - "Etag", - "EventTypes", - "CustomAttributes", - "ObjectNamePrefix", - "PayloadFormat", - }); - internal_static_google_storage_v2_NotificationConfig_CustomAttributesEntry_descriptor = - internal_static_google_storage_v2_NotificationConfig_descriptor.getNestedTypes().get(0); - internal_static_google_storage_v2_NotificationConfig_CustomAttributesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_NotificationConfig_CustomAttributesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_storage_v2_CustomerEncryption_descriptor = - getDescriptor().getMessageTypes().get(49); - internal_static_google_storage_v2_CustomerEncryption_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_CustomerEncryption_descriptor, - new java.lang.String[] { - "EncryptionAlgorithm", "KeySha256Bytes", - }); - internal_static_google_storage_v2_Object_descriptor = getDescriptor().getMessageTypes().get(50); - internal_static_google_storage_v2_Object_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Object_descriptor, - new java.lang.String[] { - "Name", - "Bucket", - "Etag", - "Generation", - "Metageneration", - "StorageClass", - "Size", - "ContentEncoding", - "ContentDisposition", - "CacheControl", - "Acl", - "ContentLanguage", - "DeleteTime", - "ContentType", - "CreateTime", - "ComponentCount", - "Checksums", - "UpdateTime", - "KmsKey", - "UpdateStorageClassTime", - "TemporaryHold", - "RetentionExpireTime", - "Metadata", - "EventBasedHold", - "Owner", - "CustomerEncryption", - "CustomTime", - "SoftDeleteTime", - "HardDeleteTime", - }); - internal_static_google_storage_v2_Object_MetadataEntry_descriptor = - internal_static_google_storage_v2_Object_descriptor.getNestedTypes().get(0); - internal_static_google_storage_v2_Object_MetadataEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Object_MetadataEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_storage_v2_ObjectAccessControl_descriptor = - getDescriptor().getMessageTypes().get(51); - internal_static_google_storage_v2_ObjectAccessControl_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ObjectAccessControl_descriptor, - new java.lang.String[] { - "Role", - "Id", - "Entity", - "EntityAlt", - "EntityId", - "Etag", - "Email", - "Domain", - "ProjectTeam", - }); - internal_static_google_storage_v2_ListObjectsResponse_descriptor = - getDescriptor().getMessageTypes().get(52); - internal_static_google_storage_v2_ListObjectsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ListObjectsResponse_descriptor, - new java.lang.String[] { - "Objects", "Prefixes", "NextPageToken", - }); - internal_static_google_storage_v2_ProjectTeam_descriptor = - getDescriptor().getMessageTypes().get(53); - internal_static_google_storage_v2_ProjectTeam_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ProjectTeam_descriptor, - new java.lang.String[] { - "ProjectNumber", "Team", - }); - internal_static_google_storage_v2_ServiceAccount_descriptor = - getDescriptor().getMessageTypes().get(54); - internal_static_google_storage_v2_ServiceAccount_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ServiceAccount_descriptor, - new java.lang.String[] { - "EmailAddress", - }); - internal_static_google_storage_v2_Owner_descriptor = getDescriptor().getMessageTypes().get(55); - internal_static_google_storage_v2_Owner_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Owner_descriptor, - new java.lang.String[] { - "Entity", "EntityId", - }); - internal_static_google_storage_v2_ContentRange_descriptor = - getDescriptor().getMessageTypes().get(56); - internal_static_google_storage_v2_ContentRange_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ContentRange_descriptor, - new java.lang.String[] { - "Start", "End", "CompleteLength", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.api.RoutingProto.routing); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.api.RoutingProto.getDescriptor(); - com.google.iam.v1.IamPolicyProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.type.DateProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} From 1d75c2224fbbf11d601f80ccdb5f1083debe6571 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 20 Jun 2024 23:17:58 +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 --- README.md | 2 +- .../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/reflect-config.json | 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 .../control/v2/StorageControlClient.java | 0 .../control/v2/StorageControlSettings.java | 1 - .../storage/control/v2/gapic_metadata.json | 0 .../storage/control/v2/package-info.java | 0 .../GrpcStorageControlCallableFactory.java | 0 .../v2/stub/GrpcStorageControlStub.java | 1 - .../control/v2/stub/StorageControlStub.java | 0 .../v2/stub/StorageControlStubSettings.java | 0 .../reflect-config.json | 0 .../storage/control/v2/gapic_metadata.json | 0 .../control/v2/MockStorageControl.java | 0 .../control/v2/MockStorageControlImpl.java | 0 .../control/v2/StorageControlClientTest.java | 0 .../control/v2/StorageControlGrpc.java | 1442 ++ .../com/google/storage/v2/StorageGrpc.java | 2950 +++-- .../com/google/storage/v2/gapic_metadata.json | 114 - .../control/v2/StorageControlGrpc.java | 1125 -- .../control/v2/StorageControlProto.java | 457 - ...CancelResumableWriteResponseOrBuilder.java | 10 - ...ateNotificationConfigRequestOrBuilder.java | 57 - ...eteNotificationConfigRequestOrBuilder.java | 30 - ...GetNotificationConfigRequestOrBuilder.java | 34 - .../v2/GetServiceAccountRequestOrBuilder.java | 32 - ...BucketRetentionPolicyRequestOrBuilder.java | 41 - .../storage/v2/ServiceAccountOrBuilder.java | 30 - .../storage/v2/ServiceConstantsOrBuilder.java | 10 - .../com/google/storage/v2/StorageProto.java | 1535 --- .../google/storage/control/v2/BucketName.java | 0 .../CommonLongRunningOperationMetadata.java | 801 +- ...LongRunningOperationMetadataOrBuilder.java | 84 +- .../control/v2/CreateFolderRequest.java | 679 +- .../v2/CreateFolderRequestOrBuilder.java | 81 +- .../v2/CreateManagedFolderRequest.java | 664 +- .../CreateManagedFolderRequestOrBuilder.java | 81 +- .../control/v2/DeleteFolderRequest.java | 527 +- .../v2/DeleteFolderRequestOrBuilder.java | 64 +- .../v2/DeleteManagedFolderRequest.java | 564 +- .../DeleteManagedFolderRequestOrBuilder.java | 67 +- .../com/google/storage/control/v2/Folder.java | 756 +- .../google/storage/control/v2/FolderName.java | 0 .../storage/control/v2/FolderOrBuilder.java | 84 +- .../storage/control/v2/GetFolderRequest.java | 520 +- .../control/v2/GetFolderRequestOrBuilder.java | 64 +- .../control/v2/GetManagedFolderRequest.java | 530 +- .../v2/GetManagedFolderRequestOrBuilder.java | 64 +- .../control/v2/GetStorageLayoutRequest.java | 522 +- .../v2/GetStorageLayoutRequestOrBuilder.java | 61 +- .../control/v2/ListFoldersRequest.java | 840 +- .../v2/ListFoldersRequestOrBuilder.java | 100 +- .../control/v2/ListFoldersResponse.java | 479 +- .../v2/ListFoldersResponseOrBuilder.java | 46 +- .../control/v2/ListManagedFoldersRequest.java | 627 +- .../ListManagedFoldersRequestOrBuilder.java | 73 +- .../v2/ListManagedFoldersResponse.java | 472 +- .../ListManagedFoldersResponseOrBuilder.java | 45 +- .../storage/control/v2/ManagedFolder.java | 613 +- .../storage/control/v2/ManagedFolderName.java | 0 .../control/v2/ManagedFolderOrBuilder.java | 64 +- .../storage/control/v2/PendingRenameInfo.java | 315 +- .../v2/PendingRenameInfoOrBuilder.java | 27 +- .../control/v2/RenameFolderMetadata.java | 529 +- .../v2/RenameFolderMetadataOrBuilder.java | 47 +- .../control/v2/RenameFolderRequest.java | 599 +- .../v2/RenameFolderRequestOrBuilder.java | 73 +- .../control/v2/StorageControlProto.java | 511 + .../storage/control/v2/StorageLayout.java | 1503 ++- .../storage/control/v2/StorageLayoutName.java | 0 .../control/v2/StorageLayoutOrBuilder.java | 91 +- .../storage/control/v2/storage_control.proto | 0 .../storage/v2/BidiWriteObjectRequest.java | 946 +- .../v2/BidiWriteObjectRequestOrBuilder.java | 74 +- .../storage/v2/BidiWriteObjectResponse.java | 433 +- .../v2/BidiWriteObjectResponseOrBuilder.java | 32 +- .../java/com/google/storage/v2/Bucket.java | 11021 ++++++++++------ .../storage/v2/BucketAccessControl.java | 915 +- .../v2/BucketAccessControlOrBuilder.java | 98 +- .../com/google/storage/v2/BucketName.java | 0 .../google/storage/v2/BucketOrBuilder.java | 354 +- .../v2/CancelResumableWriteRequest.java | 319 +- .../CancelResumableWriteRequestOrBuilder.java | 27 +- .../v2/CancelResumableWriteResponse.java | 245 +- ...CancelResumableWriteResponseOrBuilder.java | 25 + .../google/storage/v2/ChecksummedData.java | 306 +- .../storage/v2/ChecksummedDataOrBuilder.java | 27 +- .../storage/v2/CommonObjectRequestParams.java | 390 +- .../CommonObjectRequestParamsOrBuilder.java | 33 +- .../storage/v2/ComposeObjectRequest.java | 1966 ++- .../v2/ComposeObjectRequestOrBuilder.java | 96 +- .../com/google/storage/v2/ContentRange.java | 338 +- .../storage/v2/ContentRangeOrBuilder.java | 27 +- .../storage/v2/CreateBucketRequest.java | 644 +- .../v2/CreateBucketRequestOrBuilder.java | 70 +- .../storage/v2/CreateHmacKeyRequest.java | 412 +- .../v2/CreateHmacKeyRequestOrBuilder.java | 44 +- .../storage/v2/CreateHmacKeyResponse.java | 369 +- .../v2/CreateHmacKeyResponseOrBuilder.java | 29 +- .../v2/CreateNotificationConfigRequest.java | 499 +- ...ateNotificationConfigRequestOrBuilder.java | 96 + .../com/google/storage/v2/CryptoKeyName.java | 0 .../google/storage/v2/CustomerEncryption.java | 342 +- .../v2/CustomerEncryptionOrBuilder.java | 30 +- .../storage/v2/DeleteBucketRequest.java | 420 +- .../v2/DeleteBucketRequestOrBuilder.java | 47 +- .../storage/v2/DeleteHmacKeyRequest.java | 412 +- .../v2/DeleteHmacKeyRequestOrBuilder.java | 44 +- .../v2/DeleteNotificationConfigRequest.java | 353 +- ...eteNotificationConfigRequestOrBuilder.java | 55 + .../storage/v2/DeleteObjectRequest.java | 722 +- .../v2/DeleteObjectRequestOrBuilder.java | 79 +- .../google/storage/v2/GetBucketRequest.java | 495 +- .../storage/v2/GetBucketRequestOrBuilder.java | 55 +- .../google/storage/v2/GetHmacKeyRequest.java | 409 +- .../v2/GetHmacKeyRequestOrBuilder.java | 44 +- .../v2/GetNotificationConfigRequest.java | 347 +- ...GetNotificationConfigRequestOrBuilder.java | 59 + .../google/storage/v2/GetObjectRequest.java | 838 +- .../storage/v2/GetObjectRequestOrBuilder.java | 93 +- .../storage/v2/GetServiceAccountRequest.java | 340 +- .../v2/GetServiceAccountRequestOrBuilder.java | 57 + .../google/storage/v2/HmacKeyMetadata.java | 963 +- .../storage/v2/HmacKeyMetadataOrBuilder.java | 114 +- .../google/storage/v2/ListBucketsRequest.java | 594 +- .../v2/ListBucketsRequestOrBuilder.java | 64 +- .../storage/v2/ListBucketsResponse.java | 474 +- .../v2/ListBucketsResponseOrBuilder.java | 46 +- .../storage/v2/ListHmacKeysRequest.java | 551 +- .../v2/ListHmacKeysRequestOrBuilder.java | 59 +- .../storage/v2/ListHmacKeysResponse.java | 469 +- .../v2/ListHmacKeysResponseOrBuilder.java | 45 +- .../v2/ListNotificationConfigsRequest.java | 453 +- ...stNotificationConfigsRequestOrBuilder.java | 47 +- .../v2/ListNotificationConfigsResponse.java | 464 +- ...tNotificationConfigsResponseOrBuilder.java | 45 +- .../google/storage/v2/ListObjectsRequest.java | 1020 +- .../v2/ListObjectsRequestOrBuilder.java | 112 +- .../storage/v2/ListObjectsResponse.java | 582 +- .../v2/ListObjectsResponseOrBuilder.java | 64 +- .../v2/LockBucketRetentionPolicyRequest.java | 387 +- ...BucketRetentionPolicyRequestOrBuilder.java | 69 + .../google/storage/v2/NotificationConfig.java | 929 +- .../storage/v2/NotificationConfigName.java | 0 .../v2/NotificationConfigOrBuilder.java | 111 +- .../java/com/google/storage/v2/Object.java | 2958 +++-- .../storage/v2/ObjectAccessControl.java | 915 +- .../v2/ObjectAccessControlOrBuilder.java | 98 +- .../google/storage/v2/ObjectChecksums.java | 306 +- .../storage/v2/ObjectChecksumsOrBuilder.java | 27 +- .../google/storage/v2/ObjectOrBuilder.java | 348 +- .../java/com/google/storage/v2/Owner.java | 362 +- .../com/google/storage/v2/OwnerOrBuilder.java | 36 +- .../com/google/storage/v2/ProjectName.java | 0 .../com/google/storage/v2/ProjectTeam.java | 377 +- .../storage/v2/ProjectTeamOrBuilder.java | 36 +- .../storage/v2/QueryWriteStatusRequest.java | 428 +- .../v2/QueryWriteStatusRequestOrBuilder.java | 35 +- .../storage/v2/QueryWriteStatusResponse.java | 433 +- .../v2/QueryWriteStatusResponseOrBuilder.java | 32 +- .../google/storage/v2/ReadObjectRequest.java | 870 +- .../v2/ReadObjectRequestOrBuilder.java | 93 +- .../google/storage/v2/ReadObjectResponse.java | 610 +- .../v2/ReadObjectResponseOrBuilder.java | 50 +- .../storage/v2/RestoreObjectRequest.java | 762 +- .../v2/RestoreObjectRequestOrBuilder.java | 85 +- .../storage/v2/RewriteObjectRequest.java | 1695 ++- .../v2/RewriteObjectRequestOrBuilder.java | 198 +- .../google/storage/v2/RewriteResponse.java | 492 +- .../storage/v2/RewriteResponseOrBuilder.java | 44 +- .../com/google/storage/v2/ServiceAccount.java | 305 +- .../storage/v2/ServiceAccountOrBuilder.java | 51 + .../google/storage/v2/ServiceConstants.java | 415 +- .../storage/v2/ServiceConstantsOrBuilder.java | 25 + .../v2/StartResumableWriteRequest.java | 604 +- .../StartResumableWriteRequestOrBuilder.java | 54 +- .../v2/StartResumableWriteResponse.java | 319 +- .../StartResumableWriteResponseOrBuilder.java | 27 +- .../com/google/storage/v2/StorageProto.java | 1830 +++ .../storage/v2/UpdateBucketRequest.java | 675 +- .../v2/UpdateBucketRequestOrBuilder.java | 73 +- .../storage/v2/UpdateHmacKeyRequest.java | 468 +- .../v2/UpdateHmacKeyRequestOrBuilder.java | 46 +- .../storage/v2/UpdateObjectRequest.java | 796 +- .../v2/UpdateObjectRequestOrBuilder.java | 84 +- .../google/storage/v2/WriteObjectRequest.java | 873 +- .../v2/WriteObjectRequestOrBuilder.java | 68 +- .../storage/v2/WriteObjectResponse.java | 433 +- .../v2/WriteObjectResponseOrBuilder.java | 32 +- .../google/storage/v2/WriteObjectSpec.java | 617 +- .../storage/v2/WriteObjectSpecOrBuilder.java | 65 +- .../proto/google/storage/v2/storage.proto | 0 202 files changed, 46105 insertions(+), 26923 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 => gapic-google-cloud-storage-v2}/src/main/resources/META-INF/native-image/com.google.storage.v2/reflect-config.json (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/google-cloud-storage-control => google-cloud-storage-control}/src/main/java/com/google/storage/control/v2/StorageControlClient.java (100%) rename {owl-bot-staging/v2/google-cloud-storage-control => google-cloud-storage-control}/src/main/java/com/google/storage/control/v2/StorageControlSettings.java (99%) rename {owl-bot-staging/v2/google-cloud-storage-control => google-cloud-storage-control}/src/main/java/com/google/storage/control/v2/gapic_metadata.json (100%) rename {owl-bot-staging/v2/google-cloud-storage-control => google-cloud-storage-control}/src/main/java/com/google/storage/control/v2/package-info.java (100%) rename {owl-bot-staging/v2/google-cloud-storage-control => google-cloud-storage-control}/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlCallableFactory.java (100%) rename {owl-bot-staging/v2/google-cloud-storage-control => google-cloud-storage-control}/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlStub.java (99%) rename {owl-bot-staging/v2/google-cloud-storage-control => google-cloud-storage-control}/src/main/java/com/google/storage/control/v2/stub/StorageControlStub.java (100%) rename {owl-bot-staging/v2/google-cloud-storage-control => google-cloud-storage-control}/src/main/java/com/google/storage/control/v2/stub/StorageControlStubSettings.java (100%) rename {owl-bot-staging/v2/google-cloud-storage-control => google-cloud-storage-control}/src/main/resources/META-INF/native-image/com.google.storage.control.v2/reflect-config.json (100%) rename {owl-bot-staging/v2/google-cloud-storage-control => google-cloud-storage-control}/src/main/resources/com/google/storage/control/v2/gapic_metadata.json (100%) rename {owl-bot-staging/v2/google-cloud-storage-control => google-cloud-storage-control}/src/test/java/com/google/storage/control/v2/MockStorageControl.java (100%) rename {owl-bot-staging/v2/google-cloud-storage-control => google-cloud-storage-control}/src/test/java/com/google/storage/control/v2/MockStorageControlImpl.java (100%) rename {owl-bot-staging/v2/google-cloud-storage-control => google-cloud-storage-control}/src/test/java/com/google/storage/control/v2/StorageControlClientTest.java (100%) create mode 100644 grpc-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlGrpc.java 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/grpc-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlGrpc.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlProto.java 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-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/BucketName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadata.java (66%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadataOrBuilder.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/CreateFolderRequest.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/CreateFolderRequestOrBuilder.java (69%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/CreateManagedFolderRequest.java (65%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/CreateManagedFolderRequestOrBuilder.java (60%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/DeleteFolderRequest.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/DeleteFolderRequestOrBuilder.java (63%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/DeleteManagedFolderRequest.java (69%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/DeleteManagedFolderRequestOrBuilder.java (66%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/Folder.java (66%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/FolderName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/FolderOrBuilder.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/GetFolderRequest.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/GetFolderRequestOrBuilder.java (63%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/GetManagedFolderRequest.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/GetManagedFolderRequestOrBuilder.java (64%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequest.java (65%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequestOrBuilder.java (54%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/ListFoldersRequest.java (73%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/ListFoldersRequestOrBuilder.java (74%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/ListFoldersResponse.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/ListFoldersResponseOrBuilder.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/ListManagedFoldersRequest.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/ListManagedFoldersRequestOrBuilder.java (62%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/ListManagedFoldersResponse.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/ListManagedFoldersResponseOrBuilder.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/ManagedFolder.java (66%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/ManagedFolderName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/ManagedFolderOrBuilder.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/PendingRenameInfo.java (66%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/PendingRenameInfoOrBuilder.java (51%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/RenameFolderMetadata.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/RenameFolderMetadataOrBuilder.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/RenameFolderRequest.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/RenameFolderRequestOrBuilder.java (68%) create mode 100644 proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlProto.java rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/StorageLayout.java (66%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/StorageLayoutName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/java/com/google/storage/control/v2/StorageLayoutOrBuilder.java (63%) rename {owl-bot-staging/v2/proto-google-cloud-storage-control-v2 => proto-google-cloud-storage-control-v2}/src/main/proto/google/storage/control/v2/storage_control.proto (100%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/BidiWriteObjectRequest.java (76%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/BidiWriteObjectRequestOrBuilder.java (89%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/BidiWriteObjectResponse.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/BidiWriteObjectResponseOrBuilder.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/Bucket.java (75%) 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 (86%) 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 (56%) 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 (57%) 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 (64%) 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 (66%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ContentRangeOrBuilder.java (55%) 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 (78%) 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 (62%) 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 (55%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/DeleteBucketRequest.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/DeleteBucketRequestOrBuilder.java (61%) 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 (54%) 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 (72%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/GetBucketRequestOrBuilder.java (72%) 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 (54%) 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 (75%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/GetObjectRequestOrBuilder.java (83%) 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 (76%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListObjectsRequestOrBuilder.java (83%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ListObjectsResponse.java (72%) 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 (73%) 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 (72%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ObjectChecksumsOrBuilder.java (69%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/ObjectOrBuilder.java (82%) 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 (54%) 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 (52%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/QueryWriteStatusRequest.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/QueryWriteStatusRequestOrBuilder.java (70%) 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 (74%) 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 (74%) 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/RestoreObjectRequest.java (74%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/RestoreObjectRequestOrBuilder.java (81%) 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 (73%) 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 (66%) 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 (74%) 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 (53%) 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 (76%) rename {owl-bot-staging/v2/proto-google-cloud-storage-v2 => proto-google-cloud-storage-v2}/src/main/java/com/google/storage/v2/UpdateBucketRequestOrBuilder.java (83%) 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 (88%) 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/README.md b/README.md index 8db77e2094..0d81e70a5c 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.41.0') +implementation platform('com.google.cloud:libraries-bom:26.42.0') implementation 'com.google.cloud:google-cloud-storage' ``` 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 cc2153d181..8c3a2fdd7f 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 @@ -31,7 +31,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 10750ba70f..1fe477aab0 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 @@ -88,7 +88,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/resources/META-INF/native-image/com.google.storage.v2/reflect-config.json b/gapic-google-cloud-storage-v2/src/main/resources/META-INF/native-image/com.google.storage.v2/reflect-config.json similarity index 100% rename from owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/resources/META-INF/native-image/com.google.storage.v2/reflect-config.json rename to gapic-google-cloud-storage-v2/src/main/resources/META-INF/native-image/com.google.storage.v2/reflect-config.json 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/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlClient.java b/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlClient.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlClient.java rename to google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlClient.java diff --git a/owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlSettings.java b/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlSettings.java similarity index 99% rename from owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlSettings.java rename to google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlSettings.java index dae42a6569..d63f5272a9 100644 --- a/owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlSettings.java +++ b/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/StorageControlSettings.java @@ -28,7 +28,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.longrunning.Operation; diff --git a/owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/gapic_metadata.json b/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/gapic_metadata.json rename to google-cloud-storage-control/src/main/java/com/google/storage/control/v2/gapic_metadata.json diff --git a/owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/package-info.java b/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/package-info.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/package-info.java rename to google-cloud-storage-control/src/main/java/com/google/storage/control/v2/package-info.java diff --git a/owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlCallableFactory.java b/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlCallableFactory.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlCallableFactory.java rename to google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlCallableFactory.java diff --git a/owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlStub.java b/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlStub.java similarity index 99% rename from owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlStub.java rename to google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlStub.java index b3b4374364..b075a0493e 100644 --- a/owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlStub.java +++ b/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/GrpcStorageControlStub.java @@ -51,7 +51,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.UUID; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/StorageControlStub.java b/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/StorageControlStub.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/StorageControlStub.java rename to google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/StorageControlStub.java diff --git a/owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/StorageControlStubSettings.java b/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/StorageControlStubSettings.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/StorageControlStubSettings.java rename to google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/StorageControlStubSettings.java diff --git a/owl-bot-staging/v2/google-cloud-storage-control/src/main/resources/META-INF/native-image/com.google.storage.control.v2/reflect-config.json b/google-cloud-storage-control/src/main/resources/META-INF/native-image/com.google.storage.control.v2/reflect-config.json similarity index 100% rename from owl-bot-staging/v2/google-cloud-storage-control/src/main/resources/META-INF/native-image/com.google.storage.control.v2/reflect-config.json rename to google-cloud-storage-control/src/main/resources/META-INF/native-image/com.google.storage.control.v2/reflect-config.json diff --git a/owl-bot-staging/v2/google-cloud-storage-control/src/main/resources/com/google/storage/control/v2/gapic_metadata.json b/google-cloud-storage-control/src/main/resources/com/google/storage/control/v2/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v2/google-cloud-storage-control/src/main/resources/com/google/storage/control/v2/gapic_metadata.json rename to google-cloud-storage-control/src/main/resources/com/google/storage/control/v2/gapic_metadata.json diff --git a/owl-bot-staging/v2/google-cloud-storage-control/src/test/java/com/google/storage/control/v2/MockStorageControl.java b/google-cloud-storage-control/src/test/java/com/google/storage/control/v2/MockStorageControl.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-storage-control/src/test/java/com/google/storage/control/v2/MockStorageControl.java rename to google-cloud-storage-control/src/test/java/com/google/storage/control/v2/MockStorageControl.java diff --git a/owl-bot-staging/v2/google-cloud-storage-control/src/test/java/com/google/storage/control/v2/MockStorageControlImpl.java b/google-cloud-storage-control/src/test/java/com/google/storage/control/v2/MockStorageControlImpl.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-storage-control/src/test/java/com/google/storage/control/v2/MockStorageControlImpl.java rename to google-cloud-storage-control/src/test/java/com/google/storage/control/v2/MockStorageControlImpl.java diff --git a/owl-bot-staging/v2/google-cloud-storage-control/src/test/java/com/google/storage/control/v2/StorageControlClientTest.java b/google-cloud-storage-control/src/test/java/com/google/storage/control/v2/StorageControlClientTest.java similarity index 100% rename from owl-bot-staging/v2/google-cloud-storage-control/src/test/java/com/google/storage/control/v2/StorageControlClientTest.java rename to google-cloud-storage-control/src/test/java/com/google/storage/control/v2/StorageControlClientTest.java diff --git a/grpc-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlGrpc.java b/grpc-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlGrpc.java new file mode 100644 index 0000000000..8eb00ca7f7 --- /dev/null +++ b/grpc-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlGrpc.java @@ -0,0 +1,1442 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.storage.control.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
            + * StorageControl service includes selected control plane operations.
            + * 
            + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/storage/control/v2/storage_control.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class StorageControlGrpc { + + private StorageControlGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.storage.control.v2.StorageControl"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.storage.control.v2.CreateFolderRequest, com.google.storage.control.v2.Folder> + getCreateFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFolder", + requestType = com.google.storage.control.v2.CreateFolderRequest.class, + responseType = com.google.storage.control.v2.Folder.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.storage.control.v2.CreateFolderRequest, com.google.storage.control.v2.Folder> + getCreateFolderMethod() { + io.grpc.MethodDescriptor< + com.google.storage.control.v2.CreateFolderRequest, com.google.storage.control.v2.Folder> + getCreateFolderMethod; + if ((getCreateFolderMethod = StorageControlGrpc.getCreateFolderMethod) == null) { + synchronized (StorageControlGrpc.class) { + if ((getCreateFolderMethod = StorageControlGrpc.getCreateFolderMethod) == null) { + StorageControlGrpc.getCreateFolderMethod = + getCreateFolderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.CreateFolderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.Folder.getDefaultInstance())) + .setSchemaDescriptor( + new StorageControlMethodDescriptorSupplier("CreateFolder")) + .build(); + } + } + } + return getCreateFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.storage.control.v2.DeleteFolderRequest, com.google.protobuf.Empty> + getDeleteFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFolder", + requestType = com.google.storage.control.v2.DeleteFolderRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.storage.control.v2.DeleteFolderRequest, com.google.protobuf.Empty> + getDeleteFolderMethod() { + io.grpc.MethodDescriptor< + com.google.storage.control.v2.DeleteFolderRequest, com.google.protobuf.Empty> + getDeleteFolderMethod; + if ((getDeleteFolderMethod = StorageControlGrpc.getDeleteFolderMethod) == null) { + synchronized (StorageControlGrpc.class) { + if ((getDeleteFolderMethod = StorageControlGrpc.getDeleteFolderMethod) == null) { + StorageControlGrpc.getDeleteFolderMethod = + getDeleteFolderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.DeleteFolderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new StorageControlMethodDescriptorSupplier("DeleteFolder")) + .build(); + } + } + } + return getDeleteFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.storage.control.v2.GetFolderRequest, com.google.storage.control.v2.Folder> + getGetFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFolder", + requestType = com.google.storage.control.v2.GetFolderRequest.class, + responseType = com.google.storage.control.v2.Folder.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.storage.control.v2.GetFolderRequest, com.google.storage.control.v2.Folder> + getGetFolderMethod() { + io.grpc.MethodDescriptor< + com.google.storage.control.v2.GetFolderRequest, com.google.storage.control.v2.Folder> + getGetFolderMethod; + if ((getGetFolderMethod = StorageControlGrpc.getGetFolderMethod) == null) { + synchronized (StorageControlGrpc.class) { + if ((getGetFolderMethod = StorageControlGrpc.getGetFolderMethod) == null) { + StorageControlGrpc.getGetFolderMethod = + getGetFolderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.GetFolderRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.Folder.getDefaultInstance())) + .setSchemaDescriptor(new StorageControlMethodDescriptorSupplier("GetFolder")) + .build(); + } + } + } + return getGetFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.storage.control.v2.ListFoldersRequest, + com.google.storage.control.v2.ListFoldersResponse> + getListFoldersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFolders", + requestType = com.google.storage.control.v2.ListFoldersRequest.class, + responseType = com.google.storage.control.v2.ListFoldersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.storage.control.v2.ListFoldersRequest, + com.google.storage.control.v2.ListFoldersResponse> + getListFoldersMethod() { + io.grpc.MethodDescriptor< + com.google.storage.control.v2.ListFoldersRequest, + com.google.storage.control.v2.ListFoldersResponse> + getListFoldersMethod; + if ((getListFoldersMethod = StorageControlGrpc.getListFoldersMethod) == null) { + synchronized (StorageControlGrpc.class) { + if ((getListFoldersMethod = StorageControlGrpc.getListFoldersMethod) == null) { + StorageControlGrpc.getListFoldersMethod = + getListFoldersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFolders")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.ListFoldersRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.ListFoldersResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new StorageControlMethodDescriptorSupplier("ListFolders")) + .build(); + } + } + } + return getListFoldersMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.storage.control.v2.RenameFolderRequest, com.google.longrunning.Operation> + getRenameFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RenameFolder", + requestType = com.google.storage.control.v2.RenameFolderRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.storage.control.v2.RenameFolderRequest, com.google.longrunning.Operation> + getRenameFolderMethod() { + io.grpc.MethodDescriptor< + com.google.storage.control.v2.RenameFolderRequest, com.google.longrunning.Operation> + getRenameFolderMethod; + if ((getRenameFolderMethod = StorageControlGrpc.getRenameFolderMethod) == null) { + synchronized (StorageControlGrpc.class) { + if ((getRenameFolderMethod = StorageControlGrpc.getRenameFolderMethod) == null) { + StorageControlGrpc.getRenameFolderMethod = + getRenameFolderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RenameFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.RenameFolderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new StorageControlMethodDescriptorSupplier("RenameFolder")) + .build(); + } + } + } + return getRenameFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.storage.control.v2.GetStorageLayoutRequest, + com.google.storage.control.v2.StorageLayout> + getGetStorageLayoutMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetStorageLayout", + requestType = com.google.storage.control.v2.GetStorageLayoutRequest.class, + responseType = com.google.storage.control.v2.StorageLayout.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.storage.control.v2.GetStorageLayoutRequest, + com.google.storage.control.v2.StorageLayout> + getGetStorageLayoutMethod() { + io.grpc.MethodDescriptor< + com.google.storage.control.v2.GetStorageLayoutRequest, + com.google.storage.control.v2.StorageLayout> + getGetStorageLayoutMethod; + if ((getGetStorageLayoutMethod = StorageControlGrpc.getGetStorageLayoutMethod) == null) { + synchronized (StorageControlGrpc.class) { + if ((getGetStorageLayoutMethod = StorageControlGrpc.getGetStorageLayoutMethod) == null) { + StorageControlGrpc.getGetStorageLayoutMethod = + getGetStorageLayoutMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetStorageLayout")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.GetStorageLayoutRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.StorageLayout.getDefaultInstance())) + .setSchemaDescriptor( + new StorageControlMethodDescriptorSupplier("GetStorageLayout")) + .build(); + } + } + } + return getGetStorageLayoutMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.storage.control.v2.CreateManagedFolderRequest, + com.google.storage.control.v2.ManagedFolder> + getCreateManagedFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateManagedFolder", + requestType = com.google.storage.control.v2.CreateManagedFolderRequest.class, + responseType = com.google.storage.control.v2.ManagedFolder.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.storage.control.v2.CreateManagedFolderRequest, + com.google.storage.control.v2.ManagedFolder> + getCreateManagedFolderMethod() { + io.grpc.MethodDescriptor< + com.google.storage.control.v2.CreateManagedFolderRequest, + com.google.storage.control.v2.ManagedFolder> + getCreateManagedFolderMethod; + if ((getCreateManagedFolderMethod = StorageControlGrpc.getCreateManagedFolderMethod) == null) { + synchronized (StorageControlGrpc.class) { + if ((getCreateManagedFolderMethod = StorageControlGrpc.getCreateManagedFolderMethod) + == null) { + StorageControlGrpc.getCreateManagedFolderMethod = + getCreateManagedFolderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateManagedFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.CreateManagedFolderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.ManagedFolder.getDefaultInstance())) + .setSchemaDescriptor( + new StorageControlMethodDescriptorSupplier("CreateManagedFolder")) + .build(); + } + } + } + return getCreateManagedFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.storage.control.v2.DeleteManagedFolderRequest, com.google.protobuf.Empty> + getDeleteManagedFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteManagedFolder", + requestType = com.google.storage.control.v2.DeleteManagedFolderRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.storage.control.v2.DeleteManagedFolderRequest, com.google.protobuf.Empty> + getDeleteManagedFolderMethod() { + io.grpc.MethodDescriptor< + com.google.storage.control.v2.DeleteManagedFolderRequest, com.google.protobuf.Empty> + getDeleteManagedFolderMethod; + if ((getDeleteManagedFolderMethod = StorageControlGrpc.getDeleteManagedFolderMethod) == null) { + synchronized (StorageControlGrpc.class) { + if ((getDeleteManagedFolderMethod = StorageControlGrpc.getDeleteManagedFolderMethod) + == null) { + StorageControlGrpc.getDeleteManagedFolderMethod = + getDeleteManagedFolderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteManagedFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.DeleteManagedFolderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new StorageControlMethodDescriptorSupplier("DeleteManagedFolder")) + .build(); + } + } + } + return getDeleteManagedFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.storage.control.v2.GetManagedFolderRequest, + com.google.storage.control.v2.ManagedFolder> + getGetManagedFolderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetManagedFolder", + requestType = com.google.storage.control.v2.GetManagedFolderRequest.class, + responseType = com.google.storage.control.v2.ManagedFolder.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.storage.control.v2.GetManagedFolderRequest, + com.google.storage.control.v2.ManagedFolder> + getGetManagedFolderMethod() { + io.grpc.MethodDescriptor< + com.google.storage.control.v2.GetManagedFolderRequest, + com.google.storage.control.v2.ManagedFolder> + getGetManagedFolderMethod; + if ((getGetManagedFolderMethod = StorageControlGrpc.getGetManagedFolderMethod) == null) { + synchronized (StorageControlGrpc.class) { + if ((getGetManagedFolderMethod = StorageControlGrpc.getGetManagedFolderMethod) == null) { + StorageControlGrpc.getGetManagedFolderMethod = + getGetManagedFolderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetManagedFolder")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.GetManagedFolderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.ManagedFolder.getDefaultInstance())) + .setSchemaDescriptor( + new StorageControlMethodDescriptorSupplier("GetManagedFolder")) + .build(); + } + } + } + return getGetManagedFolderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.storage.control.v2.ListManagedFoldersRequest, + com.google.storage.control.v2.ListManagedFoldersResponse> + getListManagedFoldersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListManagedFolders", + requestType = com.google.storage.control.v2.ListManagedFoldersRequest.class, + responseType = com.google.storage.control.v2.ListManagedFoldersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.storage.control.v2.ListManagedFoldersRequest, + com.google.storage.control.v2.ListManagedFoldersResponse> + getListManagedFoldersMethod() { + io.grpc.MethodDescriptor< + com.google.storage.control.v2.ListManagedFoldersRequest, + com.google.storage.control.v2.ListManagedFoldersResponse> + getListManagedFoldersMethod; + if ((getListManagedFoldersMethod = StorageControlGrpc.getListManagedFoldersMethod) == null) { + synchronized (StorageControlGrpc.class) { + if ((getListManagedFoldersMethod = StorageControlGrpc.getListManagedFoldersMethod) + == null) { + StorageControlGrpc.getListManagedFoldersMethod = + getListManagedFoldersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListManagedFolders")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.ListManagedFoldersRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.storage.control.v2.ListManagedFoldersResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new StorageControlMethodDescriptorSupplier("ListManagedFolders")) + .build(); + } + } + } + return getListManagedFoldersMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static StorageControlStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public StorageControlStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new StorageControlStub(channel, callOptions); + } + }; + return StorageControlStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static StorageControlBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public StorageControlBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new StorageControlBlockingStub(channel, callOptions); + } + }; + return StorageControlBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static StorageControlFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public StorageControlFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new StorageControlFutureStub(channel, callOptions); + } + }; + return StorageControlFutureStub.newStub(factory, channel); + } + + /** + * + * + *
            +   * StorageControl service includes selected control plane operations.
            +   * 
            + */ + public interface AsyncService { + + /** + * + * + *
            +     * Creates a new folder. This operation is only applicable to a hierarchical
            +     * namespace enabled bucket.
            +     * 
            + */ + default void createFolder( + com.google.storage.control.v2.CreateFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateFolderMethod(), responseObserver); + } + + /** + * + * + *
            +     * Permanently deletes an empty folder. This operation is only applicable to a
            +     * hierarchical namespace enabled bucket.
            +     * 
            + */ + default void deleteFolder( + com.google.storage.control.v2.DeleteFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteFolderMethod(), responseObserver); + } + + /** + * + * + *
            +     * Returns metadata for the specified folder. This operation is only
            +     * applicable to a hierarchical namespace enabled bucket.
            +     * 
            + */ + default void getFolder( + com.google.storage.control.v2.GetFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFolderMethod(), responseObserver); + } + + /** + * + * + *
            +     * Retrieves a list of folders. This operation is only applicable to a
            +     * hierarchical namespace enabled bucket.
            +     * 
            + */ + default void listFolders( + com.google.storage.control.v2.ListFoldersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListFoldersMethod(), responseObserver); + } + + /** + * + * + *
            +     * Renames a source folder to a destination folder. This operation is only
            +     * applicable to a hierarchical namespace enabled bucket. During a rename, the
            +     * source and destination folders are locked until the long running operation
            +     * completes.
            +     * 
            + */ + default void renameFolder( + com.google.storage.control.v2.RenameFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRenameFolderMethod(), responseObserver); + } + + /** + * + * + *
            +     * Returns the storage layout configuration for a given bucket.
            +     * 
            + */ + default void getStorageLayout( + com.google.storage.control.v2.GetStorageLayoutRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetStorageLayoutMethod(), responseObserver); + } + + /** + * + * + *
            +     * Creates a new managed folder.
            +     * 
            + */ + default void createManagedFolder( + com.google.storage.control.v2.CreateManagedFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateManagedFolderMethod(), responseObserver); + } + + /** + * + * + *
            +     * Permanently deletes an empty managed folder.
            +     * 
            + */ + default void deleteManagedFolder( + com.google.storage.control.v2.DeleteManagedFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteManagedFolderMethod(), responseObserver); + } + + /** + * + * + *
            +     * Returns metadata for the specified managed folder.
            +     * 
            + */ + default void getManagedFolder( + com.google.storage.control.v2.GetManagedFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetManagedFolderMethod(), responseObserver); + } + + /** + * + * + *
            +     * Retrieves a list of managed folders for a given bucket.
            +     * 
            + */ + default void listManagedFolders( + com.google.storage.control.v2.ListManagedFoldersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListManagedFoldersMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service StorageControl. + * + *
            +   * StorageControl service includes selected control plane operations.
            +   * 
            + */ + public abstract static class StorageControlImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return StorageControlGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service StorageControl. + * + *
            +   * StorageControl service includes selected control plane operations.
            +   * 
            + */ + public static final class StorageControlStub + extends io.grpc.stub.AbstractAsyncStub { + private StorageControlStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected StorageControlStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new StorageControlStub(channel, callOptions); + } + + /** + * + * + *
            +     * Creates a new folder. This operation is only applicable to a hierarchical
            +     * namespace enabled bucket.
            +     * 
            + */ + public void createFolder( + com.google.storage.control.v2.CreateFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFolderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Permanently deletes an empty folder. This operation is only applicable to a
            +     * hierarchical namespace enabled bucket.
            +     * 
            + */ + public void deleteFolder( + com.google.storage.control.v2.DeleteFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFolderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Returns metadata for the specified folder. This operation is only
            +     * applicable to a hierarchical namespace enabled bucket.
            +     * 
            + */ + public void getFolder( + com.google.storage.control.v2.GetFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFolderMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
            +     * Retrieves a list of folders. This operation is only applicable to a
            +     * hierarchical namespace enabled bucket.
            +     * 
            + */ + public void listFolders( + com.google.storage.control.v2.ListFoldersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFoldersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Renames a source folder to a destination folder. This operation is only
            +     * applicable to a hierarchical namespace enabled bucket. During a rename, the
            +     * source and destination folders are locked until the long running operation
            +     * completes.
            +     * 
            + */ + public void renameFolder( + com.google.storage.control.v2.RenameFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRenameFolderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Returns the storage layout configuration for a given bucket.
            +     * 
            + */ + public void getStorageLayout( + com.google.storage.control.v2.GetStorageLayoutRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetStorageLayoutMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Creates a new managed folder.
            +     * 
            + */ + public void createManagedFolder( + com.google.storage.control.v2.CreateManagedFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateManagedFolderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Permanently deletes an empty managed folder.
            +     * 
            + */ + public void deleteManagedFolder( + com.google.storage.control.v2.DeleteManagedFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteManagedFolderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Returns metadata for the specified managed folder.
            +     * 
            + */ + public void getManagedFolder( + com.google.storage.control.v2.GetManagedFolderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetManagedFolderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Retrieves a list of managed folders for a given bucket.
            +     * 
            + */ + public void listManagedFolders( + com.google.storage.control.v2.ListManagedFoldersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListManagedFoldersMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service StorageControl. + * + *
            +   * StorageControl service includes selected control plane operations.
            +   * 
            + */ + public static final class StorageControlBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private StorageControlBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected StorageControlBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new StorageControlBlockingStub(channel, callOptions); + } + + /** + * + * + *
            +     * Creates a new folder. This operation is only applicable to a hierarchical
            +     * namespace enabled bucket.
            +     * 
            + */ + public com.google.storage.control.v2.Folder createFolder( + com.google.storage.control.v2.CreateFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Permanently deletes an empty folder. This operation is only applicable to a
            +     * hierarchical namespace enabled bucket.
            +     * 
            + */ + public com.google.protobuf.Empty deleteFolder( + com.google.storage.control.v2.DeleteFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Returns metadata for the specified folder. This operation is only
            +     * applicable to a hierarchical namespace enabled bucket.
            +     * 
            + */ + public com.google.storage.control.v2.Folder getFolder( + com.google.storage.control.v2.GetFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Retrieves a list of folders. This operation is only applicable to a
            +     * hierarchical namespace enabled bucket.
            +     * 
            + */ + public com.google.storage.control.v2.ListFoldersResponse listFolders( + com.google.storage.control.v2.ListFoldersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFoldersMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Renames a source folder to a destination folder. This operation is only
            +     * applicable to a hierarchical namespace enabled bucket. During a rename, the
            +     * source and destination folders are locked until the long running operation
            +     * completes.
            +     * 
            + */ + public com.google.longrunning.Operation renameFolder( + com.google.storage.control.v2.RenameFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRenameFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Returns the storage layout configuration for a given bucket.
            +     * 
            + */ + public com.google.storage.control.v2.StorageLayout getStorageLayout( + com.google.storage.control.v2.GetStorageLayoutRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetStorageLayoutMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Creates a new managed folder.
            +     * 
            + */ + public com.google.storage.control.v2.ManagedFolder createManagedFolder( + com.google.storage.control.v2.CreateManagedFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateManagedFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Permanently deletes an empty managed folder.
            +     * 
            + */ + public com.google.protobuf.Empty deleteManagedFolder( + com.google.storage.control.v2.DeleteManagedFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteManagedFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Returns metadata for the specified managed folder.
            +     * 
            + */ + public com.google.storage.control.v2.ManagedFolder getManagedFolder( + com.google.storage.control.v2.GetManagedFolderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetManagedFolderMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Retrieves a list of managed folders for a given bucket.
            +     * 
            + */ + public com.google.storage.control.v2.ListManagedFoldersResponse listManagedFolders( + com.google.storage.control.v2.ListManagedFoldersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListManagedFoldersMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service StorageControl. + * + *
            +   * StorageControl service includes selected control plane operations.
            +   * 
            + */ + public static final class StorageControlFutureStub + extends io.grpc.stub.AbstractFutureStub { + private StorageControlFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected StorageControlFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new StorageControlFutureStub(channel, callOptions); + } + + /** + * + * + *
            +     * Creates a new folder. This operation is only applicable to a hierarchical
            +     * namespace enabled bucket.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + createFolder(com.google.storage.control.v2.CreateFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFolderMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Permanently deletes an empty folder. This operation is only applicable to a
            +     * hierarchical namespace enabled bucket.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + deleteFolder(com.google.storage.control.v2.DeleteFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFolderMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Returns metadata for the specified folder. This operation is only
            +     * applicable to a hierarchical namespace enabled bucket.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + getFolder(com.google.storage.control.v2.GetFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFolderMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Retrieves a list of folders. This operation is only applicable to a
            +     * hierarchical namespace enabled bucket.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.storage.control.v2.ListFoldersResponse> + listFolders(com.google.storage.control.v2.ListFoldersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFoldersMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Renames a source folder to a destination folder. This operation is only
            +     * applicable to a hierarchical namespace enabled bucket. During a rename, the
            +     * source and destination folders are locked until the long running operation
            +     * completes.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + renameFolder(com.google.storage.control.v2.RenameFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRenameFolderMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Returns the storage layout configuration for a given bucket.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.storage.control.v2.StorageLayout> + getStorageLayout(com.google.storage.control.v2.GetStorageLayoutRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetStorageLayoutMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Creates a new managed folder.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.storage.control.v2.ManagedFolder> + createManagedFolder(com.google.storage.control.v2.CreateManagedFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateManagedFolderMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Permanently deletes an empty managed folder.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + deleteManagedFolder(com.google.storage.control.v2.DeleteManagedFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteManagedFolderMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Returns metadata for the specified managed folder.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.storage.control.v2.ManagedFolder> + getManagedFolder(com.google.storage.control.v2.GetManagedFolderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetManagedFolderMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Retrieves a list of managed folders for a given bucket.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.storage.control.v2.ListManagedFoldersResponse> + listManagedFolders(com.google.storage.control.v2.ListManagedFoldersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListManagedFoldersMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_FOLDER = 0; + private static final int METHODID_DELETE_FOLDER = 1; + private static final int METHODID_GET_FOLDER = 2; + private static final int METHODID_LIST_FOLDERS = 3; + private static final int METHODID_RENAME_FOLDER = 4; + private static final int METHODID_GET_STORAGE_LAYOUT = 5; + private static final int METHODID_CREATE_MANAGED_FOLDER = 6; + private static final int METHODID_DELETE_MANAGED_FOLDER = 7; + private static final int METHODID_GET_MANAGED_FOLDER = 8; + private static final int METHODID_LIST_MANAGED_FOLDERS = 9; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_FOLDER: + serviceImpl.createFolder( + (com.google.storage.control.v2.CreateFolderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_FOLDER: + serviceImpl.deleteFolder( + (com.google.storage.control.v2.DeleteFolderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_FOLDER: + serviceImpl.getFolder( + (com.google.storage.control.v2.GetFolderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_FOLDERS: + serviceImpl.listFolders( + (com.google.storage.control.v2.ListFoldersRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_RENAME_FOLDER: + serviceImpl.renameFolder( + (com.google.storage.control.v2.RenameFolderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_STORAGE_LAYOUT: + serviceImpl.getStorageLayout( + (com.google.storage.control.v2.GetStorageLayoutRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_MANAGED_FOLDER: + serviceImpl.createManagedFolder( + (com.google.storage.control.v2.CreateManagedFolderRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_MANAGED_FOLDER: + serviceImpl.deleteManagedFolder( + (com.google.storage.control.v2.DeleteManagedFolderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_MANAGED_FOLDER: + serviceImpl.getManagedFolder( + (com.google.storage.control.v2.GetManagedFolderRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_MANAGED_FOLDERS: + serviceImpl.listManagedFolders( + (com.google.storage.control.v2.ListManagedFoldersRequest) request, + (io.grpc.stub.StreamObserver< + com.google.storage.control.v2.ListManagedFoldersResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.control.v2.CreateFolderRequest, + com.google.storage.control.v2.Folder>(service, METHODID_CREATE_FOLDER))) + .addMethod( + getDeleteFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.control.v2.DeleteFolderRequest, com.google.protobuf.Empty>( + service, METHODID_DELETE_FOLDER))) + .addMethod( + getGetFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.control.v2.GetFolderRequest, + com.google.storage.control.v2.Folder>(service, METHODID_GET_FOLDER))) + .addMethod( + getListFoldersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.control.v2.ListFoldersRequest, + com.google.storage.control.v2.ListFoldersResponse>( + service, METHODID_LIST_FOLDERS))) + .addMethod( + getRenameFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.control.v2.RenameFolderRequest, + com.google.longrunning.Operation>(service, METHODID_RENAME_FOLDER))) + .addMethod( + getGetStorageLayoutMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.control.v2.GetStorageLayoutRequest, + com.google.storage.control.v2.StorageLayout>( + service, METHODID_GET_STORAGE_LAYOUT))) + .addMethod( + getCreateManagedFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.control.v2.CreateManagedFolderRequest, + com.google.storage.control.v2.ManagedFolder>( + service, METHODID_CREATE_MANAGED_FOLDER))) + .addMethod( + getDeleteManagedFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.control.v2.DeleteManagedFolderRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_MANAGED_FOLDER))) + .addMethod( + getGetManagedFolderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.control.v2.GetManagedFolderRequest, + com.google.storage.control.v2.ManagedFolder>( + service, METHODID_GET_MANAGED_FOLDER))) + .addMethod( + getListManagedFoldersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.control.v2.ListManagedFoldersRequest, + com.google.storage.control.v2.ListManagedFoldersResponse>( + service, METHODID_LIST_MANAGED_FOLDERS))) + .build(); + } + + private abstract static class StorageControlBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + StorageControlBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.storage.control.v2.StorageControlProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("StorageControl"); + } + } + + private static final class StorageControlFileDescriptorSupplier + extends StorageControlBaseDescriptorSupplier { + StorageControlFileDescriptorSupplier() {} + } + + private static final class StorageControlMethodDescriptorSupplier + extends StorageControlBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + StorageControlMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (StorageControlGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new StorageControlFileDescriptorSupplier()) + .addMethod(getCreateFolderMethod()) + .addMethod(getDeleteFolderMethod()) + .addMethod(getGetFolderMethod()) + .addMethod(getListFoldersMethod()) + .addMethod(getRenameFolderMethod()) + .addMethod(getGetStorageLayoutMethod()) + .addMethod(getCreateManagedFolderMethod()) + .addMethod(getDeleteManagedFolderMethod()) + .addMethod(getGetManagedFolderMethod()) + .addMethod(getListManagedFoldersMethod()) + .build(); + } + } + } + return result; + } +} 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 b49ea3a8d6..44d911f6b5 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 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.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,1043 +52,1394 @@ private StorageGrpc() {}
               public static final java.lang.String SERVICE_NAME = "google.storage.v2.Storage";
             
               // Static method descriptors that strictly reflect the proto.
            -  private static volatile io.grpc.MethodDescriptor 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 getRestoreObjectMethod;
            +  private static volatile io.grpc.MethodDescriptor<
            +          com.google.storage.v2.RestoreObjectRequest, com.google.storage.v2.Object>
            +      getRestoreObjectMethod;
             
               @io.grpc.stub.annotations.RpcMethod(
                   fullMethodName = SERVICE_NAME + '/' + "RestoreObject",
                   requestType = com.google.storage.v2.RestoreObjectRequest.class,
                   responseType = com.google.storage.v2.Object.class,
                   methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
            -  public static io.grpc.MethodDescriptor getRestoreObjectMethod() {
            -    io.grpc.MethodDescriptor getRestoreObjectMethod;
            +  public static io.grpc.MethodDescriptor<
            +          com.google.storage.v2.RestoreObjectRequest, com.google.storage.v2.Object>
            +      getRestoreObjectMethod() {
            +    io.grpc.MethodDescriptor<
            +            com.google.storage.v2.RestoreObjectRequest, com.google.storage.v2.Object>
            +        getRestoreObjectMethod;
                 if ((getRestoreObjectMethod = StorageGrpc.getRestoreObjectMethod) == null) {
                   synchronized (StorageGrpc.class) {
                     if ((getRestoreObjectMethod = StorageGrpc.getRestoreObjectMethod) == null) {
            -          StorageGrpc.getRestoreObjectMethod = getRestoreObjectMethod =
            -              io.grpc.MethodDescriptor.newBuilder()
            -              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            -              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RestoreObject"))
            -              .setSampledToLocalTracing(true)
            -              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            -                  com.google.storage.v2.RestoreObjectRequest.getDefaultInstance()))
            -              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            -                  com.google.storage.v2.Object.getDefaultInstance()))
            -              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("RestoreObject"))
            -              .build();
            +          StorageGrpc.getRestoreObjectMethod =
            +              getRestoreObjectMethod =
            +                  io.grpc.MethodDescriptor
            +                      .
            +                          newBuilder()
            +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
            +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RestoreObject"))
            +                      .setSampledToLocalTracing(true)
            +                      .setRequestMarshaller(
            +                          io.grpc.protobuf.ProtoUtils.marshaller(
            +                              com.google.storage.v2.RestoreObjectRequest.getDefaultInstance()))
            +                      .setResponseMarshaller(
            +                          io.grpc.protobuf.ProtoUtils.marshaller(
            +                              com.google.storage.v2.Object.getDefaultInstance()))
            +                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("RestoreObject"))
            +                      .build();
                     }
                   }
                 }
                 return getRestoreObjectMethod;
               }
             
            -  private static volatile io.grpc.MethodDescriptor 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 getBidiWriteObjectMethod;
            +  private static volatile io.grpc.MethodDescriptor<
            +          com.google.storage.v2.BidiWriteObjectRequest,
            +          com.google.storage.v2.BidiWriteObjectResponse>
            +      getBidiWriteObjectMethod;
             
               @io.grpc.stub.annotations.RpcMethod(
                   fullMethodName = SERVICE_NAME + '/' + "BidiWriteObject",
                   requestType = com.google.storage.v2.BidiWriteObjectRequest.class,
                   responseType = com.google.storage.v2.BidiWriteObjectResponse.class,
                   methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
            -  public static io.grpc.MethodDescriptor getBidiWriteObjectMethod() {
            -    io.grpc.MethodDescriptor getBidiWriteObjectMethod;
            +  public static io.grpc.MethodDescriptor<
            +          com.google.storage.v2.BidiWriteObjectRequest,
            +          com.google.storage.v2.BidiWriteObjectResponse>
            +      getBidiWriteObjectMethod() {
            +    io.grpc.MethodDescriptor<
            +            com.google.storage.v2.BidiWriteObjectRequest,
            +            com.google.storage.v2.BidiWriteObjectResponse>
            +        getBidiWriteObjectMethod;
                 if ((getBidiWriteObjectMethod = StorageGrpc.getBidiWriteObjectMethod) == null) {
                   synchronized (StorageGrpc.class) {
                     if ((getBidiWriteObjectMethod = StorageGrpc.getBidiWriteObjectMethod) == null) {
            -          StorageGrpc.getBidiWriteObjectMethod = getBidiWriteObjectMethod =
            -              io.grpc.MethodDescriptor.newBuilder()
            -              .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
            -              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BidiWriteObject"))
            -              .setSampledToLocalTracing(true)
            -              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            -                  com.google.storage.v2.BidiWriteObjectRequest.getDefaultInstance()))
            -              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
            -                  com.google.storage.v2.BidiWriteObjectResponse.getDefaultInstance()))
            -              .setSchemaDescriptor(new StorageMethodDescriptorSupplier("BidiWriteObject"))
            -              .build();
            +          StorageGrpc.getBidiWriteObjectMethod =
            +              getBidiWriteObjectMethod =
            +                  io.grpc.MethodDescriptor
            +                      .
            +                          newBuilder()
            +                      .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
            +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BidiWriteObject"))
            +                      .setSampledToLocalTracing(true)
            +                      .setRequestMarshaller(
            +                          io.grpc.protobuf.ProtoUtils.marshaller(
            +                              com.google.storage.v2.BidiWriteObjectRequest.getDefaultInstance()))
            +                      .setResponseMarshaller(
            +                          io.grpc.protobuf.ProtoUtils.marshaller(
            +                              com.google.storage.v2.BidiWriteObjectResponse.getDefaultInstance()))
            +                      .setSchemaDescriptor(new StorageMethodDescriptorSupplier("BidiWriteObject"))
            +                      .build();
                     }
                   }
                 }
                 return getBidiWriteObjectMethod;
               }
             
            -  private static volatile io.grpc.MethodDescriptor 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
            @@ -1096,80 +1464,109 @@ 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.
                  * The `resource` field in the request should be
                  * `projects/_/buckets/{bucket}`.
                  * 
            */ - default void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, + default void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIamPolicyMethod(), responseObserver); } /** + * + * *
                  * Updates an IAM policy for the specified bucket.
                  * The `resource` field in the request should be
                  * `projects/_/buckets/{bucket}`.
                  * 
            */ - default void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, + default void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetIamPolicyMethod(), responseObserver); } /** + * + * *
                  * Tests a set of permissions on the given bucket or object to see which, if
                  * any, are held by the caller.
            @@ -1178,42 +1575,59 @@ default void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request,
                  * `projects/_/buckets/{bucket}/objects/{object}` for an object.
                  * 
            */ - default void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); + default void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getTestIamPermissionsMethod(), responseObserver); } /** + * + * *
                  * Updates a bucket. Equivalent to JSON API's storage.buckets.patch method.
                  * 
            */ - default void updateBucket(com.google.storage.v2.UpdateBucketRequest request, + default void updateBucket( + com.google.storage.v2.UpdateBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateBucketMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateBucketMethod(), responseObserver); } /** + * + * *
                  * Permanently deletes a NotificationConfig.
                  * 
            */ - default void deleteNotificationConfig(com.google.storage.v2.DeleteNotificationConfigRequest request, + default void deleteNotificationConfig( + com.google.storage.v2.DeleteNotificationConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteNotificationConfigMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteNotificationConfigMethod(), responseObserver); } /** + * + * *
                  * View a NotificationConfig.
                  * 
            */ - default void getNotificationConfig(com.google.storage.v2.GetNotificationConfigRequest request, + default void getNotificationConfig( + com.google.storage.v2.GetNotificationConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNotificationConfigMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetNotificationConfigMethod(), responseObserver); } /** + * + * *
                  * Creates a NotificationConfig for a given bucket.
                  * These NotificationConfigs, when triggered, publish messages to the
            @@ -1221,33 +1635,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
            @@ -1256,22 +1683,30 @@ 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); } /** + * + * *
                  * Restores a soft-deleted object.
                  * 
            */ - default void restoreObject(com.google.storage.v2.RestoreObjectRequest request, + default void restoreObject( + com.google.storage.v2.RestoreObjectRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRestoreObjectMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRestoreObjectMethod(), responseObserver); } /** + * + * *
                  * Cancels an in-progress resumable upload.
                  * Any attempts to write to the resumable upload after cancelling the upload
            @@ -1281,43 +1716,58 @@ default void restoreObject(com.google.storage.v2.RestoreObjectRequest 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
            @@ -1377,10 +1827,13 @@ 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);
                 }
             
                 /**
            +     *
            +     *
                  * 
                  * Stores a new object and metadata.
                  * This is similar to the WriteObject call with the added support for
            @@ -1397,45 +1850,63 @@ default io.grpc.stub.StreamObserver wr
                  * always be sent to the client, regardless of the value of `state_lookup`.
                  * 
            */ - default io.grpc.stub.StreamObserver bidiWriteObject( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getBidiWriteObjectMethod(), responseObserver); + default io.grpc.stub.StreamObserver + bidiWriteObject( + io.grpc.stub.StreamObserver + responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( + getBidiWriteObjectMethod(), responseObserver); } /** + * + * *
                  * Retrieves a list of objects matching the criteria.
                  * 
            */ - default void listObjects(com.google.storage.v2.ListObjectsRequest request, + default void listObjects( + com.google.storage.v2.ListObjectsRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListObjectsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListObjectsMethod(), responseObserver); } /** + * + * *
                  * Rewrites a source object to a destination object. Optionally overrides
                  * metadata.
                  * 
            */ - default void rewriteObject(com.google.storage.v2.RewriteObjectRequest request, + default void rewriteObject( + com.google.storage.v2.RewriteObjectRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRewriteObjectMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRewriteObjectMethod(), responseObserver); } /** + * + * *
                  * Starts a resumable write. How long the write operation remains valid, and
                  * what happens when the write operation becomes invalid, are
                  * service-dependent.
                  * 
            */ - default void startResumableWrite(com.google.storage.v2.StartResumableWriteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartResumableWriteMethod(), responseObserver); + default void startResumableWrite( + com.google.storage.v2.StartResumableWriteRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStartResumableWriteMethod(), responseObserver); } /** + * + * *
                  * Determines the `persisted_size` for an object that is being written, which
                  * can then be used as the `write_offset` for the next `Write()` call.
            @@ -1450,74 +1921,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
            @@ -1539,16 +2037,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
            @@ -1570,101 +2069,133 @@ 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.
                  * The `resource` field in the request should be
                  * `projects/_/buckets/{bucket}`.
                  * 
            */ - public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
                  * Updates an IAM policy for the specified bucket.
                  * The `resource` field in the request should be
                  * `projects/_/buckets/{bucket}`.
                  * 
            */ - public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
                  * Tests a set of permissions on the given bucket or object to see which, if
                  * any, are held by the caller.
            @@ -1673,46 +2204,67 @@ public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request,
                  * `projects/_/buckets/{bucket}/objects/{object}` for an object.
                  * 
            */ - public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
                  * Updates a bucket. Equivalent to JSON API's storage.buckets.patch method.
                  * 
            */ - public void updateBucket(com.google.storage.v2.UpdateBucketRequest request, + public void updateBucket( + com.google.storage.v2.UpdateBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateBucketMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateBucketMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
                  * Permanently deletes a NotificationConfig.
                  * 
            */ - public void deleteNotificationConfig(com.google.storage.v2.DeleteNotificationConfigRequest request, + public void deleteNotificationConfig( + com.google.storage.v2.DeleteNotificationConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteNotificationConfigMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDeleteNotificationConfigMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
                  * View a NotificationConfig.
                  * 
            */ - public void getNotificationConfig(com.google.storage.v2.GetNotificationConfigRequest request, + public void getNotificationConfig( + com.google.storage.v2.GetNotificationConfigRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNotificationConfigMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetNotificationConfigMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
                  * Creates a NotificationConfig for a given bucket.
                  * These NotificationConfigs, when triggered, publish messages to the
            @@ -1720,36 +2272,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
            @@ -1758,24 +2326,34 @@ 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); } /** + * + * *
                  * Restores a soft-deleted object.
                  * 
            */ - public void restoreObject(com.google.storage.v2.RestoreObjectRequest request, + public void restoreObject( + com.google.storage.v2.RestoreObjectRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRestoreObjectMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getRestoreObjectMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
                  * Cancels an in-progress resumable upload.
                  * Any attempts to write to the resumable upload after cancelling the upload
            @@ -1785,47 +2363,64 @@ public void restoreObject(com.google.storage.v2.RestoreObjectRequest 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
            @@ -1890,6 +2485,8 @@ public io.grpc.stub.StreamObserver wri
                 }
             
                 /**
            +     *
            +     *
                  * 
                  * Stores a new object and metadata.
                  * This is similar to the WriteObject call with the added support for
            @@ -1906,49 +2503,69 @@ public io.grpc.stub.StreamObserver wri
                  * always be sent to the client, regardless of the value of `state_lookup`.
                  * 
            */ - public io.grpc.stub.StreamObserver bidiWriteObject( - io.grpc.stub.StreamObserver responseObserver) { + public io.grpc.stub.StreamObserver + bidiWriteObject( + io.grpc.stub.StreamObserver + responseObserver) { return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( getChannel().newCall(getBidiWriteObjectMethod(), getCallOptions()), responseObserver); } /** + * + * *
                  * Retrieves a list of objects matching the criteria.
                  * 
            */ - public void listObjects(com.google.storage.v2.ListObjectsRequest request, + public void listObjects( + com.google.storage.v2.ListObjectsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListObjectsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListObjectsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
                  * Rewrites a source object to a destination object. Optionally overrides
                  * metadata.
                  * 
            */ - public void rewriteObject(com.google.storage.v2.RewriteObjectRequest request, + public void rewriteObject( + com.google.storage.v2.RewriteObjectRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRewriteObjectMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getRewriteObjectMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
                  * Starts a resumable write. How long the write operation remains valid, and
                  * what happens when the write operation becomes invalid, are
                  * service-dependent.
                  * 
            */ - public void startResumableWrite(com.google.storage.v2.StartResumableWriteRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void startResumableWrite( + com.google.storage.v2.StartResumableWriteRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartResumableWriteMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getStartResumableWriteMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
                  * Determines the `persisted_size` for an object that is being written, which
                  * can then be used as the `write_offset` for the next `Write()` call.
            @@ -1963,81 +2580,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
            @@ -2061,28 +2711,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.
                  * 
            @@ -2093,36 +2746,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.
                  * The `resource` field in the request should be
            @@ -2135,6 +2799,8 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque
                 }
             
                 /**
            +     *
            +     *
                  * 
                  * Updates an IAM policy for the specified bucket.
                  * The `resource` field in the request should be
            @@ -2147,6 +2813,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.
            @@ -2155,42 +2823,54 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque
                  * `projects/_/buckets/{bucket}/objects/{object}` for an object.
                  * 
            */ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { + public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( + com.google.iam.v1.TestIamPermissionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } /** + * + * *
                  * Updates a bucket. Equivalent to JSON API's storage.buckets.patch method.
                  * 
            */ - public com.google.storage.v2.Bucket updateBucket(com.google.storage.v2.UpdateBucketRequest request) { + public com.google.storage.v2.Bucket updateBucket( + com.google.storage.v2.UpdateBucketRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateBucketMethod(), getCallOptions(), request); } /** + * + * *
                  * Permanently deletes a NotificationConfig.
                  * 
            */ - public com.google.protobuf.Empty deleteNotificationConfig(com.google.storage.v2.DeleteNotificationConfigRequest request) { + public com.google.protobuf.Empty deleteNotificationConfig( + com.google.storage.v2.DeleteNotificationConfigRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteNotificationConfigMethod(), getCallOptions(), request); } /** + * + * *
                  * View a NotificationConfig.
                  * 
            */ - public com.google.storage.v2.NotificationConfig getNotificationConfig(com.google.storage.v2.GetNotificationConfigRequest request) { + public com.google.storage.v2.NotificationConfig getNotificationConfig( + com.google.storage.v2.GetNotificationConfigRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetNotificationConfigMethod(), getCallOptions(), request); } /** + * + * *
                  * Creates a NotificationConfig for a given bucket.
                  * These NotificationConfigs, when triggered, publish messages to the
            @@ -2198,33 +2878,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
            @@ -2233,22 +2922,28 @@ 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); } /** + * + * *
                  * Restores a soft-deleted object.
                  * 
            */ - public com.google.storage.v2.Object restoreObject(com.google.storage.v2.RestoreObjectRequest request) { + public com.google.storage.v2.Object restoreObject( + com.google.storage.v2.RestoreObjectRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRestoreObjectMethod(), getCallOptions(), request); } /** + * + * *
                  * Cancels an in-progress resumable upload.
                  * Any attempts to write to the resumable upload after cancelling the upload
            @@ -2258,12 +2953,15 @@ public com.google.storage.v2.Object restoreObject(com.google.storage.v2.RestoreO
                  * 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.
                  * 
            @@ -2274,6 +2972,8 @@ public com.google.storage.v2.Object getObject(com.google.storage.v2.GetObjectReq } /** + * + * *
                  * Reads an object's data.
                  * 
            @@ -2285,50 +2985,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.
            @@ -2343,67 +3057,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); } @@ -2411,6 +3144,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
            @@ -2434,99 +3168,114 @@ 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.
                  * The `resource` field in the request should be
                  * `projects/_/buckets/{bucket}`.
                  * 
            */ - public com.google.common.util.concurrent.ListenableFuture getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request) { + public com.google.common.util.concurrent.ListenableFuture + getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); } /** + * + * *
                  * Updates an IAM policy for the specified bucket.
                  * The `resource` field in the request should be
                  * `projects/_/buckets/{bucket}`.
                  * 
            */ - public com.google.common.util.concurrent.ListenableFuture setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request) { + public com.google.common.util.concurrent.ListenableFuture + setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); } /** + * + * *
                  * Tests a set of permissions on the given bucket or object to see which, if
                  * any, are held by the caller.
            @@ -2535,46 +3284,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
            @@ -2582,36 +3341,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
            @@ -2620,24 +3387,28 @@ 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);
                 }
             
                 /**
            +     *
            +     *
                  * 
                  * Restores a soft-deleted object.
                  * 
            */ - public com.google.common.util.concurrent.ListenableFuture restoreObject( - com.google.storage.v2.RestoreObjectRequest request) { + public com.google.common.util.concurrent.ListenableFuture + restoreObject(com.google.storage.v2.RestoreObjectRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRestoreObjectMethod(), getCallOptions()), request); } /** + * + * *
                  * Cancels an in-progress resumable upload.
                  * Any attempts to write to the resumable upload after cancelling the upload
            @@ -2647,72 +3418,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.
            @@ -2727,74 +3513,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); } @@ -2833,11 +3634,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; @@ -2851,124 +3652,169 @@ 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_RESTORE_OBJECT: - serviceImpl.restoreObject((com.google.storage.v2.RestoreObjectRequest) request, + serviceImpl.restoreObject( + (com.google.storage.v2.RestoreObjectRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CANCEL_RESUMABLE_WRITE: - serviceImpl.cancelResumableWrite((com.google.storage.v2.CancelResumableWriteRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.cancelResumableWrite( + (com.google.storage.v2.CancelResumableWriteRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_GET_OBJECT: - serviceImpl.getObject((com.google.storage.v2.GetObjectRequest) request, + serviceImpl.getObject( + (com.google.storage.v2.GetObjectRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_READ_OBJECT: - serviceImpl.readObject((com.google.storage.v2.ReadObjectRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.readObject( + (com.google.storage.v2.ReadObjectRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_UPDATE_OBJECT: - serviceImpl.updateObject((com.google.storage.v2.UpdateObjectRequest) request, + serviceImpl.updateObject( + (com.google.storage.v2.UpdateObjectRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_OBJECTS: - serviceImpl.listObjects((com.google.storage.v2.ListObjectsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.listObjects( + (com.google.storage.v2.ListObjectsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_REWRITE_OBJECT: - serviceImpl.rewriteObject((com.google.storage.v2.RewriteObjectRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.rewriteObject( + (com.google.storage.v2.RewriteObjectRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_START_RESUMABLE_WRITE: - serviceImpl.startResumableWrite((com.google.storage.v2.StartResumableWriteRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.startResumableWrite( + (com.google.storage.v2.StartResumableWriteRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_QUERY_WRITE_STATUS: - serviceImpl.queryWriteStatus((com.google.storage.v2.QueryWriteStatusRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.queryWriteStatus( + (com.google.storage.v2.QueryWriteStatusRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_GET_SERVICE_ACCOUNT: - serviceImpl.getServiceAccount((com.google.storage.v2.GetServiceAccountRequest) request, + serviceImpl.getServiceAccount( + (com.google.storage.v2.GetServiceAccountRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_HMAC_KEY: - serviceImpl.createHmacKey((com.google.storage.v2.CreateHmacKeyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.createHmacKey( + (com.google.storage.v2.CreateHmacKeyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_DELETE_HMAC_KEY: - serviceImpl.deleteHmacKey((com.google.storage.v2.DeleteHmacKeyRequest) request, + serviceImpl.deleteHmacKey( + (com.google.storage.v2.DeleteHmacKeyRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_HMAC_KEY: - serviceImpl.getHmacKey((com.google.storage.v2.GetHmacKeyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.getHmacKey( + (com.google.storage.v2.GetHmacKeyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_LIST_HMAC_KEYS: - serviceImpl.listHmacKeys((com.google.storage.v2.ListHmacKeysRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.listHmacKeys( + (com.google.storage.v2.ListHmacKeysRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_UPDATE_HMAC_KEY: - serviceImpl.updateHmacKey((com.google.storage.v2.UpdateHmacKeyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.updateHmacKey( + (com.google.storage.v2.UpdateHmacKeyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; default: throw new AssertionError(); @@ -2981,11 +3827,15 @@ public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_WRITE_OBJECT: - return (io.grpc.stub.StreamObserver) serviceImpl.writeObject( - (io.grpc.stub.StreamObserver) responseObserver); + return (io.grpc.stub.StreamObserver) + serviceImpl.writeObject( + (io.grpc.stub.StreamObserver) + responseObserver); case METHODID_BIDI_WRITE_OBJECT: - return (io.grpc.stub.StreamObserver) serviceImpl.bidiWriteObject( - (io.grpc.stub.StreamObserver) responseObserver); + return (io.grpc.stub.StreamObserver) + serviceImpl.bidiWriteObject( + (io.grpc.stub.StreamObserver) + responseObserver); default: throw new AssertionError(); } @@ -2995,234 +3845,210 @@ 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( - getRestoreObjectMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.RestoreObjectRequest, - com.google.storage.v2.Object>( - service, METHODID_RESTORE_OBJECT))) + getRestoreObjectMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.RestoreObjectRequest, com.google.storage.v2.Object>( + service, METHODID_RESTORE_OBJECT))) .addMethod( - getCancelResumableWriteMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.CancelResumableWriteRequest, - com.google.storage.v2.CancelResumableWriteResponse>( - service, METHODID_CANCEL_RESUMABLE_WRITE))) + getCancelResumableWriteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.CancelResumableWriteRequest, + com.google.storage.v2.CancelResumableWriteResponse>( + service, METHODID_CANCEL_RESUMABLE_WRITE))) .addMethod( - getGetObjectMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.GetObjectRequest, - com.google.storage.v2.Object>( - service, METHODID_GET_OBJECT))) + getGetObjectMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.GetObjectRequest, com.google.storage.v2.Object>( + service, METHODID_GET_OBJECT))) .addMethod( - getReadObjectMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - com.google.storage.v2.ReadObjectRequest, - com.google.storage.v2.ReadObjectResponse>( - service, METHODID_READ_OBJECT))) + getReadObjectMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + com.google.storage.v2.ReadObjectRequest, + com.google.storage.v2.ReadObjectResponse>(service, METHODID_READ_OBJECT))) .addMethod( - getUpdateObjectMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.UpdateObjectRequest, - com.google.storage.v2.Object>( - service, METHODID_UPDATE_OBJECT))) + getUpdateObjectMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.UpdateObjectRequest, com.google.storage.v2.Object>( + service, METHODID_UPDATE_OBJECT))) .addMethod( - getWriteObjectMethod(), - io.grpc.stub.ServerCalls.asyncClientStreamingCall( - new MethodHandlers< - com.google.storage.v2.WriteObjectRequest, - com.google.storage.v2.WriteObjectResponse>( - service, METHODID_WRITE_OBJECT))) + getWriteObjectMethod(), + io.grpc.stub.ServerCalls.asyncClientStreamingCall( + new MethodHandlers< + com.google.storage.v2.WriteObjectRequest, + com.google.storage.v2.WriteObjectResponse>(service, METHODID_WRITE_OBJECT))) .addMethod( - getBidiWriteObjectMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.storage.v2.BidiWriteObjectRequest, - com.google.storage.v2.BidiWriteObjectResponse>( - service, METHODID_BIDI_WRITE_OBJECT))) + getBidiWriteObjectMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.storage.v2.BidiWriteObjectRequest, + com.google.storage.v2.BidiWriteObjectResponse>( + service, METHODID_BIDI_WRITE_OBJECT))) .addMethod( - getListObjectsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.ListObjectsRequest, - com.google.storage.v2.ListObjectsResponse>( - service, METHODID_LIST_OBJECTS))) + getListObjectsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.ListObjectsRequest, + com.google.storage.v2.ListObjectsResponse>(service, METHODID_LIST_OBJECTS))) .addMethod( - getRewriteObjectMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.RewriteObjectRequest, - com.google.storage.v2.RewriteResponse>( - service, METHODID_REWRITE_OBJECT))) + getRewriteObjectMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.RewriteObjectRequest, + com.google.storage.v2.RewriteResponse>(service, METHODID_REWRITE_OBJECT))) .addMethod( - getStartResumableWriteMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.StartResumableWriteRequest, - com.google.storage.v2.StartResumableWriteResponse>( - service, METHODID_START_RESUMABLE_WRITE))) + getStartResumableWriteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.StartResumableWriteRequest, + com.google.storage.v2.StartResumableWriteResponse>( + service, METHODID_START_RESUMABLE_WRITE))) .addMethod( - getQueryWriteStatusMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.QueryWriteStatusRequest, - com.google.storage.v2.QueryWriteStatusResponse>( - service, METHODID_QUERY_WRITE_STATUS))) + getQueryWriteStatusMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.QueryWriteStatusRequest, + com.google.storage.v2.QueryWriteStatusResponse>( + service, METHODID_QUERY_WRITE_STATUS))) .addMethod( - getGetServiceAccountMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.GetServiceAccountRequest, - com.google.storage.v2.ServiceAccount>( - service, METHODID_GET_SERVICE_ACCOUNT))) + getGetServiceAccountMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.GetServiceAccountRequest, + com.google.storage.v2.ServiceAccount>(service, METHODID_GET_SERVICE_ACCOUNT))) .addMethod( - getCreateHmacKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.CreateHmacKeyRequest, - com.google.storage.v2.CreateHmacKeyResponse>( - service, METHODID_CREATE_HMAC_KEY))) + getCreateHmacKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.CreateHmacKeyRequest, + com.google.storage.v2.CreateHmacKeyResponse>( + service, METHODID_CREATE_HMAC_KEY))) .addMethod( - getDeleteHmacKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.DeleteHmacKeyRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_HMAC_KEY))) + getDeleteHmacKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.DeleteHmacKeyRequest, com.google.protobuf.Empty>( + service, METHODID_DELETE_HMAC_KEY))) .addMethod( - getGetHmacKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.GetHmacKeyRequest, - com.google.storage.v2.HmacKeyMetadata>( - service, METHODID_GET_HMAC_KEY))) + getGetHmacKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.GetHmacKeyRequest, com.google.storage.v2.HmacKeyMetadata>( + service, METHODID_GET_HMAC_KEY))) .addMethod( - getListHmacKeysMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.ListHmacKeysRequest, - com.google.storage.v2.ListHmacKeysResponse>( - service, METHODID_LIST_HMAC_KEYS))) + getListHmacKeysMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.ListHmacKeysRequest, + com.google.storage.v2.ListHmacKeysResponse>(service, METHODID_LIST_HMAC_KEYS))) .addMethod( - getUpdateHmacKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.v2.UpdateHmacKeyRequest, - com.google.storage.v2.HmacKeyMetadata>( - service, METHODID_UPDATE_HMAC_KEY))) + getUpdateHmacKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.storage.v2.UpdateHmacKeyRequest, + com.google.storage.v2.HmacKeyMetadata>(service, METHODID_UPDATE_HMAC_KEY))) .build(); } - private 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 @@ -3236,13 +4062,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 java.lang.String methodName; @@ -3264,41 +4088,43 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (StorageGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new StorageFileDescriptorSupplier()) - .addMethod(getDeleteBucketMethod()) - .addMethod(getGetBucketMethod()) - .addMethod(getCreateBucketMethod()) - .addMethod(getListBucketsMethod()) - .addMethod(getLockBucketRetentionPolicyMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .addMethod(getUpdateBucketMethod()) - .addMethod(getDeleteNotificationConfigMethod()) - .addMethod(getGetNotificationConfigMethod()) - .addMethod(getCreateNotificationConfigMethod()) - .addMethod(getListNotificationConfigsMethod()) - .addMethod(getComposeObjectMethod()) - .addMethod(getDeleteObjectMethod()) - .addMethod(getRestoreObjectMethod()) - .addMethod(getCancelResumableWriteMethod()) - .addMethod(getGetObjectMethod()) - .addMethod(getReadObjectMethod()) - .addMethod(getUpdateObjectMethod()) - .addMethod(getWriteObjectMethod()) - .addMethod(getBidiWriteObjectMethod()) - .addMethod(getListObjectsMethod()) - .addMethod(getRewriteObjectMethod()) - .addMethod(getStartResumableWriteMethod()) - .addMethod(getQueryWriteStatusMethod()) - .addMethod(getGetServiceAccountMethod()) - .addMethod(getCreateHmacKeyMethod()) - .addMethod(getDeleteHmacKeyMethod()) - .addMethod(getGetHmacKeyMethod()) - .addMethod(getListHmacKeysMethod()) - .addMethod(getUpdateHmacKeyMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new StorageFileDescriptorSupplier()) + .addMethod(getDeleteBucketMethod()) + .addMethod(getGetBucketMethod()) + .addMethod(getCreateBucketMethod()) + .addMethod(getListBucketsMethod()) + .addMethod(getLockBucketRetentionPolicyMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getSetIamPolicyMethod()) + .addMethod(getTestIamPermissionsMethod()) + .addMethod(getUpdateBucketMethod()) + .addMethod(getDeleteNotificationConfigMethod()) + .addMethod(getGetNotificationConfigMethod()) + .addMethod(getCreateNotificationConfigMethod()) + .addMethod(getListNotificationConfigsMethod()) + .addMethod(getComposeObjectMethod()) + .addMethod(getDeleteObjectMethod()) + .addMethod(getRestoreObjectMethod()) + .addMethod(getCancelResumableWriteMethod()) + .addMethod(getGetObjectMethod()) + .addMethod(getReadObjectMethod()) + .addMethod(getUpdateObjectMethod()) + .addMethod(getWriteObjectMethod()) + .addMethod(getBidiWriteObjectMethod()) + .addMethod(getListObjectsMethod()) + .addMethod(getRewriteObjectMethod()) + .addMethod(getStartResumableWriteMethod()) + .addMethod(getQueryWriteStatusMethod()) + .addMethod(getGetServiceAccountMethod()) + .addMethod(getCreateHmacKeyMethod()) + .addMethod(getDeleteHmacKeyMethod()) + .addMethod(getGetHmacKeyMethod()) + .addMethod(getListHmacKeysMethod()) + .addMethod(getUpdateHmacKeyMethod()) + .build(); } } } diff --git a/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 f3a73a24b2..0000000000 --- a/owl-bot-staging/v2/gapic-google-cloud-storage-v2/src/main/resources/com/google/storage/v2/gapic_metadata.json +++ /dev/null @@ -1,114 +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": { - "BidiWriteObject": { - "methods": ["bidiWriteObjectCallable"] - }, - "CancelResumableWrite": { - "methods": ["cancelResumableWrite", "cancelResumableWrite", "cancelResumableWriteCallable"] - }, - "ComposeObject": { - "methods": ["composeObject", "composeObjectCallable"] - }, - "CreateBucket": { - "methods": ["createBucket", "createBucket", "createBucket", "createBucketCallable"] - }, - "CreateHmacKey": { - "methods": ["createHmacKey", "createHmacKey", "createHmacKey", "createHmacKeyCallable"] - }, - "CreateNotificationConfig": { - "methods": ["createNotificationConfig", "createNotificationConfig", "createNotificationConfig", "createNotificationConfigCallable"] - }, - "DeleteBucket": { - "methods": ["deleteBucket", "deleteBucket", "deleteBucket", "deleteBucketCallable"] - }, - "DeleteHmacKey": { - "methods": ["deleteHmacKey", "deleteHmacKey", "deleteHmacKey", "deleteHmacKeyCallable"] - }, - "DeleteNotificationConfig": { - "methods": ["deleteNotificationConfig", "deleteNotificationConfig", "deleteNotificationConfig", "deleteNotificationConfigCallable"] - }, - "DeleteObject": { - "methods": ["deleteObject", "deleteObject", "deleteObject", "deleteObject", "deleteObject", "deleteObjectCallable"] - }, - "GetBucket": { - "methods": ["getBucket", "getBucket", "getBucket", "getBucketCallable"] - }, - "GetHmacKey": { - "methods": ["getHmacKey", "getHmacKey", "getHmacKey", "getHmacKeyCallable"] - }, - "GetIamPolicy": { - "methods": ["getIamPolicy", "getIamPolicy", "getIamPolicy", "getIamPolicyCallable"] - }, - "GetNotificationConfig": { - "methods": ["getNotificationConfig", "getNotificationConfig", "getNotificationConfig", "getNotificationConfigCallable"] - }, - "GetObject": { - "methods": ["getObject", "getObject", "getObject", "getObject", "getObject", "getObjectCallable"] - }, - "GetServiceAccount": { - "methods": ["getServiceAccount", "getServiceAccount", "getServiceAccount", "getServiceAccountCallable"] - }, - "ListBuckets": { - "methods": ["listBuckets", "listBuckets", "listBuckets", "listBucketsPagedCallable", "listBucketsCallable"] - }, - "ListHmacKeys": { - "methods": ["listHmacKeys", "listHmacKeys", "listHmacKeys", "listHmacKeysPagedCallable", "listHmacKeysCallable"] - }, - "ListNotificationConfigs": { - "methods": ["listNotificationConfigs", "listNotificationConfigs", "listNotificationConfigs", "listNotificationConfigsPagedCallable", "listNotificationConfigsCallable"] - }, - "ListObjects": { - "methods": ["listObjects", "listObjects", "listObjects", "listObjectsPagedCallable", "listObjectsCallable"] - }, - "LockBucketRetentionPolicy": { - "methods": ["lockBucketRetentionPolicy", "lockBucketRetentionPolicy", "lockBucketRetentionPolicy", "lockBucketRetentionPolicyCallable"] - }, - "QueryWriteStatus": { - "methods": ["queryWriteStatus", "queryWriteStatus", "queryWriteStatusCallable"] - }, - "ReadObject": { - "methods": ["readObjectCallable"] - }, - "RestoreObject": { - "methods": ["restoreObject", "restoreObject", "restoreObject", "restoreObjectCallable"] - }, - "RewriteObject": { - "methods": ["rewriteObject", "rewriteObjectCallable"] - }, - "SetIamPolicy": { - "methods": ["setIamPolicy", "setIamPolicy", "setIamPolicy", "setIamPolicyCallable"] - }, - "StartResumableWrite": { - "methods": ["startResumableWrite", "startResumableWriteCallable"] - }, - "TestIamPermissions": { - "methods": ["testIamPermissions", "testIamPermissions", "testIamPermissions", "testIamPermissionsCallable"] - }, - "UpdateBucket": { - "methods": ["updateBucket", "updateBucket", "updateBucketCallable"] - }, - "UpdateHmacKey": { - "methods": ["updateHmacKey", "updateHmacKey", "updateHmacKeyCallable"] - }, - "UpdateObject": { - "methods": ["updateObject", "updateObject", "updateObjectCallable"] - }, - "WriteObject": { - "methods": ["writeObjectCallable"] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/v2/grpc-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlGrpc.java b/owl-bot-staging/v2/grpc-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlGrpc.java deleted file mode 100644 index 3515bd9987..0000000000 --- a/owl-bot-staging/v2/grpc-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlGrpc.java +++ /dev/null @@ -1,1125 +0,0 @@ -package com.google.storage.control.v2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
            - * StorageControl service includes selected control plane operations.
            - * 
            - */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/storage/control/v2/storage_control.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class StorageControlGrpc { - - private StorageControlGrpc() {} - - public static final java.lang.String SERVICE_NAME = "google.storage.control.v2.StorageControl"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateFolderMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateFolder", - requestType = com.google.storage.control.v2.CreateFolderRequest.class, - responseType = com.google.storage.control.v2.Folder.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateFolderMethod() { - io.grpc.MethodDescriptor getCreateFolderMethod; - if ((getCreateFolderMethod = StorageControlGrpc.getCreateFolderMethod) == null) { - synchronized (StorageControlGrpc.class) { - if ((getCreateFolderMethod = StorageControlGrpc.getCreateFolderMethod) == null) { - StorageControlGrpc.getCreateFolderMethod = getCreateFolderMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFolder")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.CreateFolderRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.Folder.getDefaultInstance())) - .setSchemaDescriptor(new StorageControlMethodDescriptorSupplier("CreateFolder")) - .build(); - } - } - } - return getCreateFolderMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteFolderMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteFolder", - requestType = com.google.storage.control.v2.DeleteFolderRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteFolderMethod() { - io.grpc.MethodDescriptor getDeleteFolderMethod; - if ((getDeleteFolderMethod = StorageControlGrpc.getDeleteFolderMethod) == null) { - synchronized (StorageControlGrpc.class) { - if ((getDeleteFolderMethod = StorageControlGrpc.getDeleteFolderMethod) == null) { - StorageControlGrpc.getDeleteFolderMethod = getDeleteFolderMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFolder")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.DeleteFolderRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new StorageControlMethodDescriptorSupplier("DeleteFolder")) - .build(); - } - } - } - return getDeleteFolderMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetFolderMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetFolder", - requestType = com.google.storage.control.v2.GetFolderRequest.class, - responseType = com.google.storage.control.v2.Folder.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetFolderMethod() { - io.grpc.MethodDescriptor getGetFolderMethod; - if ((getGetFolderMethod = StorageControlGrpc.getGetFolderMethod) == null) { - synchronized (StorageControlGrpc.class) { - if ((getGetFolderMethod = StorageControlGrpc.getGetFolderMethod) == null) { - StorageControlGrpc.getGetFolderMethod = getGetFolderMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFolder")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.GetFolderRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.Folder.getDefaultInstance())) - .setSchemaDescriptor(new StorageControlMethodDescriptorSupplier("GetFolder")) - .build(); - } - } - } - return getGetFolderMethod; - } - - private static volatile io.grpc.MethodDescriptor getListFoldersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFolders", - requestType = com.google.storage.control.v2.ListFoldersRequest.class, - responseType = com.google.storage.control.v2.ListFoldersResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListFoldersMethod() { - io.grpc.MethodDescriptor getListFoldersMethod; - if ((getListFoldersMethod = StorageControlGrpc.getListFoldersMethod) == null) { - synchronized (StorageControlGrpc.class) { - if ((getListFoldersMethod = StorageControlGrpc.getListFoldersMethod) == null) { - StorageControlGrpc.getListFoldersMethod = getListFoldersMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFolders")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.ListFoldersRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.ListFoldersResponse.getDefaultInstance())) - .setSchemaDescriptor(new StorageControlMethodDescriptorSupplier("ListFolders")) - .build(); - } - } - } - return getListFoldersMethod; - } - - private static volatile io.grpc.MethodDescriptor getRenameFolderMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RenameFolder", - requestType = com.google.storage.control.v2.RenameFolderRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getRenameFolderMethod() { - io.grpc.MethodDescriptor getRenameFolderMethod; - if ((getRenameFolderMethod = StorageControlGrpc.getRenameFolderMethod) == null) { - synchronized (StorageControlGrpc.class) { - if ((getRenameFolderMethod = StorageControlGrpc.getRenameFolderMethod) == null) { - StorageControlGrpc.getRenameFolderMethod = getRenameFolderMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RenameFolder")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.RenameFolderRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new StorageControlMethodDescriptorSupplier("RenameFolder")) - .build(); - } - } - } - return getRenameFolderMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetStorageLayoutMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetStorageLayout", - requestType = com.google.storage.control.v2.GetStorageLayoutRequest.class, - responseType = com.google.storage.control.v2.StorageLayout.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetStorageLayoutMethod() { - io.grpc.MethodDescriptor getGetStorageLayoutMethod; - if ((getGetStorageLayoutMethod = StorageControlGrpc.getGetStorageLayoutMethod) == null) { - synchronized (StorageControlGrpc.class) { - if ((getGetStorageLayoutMethod = StorageControlGrpc.getGetStorageLayoutMethod) == null) { - StorageControlGrpc.getGetStorageLayoutMethod = getGetStorageLayoutMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetStorageLayout")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.GetStorageLayoutRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.StorageLayout.getDefaultInstance())) - .setSchemaDescriptor(new StorageControlMethodDescriptorSupplier("GetStorageLayout")) - .build(); - } - } - } - return getGetStorageLayoutMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateManagedFolderMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateManagedFolder", - requestType = com.google.storage.control.v2.CreateManagedFolderRequest.class, - responseType = com.google.storage.control.v2.ManagedFolder.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateManagedFolderMethod() { - io.grpc.MethodDescriptor getCreateManagedFolderMethod; - if ((getCreateManagedFolderMethod = StorageControlGrpc.getCreateManagedFolderMethod) == null) { - synchronized (StorageControlGrpc.class) { - if ((getCreateManagedFolderMethod = StorageControlGrpc.getCreateManagedFolderMethod) == null) { - StorageControlGrpc.getCreateManagedFolderMethod = getCreateManagedFolderMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateManagedFolder")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.CreateManagedFolderRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.ManagedFolder.getDefaultInstance())) - .setSchemaDescriptor(new StorageControlMethodDescriptorSupplier("CreateManagedFolder")) - .build(); - } - } - } - return getCreateManagedFolderMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteManagedFolderMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteManagedFolder", - requestType = com.google.storage.control.v2.DeleteManagedFolderRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteManagedFolderMethod() { - io.grpc.MethodDescriptor getDeleteManagedFolderMethod; - if ((getDeleteManagedFolderMethod = StorageControlGrpc.getDeleteManagedFolderMethod) == null) { - synchronized (StorageControlGrpc.class) { - if ((getDeleteManagedFolderMethod = StorageControlGrpc.getDeleteManagedFolderMethod) == null) { - StorageControlGrpc.getDeleteManagedFolderMethod = getDeleteManagedFolderMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteManagedFolder")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.DeleteManagedFolderRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new StorageControlMethodDescriptorSupplier("DeleteManagedFolder")) - .build(); - } - } - } - return getDeleteManagedFolderMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetManagedFolderMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetManagedFolder", - requestType = com.google.storage.control.v2.GetManagedFolderRequest.class, - responseType = com.google.storage.control.v2.ManagedFolder.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetManagedFolderMethod() { - io.grpc.MethodDescriptor getGetManagedFolderMethod; - if ((getGetManagedFolderMethod = StorageControlGrpc.getGetManagedFolderMethod) == null) { - synchronized (StorageControlGrpc.class) { - if ((getGetManagedFolderMethod = StorageControlGrpc.getGetManagedFolderMethod) == null) { - StorageControlGrpc.getGetManagedFolderMethod = getGetManagedFolderMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetManagedFolder")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.GetManagedFolderRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.ManagedFolder.getDefaultInstance())) - .setSchemaDescriptor(new StorageControlMethodDescriptorSupplier("GetManagedFolder")) - .build(); - } - } - } - return getGetManagedFolderMethod; - } - - private static volatile io.grpc.MethodDescriptor getListManagedFoldersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListManagedFolders", - requestType = com.google.storage.control.v2.ListManagedFoldersRequest.class, - responseType = com.google.storage.control.v2.ListManagedFoldersResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListManagedFoldersMethod() { - io.grpc.MethodDescriptor getListManagedFoldersMethod; - if ((getListManagedFoldersMethod = StorageControlGrpc.getListManagedFoldersMethod) == null) { - synchronized (StorageControlGrpc.class) { - if ((getListManagedFoldersMethod = StorageControlGrpc.getListManagedFoldersMethod) == null) { - StorageControlGrpc.getListManagedFoldersMethod = getListManagedFoldersMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListManagedFolders")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.ListManagedFoldersRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.storage.control.v2.ListManagedFoldersResponse.getDefaultInstance())) - .setSchemaDescriptor(new StorageControlMethodDescriptorSupplier("ListManagedFolders")) - .build(); - } - } - } - return getListManagedFoldersMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static StorageControlStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public StorageControlStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new StorageControlStub(channel, callOptions); - } - }; - return StorageControlStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static StorageControlBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public StorageControlBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new StorageControlBlockingStub(channel, callOptions); - } - }; - return StorageControlBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static StorageControlFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public StorageControlFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new StorageControlFutureStub(channel, callOptions); - } - }; - return StorageControlFutureStub.newStub(factory, channel); - } - - /** - *
            -   * StorageControl service includes selected control plane operations.
            -   * 
            - */ - public interface AsyncService { - - /** - *
            -     * Creates a new folder. This operation is only applicable to a hierarchical
            -     * namespace enabled bucket.
            -     * 
            - */ - default void createFolder(com.google.storage.control.v2.CreateFolderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFolderMethod(), responseObserver); - } - - /** - *
            -     * Permanently deletes an empty folder. This operation is only applicable to a
            -     * hierarchical namespace enabled bucket.
            -     * 
            - */ - default void deleteFolder(com.google.storage.control.v2.DeleteFolderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteFolderMethod(), responseObserver); - } - - /** - *
            -     * Returns metadata for the specified folder. This operation is only
            -     * applicable to a hierarchical namespace enabled bucket.
            -     * 
            - */ - default void getFolder(com.google.storage.control.v2.GetFolderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFolderMethod(), responseObserver); - } - - /** - *
            -     * Retrieves a list of folders. This operation is only applicable to a
            -     * hierarchical namespace enabled bucket.
            -     * 
            - */ - default void listFolders(com.google.storage.control.v2.ListFoldersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFoldersMethod(), responseObserver); - } - - /** - *
            -     * Renames a source folder to a destination folder. This operation is only
            -     * applicable to a hierarchical namespace enabled bucket. During a rename, the
            -     * source and destination folders are locked until the long running operation
            -     * completes.
            -     * 
            - */ - default void renameFolder(com.google.storage.control.v2.RenameFolderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRenameFolderMethod(), responseObserver); - } - - /** - *
            -     * Returns the storage layout configuration for a given bucket.
            -     * 
            - */ - default void getStorageLayout(com.google.storage.control.v2.GetStorageLayoutRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetStorageLayoutMethod(), responseObserver); - } - - /** - *
            -     * Creates a new managed folder.
            -     * 
            - */ - default void createManagedFolder(com.google.storage.control.v2.CreateManagedFolderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateManagedFolderMethod(), responseObserver); - } - - /** - *
            -     * Permanently deletes an empty managed folder.
            -     * 
            - */ - default void deleteManagedFolder(com.google.storage.control.v2.DeleteManagedFolderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteManagedFolderMethod(), responseObserver); - } - - /** - *
            -     * Returns metadata for the specified managed folder.
            -     * 
            - */ - default void getManagedFolder(com.google.storage.control.v2.GetManagedFolderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetManagedFolderMethod(), responseObserver); - } - - /** - *
            -     * Retrieves a list of managed folders for a given bucket.
            -     * 
            - */ - default void listManagedFolders(com.google.storage.control.v2.ListManagedFoldersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListManagedFoldersMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service StorageControl. - *
            -   * StorageControl service includes selected control plane operations.
            -   * 
            - */ - public static abstract class StorageControlImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return StorageControlGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service StorageControl. - *
            -   * StorageControl service includes selected control plane operations.
            -   * 
            - */ - public static final class StorageControlStub - extends io.grpc.stub.AbstractAsyncStub { - private StorageControlStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected StorageControlStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new StorageControlStub(channel, callOptions); - } - - /** - *
            -     * Creates a new folder. This operation is only applicable to a hierarchical
            -     * namespace enabled bucket.
            -     * 
            - */ - public void createFolder(com.google.storage.control.v2.CreateFolderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateFolderMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
            -     * Permanently deletes an empty folder. This operation is only applicable to a
            -     * hierarchical namespace enabled bucket.
            -     * 
            - */ - public void deleteFolder(com.google.storage.control.v2.DeleteFolderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteFolderMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
            -     * Returns metadata for the specified folder. This operation is only
            -     * applicable to a hierarchical namespace enabled bucket.
            -     * 
            - */ - public void getFolder(com.google.storage.control.v2.GetFolderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetFolderMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
            -     * Retrieves a list of folders. This operation is only applicable to a
            -     * hierarchical namespace enabled bucket.
            -     * 
            - */ - public void listFolders(com.google.storage.control.v2.ListFoldersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFoldersMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
            -     * Renames a source folder to a destination folder. This operation is only
            -     * applicable to a hierarchical namespace enabled bucket. During a rename, the
            -     * source and destination folders are locked until the long running operation
            -     * completes.
            -     * 
            - */ - public void renameFolder(com.google.storage.control.v2.RenameFolderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRenameFolderMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
            -     * Returns the storage layout configuration for a given bucket.
            -     * 
            - */ - public void getStorageLayout(com.google.storage.control.v2.GetStorageLayoutRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetStorageLayoutMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
            -     * Creates a new managed folder.
            -     * 
            - */ - public void createManagedFolder(com.google.storage.control.v2.CreateManagedFolderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateManagedFolderMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
            -     * Permanently deletes an empty managed folder.
            -     * 
            - */ - public void deleteManagedFolder(com.google.storage.control.v2.DeleteManagedFolderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteManagedFolderMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
            -     * Returns metadata for the specified managed folder.
            -     * 
            - */ - public void getManagedFolder(com.google.storage.control.v2.GetManagedFolderRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetManagedFolderMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
            -     * Retrieves a list of managed folders for a given bucket.
            -     * 
            - */ - public void listManagedFolders(com.google.storage.control.v2.ListManagedFoldersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListManagedFoldersMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service StorageControl. - *
            -   * StorageControl service includes selected control plane operations.
            -   * 
            - */ - public static final class StorageControlBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private StorageControlBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected StorageControlBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new StorageControlBlockingStub(channel, callOptions); - } - - /** - *
            -     * Creates a new folder. This operation is only applicable to a hierarchical
            -     * namespace enabled bucket.
            -     * 
            - */ - public com.google.storage.control.v2.Folder createFolder(com.google.storage.control.v2.CreateFolderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateFolderMethod(), getCallOptions(), request); - } - - /** - *
            -     * Permanently deletes an empty folder. This operation is only applicable to a
            -     * hierarchical namespace enabled bucket.
            -     * 
            - */ - public com.google.protobuf.Empty deleteFolder(com.google.storage.control.v2.DeleteFolderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteFolderMethod(), getCallOptions(), request); - } - - /** - *
            -     * Returns metadata for the specified folder. This operation is only
            -     * applicable to a hierarchical namespace enabled bucket.
            -     * 
            - */ - public com.google.storage.control.v2.Folder getFolder(com.google.storage.control.v2.GetFolderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetFolderMethod(), getCallOptions(), request); - } - - /** - *
            -     * Retrieves a list of folders. This operation is only applicable to a
            -     * hierarchical namespace enabled bucket.
            -     * 
            - */ - public com.google.storage.control.v2.ListFoldersResponse listFolders(com.google.storage.control.v2.ListFoldersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFoldersMethod(), getCallOptions(), request); - } - - /** - *
            -     * Renames a source folder to a destination folder. This operation is only
            -     * applicable to a hierarchical namespace enabled bucket. During a rename, the
            -     * source and destination folders are locked until the long running operation
            -     * completes.
            -     * 
            - */ - public com.google.longrunning.Operation renameFolder(com.google.storage.control.v2.RenameFolderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRenameFolderMethod(), getCallOptions(), request); - } - - /** - *
            -     * Returns the storage layout configuration for a given bucket.
            -     * 
            - */ - public com.google.storage.control.v2.StorageLayout getStorageLayout(com.google.storage.control.v2.GetStorageLayoutRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetStorageLayoutMethod(), getCallOptions(), request); - } - - /** - *
            -     * Creates a new managed folder.
            -     * 
            - */ - public com.google.storage.control.v2.ManagedFolder createManagedFolder(com.google.storage.control.v2.CreateManagedFolderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateManagedFolderMethod(), getCallOptions(), request); - } - - /** - *
            -     * Permanently deletes an empty managed folder.
            -     * 
            - */ - public com.google.protobuf.Empty deleteManagedFolder(com.google.storage.control.v2.DeleteManagedFolderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteManagedFolderMethod(), getCallOptions(), request); - } - - /** - *
            -     * Returns metadata for the specified managed folder.
            -     * 
            - */ - public com.google.storage.control.v2.ManagedFolder getManagedFolder(com.google.storage.control.v2.GetManagedFolderRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetManagedFolderMethod(), getCallOptions(), request); - } - - /** - *
            -     * Retrieves a list of managed folders for a given bucket.
            -     * 
            - */ - public com.google.storage.control.v2.ListManagedFoldersResponse listManagedFolders(com.google.storage.control.v2.ListManagedFoldersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListManagedFoldersMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service StorageControl. - *
            -   * StorageControl service includes selected control plane operations.
            -   * 
            - */ - public static final class StorageControlFutureStub - extends io.grpc.stub.AbstractFutureStub { - private StorageControlFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected StorageControlFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new StorageControlFutureStub(channel, callOptions); - } - - /** - *
            -     * Creates a new folder. This operation is only applicable to a hierarchical
            -     * namespace enabled bucket.
            -     * 
            - */ - public com.google.common.util.concurrent.ListenableFuture createFolder( - com.google.storage.control.v2.CreateFolderRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateFolderMethod(), getCallOptions()), request); - } - - /** - *
            -     * Permanently deletes an empty folder. This operation is only applicable to a
            -     * hierarchical namespace enabled bucket.
            -     * 
            - */ - public com.google.common.util.concurrent.ListenableFuture deleteFolder( - com.google.storage.control.v2.DeleteFolderRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteFolderMethod(), getCallOptions()), request); - } - - /** - *
            -     * Returns metadata for the specified folder. This operation is only
            -     * applicable to a hierarchical namespace enabled bucket.
            -     * 
            - */ - public com.google.common.util.concurrent.ListenableFuture getFolder( - com.google.storage.control.v2.GetFolderRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetFolderMethod(), getCallOptions()), request); - } - - /** - *
            -     * Retrieves a list of folders. This operation is only applicable to a
            -     * hierarchical namespace enabled bucket.
            -     * 
            - */ - public com.google.common.util.concurrent.ListenableFuture listFolders( - com.google.storage.control.v2.ListFoldersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFoldersMethod(), getCallOptions()), request); - } - - /** - *
            -     * Renames a source folder to a destination folder. This operation is only
            -     * applicable to a hierarchical namespace enabled bucket. During a rename, the
            -     * source and destination folders are locked until the long running operation
            -     * completes.
            -     * 
            - */ - public com.google.common.util.concurrent.ListenableFuture renameFolder( - com.google.storage.control.v2.RenameFolderRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRenameFolderMethod(), getCallOptions()), request); - } - - /** - *
            -     * Returns the storage layout configuration for a given bucket.
            -     * 
            - */ - public com.google.common.util.concurrent.ListenableFuture getStorageLayout( - com.google.storage.control.v2.GetStorageLayoutRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetStorageLayoutMethod(), getCallOptions()), request); - } - - /** - *
            -     * Creates a new managed folder.
            -     * 
            - */ - public com.google.common.util.concurrent.ListenableFuture createManagedFolder( - com.google.storage.control.v2.CreateManagedFolderRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateManagedFolderMethod(), getCallOptions()), request); - } - - /** - *
            -     * Permanently deletes an empty managed folder.
            -     * 
            - */ - public com.google.common.util.concurrent.ListenableFuture deleteManagedFolder( - com.google.storage.control.v2.DeleteManagedFolderRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteManagedFolderMethod(), getCallOptions()), request); - } - - /** - *
            -     * Returns metadata for the specified managed folder.
            -     * 
            - */ - public com.google.common.util.concurrent.ListenableFuture getManagedFolder( - com.google.storage.control.v2.GetManagedFolderRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetManagedFolderMethod(), getCallOptions()), request); - } - - /** - *
            -     * Retrieves a list of managed folders for a given bucket.
            -     * 
            - */ - public com.google.common.util.concurrent.ListenableFuture listManagedFolders( - com.google.storage.control.v2.ListManagedFoldersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListManagedFoldersMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_FOLDER = 0; - private static final int METHODID_DELETE_FOLDER = 1; - private static final int METHODID_GET_FOLDER = 2; - private static final int METHODID_LIST_FOLDERS = 3; - private static final int METHODID_RENAME_FOLDER = 4; - private static final int METHODID_GET_STORAGE_LAYOUT = 5; - private static final int METHODID_CREATE_MANAGED_FOLDER = 6; - private static final int METHODID_DELETE_MANAGED_FOLDER = 7; - private static final int METHODID_GET_MANAGED_FOLDER = 8; - private static final int METHODID_LIST_MANAGED_FOLDERS = 9; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_FOLDER: - serviceImpl.createFolder((com.google.storage.control.v2.CreateFolderRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_FOLDER: - serviceImpl.deleteFolder((com.google.storage.control.v2.DeleteFolderRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_FOLDER: - serviceImpl.getFolder((com.google.storage.control.v2.GetFolderRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_FOLDERS: - serviceImpl.listFolders((com.google.storage.control.v2.ListFoldersRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RENAME_FOLDER: - serviceImpl.renameFolder((com.google.storage.control.v2.RenameFolderRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_STORAGE_LAYOUT: - serviceImpl.getStorageLayout((com.google.storage.control.v2.GetStorageLayoutRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_MANAGED_FOLDER: - serviceImpl.createManagedFolder((com.google.storage.control.v2.CreateManagedFolderRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_MANAGED_FOLDER: - serviceImpl.deleteManagedFolder((com.google.storage.control.v2.DeleteManagedFolderRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_MANAGED_FOLDER: - serviceImpl.getManagedFolder((com.google.storage.control.v2.GetManagedFolderRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_MANAGED_FOLDERS: - serviceImpl.listManagedFolders((com.google.storage.control.v2.ListManagedFoldersRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateFolderMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.control.v2.CreateFolderRequest, - com.google.storage.control.v2.Folder>( - service, METHODID_CREATE_FOLDER))) - .addMethod( - getDeleteFolderMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.control.v2.DeleteFolderRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_FOLDER))) - .addMethod( - getGetFolderMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.control.v2.GetFolderRequest, - com.google.storage.control.v2.Folder>( - service, METHODID_GET_FOLDER))) - .addMethod( - getListFoldersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.control.v2.ListFoldersRequest, - com.google.storage.control.v2.ListFoldersResponse>( - service, METHODID_LIST_FOLDERS))) - .addMethod( - getRenameFolderMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.control.v2.RenameFolderRequest, - com.google.longrunning.Operation>( - service, METHODID_RENAME_FOLDER))) - .addMethod( - getGetStorageLayoutMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.control.v2.GetStorageLayoutRequest, - com.google.storage.control.v2.StorageLayout>( - service, METHODID_GET_STORAGE_LAYOUT))) - .addMethod( - getCreateManagedFolderMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.control.v2.CreateManagedFolderRequest, - com.google.storage.control.v2.ManagedFolder>( - service, METHODID_CREATE_MANAGED_FOLDER))) - .addMethod( - getDeleteManagedFolderMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.control.v2.DeleteManagedFolderRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_MANAGED_FOLDER))) - .addMethod( - getGetManagedFolderMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.control.v2.GetManagedFolderRequest, - com.google.storage.control.v2.ManagedFolder>( - service, METHODID_GET_MANAGED_FOLDER))) - .addMethod( - getListManagedFoldersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.storage.control.v2.ListManagedFoldersRequest, - com.google.storage.control.v2.ListManagedFoldersResponse>( - service, METHODID_LIST_MANAGED_FOLDERS))) - .build(); - } - - private static abstract class StorageControlBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - StorageControlBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.storage.control.v2.StorageControlProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("StorageControl"); - } - } - - private static final class StorageControlFileDescriptorSupplier - extends StorageControlBaseDescriptorSupplier { - StorageControlFileDescriptorSupplier() {} - } - - private static final class StorageControlMethodDescriptorSupplier - extends StorageControlBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - StorageControlMethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (StorageControlGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new StorageControlFileDescriptorSupplier()) - .addMethod(getCreateFolderMethod()) - .addMethod(getDeleteFolderMethod()) - .addMethod(getGetFolderMethod()) - .addMethod(getListFoldersMethod()) - .addMethod(getRenameFolderMethod()) - .addMethod(getGetStorageLayoutMethod()) - .addMethod(getCreateManagedFolderMethod()) - .addMethod(getDeleteManagedFolderMethod()) - .addMethod(getGetManagedFolderMethod()) - .addMethod(getListManagedFoldersMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlProto.java b/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlProto.java deleted file mode 100644 index 2971dbe4c4..0000000000 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlProto.java +++ /dev/null @@ -1,457 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/storage/control/v2/storage_control.proto - -// Protobuf Java Version: 3.25.3 -package com.google.storage.control.v2; - -public final class StorageControlProto { - private StorageControlProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_PendingRenameInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_PendingRenameInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_Folder_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_Folder_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_GetFolderRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_GetFolderRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_CreateFolderRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_CreateFolderRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_DeleteFolderRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_DeleteFolderRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_ListFoldersRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_ListFoldersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_ListFoldersResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_ListFoldersResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_RenameFolderRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_RenameFolderRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_RenameFolderMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_RenameFolderMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_StorageLayout_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_StorageLayout_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_GetStorageLayoutRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_GetStorageLayoutRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_ManagedFolder_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_ManagedFolder_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_GetManagedFolderRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_GetManagedFolderRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_CreateManagedFolderRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_CreateManagedFolderRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_DeleteManagedFolderRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_DeleteManagedFolderRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_ListManagedFoldersRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_ListManagedFoldersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_control_v2_ListManagedFoldersResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_control_v2_ListManagedFoldersResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n/google/storage/control/v2/storage_cont" + - "rol.proto\022\031google.storage.control.v2\032\027go" + - "ogle/api/client.proto\032\037google/api/field_" + - "behavior.proto\032\033google/api/field_info.pr" + - "oto\032\031google/api/resource.proto\032\030google/a" + - "pi/routing.proto\032#google/longrunning/ope" + - "rations.proto\032\033google/protobuf/empty.pro" + - "to\032\037google/protobuf/timestamp.proto\"+\n\021P" + - "endingRenameInfo\022\026\n\toperation\030\001 \001(\tB\003\340A\003" + - "\"\342\002\n\006Folder\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\033\n\016metage" + - "neration\030\003 \001(\003B\003\340A\003\0224\n\013create_time\030\004 \001(\013" + - "2\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upd" + - "ate_time\030\005 \001(\0132\032.google.protobuf.Timesta" + - "mpB\003\340A\003\022N\n\023pending_rename_info\030\007 \001(\0132,.g" + - "oogle.storage.control.v2.PendingRenameIn" + - "foB\003\340A\003:l\352Ai\n\035storage.googleapis.com/Fol" + - "der\0227projects/{project}/buckets/{bucket}" + - "/folders/{folder=**}*\007folders2\006folder\"\364\001" + - "\n\020GetFolderRequest\0223\n\004name\030\006 \001(\tB%\340A\002\372A\037" + - "\n\035storage.googleapis.com/Folder\022$\n\027if_me" + - "tageneration_match\030\003 \001(\003H\000\210\001\001\022(\n\033if_meta" + - "generation_not_match\030\004 \001(\003H\001\210\001\001\022\037\n\nreque" + - "st_id\030\005 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001B\032\n\030_if_metagene" + - "ration_matchB\036\n\034_if_metageneration_not_m" + - "atch\"\325\001\n\023CreateFolderRequest\0225\n\006parent\030\001" + - " \001(\tB%\340A\002\372A\037\022\035storage.googleapis.com/Fol" + - "der\0226\n\006folder\030\002 \001(\0132!.google.storage.con" + - "trol.v2.FolderB\003\340A\002\022\026\n\tfolder_id\030\003 \001(\tB\003" + - "\340A\002\022\026\n\trecursive\030\004 \001(\010B\003\340A\001\022\037\n\nrequest_i" + - "d\030\005 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\367\001\n\023DeleteFolderReq" + - "uest\0223\n\004name\030\006 \001(\tB%\340A\002\372A\037\n\035storage.goog" + - "leapis.com/Folder\022$\n\027if_metageneration_m" + - "atch\030\003 \001(\003H\000\210\001\001\022(\n\033if_metageneration_not" + - "_match\030\004 \001(\003H\001\210\001\001\022\037\n\nrequest_id\030\005 \001(\tB\013\340" + - "A\001\342\214\317\327\010\002\010\001B\032\n\030_if_metageneration_matchB\036" + - "\n\034_if_metageneration_not_match\"\214\002\n\022ListF" + - "oldersRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\022\035s" + - "torage.googleapis.com/Folder\022\026\n\tpage_siz" + - "e\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n" + - "\006prefix\030\004 \001(\tB\003\340A\001\022\026\n\tdelimiter\030\010 \001(\tB\003\340" + - "A\001\022 \n\023lexicographic_start\030\006 \001(\tB\003\340A\001\022\036\n\021" + - "lexicographic_end\030\007 \001(\tB\003\340A\001\022\037\n\nrequest_" + - "id\030\t \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"b\n\023ListFoldersResp" + - "onse\0222\n\007folders\030\001 \003(\0132!.google.storage.c" + - "ontrol.v2.Folder\022\027\n\017next_page_token\030\002 \001(" + - "\t\"\233\002\n\023RenameFolderRequest\0223\n\004name\030\007 \001(\tB" + - "%\340A\002\372A\037\n\035storage.googleapis.com/Folder\022\"" + - "\n\025destination_folder_id\030\010 \001(\tB\003\340A\002\022$\n\027if" + - "_metageneration_match\030\004 \001(\003H\000\210\001\001\022(\n\033if_m" + - "etageneration_not_match\030\005 \001(\003H\001\210\001\001\022\037\n\nre" + - "quest_id\030\006 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001B\032\n\030_if_metag" + - "eneration_matchB\036\n\034_if_metageneration_no" + - "t_match\"\232\002\n\"CommonLongRunningOperationMe" + - "tadata\0224\n\013create_time\030\001 \001(\0132\032.google.pro" + - "tobuf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032" + - ".google.protobuf.TimestampB\003\340A\003\0224\n\013updat" + - "e_time\030\003 \001(\0132\032.google.protobuf.Timestamp" + - "B\003\340A\003\022\021\n\004type\030\004 \001(\tB\003\340A\003\022#\n\026requested_ca" + - "ncellation\030\005 \001(\010B\003\340A\003\022\035\n\020progress_percen" + - "t\030\006 \001(\005B\003\340A\003\"\247\001\n\024RenameFolderMetadata\022V\n" + - "\017common_metadata\030\001 \001(\0132=.google.storage." + - "control.v2.CommonLongRunningOperationMet" + - "adata\022\030\n\020source_folder_id\030\002 \001(\t\022\035\n\025desti" + - "nation_folder_id\030\003 \001(\t\"\331\003\n\rStorageLayout" + - "\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\025\n\010location\030\002 \001(\tB\003\340" + - "A\003\022\032\n\rlocation_type\030\003 \001(\tB\003\340A\003\022d\n\027custom" + - "_placement_config\030\004 \001(\0132>.google.storage" + - ".control.v2.StorageLayout.CustomPlacemen" + - "tConfigB\003\340A\003\022c\n\026hierarchical_namespace\030\005" + - " \001(\0132>.google.storage.control.v2.Storage" + - "Layout.HierarchicalNamespaceB\003\340A\003\032/\n\025Cus" + - "tomPlacementConfig\022\026\n\016data_locations\030\001 \003" + - "(\t\032(\n\025HierarchicalNamespace\022\017\n\007enabled\030\001" + - " \001(\010:\\\352AY\n$storage.googleapis.com/Storag" + - "eLayout\0221projects/{project}/buckets/{buc" + - "ket}/storageLayout\"\206\001\n\027GetStorageLayoutR" + - "equest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$storage.go" + - "ogleapis.com/StorageLayout\022\016\n\006prefix\030\002 \001" + - "(\t\022\037\n\nrequest_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\277\002\n\r" + - "ManagedFolder\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\033\n\016meta" + - "generation\030\003 \001(\003B\003\340A\003\0224\n\013create_time\030\004 \001" + - "(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013u" + - "pdate_time\030\005 \001(\0132\032.google.protobuf.Times" + - "tampB\003\340A\003:\221\001\352A\215\001\n$storage.googleapis.com" + - "/ManagedFolder\022Fprojects/{project}/bucke" + - "ts/{bucket}/managedFolders/{managed_fold" + - "er=**}*\016managedFolders2\rmanagedFolder\"\202\002" + - "\n\027GetManagedFolderRequest\022:\n\004name\030\006 \001(\tB" + - ",\340A\002\372A&\n$storage.googleapis.com/ManagedF" + - "older\022$\n\027if_metageneration_match\030\003 \001(\003H\000" + - "\210\001\001\022(\n\033if_metageneration_not_match\030\004 \001(\003" + - "H\001\210\001\001\022\037\n\nrequest_id\030\005 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001B\032" + - "\n\030_if_metageneration_matchB\036\n\034_if_metage" + - "neration_not_match\"\342\001\n\032CreateManagedFold" + - "erRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\022$stora" + - "ge.googleapis.com/ManagedFolder\022E\n\016manag" + - "ed_folder\030\002 \001(\0132(.google.storage.control" + - ".v2.ManagedFolderB\003\340A\002\022\036\n\021managed_folder" + - "_id\030\003 \001(\tB\003\340A\002\022\037\n\nrequest_id\030\004 \001(\tB\013\340A\001\342" + - "\214\317\327\010\002\010\001\"\236\002\n\032DeleteManagedFolderRequest\022:" + - "\n\004name\030\007 \001(\tB,\340A\002\372A&\n$storage.googleapis" + - ".com/ManagedFolder\022$\n\027if_metageneration_" + - "match\030\003 \001(\003H\000\210\001\001\022(\n\033if_metageneration_no" + - "t_match\030\004 \001(\003H\001\210\001\001\022\027\n\017allow_non_empty\030\005 " + - "\001(\010\022\037\n\nrequest_id\030\006 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001B\032\n\030" + - "_if_metageneration_matchB\036\n\034_if_metagene" + - "ration_not_match\"\300\001\n\031ListManagedFoldersR" + - "equest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\022$storage." + - "googleapis.com/ManagedFolder\022\026\n\tpage_siz" + - "e\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n" + - "\006prefix\030\004 \001(\tB\003\340A\001\022\037\n\nrequest_id\030\005 \001(\tB\013" + - "\340A\001\342\214\317\327\010\002\010\001\"x\n\032ListManagedFoldersRespons" + - "e\022A\n\017managed_folders\030\001 \003(\0132(.google.stor" + - "age.control.v2.ManagedFolder\022\027\n\017next_pag" + - "e_token\030\002 \001(\t2\315\017\n\016StorageControl\022\232\001\n\014Cre" + - "ateFolder\022..google.storage.control.v2.Cr" + - "eateFolderRequest\032!.google.storage.contr" + - "ol.v2.Folder\"7\332A\027parent,folder,folder_id" + - "\212\323\344\223\002\027\022\025\n\006parent\022\013{bucket=**}\022\217\001\n\014Delete" + - "Folder\022..google.storage.control.v2.Delet" + - "eFolderRequest\032\026.google.protobuf.Empty\"7" + - "\332A\004name\212\323\344\223\002*\022(\n\004name\022 {bucket=projects/" + - "*/buckets/*}/**\022\224\001\n\tGetFolder\022+.google.s" + - "torage.control.v2.GetFolderRequest\032!.goo" + - "gle.storage.control.v2.Folder\"7\332A\004name\212\323" + - "\344\223\002*\022(\n\004name\022 {bucket=projects/*/buckets" + - "/*}/**\022\224\001\n\013ListFolders\022-.google.storage." + - "control.v2.ListFoldersRequest\032..google.s" + - "torage.control.v2.ListFoldersResponse\"&\332" + - "A\006parent\212\323\344\223\002\027\022\025\n\006parent\022\013{bucket=**}\022\315\001" + - "\n\014RenameFolder\022..google.storage.control." + - "v2.RenameFolderRequest\032\035.google.longrunn" + - "ing.Operation\"n\312A\036\n\006Folder\022\024RenameFolder" + - "Metadata\332A\032name,destination_folder_id\212\323\344" + - "\223\002*\022(\n\004name\022 {bucket=projects/*/buckets/" + - "*}/**\022\251\001\n\020GetStorageLayout\0222.google.stor" + - "age.control.v2.GetStorageLayoutRequest\032(" + - ".google.storage.control.v2.StorageLayout" + - "\"7\332A\004name\212\323\344\223\002*\022(\n\004name\022 {bucket=project" + - "s/*/buckets/*}/**\022\277\001\n\023CreateManagedFolde" + - "r\0225.google.storage.control.v2.CreateMana" + - "gedFolderRequest\032(.google.storage.contro" + - "l.v2.ManagedFolder\"G\332A\'parent,managed_fo" + - "lder,managed_folder_id\212\323\344\223\002\027\022\025\n\006parent\022\013" + - "{bucket=**}\022\235\001\n\023DeleteManagedFolder\0225.go" + - "ogle.storage.control.v2.DeleteManagedFol" + - "derRequest\032\026.google.protobuf.Empty\"7\332A\004n" + - "ame\212\323\344\223\002*\022(\n\004name\022 {bucket=projects/*/bu" + - "ckets/*}/**\022\251\001\n\020GetManagedFolder\0222.googl" + - "e.storage.control.v2.GetManagedFolderReq" + - "uest\032(.google.storage.control.v2.Managed" + - "Folder\"7\332A\004name\212\323\344\223\002*\022(\n\004name\022 {bucket=p" + - "rojects/*/buckets/*}/**\022\251\001\n\022ListManagedF" + - "olders\0224.google.storage.control.v2.ListM" + - "anagedFoldersRequest\0325.google.storage.co" + - "ntrol.v2.ListManagedFoldersResponse\"&\332A\006" + - "parent\212\323\344\223\002\027\022\025\n\006parent\022\013{bucket=**}\032\247\002\312A" + - "\026storage.googleapis.com\322A\212\002https://www.g" + - "oogleapis.com/auth/cloud-platform,https:" + - "//www.googleapis.com/auth/cloud-platform" + - ".read-only,https://www.googleapis.com/au" + - "th/devstorage.full_control,https://www.g" + - "oogleapis.com/auth/devstorage.read_only," + - "https://www.googleapis.com/auth/devstora" + - "ge.read_writeB\246\002\n\035com.google.storage.con" + - "trol.v2B\023StorageControlProtoP\001Z=cloud.go" + - "ogle.com/go/storage/control/apiv2/contro" + - "lpb;controlpb\252\002\037Google.Cloud.Storage.Con" + - "trol.V2\312\002\037Google\\Cloud\\Storage\\Control\\V" + - "2\352\002#Google::Cloud::Storage::Control::V2\352" + - "AD\n\035storage.googleapis.com/Bucket\022#proje" + - "cts/{project}/buckets/{bucket}b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.FieldInfoProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.api.RoutingProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_storage_control_v2_PendingRenameInfo_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_storage_control_v2_PendingRenameInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_PendingRenameInfo_descriptor, - new java.lang.String[] { "Operation", }); - internal_static_google_storage_control_v2_Folder_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_storage_control_v2_Folder_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_Folder_descriptor, - new java.lang.String[] { "Name", "Metageneration", "CreateTime", "UpdateTime", "PendingRenameInfo", }); - internal_static_google_storage_control_v2_GetFolderRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_storage_control_v2_GetFolderRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_GetFolderRequest_descriptor, - new java.lang.String[] { "Name", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "RequestId", }); - internal_static_google_storage_control_v2_CreateFolderRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_storage_control_v2_CreateFolderRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_CreateFolderRequest_descriptor, - new java.lang.String[] { "Parent", "Folder", "FolderId", "Recursive", "RequestId", }); - internal_static_google_storage_control_v2_DeleteFolderRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_storage_control_v2_DeleteFolderRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_DeleteFolderRequest_descriptor, - new java.lang.String[] { "Name", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "RequestId", }); - internal_static_google_storage_control_v2_ListFoldersRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_storage_control_v2_ListFoldersRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_ListFoldersRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Prefix", "Delimiter", "LexicographicStart", "LexicographicEnd", "RequestId", }); - internal_static_google_storage_control_v2_ListFoldersResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_storage_control_v2_ListFoldersResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_ListFoldersResponse_descriptor, - new java.lang.String[] { "Folders", "NextPageToken", }); - internal_static_google_storage_control_v2_RenameFolderRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_storage_control_v2_RenameFolderRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_RenameFolderRequest_descriptor, - new java.lang.String[] { "Name", "DestinationFolderId", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "RequestId", }); - internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "UpdateTime", "Type", "RequestedCancellation", "ProgressPercent", }); - internal_static_google_storage_control_v2_RenameFolderMetadata_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_storage_control_v2_RenameFolderMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_RenameFolderMetadata_descriptor, - new java.lang.String[] { "CommonMetadata", "SourceFolderId", "DestinationFolderId", }); - internal_static_google_storage_control_v2_StorageLayout_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_storage_control_v2_StorageLayout_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_StorageLayout_descriptor, - new java.lang.String[] { "Name", "Location", "LocationType", "CustomPlacementConfig", "HierarchicalNamespace", }); - internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_descriptor = - internal_static_google_storage_control_v2_StorageLayout_descriptor.getNestedTypes().get(0); - internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_descriptor, - new java.lang.String[] { "DataLocations", }); - internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_descriptor = - internal_static_google_storage_control_v2_StorageLayout_descriptor.getNestedTypes().get(1); - internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_descriptor, - new java.lang.String[] { "Enabled", }); - internal_static_google_storage_control_v2_GetStorageLayoutRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_storage_control_v2_GetStorageLayoutRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_GetStorageLayoutRequest_descriptor, - new java.lang.String[] { "Name", "Prefix", "RequestId", }); - internal_static_google_storage_control_v2_ManagedFolder_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_storage_control_v2_ManagedFolder_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_ManagedFolder_descriptor, - new java.lang.String[] { "Name", "Metageneration", "CreateTime", "UpdateTime", }); - internal_static_google_storage_control_v2_GetManagedFolderRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_storage_control_v2_GetManagedFolderRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_GetManagedFolderRequest_descriptor, - new java.lang.String[] { "Name", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "RequestId", }); - internal_static_google_storage_control_v2_CreateManagedFolderRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_storage_control_v2_CreateManagedFolderRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_CreateManagedFolderRequest_descriptor, - new java.lang.String[] { "Parent", "ManagedFolder", "ManagedFolderId", "RequestId", }); - internal_static_google_storage_control_v2_DeleteManagedFolderRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_storage_control_v2_DeleteManagedFolderRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_DeleteManagedFolderRequest_descriptor, - new java.lang.String[] { "Name", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "AllowNonEmpty", "RequestId", }); - internal_static_google_storage_control_v2_ListManagedFoldersRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_storage_control_v2_ListManagedFoldersRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_ListManagedFoldersRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Prefix", "RequestId", }); - internal_static_google_storage_control_v2_ListManagedFoldersResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_storage_control_v2_ListManagedFoldersResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_control_v2_ListManagedFoldersResponse_descriptor, - new java.lang.String[] { "ManagedFolders", "NextPageToken", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.FieldInfoProto.fieldInfo); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.api.RoutingProto.routing); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.FieldInfoProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.api.RoutingProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/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 91bfb9fa5b..0000000000 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteResponseOrBuilder.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/storage/v2/storage.proto - -// Protobuf Java Version: 3.25.3 -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 be68b4dcc5..0000000000 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequestOrBuilder.java +++ /dev/null @@ -1,57 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/storage/v2/storage.proto - -// Protobuf Java Version: 3.25.3 -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 1c84430baa..0000000000 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequestOrBuilder.java +++ /dev/null @@ -1,30 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/storage/v2/storage.proto - -// Protobuf Java Version: 3.25.3 -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 4eb8a26d58..0000000000 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequestOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/storage/v2/storage.proto - -// Protobuf Java Version: 3.25.3 -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 c31a6ee893..0000000000 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequestOrBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/storage/v2/storage.proto - -// Protobuf Java Version: 3.25.3 -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 5307b3d67c..0000000000 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequestOrBuilder.java +++ /dev/null @@ -1,41 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/storage/v2/storage.proto - -// Protobuf Java Version: 3.25.3 -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 81adfb42cf..0000000000 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccountOrBuilder.java +++ /dev/null @@ -1,30 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/storage/v2/storage.proto - -// Protobuf Java Version: 3.25.3 -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 6ac03fa94b..0000000000 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstantsOrBuilder.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/storage/v2/storage.proto - -// Protobuf Java Version: 3.25.3 -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 93209ade59..0000000000 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageProto.java +++ /dev/null @@ -1,1535 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/storage/v2/storage.proto - -// Protobuf Java Version: 3.25.3 -package com.google.storage.v2; - -public final class StorageProto { - private StorageProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_DeleteBucketRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_DeleteBucketRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_GetBucketRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_GetBucketRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_CreateBucketRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_CreateBucketRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ListBucketsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ListBucketsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ListBucketsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ListBucketsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_UpdateBucketRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_UpdateBucketRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_DeleteNotificationConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_DeleteNotificationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_GetNotificationConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_GetNotificationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_CreateNotificationConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_CreateNotificationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ListNotificationConfigsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ListNotificationConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ListNotificationConfigsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ListNotificationConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ComposeObjectRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ComposeObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_DeleteObjectRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_DeleteObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_RestoreObjectRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_RestoreObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_CancelResumableWriteRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_CancelResumableWriteRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_CancelResumableWriteResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_CancelResumableWriteResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ReadObjectRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ReadObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_GetObjectRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_GetObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ReadObjectResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ReadObjectResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_WriteObjectSpec_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_WriteObjectSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_WriteObjectRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_WriteObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_WriteObjectResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_WriteObjectResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_BidiWriteObjectRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_BidiWriteObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_BidiWriteObjectResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_BidiWriteObjectResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ListObjectsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ListObjectsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_QueryWriteStatusRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_QueryWriteStatusRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_QueryWriteStatusResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_QueryWriteStatusResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_RewriteObjectRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_RewriteObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_RewriteResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_RewriteResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_StartResumableWriteRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_StartResumableWriteRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_StartResumableWriteResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_StartResumableWriteResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_UpdateObjectRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_UpdateObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_GetServiceAccountRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_GetServiceAccountRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_CreateHmacKeyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_CreateHmacKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_CreateHmacKeyResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_CreateHmacKeyResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_DeleteHmacKeyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_DeleteHmacKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_GetHmacKeyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_GetHmacKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ListHmacKeysRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ListHmacKeysRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ListHmacKeysResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ListHmacKeysResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_UpdateHmacKeyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_UpdateHmacKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_CommonObjectRequestParams_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_CommonObjectRequestParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ServiceConstants_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ServiceConstants_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_Billing_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_Billing_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_Cors_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_Cors_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_Encryption_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_Encryption_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_IamConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_IamConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_Lifecycle_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_Lifecycle_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_Logging_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_Logging_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_RetentionPolicy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_RetentionPolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_SoftDeletePolicy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_Versioning_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_Versioning_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_Website_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_Website_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_CustomPlacementConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_CustomPlacementConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_Autoclass_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_Autoclass_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_HierarchicalNamespace_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_HierarchicalNamespace_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Bucket_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Bucket_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_BucketAccessControl_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_BucketAccessControl_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ChecksummedData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ChecksummedData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ObjectChecksums_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ObjectChecksums_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_HmacKeyMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_HmacKeyMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_NotificationConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_NotificationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_NotificationConfig_CustomAttributesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_NotificationConfig_CustomAttributesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_CustomerEncryption_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_CustomerEncryption_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Object_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Object_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Object_MetadataEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Object_MetadataEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ObjectAccessControl_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ObjectAccessControl_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ListObjectsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ListObjectsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ProjectTeam_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ProjectTeam_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ServiceAccount_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ServiceAccount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_Owner_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_Owner_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_storage_v2_ContentRange_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_storage_v2_ContentRange_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\037google/storage/v2/storage.proto\022\021googl" + - "e.storage.v2\032\027google/api/client.proto\032\037g" + - "oogle/api/field_behavior.proto\032\031google/a" + - "pi/resource.proto\032\030google/api/routing.pr" + - "oto\032\036google/iam/v1/iam_policy.proto\032\032goo" + - "gle/iam/v1/policy.proto\032\036google/protobuf" + - "/duration.proto\032\033google/protobuf/empty.p" + - "roto\032 google/protobuf/field_mask.proto\032\037" + - "google/protobuf/timestamp.proto\032\026google/" + - "type/date.proto\"\326\001\n\023DeleteBucketRequest\022" + - "3\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035storage.googleapi" + - "s.com/Bucket\022$\n\027if_metageneration_match\030" + - "\002 \001(\003H\000\210\001\001\022(\n\033if_metageneration_not_matc" + - "h\030\003 \001(\003H\001\210\001\001B\032\n\030_if_metageneration_match" + - "B\036\n\034_if_metageneration_not_match\"\225\002\n\020Get" + - "BucketRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035sto" + - "rage.googleapis.com/Bucket\022$\n\027if_metagen" + - "eration_match\030\002 \001(\003H\000\210\001\001\022(\n\033if_metagener" + - "ation_not_match\030\003 \001(\003H\001\210\001\001\0222\n\tread_mask\030" + - "\005 \001(\0132\032.google.protobuf.FieldMaskH\002\210\001\001B\032" + - "\n\030_if_metageneration_matchB\036\n\034_if_metage" + - "neration_not_matchB\014\n\n_read_mask\"\316\001\n\023Cre" + - "ateBucketRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037" + - "\022\035storage.googleapis.com/Bucket\022)\n\006bucke" + - "t\030\002 \001(\0132\031.google.storage.v2.Bucket\022\026\n\tbu" + - "cket_id\030\003 \001(\tB\003\340A\002\022\026\n\016predefined_acl\030\006 \001" + - "(\t\022%\n\035predefined_default_object_acl\030\007 \001(" + - "\t\"\304\001\n\022ListBucketsRequest\0225\n\006parent\030\001 \001(\t" + - "B%\340A\002\372A\037\022\035storage.googleapis.com/Bucket\022" + - "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016" + - "\n\006prefix\030\004 \001(\t\0222\n\tread_mask\030\005 \001(\0132\032.goog" + - "le.protobuf.FieldMaskH\000\210\001\001B\014\n\n_read_mask" + - "\"Z\n\023ListBucketsResponse\022*\n\007buckets\030\001 \003(\013" + - "2\031.google.storage.v2.Bucket\022\027\n\017next_page" + - "_token\030\002 \001(\t\"\177\n LockBucketRetentionPolic" + - "yRequest\0225\n\006bucket\030\001 \001(\tB%\340A\002\372A\037\n\035storag" + - "e.googleapis.com/Bucket\022$\n\027if_metagenera" + - "tion_match\030\002 \001(\003B\003\340A\002\"\306\002\n\023UpdateBucketRe" + - "quest\022.\n\006bucket\030\001 \001(\0132\031.google.storage.v" + - "2.BucketB\003\340A\002\022$\n\027if_metageneration_match" + - "\030\002 \001(\003H\000\210\001\001\022(\n\033if_metageneration_not_mat" + - "ch\030\003 \001(\003H\001\210\001\001\022\026\n\016predefined_acl\030\010 \001(\t\022%\n" + - "\035predefined_default_object_acl\030\t \001(\t\0224\n\013" + - "update_mask\030\006 \001(\0132\032.google.protobuf.Fiel" + - "dMaskB\003\340A\002B\032\n\030_if_metageneration_matchB\036" + - "\n\034_if_metageneration_not_match\"b\n\037Delete" + - "NotificationConfigRequest\022?\n\004name\030\001 \001(\tB" + - "1\340A\002\372A+\n)storage.googleapis.com/Notifica" + - "tionConfig\"_\n\034GetNotificationConfigReque" + - "st\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)storage.google" + - "apis.com/NotificationConfig\"\255\001\n\037CreateNo" + - "tificationConfigRequest\022A\n\006parent\030\001 \001(\tB" + - "1\340A\002\372A+\022)storage.googleapis.com/Notifica" + - "tionConfig\022G\n\023notification_config\030\002 \001(\0132" + - "%.google.storage.v2.NotificationConfigB\003" + - "\340A\002\"\212\001\n\036ListNotificationConfigsRequest\022A" + - "\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)storage.googleap" + - "is.com/NotificationConfig\022\021\n\tpage_size\030\002" + - " \001(\005\022\022\n\npage_token\030\003 \001(\t\"\177\n\037ListNotifica" + - "tionConfigsResponse\022C\n\024notification_conf" + - "igs\030\001 \003(\0132%.google.storage.v2.Notificati" + - "onConfig\022\027\n\017next_page_token\030\002 \001(\t\"\365\005\n\024Co" + - "mposeObjectRequest\0223\n\013destination\030\001 \001(\0132" + - "\031.google.storage.v2.ObjectB\003\340A\002\022L\n\016sourc" + - "e_objects\030\002 \003(\01324.google.storage.v2.Comp" + - "oseObjectRequest.SourceObject\022\"\n\032destina" + - "tion_predefined_acl\030\t \001(\t\022 \n\023if_generati" + - "on_match\030\004 \001(\003H\000\210\001\001\022$\n\027if_metageneration" + - "_match\030\005 \001(\003H\001\210\001\001\0227\n\007kms_key\030\006 \001(\tB&\372A#\n" + - "!cloudkms.googleapis.com/CryptoKey\022R\n\034co" + - "mmon_object_request_params\030\007 \001(\0132,.googl" + - "e.storage.v2.CommonObjectRequestParams\022<" + - "\n\020object_checksums\030\n \001(\0132\".google.storag" + - "e.v2.ObjectChecksums\032\356\001\n\014SourceObject\022\021\n" + - "\004name\030\001 \001(\tB\003\340A\002\022\022\n\ngeneration\030\002 \001(\003\022f\n\024" + - "object_preconditions\030\003 \001(\0132H.google.stor" + - "age.v2.ComposeObjectRequest.SourceObject" + - ".ObjectPreconditions\032O\n\023ObjectPreconditi" + - "ons\022 \n\023if_generation_match\030\001 \001(\003H\000\210\001\001B\026\n" + - "\024_if_generation_matchB\026\n\024_if_generation_" + - "matchB\032\n\030_if_metageneration_match\"\321\003\n\023De" + - "leteObjectRequest\0225\n\006bucket\030\001 \001(\tB%\340A\002\372A" + - "\037\n\035storage.googleapis.com/Bucket\022\023\n\006obje" + - "ct\030\002 \001(\tB\003\340A\002\022\022\n\ngeneration\030\004 \001(\003\022 \n\023if_" + - "generation_match\030\005 \001(\003H\000\210\001\001\022$\n\027if_genera" + - "tion_not_match\030\006 \001(\003H\001\210\001\001\022$\n\027if_metagene" + - "ration_match\030\007 \001(\003H\002\210\001\001\022(\n\033if_metagenera" + - "tion_not_match\030\010 \001(\003H\003\210\001\001\022R\n\034common_obje" + - "ct_request_params\030\n \001(\0132,.google.storage" + - ".v2.CommonObjectRequestParamsB\026\n\024_if_gen" + - "eration_matchB\032\n\030_if_generation_not_matc" + - "hB\032\n\030_if_metageneration_matchB\036\n\034_if_met" + - "ageneration_not_match\"\211\004\n\024RestoreObjectR" + - "equest\0225\n\006bucket\030\001 \001(\tB%\340A\002\372A\037\n\035storage." + - "googleapis.com/Bucket\022\023\n\006object\030\002 \001(\tB\003\340" + - "A\002\022\027\n\ngeneration\030\003 \001(\003B\003\340A\002\022 \n\023if_genera" + - "tion_match\030\004 \001(\003H\000\210\001\001\022$\n\027if_generation_n" + - "ot_match\030\005 \001(\003H\001\210\001\001\022$\n\027if_metageneration" + - "_match\030\006 \001(\003H\002\210\001\001\022(\n\033if_metageneration_n" + - "ot_match\030\007 \001(\003H\003\210\001\001\022\034\n\017copy_source_acl\030\t" + - " \001(\010H\004\210\001\001\022R\n\034common_object_request_param" + - "s\030\010 \001(\0132,.google.storage.v2.CommonObject" + - "RequestParamsB\026\n\024_if_generation_matchB\032\n" + - "\030_if_generation_not_matchB\032\n\030_if_metagen" + - "eration_matchB\036\n\034_if_metageneration_not_" + - "matchB\022\n\020_copy_source_acl\"5\n\033CancelResum" + - "ableWriteRequest\022\026\n\tupload_id\030\001 \001(\tB\003\340A\002" + - "\"\036\n\034CancelResumableWriteResponse\"\272\004\n\021Rea" + - "dObjectRequest\0225\n\006bucket\030\001 \001(\tB%\340A\002\372A\037\n\035" + - "storage.googleapis.com/Bucket\022\023\n\006object\030" + - "\002 \001(\tB\003\340A\002\022\022\n\ngeneration\030\003 \001(\003\022\023\n\013read_o" + - "ffset\030\004 \001(\003\022\022\n\nread_limit\030\005 \001(\003\022 \n\023if_ge" + - "neration_match\030\006 \001(\003H\000\210\001\001\022$\n\027if_generati" + - "on_not_match\030\007 \001(\003H\001\210\001\001\022$\n\027if_metagenera" + - "tion_match\030\010 \001(\003H\002\210\001\001\022(\n\033if_metagenerati" + - "on_not_match\030\t \001(\003H\003\210\001\001\022R\n\034common_object" + - "_request_params\030\n \001(\0132,.google.storage.v" + - "2.CommonObjectRequestParams\0222\n\tread_mask" + - "\030\014 \001(\0132\032.google.protobuf.FieldMaskH\004\210\001\001B" + - "\026\n\024_if_generation_matchB\032\n\030_if_generatio" + - "n_not_matchB\032\n\030_if_metageneration_matchB" + - "\036\n\034_if_metageneration_not_matchB\014\n\n_read" + - "_mask\"\274\004\n\020GetObjectRequest\0225\n\006bucket\030\001 \001" + - "(\tB%\340A\002\372A\037\n\035storage.googleapis.com/Bucke" + - "t\022\023\n\006object\030\002 \001(\tB\003\340A\002\022\022\n\ngeneration\030\003 \001" + - "(\003\022\031\n\014soft_deleted\030\013 \001(\010H\000\210\001\001\022 \n\023if_gene" + - "ration_match\030\004 \001(\003H\001\210\001\001\022$\n\027if_generation" + - "_not_match\030\005 \001(\003H\002\210\001\001\022$\n\027if_metagenerati" + - "on_match\030\006 \001(\003H\003\210\001\001\022(\n\033if_metageneration" + - "_not_match\030\007 \001(\003H\004\210\001\001\022R\n\034common_object_r" + - "equest_params\030\010 \001(\0132,.google.storage.v2." + - "CommonObjectRequestParams\0222\n\tread_mask\030\n" + - " \001(\0132\032.google.protobuf.FieldMaskH\005\210\001\001B\017\n" + - "\r_soft_deletedB\026\n\024_if_generation_matchB\032" + - "\n\030_if_generation_not_matchB\032\n\030_if_metage" + - "neration_matchB\036\n\034_if_metageneration_not" + - "_matchB\014\n\n_read_mask\"\365\001\n\022ReadObjectRespo" + - "nse\022<\n\020checksummed_data\030\001 \001(\0132\".google.s" + - "torage.v2.ChecksummedData\022<\n\020object_chec" + - "ksums\030\002 \001(\0132\".google.storage.v2.ObjectCh" + - "ecksums\0226\n\rcontent_range\030\003 \001(\0132\037.google." + - "storage.v2.ContentRange\022+\n\010metadata\030\004 \001(" + - "\0132\031.google.storage.v2.Object\"\215\003\n\017WriteOb" + - "jectSpec\0220\n\010resource\030\001 \001(\0132\031.google.stor" + - "age.v2.ObjectB\003\340A\002\022\026\n\016predefined_acl\030\007 \001" + - "(\t\022 \n\023if_generation_match\030\003 \001(\003H\000\210\001\001\022$\n\027" + - "if_generation_not_match\030\004 \001(\003H\001\210\001\001\022$\n\027if" + - "_metageneration_match\030\005 \001(\003H\002\210\001\001\022(\n\033if_m" + - "etageneration_not_match\030\006 \001(\003H\003\210\001\001\022\030\n\013ob" + - "ject_size\030\010 \001(\003H\004\210\001\001B\026\n\024_if_generation_m" + - "atchB\032\n\030_if_generation_not_matchB\032\n\030_if_" + - "metageneration_matchB\036\n\034_if_metagenerati" + - "on_not_matchB\016\n\014_object_size\"\206\003\n\022WriteOb" + - "jectRequest\022\023\n\tupload_id\030\001 \001(\tH\000\022?\n\021writ" + - "e_object_spec\030\002 \001(\0132\".google.storage.v2." + - "WriteObjectSpecH\000\022\031\n\014write_offset\030\003 \001(\003B" + - "\003\340A\002\022>\n\020checksummed_data\030\004 \001(\0132\".google." + - "storage.v2.ChecksummedDataH\001\022<\n\020object_c" + - "hecksums\030\006 \001(\0132\".google.storage.v2.Objec" + - "tChecksums\022\024\n\014finish_write\030\007 \001(\010\022R\n\034comm" + - "on_object_request_params\030\010 \001(\0132,.google." + - "storage.v2.CommonObjectRequestParamsB\017\n\r" + - "first_messageB\006\n\004data\"n\n\023WriteObjectResp" + - "onse\022\030\n\016persisted_size\030\001 \001(\003H\000\022-\n\010resour" + - "ce\030\002 \001(\0132\031.google.storage.v2.ObjectH\000B\016\n" + - "\014write_status\"\257\003\n\026BidiWriteObjectRequest" + - "\022\023\n\tupload_id\030\001 \001(\tH\000\022?\n\021write_object_sp" + - "ec\030\002 \001(\0132\".google.storage.v2.WriteObject" + - "SpecH\000\022\031\n\014write_offset\030\003 \001(\003B\003\340A\002\022>\n\020che" + - "cksummed_data\030\004 \001(\0132\".google.storage.v2." + - "ChecksummedDataH\001\022<\n\020object_checksums\030\006 " + - "\001(\0132\".google.storage.v2.ObjectChecksums\022" + - "\024\n\014state_lookup\030\007 \001(\010\022\r\n\005flush\030\010 \001(\010\022\024\n\014" + - "finish_write\030\t \001(\010\022R\n\034common_object_requ" + - "est_params\030\n \001(\0132,.google.storage.v2.Com" + - "monObjectRequestParamsB\017\n\rfirst_messageB" + - "\006\n\004data\"r\n\027BidiWriteObjectResponse\022\030\n\016pe" + - "rsisted_size\030\001 \001(\003H\000\022-\n\010resource\030\002 \001(\0132\031" + - ".google.storage.v2.ObjectH\000B\016\n\014write_sta" + - "tus\"\255\003\n\022ListObjectsRequest\0225\n\006parent\030\001 \001" + - "(\tB%\340A\002\372A\037\n\035storage.googleapis.com/Bucke" + - "t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t" + - "\022\021\n\tdelimiter\030\004 \001(\t\022\"\n\032include_trailing_" + - "delimiter\030\005 \001(\010\022\016\n\006prefix\030\006 \001(\t\022\020\n\010versi" + - "ons\030\007 \001(\010\0222\n\tread_mask\030\010 \001(\0132\032.google.pr" + - "otobuf.FieldMaskH\000\210\001\001\022 \n\023lexicographic_s" + - "tart\030\n \001(\tB\003\340A\001\022\036\n\021lexicographic_end\030\013 \001" + - "(\tB\003\340A\001\022\031\n\014soft_deleted\030\014 \001(\010B\003\340A\001\022(\n\033in" + - "clude_folders_as_prefixes\030\r \001(\010B\003\340A\001\022\027\n\n" + - "match_glob\030\016 \001(\tB\003\340A\001B\014\n\n_read_mask\"\205\001\n\027" + - "QueryWriteStatusRequest\022\026\n\tupload_id\030\001 \001" + - "(\tB\003\340A\002\022R\n\034common_object_request_params\030" + - "\002 \001(\0132,.google.storage.v2.CommonObjectRe" + - "questParams\"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\014writ" + - "e_status\"\250\n\n\024RewriteObjectRequest\022 \n\020des" + - "tination_name\030\030 \001(\tB\006\340A\002\340A\005\022D\n\022destinati" + - "on_bucket\030\031 \001(\tB(\340A\002\340A\005\372A\037\n\035storage.goog" + - "leapis.com/Bucket\022C\n\023destination_kms_key" + - "\030\033 \001(\tB&\372A#\n!cloudkms.googleapis.com/Cry" + - "ptoKey\022.\n\013destination\030\001 \001(\0132\031.google.sto" + - "rage.v2.Object\022<\n\rsource_bucket\030\002 \001(\tB%\340" + - "A\002\372A\037\n\035storage.googleapis.com/Bucket\022\032\n\r" + - "source_object\030\003 \001(\tB\003\340A\002\022\031\n\021source_gener" + - "ation\030\004 \001(\003\022\025\n\rrewrite_token\030\005 \001(\t\022\"\n\032de" + - "stination_predefined_acl\030\034 \001(\t\022 \n\023if_gen" + - "eration_match\030\007 \001(\003H\000\210\001\001\022$\n\027if_generatio" + - "n_not_match\030\010 \001(\003H\001\210\001\001\022$\n\027if_metagenerat" + - "ion_match\030\t \001(\003H\002\210\001\001\022(\n\033if_metageneratio" + - "n_not_match\030\n \001(\003H\003\210\001\001\022\'\n\032if_source_gene" + - "ration_match\030\013 \001(\003H\004\210\001\001\022+\n\036if_source_gen" + - "eration_not_match\030\014 \001(\003H\005\210\001\001\022+\n\036if_sourc" + - "e_metageneration_match\030\r \001(\003H\006\210\001\001\022/\n\"if_" + - "source_metageneration_not_match\030\016 \001(\003H\007\210" + - "\001\001\022$\n\034max_bytes_rewritten_per_call\030\017 \001(\003" + - "\022(\n copy_source_encryption_algorithm\030\020 \001" + - "(\t\022(\n copy_source_encryption_key_bytes\030\025" + - " \001(\014\022/\n\'copy_source_encryption_key_sha25" + - "6_bytes\030\026 \001(\014\022R\n\034common_object_request_p" + - "arams\030\023 \001(\0132,.google.storage.v2.CommonOb" + - "jectRequestParams\022<\n\020object_checksums\030\035 " + - "\001(\0132\".google.storage.v2.ObjectChecksumsB" + - "\026\n\024_if_generation_matchB\032\n\030_if_generatio" + - "n_not_matchB\032\n\030_if_metageneration_matchB" + - "\036\n\034_if_metageneration_not_matchB\035\n\033_if_s" + - "ource_generation_matchB!\n\037_if_source_gen" + - "eration_not_matchB!\n\037_if_source_metagene" + - "ration_matchB%\n#_if_source_metageneratio" + - "n_not_match\"\227\001\n\017RewriteResponse\022\035\n\025total" + - "_bytes_rewritten\030\001 \001(\003\022\023\n\013object_size\030\002 " + - "\001(\003\022\014\n\004done\030\003 \001(\010\022\025\n\rrewrite_token\030\004 \001(\t" + - "\022+\n\010resource\030\005 \001(\0132\031.google.storage.v2.O" + - "bject\"\362\001\n\032StartResumableWriteRequest\022B\n\021" + - "write_object_spec\030\001 \001(\0132\".google.storage" + - ".v2.WriteObjectSpecB\003\340A\002\022R\n\034common_objec" + - "t_request_params\030\003 \001(\0132,.google.storage." + - "v2.CommonObjectRequestParams\022<\n\020object_c" + - "hecksums\030\005 \001(\0132\".google.storage.v2.Objec" + - "tChecksums\"0\n\033StartResumableWriteRespons" + - "e\022\021\n\tupload_id\030\001 \001(\t\"\357\003\n\023UpdateObjectReq" + - "uest\022.\n\006object\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_metageneration_match\030\004 \001(\003H\002\210" + - "\001\001\022(\n\033if_metageneration_not_match\030\005 \001(\003H" + - "\003\210\001\001\022\026\n\016predefined_acl\030\n \001(\t\0224\n\013update_m" + - "ask\030\007 \001(\0132\032.google.protobuf.FieldMaskB\003\340" + - "A\002\022R\n\034common_object_request_params\030\010 \001(\013" + - "2,.google.storage.v2.CommonObjectRequest" + - "ParamsB\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_match\"`" + - "\n\030GetServiceAccountRequest\022D\n\007project\030\001 " + - "\001(\tB3\340A\002\372A-\n+cloudresourcemanager.google" + - "apis.com/Project\"\200\001\n\024CreateHmacKeyReques" + - "t\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudresourc" + - "emanager.googleapis.com/Project\022\"\n\025servi" + - "ce_account_email\030\002 \001(\tB\003\340A\002\"g\n\025CreateHma" + - "cKeyResponse\0224\n\010metadata\030\001 \001(\0132\".google." + - "storage.v2.HmacKeyMetadata\022\030\n\020secret_key" + - "_bytes\030\003 \001(\014\"t\n\024DeleteHmacKeyRequest\022\026\n\t" + - "access_id\030\001 \001(\tB\003\340A\002\022D\n\007project\030\002 \001(\tB3\340" + - "A\002\372A-\n+cloudresourcemanager.googleapis.c" + - "om/Project\"q\n\021GetHmacKeyRequest\022\026\n\tacces" + - "s_id\030\001 \001(\tB\003\340A\002\022D\n\007project\030\002 \001(\tB3\340A\002\372A-" + - "\n+cloudresourcemanager.googleapis.com/Pr" + - "oject\"\274\001\n\023ListHmacKeysRequest\022D\n\007project" + - "\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.goo" + - "gleapis.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_em" + - "ail\030\004 \001(\t\022\031\n\021show_deleted_keys\030\005 \001(\010\"f\n\024" + - "ListHmacKeysResponse\0225\n\thmac_keys\030\001 \003(\0132" + - "\".google.storage.v2.HmacKeyMetadata\022\027\n\017n" + - "ext_page_token\030\002 \001(\t\"\202\001\n\024UpdateHmacKeyRe" + - "quest\0229\n\010hmac_key\030\001 \001(\0132\".google.storage" + - ".v2.HmacKeyMetadataB\003\340A\002\022/\n\013update_mask\030" + - "\003 \001(\0132\032.google.protobuf.FieldMask\"|\n\031Com" + - "monObjectRequestParams\022\034\n\024encryption_alg" + - "orithm\030\001 \001(\t\022\034\n\024encryption_key_bytes\030\004 \001" + - "(\014\022#\n\033encryption_key_sha256_bytes\030\005 \001(\014\"" + - "\312\005\n\020ServiceConstants\"\265\005\n\006Values\022\026\n\022VALUE" + - "S_UNSPECIFIED\020\000\022\033\n\024MAX_READ_CHUNK_BYTES\020" + - "\200\200\200\001\022\034\n\025MAX_WRITE_CHUNK_BYTES\020\200\200\200\001\022\031\n\022MA" + - "X_OBJECT_SIZE_MB\020\200\200\300\002\022)\n$MAX_CUSTOM_META" + - "DATA_FIELD_NAME_BYTES\020\200\010\022*\n%MAX_CUSTOM_M" + - "ETADATA_FIELD_VALUE_BYTES\020\200 \022)\n$MAX_CUST" + - "OM_METADATA_TOTAL_SIZE_BYTES\020\200@\022*\n$MAX_B" + - "UCKET_METADATA_TOTAL_SIZE_BYTES\020\200\240\001\022\'\n#M" + - "AX_NOTIFICATION_CONFIGS_PER_BUCKET\020d\022\"\n\036" + - "MAX_LIFECYCLE_RULES_PER_BUCKET\020d\022&\n\"MAX_" + - "NOTIFICATION_CUSTOM_ATTRIBUTES\020\005\0221\n,MAX_" + - "NOTIFICATION_CUSTOM_ATTRIBUTE_KEY_LENGTH" + - "\020\200\002\0223\n.MAX_NOTIFICATION_CUSTOM_ATTRIBUTE" + - "_VALUE_LENGTH\020\200\010\022\034\n\030MAX_LABELS_ENTRIES_C" + - "OUNT\020@\022\037\n\033MAX_LABELS_KEY_VALUE_LENGTH\020?\022" + - "\037\n\032MAX_LABELS_KEY_VALUE_BYTES\020\200\001\022.\n)MAX_" + - "OBJECT_IDS_PER_DELETE_OBJECTS_REQUEST\020\350\007" + - "\022\036\n\032SPLIT_TOKEN_MAX_VALID_DAYS\020\016\032\002\020\001\"\222\034\n" + - "\006Bucket\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\026\n\tbucket_id\030" + - "\002 \001(\tB\003\340A\003\022\014\n\004etag\030\035 \001(\t\022D\n\007project\030\003 \001(" + - "\tB3\340A\005\372A-\n+cloudresourcemanager.googleap" + - "is.com/Project\022\033\n\016metageneration\030\004 \001(\003B\003" + - "\340A\003\022\025\n\010location\030\005 \001(\tB\003\340A\005\022\032\n\rlocation_t" + - "ype\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.BucketAccessControl\022B\n\022default_objec" + - "t_acl\030\t \003(\0132&.google.storage.v2.ObjectAc" + - "cessControl\0226\n\tlifecycle\030\n \001(\0132#.google." + - "storage.v2.Bucket.Lifecycle\0224\n\013create_ti" + - "me\030\013 \001(\0132\032.google.protobuf.TimestampB\003\340A" + - "\003\022,\n\004cors\030\014 \003(\0132\036.google.storage.v2.Buck" + - "et.Cors\0224\n\013update_time\030\r \001(\0132\032.google.pr" + - "otobuf.TimestampB\003\340A\003\022 \n\030default_event_b" + - "ased_hold\030\016 \001(\010\0225\n\006labels\030\017 \003(\0132%.google" + - ".storage.v2.Bucket.LabelsEntry\0222\n\007websit" + - "e\030\020 \001(\0132!.google.storage.v2.Bucket.Websi" + - "te\0228\n\nversioning\030\021 \001(\0132$.google.storage." + - "v2.Bucket.Versioning\0222\n\007logging\030\022 \001(\0132!." + - "google.storage.v2.Bucket.Logging\022,\n\005owne" + - "r\030\023 \001(\0132\030.google.storage.v2.OwnerB\003\340A\003\0228" + - "\n\nencryption\030\024 \001(\0132$.google.storage.v2.B" + - "ucket.Encryption\0222\n\007billing\030\025 \001(\0132!.goog" + - "le.storage.v2.Bucket.Billing\022C\n\020retentio" + - "n_policy\030\026 \001(\0132).google.storage.v2.Bucke" + - "t.RetentionPolicy\0227\n\niam_config\030\027 \001(\0132#." + - "google.storage.v2.Bucket.IamConfig\022\025\n\rsa" + - "tisfies_pzs\030\031 \001(\010\022P\n\027custom_placement_co" + - "nfig\030\032 \001(\0132/.google.storage.v2.Bucket.Cu" + - "stomPlacementConfig\0226\n\tautoclass\030\034 \001(\0132#" + - ".google.storage.v2.Bucket.Autoclass\022T\n\026h" + - "ierarchical_namespace\030 \001(\0132/.google.sto" + - "rage.v2.Bucket.HierarchicalNamespaceB\003\340A" + - "\001\022K\n\022soft_delete_policy\030\037 \001(\0132*.google.s" + - "torage.v2.Bucket.SoftDeletePolicyB\003\340A\001\032!" + - "\n\007Billing\022\026\n\016requester_pays\030\001 \001(\010\032X\n\004Cor" + - "s\022\016\n\006origin\030\001 \003(\t\022\016\n\006method\030\002 \003(\t\022\027\n\017res" + - "ponse_header\030\003 \003(\t\022\027\n\017max_age_seconds\030\004 " + - "\001(\005\032M\n\nEncryption\022?\n\017default_kms_key\030\001 \001" + - "(\tB&\372A#\n!cloudkms.googleapis.com/CryptoK" + - "ey\032\354\001\n\tIamConfig\022a\n\033uniform_bucket_level" + - "_access\030\001 \001(\0132<.google.storage.v2.Bucket" + - ".IamConfig.UniformBucketLevelAccess\022 \n\030p" + - "ublic_access_prevention\030\003 \001(\t\032Z\n\030Uniform" + - "BucketLevelAccess\022\017\n\007enabled\030\001 \001(\010\022-\n\tlo" + - "ck_time\030\002 \001(\0132\032.google.protobuf.Timestam" + - "p\032\363\005\n\tLifecycle\0226\n\004rule\030\001 \003(\0132(.google.s" + - "torage.v2.Bucket.Lifecycle.Rule\032\255\005\n\004Rule" + - "\022?\n\006action\030\001 \001(\0132/.google.storage.v2.Buc" + - "ket.Lifecycle.Rule.Action\022E\n\tcondition\030\002" + - " \001(\01322.google.storage.v2.Bucket.Lifecycl" + - "e.Rule.Condition\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.google.type.Date\022\024\n\007is_live\030\003 \001(\010" + - "H\001\210\001\001\022\037\n\022num_newer_versions\030\004 \001(\005H\002\210\001\001\022\035" + - "\n\025matches_storage_class\030\005 \003(\t\022#\n\026days_si" + - "nce_custom_time\030\007 \001(\005H\003\210\001\001\022-\n\022custom_tim" + - "e_before\030\010 \001(\0132\021.google.type.Date\022\'\n\032day" + - "s_since_noncurrent_time\030\t \001(\005H\004\210\001\001\0221\n\026no" + - "ncurrent_time_before\030\n \001(\0132\021.google.type" + - ".Date\022\026\n\016matches_prefix\030\013 \003(\t\022\026\n\016matches" + - "_suffix\030\014 \003(\tB\013\n\t_age_daysB\n\n\010_is_liveB\025" + - "\n\023_num_newer_versionsB\031\n\027_days_since_cus" + - "tom_timeB\035\n\033_days_since_noncurrent_time\032" + - "8\n\007Logging\022\022\n\nlog_bucket\030\001 \001(\t\022\031\n\021log_ob" + - "ject_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\022retentio" + - "n_duration\030\004 \001(\0132\031.google.protobuf.Durat" + - "ion\032\261\001\n\020SoftDeletePolicy\022:\n\022retention_du" + - "ration\030\001 \001(\0132\031.google.protobuf.DurationH" + - "\000\210\001\001\0227\n\016effective_time\030\002 \001(\0132\032.google.pr" + - "otobuf.TimestampH\001\210\001\001B\025\n\023_retention_dura" + - "tionB\021\n\017_effective_time\032\035\n\nVersioning\022\017\n" + - "\007enabled\030\001 \001(\010\032;\n\007Website\022\030\n\020main_page_s" + - "uffix\030\001 \001(\t\022\026\n\016not_found_page\030\002 \001(\t\032/\n\025C" + - "ustomPlacementConfig\022\026\n\016data_locations\030\001" + - " \003(\t\032\213\002\n\tAutoclass\022\017\n\007enabled\030\001 \001(\010\0224\n\013t" + - "oggle_time\030\002 \001(\0132\032.google.protobuf.Times" + - "tampB\003\340A\003\022#\n\026terminal_storage_class\030\003 \001(" + - "\tH\000\210\001\001\022P\n\"terminal_storage_class_update_" + - "time\030\004 \001(\0132\032.google.protobuf.TimestampB\003" + - "\340A\003H\001\210\001\001B\031\n\027_terminal_storage_classB%\n#_" + - "terminal_storage_class_update_time\032-\n\025Hi" + - "erarchicalNamespace\022\024\n\007enabled\030\001 \001(\010B\003\340A" + - "\001\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.googleapis.com/Bu" + - "cket\022#projects/{project}/buckets/{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_al" + - "t\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\014" + - "project_team\030\007 \001(\0132\036.google.storage.v2.P" + - "rojectTeam\"I\n\017ChecksummedData\022\026\n\007content" + - "\030\001 \001(\014B\005\010\001\340A\001\022\023\n\006crc32c\030\002 \001(\007H\000\210\001\001B\t\n\007_c" + - "rc32c\"C\n\017ObjectChecksums\022\023\n\006crc32c\030\001 \001(\007" + - "H\000\210\001\001\022\020\n\010md5_hash\030\002 \001(\014B\t\n\007_crc32c\"\255\002\n\017H" + - "macKeyMetadata\022\017\n\002id\030\001 \001(\tB\003\340A\005\022\026\n\tacces" + - "s_id\030\002 \001(\tB\003\340A\005\022D\n\007project\030\003 \001(\tB3\340A\005\372A-", - "\n+cloudresourcemanager.googleapis.com/Pr" + - "oject\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\0224\n\013update" + - "_time\030\007 \001(\0132\032.google.protobuf.TimestampB" + - "\003\340A\003\022\014\n\004etag\030\010 \001(\t\"\247\003\n\022NotificationConfi" + - "g\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\021c" + - "ustom_attributes\030\004 \003(\0132;.google.storage." + - "v2.NotificationConfig.CustomAttributesEn" + - "try\022\032\n\022object_name_prefix\030\005 \001(\t\022\033\n\016paylo" + - "ad_format\030\006 \001(\tB\003\340A\002\0327\n\025CustomAttributes" + - "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:}\352" + - "Az\n)storage.googleapis.com/NotificationC" + - "onfig\022Mprojects/{project}/buckets/{bucke" + - "t}/notificationConfigs/{notification_con" + - "fig}\"L\n\022CustomerEncryption\022\034\n\024encryption" + - "_algorithm\030\001 \001(\t\022\030\n\020key_sha256_bytes\030\003 \001" + - "(\014\"\254\n\n\006Object\022\021\n\004name\030\001 \001(\tB\003\340A\005\0225\n\006buck" + - "et\030\002 \001(\tB%\340A\005\372A\037\n\035storage.googleapis.com" + - "/Bucket\022\014\n\004etag\030\033 \001(\t\022\027\n\ngeneration\030\003 \001(" + - "\003B\003\340A\005\022\033\n\016metageneration\030\004 \001(\003B\003\340A\003\022\025\n\rs" + - "torage_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\023content_dispo" + - "sition\030\010 \001(\t\022\025\n\rcache_control\030\t \001(\t\0223\n\003a" + - "cl\030\n \003(\0132&.google.storage.v2.ObjectAcces" + - "sControl\022\030\n\020content_language\030\013 \001(\t\0224\n\013de" + - "lete_time\030\014 \001(\0132\032.google.protobuf.Timest" + - "ampB\003\340A\003\022\024\n\014content_type\030\r \001(\t\0224\n\013create" + - "_time\030\016 \001(\0132\032.google.protobuf.TimestampB" + - "\003\340A\003\022\034\n\017component_count\030\017 \001(\005B\003\340A\003\022:\n\tch" + - "ecksums\030\020 \001(\0132\".google.storage.v2.Object" + - "ChecksumsB\003\340A\003\0224\n\013update_time\030\021 \001(\0132\032.go" + - "ogle.protobuf.TimestampB\003\340A\003\0227\n\007kms_key\030" + - "\022 \001(\tB&\372A#\n!cloudkms.googleapis.com/Cryp" + - "toKey\022B\n\031update_storage_class_time\030\023 \001(\013" + - "2\032.google.protobuf.TimestampB\003\340A\003\022\026\n\016tem" + - "porary_hold\030\024 \001(\010\0229\n\025retention_expire_ti" + - "me\030\025 \001(\0132\032.google.protobuf.Timestamp\0229\n\010" + - "metadata\030\026 \003(\0132\'.google.storage.v2.Objec" + - "t.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.v" + - "2.OwnerB\003\340A\003\022B\n\023customer_encryption\030\031 \001(" + - "\0132%.google.storage.v2.CustomerEncryption" + - "\022/\n\013custom_time\030\032 \001(\0132\032.google.protobuf." + - "Timestamp\022>\n\020soft_delete_time\030\034 \001(\0132\032.go" + - "ogle.protobuf.TimestampB\003\340A\003H\001\210\001\001\022>\n\020har" + - "d_delete_time\030\035 \001(\0132\032.google.protobuf.Ti" + - "mestampB\003\340A\003H\002\210\001\001\032/\n\rMetadataEntry\022\013\n\003ke" + - "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\023\n\021_event_bas" + - "ed_holdB\023\n\021_soft_delete_timeB\023\n\021_hard_de" + - "lete_time\"\316\001\n\023ObjectAccessControl\022\014\n\004rol" + - "e\030\001 \001(\t\022\n\n\002id\030\002 \001(\t\022\016\n\006entity\030\003 \001(\t\022\027\n\ne" + - "ntity_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.stor" + - "age.v2.ProjectTeam\"l\n\023ListObjectsRespons" + - "e\022*\n\007objects\030\001 \003(\0132\031.google.storage.v2.O" + - "bject\022\020\n\010prefixes\030\002 \003(\t\022\027\n\017next_page_tok" + - "en\030\003 \001(\t\"3\n\013ProjectTeam\022\026\n\016project_numbe" + - "r\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\006entit" + - "y\030\001 \001(\t\022\021\n\tentity_id\030\002 \001(\t\"C\n\014ContentRan" + - "ge\022\r\n\005start\030\001 \001(\003\022\013\n\003end\030\002 \001(\003\022\027\n\017comple" + - "te_length\030\003 \001(\0032\252\'\n\007Storage\022r\n\014DeleteBuc" + - "ket\022&.google.storage.v2.DeleteBucketRequ" + - "est\032\026.google.protobuf.Empty\"\"\332A\004name\212\323\344\223" + - "\002\025\022\023\n\004name\022\013{bucket=**}\022o\n\tGetBucket\022#.g" + - "oogle.storage.v2.GetBucketRequest\032\031.goog" + - "le.storage.v2.Bucket\"\"\332A\004name\212\323\344\223\002\025\022\023\n\004n" + - "ame\022\013{bucket=**}\022\253\001\n\014CreateBucket\022&.goog" + - "le.storage.v2.CreateBucketRequest\032\031.goog" + - "le.storage.v2.Bucket\"X\332A\027parent,bucket,b" + - "ucket_id\212\323\344\223\0028\022\026\n\006parent\022\014{project=**}\022\036" + - "\n\016bucket.project\022\014{project=**}\022\205\001\n\013ListB" + - "uckets\022%.google.storage.v2.ListBucketsRe" + - "quest\032&.google.storage.v2.ListBucketsRes" + - "ponse\"\'\332A\006parent\212\323\344\223\002\030\022\026\n\006parent\022\014{proje" + - "ct=**}\022\223\001\n\031LockBucketRetentionPolicy\0223.g" + - "oogle.storage.v2.LockBucketRetentionPoli" + - "cyRequest\032\031.google.storage.v2.Bucket\"&\332A" + - "\006bucket\212\323\344\223\002\027\022\025\n\006bucket\022\013{bucket=**}\022u\n\014" + - "GetIamPolicy\022\".google.iam.v1.GetIamPolic" + - "yRequest\032\025.google.iam.v1.Policy\"*\332A\010reso" + - "urce\212\323\344\223\002\031\022\027\n\010resource\022\013{bucket=**}\022|\n\014S" + - "etIamPolicy\022\".google.iam.v1.SetIamPolicy" + - "Request\032\025.google.iam.v1.Policy\"1\332A\017resou" + - "rce,policy\212\323\344\223\002\031\022\027\n\010resource\022\013{bucket=**" + - "}\022\327\001\n\022TestIamPermissions\022(.google.iam.v1" + - ".TestIamPermissionsRequest\032).google.iam." + - "v1.TestIamPermissionsResponse\"l\332A\024resour" + - "ce,permissions\212\323\344\223\002O\022\027\n\010resource\022\013{bucke" + - "t=**}\0224\n\010resource\022({bucket=projects/*/bu" + - "ckets/*}/objects/**\022\212\001\n\014UpdateBucket\022&.g" + - "oogle.storage.v2.UpdateBucketRequest\032\031.g" + - "oogle.storage.v2.Bucket\"7\332A\022bucket,updat" + - "e_mask\212\323\344\223\002\034\022\032\n\013bucket.name\022\013{bucket=**}" + - "\022\237\001\n\030DeleteNotificationConfig\0222.google.s" + - "torage.v2.DeleteNotificationConfigReques" + - "t\032\026.google.protobuf.Empty\"7\332A\004name\212\323\344\223\002*" + - "\022(\n\004name\022 {bucket=projects/*/buckets/*}/" + - "**\022\250\001\n\025GetNotificationConfig\022/.google.st" + - "orage.v2.GetNotificationConfigRequest\032%." + - "google.storage.v2.NotificationConfig\"7\332A" + - "\004name\212\323\344\223\002*\022(\n\004name\022 {bucket=projects/*/" + - "buckets/*}/**\022\261\001\n\030CreateNotificationConf" + - "ig\0222.google.storage.v2.CreateNotificatio" + - "nConfigRequest\032%.google.storage.v2.Notif" + - "icationConfig\":\332A\032parent,notification_co" + - "nfig\212\323\344\223\002\027\022\025\n\006parent\022\013{bucket=**}\022\250\001\n\027Li" + - "stNotificationConfigs\0221.google.storage.v" + - "2.ListNotificationConfigsRequest\0322.googl" + - "e.storage.v2.ListNotificationConfigsResp" + - "onse\"&\332A\006parent\212\323\344\223\002\027\022\025\n\006parent\022\013{bucket" + - "=**}\022~\n\rComposeObject\022\'.google.storage.v" + - "2.ComposeObjectRequest\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.s" + - "torage.v2.DeleteObjectRequest\032\026.google.p" + - "rotobuf.Empty\"H\332A\rbucket,object\332A\030bucket" + - ",object,generation\212\323\344\223\002\027\022\025\n\006bucket\022\013{buc" + - "ket=**}\022\215\001\n\rRestoreObject\022\'.google.stora" + - "ge.v2.RestoreObjectRequest\032\031.google.stor" + - "age.v2.Object\"8\332A\030bucket,object,generati" + - "on\212\323\344\223\002\027\022\025\n\006bucket\022\013{bucket=**}\022\272\001\n\024Canc" + - "elResumableWrite\022..google.storage.v2.Can" + - "celResumableWriteRequest\032/.google.storag" + - "e.v2.CancelResumableWriteResponse\"A\332A\tup" + - "load_id\212\323\344\223\002/\022-\n\tupload_id\022 {bucket=proj" + - "ects/*/buckets/*}/**\022\225\001\n\tGetObject\022#.goo" + - "gle.storage.v2.GetObjectRequest\032\031.google" + - ".storage.v2.Object\"H\332A\rbucket,object\332A\030b" + - "ucket,object,generation\212\323\344\223\002\027\022\025\n\006bucket\022" + - "\013{bucket=**}\022\245\001\n\nReadObject\022$.google.sto" + - "rage.v2.ReadObjectRequest\032%.google.stora" + - "ge.v2.ReadObjectResponse\"H\332A\rbucket,obje" + - "ct\332A\030bucket,object,generation\212\323\344\223\002\027\022\025\n\006b" + - "ucket\022\013{bucket=**}0\001\022\214\001\n\014UpdateObject\022&." + - "google.storage.v2.UpdateObjectRequest\032\031." + - "google.storage.v2.Object\"9\332A\022object,upda" + - "te_mask\212\323\344\223\002\036\022\034\n\robject.bucket\022\013{bucket=" + - "**}\022`\n\013WriteObject\022%.google.storage.v2.W" + - "riteObjectRequest\032&.google.storage.v2.Wr" + - "iteObjectResponse\"\000(\001\022n\n\017BidiWriteObject" + - "\022).google.storage.v2.BidiWriteObjectRequ" + - "est\032*.google.storage.v2.BidiWriteObjectR" + - "esponse\"\000(\0010\001\022\204\001\n\013ListObjects\022%.google.s" + - "torage.v2.ListObjectsRequest\032&.google.st" + - "orage.v2.ListObjectsResponse\"&\332A\006parent\212" + - "\323\344\223\002\027\022\025\n\006parent\022\013{bucket=**}\022\230\001\n\rRewrite" + - "Object\022\'.google.storage.v2.RewriteObject" + - "Request\032\".google.storage.v2.RewriteRespo" + - "nse\":\212\323\344\223\0024\022\017\n\rsource_bucket\022!\n\022destinat" + - "ion_bucket\022\013{bucket=**}\022\256\001\n\023StartResumab" + - "leWrite\022-.google.storage.v2.StartResumab" + - "leWriteRequest\032..google.storage.v2.Start" + - "ResumableWriteResponse\"8\212\323\344\223\0022\0220\n!write_" + - "object_spec.resource.bucket\022\013{bucket=**}" + - "\022\256\001\n\020QueryWriteStatus\022*.google.storage.v" + - "2.QueryWriteStatusRequest\032+.google.stora" + - "ge.v2.QueryWriteStatusResponse\"A\332A\tuploa" + - "d_id\212\323\344\223\002/\022-\n\tupload_id\022 {bucket=project" + - "s/*/buckets/*}/**\022\200\001\n\021GetServiceAccount\022" + - "+.google.storage.v2.GetServiceAccountReq" + - "uest\032!.google.storage.v2.ServiceAccount\"" + - "\033\332A\007project\212\323\344\223\002\013\022\t\n\007project\022\225\001\n\rCreateH" + - "macKey\022\'.google.storage.v2.CreateHmacKey" + - "Request\032(.google.storage.v2.CreateHmacKe" + - "yResponse\"1\332A\035project,service_account_em" + - "ail\212\323\344\223\002\013\022\t\n\007project\022w\n\rDeleteHmacKey\022\'." + - "google.storage.v2.DeleteHmacKeyRequest\032\026" + - ".google.protobuf.Empty\"%\332A\021access_id,pro" + - "ject\212\323\344\223\002\013\022\t\n\007project\022}\n\nGetHmacKey\022$.go" + - "ogle.storage.v2.GetHmacKeyRequest\032\".goog" + - "le.storage.v2.HmacKeyMetadata\"%\332A\021access" + - "_id,project\212\323\344\223\002\013\022\t\n\007project\022|\n\014ListHmac" + - "Keys\022&.google.storage.v2.ListHmacKeysReq" + - "uest\032\'.google.storage.v2.ListHmacKeysRes" + - "ponse\"\033\332A\007project\212\323\344\223\002\013\022\t\n\007project\022\235\001\n\rU" + - "pdateHmacKey\022\'.google.storage.v2.UpdateH" + - "macKeyRequest\032\".google.storage.v2.HmacKe" + - "yMetadata\"?\332A\024hmac_key,update_mask\212\323\344\223\002\"" + - "\022 \n\020hmac_key.project\022\014{project=**}\032\247\002\312A\026" + - "storage.googleapis.com\322A\212\002https://www.go" + - "ogleapis.com/auth/cloud-platform,https:/" + - "/www.googleapis.com/auth/cloud-platform." + - "read-only,https://www.googleapis.com/aut" + - "h/devstorage.full_control,https://www.go" + - "ogleapis.com/auth/devstorage.read_only,h" + - "ttps://www.googleapis.com/auth/devstorag" + - "e.read_writeB\342\001\n\025com.google.storage.v2B\014" + - "StorageProtoP\001Z>cloud.google.com/go/stor" + - "age/internal/apiv2/storagepb;storagepb\352A" + - "x\n!cloudkms.googleapis.com/CryptoKey\022Spr" + - "ojects/{project}/locations/{location}/ke" + - "yRings/{key_ring}/cryptoKeys/{crypto_key" + - "}b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.api.RoutingProto.getDescriptor(), - com.google.iam.v1.IamPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.type.DateProto.getDescriptor(), - }); - internal_static_google_storage_v2_DeleteBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_storage_v2_DeleteBucketRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_DeleteBucketRequest_descriptor, - new java.lang.String[] { "Name", "IfMetagenerationMatch", "IfMetagenerationNotMatch", }); - internal_static_google_storage_v2_GetBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_storage_v2_GetBucketRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_GetBucketRequest_descriptor, - new java.lang.String[] { "Name", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "ReadMask", }); - internal_static_google_storage_v2_CreateBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_storage_v2_CreateBucketRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_CreateBucketRequest_descriptor, - new java.lang.String[] { "Parent", "Bucket", "BucketId", "PredefinedAcl", "PredefinedDefaultObjectAcl", }); - internal_static_google_storage_v2_ListBucketsRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_storage_v2_ListBucketsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ListBucketsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Prefix", "ReadMask", }); - internal_static_google_storage_v2_ListBucketsResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_storage_v2_ListBucketsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ListBucketsResponse_descriptor, - new java.lang.String[] { "Buckets", "NextPageToken", }); - internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_descriptor, - new java.lang.String[] { "Bucket", "IfMetagenerationMatch", }); - internal_static_google_storage_v2_UpdateBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_storage_v2_UpdateBucketRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_UpdateBucketRequest_descriptor, - new java.lang.String[] { "Bucket", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "PredefinedAcl", "PredefinedDefaultObjectAcl", "UpdateMask", }); - internal_static_google_storage_v2_DeleteNotificationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_storage_v2_DeleteNotificationConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_DeleteNotificationConfigRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_storage_v2_GetNotificationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_storage_v2_GetNotificationConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_GetNotificationConfigRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_storage_v2_CreateNotificationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_storage_v2_CreateNotificationConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_CreateNotificationConfigRequest_descriptor, - new java.lang.String[] { "Parent", "NotificationConfig", }); - internal_static_google_storage_v2_ListNotificationConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_storage_v2_ListNotificationConfigsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ListNotificationConfigsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_storage_v2_ListNotificationConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_storage_v2_ListNotificationConfigsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ListNotificationConfigsResponse_descriptor, - new java.lang.String[] { "NotificationConfigs", "NextPageToken", }); - internal_static_google_storage_v2_ComposeObjectRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_storage_v2_ComposeObjectRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ComposeObjectRequest_descriptor, - new java.lang.String[] { "Destination", "SourceObjects", "DestinationPredefinedAcl", "IfGenerationMatch", "IfMetagenerationMatch", "KmsKey", "CommonObjectRequestParams", "ObjectChecksums", }); - internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor = - internal_static_google_storage_v2_ComposeObjectRequest_descriptor.getNestedTypes().get(0); - internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor, - new java.lang.String[] { "Name", "Generation", "ObjectPreconditions", }); - internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_descriptor = - internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor.getNestedTypes().get(0); - internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_descriptor, - new java.lang.String[] { "IfGenerationMatch", }); - internal_static_google_storage_v2_DeleteObjectRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_storage_v2_DeleteObjectRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_DeleteObjectRequest_descriptor, - new java.lang.String[] { "Bucket", "Object", "Generation", "IfGenerationMatch", "IfGenerationNotMatch", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "CommonObjectRequestParams", }); - internal_static_google_storage_v2_RestoreObjectRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_storage_v2_RestoreObjectRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_RestoreObjectRequest_descriptor, - new java.lang.String[] { "Bucket", "Object", "Generation", "IfGenerationMatch", "IfGenerationNotMatch", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "CopySourceAcl", "CommonObjectRequestParams", }); - internal_static_google_storage_v2_CancelResumableWriteRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_storage_v2_CancelResumableWriteRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_CancelResumableWriteRequest_descriptor, - new java.lang.String[] { "UploadId", }); - internal_static_google_storage_v2_CancelResumableWriteResponse_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_storage_v2_CancelResumableWriteResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_CancelResumableWriteResponse_descriptor, - new java.lang.String[] { }); - internal_static_google_storage_v2_ReadObjectRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_storage_v2_ReadObjectRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ReadObjectRequest_descriptor, - new java.lang.String[] { "Bucket", "Object", "Generation", "ReadOffset", "ReadLimit", "IfGenerationMatch", "IfGenerationNotMatch", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "CommonObjectRequestParams", "ReadMask", }); - internal_static_google_storage_v2_GetObjectRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_storage_v2_GetObjectRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_GetObjectRequest_descriptor, - new java.lang.String[] { "Bucket", "Object", "Generation", "SoftDeleted", "IfGenerationMatch", "IfGenerationNotMatch", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "CommonObjectRequestParams", "ReadMask", }); - internal_static_google_storage_v2_ReadObjectResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_storage_v2_ReadObjectResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ReadObjectResponse_descriptor, - new java.lang.String[] { "ChecksummedData", "ObjectChecksums", "ContentRange", "Metadata", }); - internal_static_google_storage_v2_WriteObjectSpec_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_storage_v2_WriteObjectSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_WriteObjectSpec_descriptor, - new java.lang.String[] { "Resource", "PredefinedAcl", "IfGenerationMatch", "IfGenerationNotMatch", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "ObjectSize", }); - internal_static_google_storage_v2_WriteObjectRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_storage_v2_WriteObjectRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_WriteObjectRequest_descriptor, - new java.lang.String[] { "UploadId", "WriteObjectSpec", "WriteOffset", "ChecksummedData", "ObjectChecksums", "FinishWrite", "CommonObjectRequestParams", "FirstMessage", "Data", }); - internal_static_google_storage_v2_WriteObjectResponse_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_storage_v2_WriteObjectResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_WriteObjectResponse_descriptor, - new java.lang.String[] { "PersistedSize", "Resource", "WriteStatus", }); - internal_static_google_storage_v2_BidiWriteObjectRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_storage_v2_BidiWriteObjectRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_BidiWriteObjectRequest_descriptor, - new java.lang.String[] { "UploadId", "WriteObjectSpec", "WriteOffset", "ChecksummedData", "ObjectChecksums", "StateLookup", "Flush", "FinishWrite", "CommonObjectRequestParams", "FirstMessage", "Data", }); - internal_static_google_storage_v2_BidiWriteObjectResponse_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_storage_v2_BidiWriteObjectResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_BidiWriteObjectResponse_descriptor, - new java.lang.String[] { "PersistedSize", "Resource", "WriteStatus", }); - internal_static_google_storage_v2_ListObjectsRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_storage_v2_ListObjectsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ListObjectsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Delimiter", "IncludeTrailingDelimiter", "Prefix", "Versions", "ReadMask", "LexicographicStart", "LexicographicEnd", "SoftDeleted", "IncludeFoldersAsPrefixes", "MatchGlob", }); - internal_static_google_storage_v2_QueryWriteStatusRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_storage_v2_QueryWriteStatusRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_QueryWriteStatusRequest_descriptor, - new java.lang.String[] { "UploadId", "CommonObjectRequestParams", }); - internal_static_google_storage_v2_QueryWriteStatusResponse_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_storage_v2_QueryWriteStatusResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_QueryWriteStatusResponse_descriptor, - new java.lang.String[] { "PersistedSize", "Resource", "WriteStatus", }); - internal_static_google_storage_v2_RewriteObjectRequest_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_storage_v2_RewriteObjectRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_RewriteObjectRequest_descriptor, - new java.lang.String[] { "DestinationName", "DestinationBucket", "DestinationKmsKey", "Destination", "SourceBucket", "SourceObject", "SourceGeneration", "RewriteToken", "DestinationPredefinedAcl", "IfGenerationMatch", "IfGenerationNotMatch", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "IfSourceGenerationMatch", "IfSourceGenerationNotMatch", "IfSourceMetagenerationMatch", "IfSourceMetagenerationNotMatch", "MaxBytesRewrittenPerCall", "CopySourceEncryptionAlgorithm", "CopySourceEncryptionKeyBytes", "CopySourceEncryptionKeySha256Bytes", "CommonObjectRequestParams", "ObjectChecksums", }); - internal_static_google_storage_v2_RewriteResponse_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_storage_v2_RewriteResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_RewriteResponse_descriptor, - new java.lang.String[] { "TotalBytesRewritten", "ObjectSize", "Done", "RewriteToken", "Resource", }); - internal_static_google_storage_v2_StartResumableWriteRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_storage_v2_StartResumableWriteRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_StartResumableWriteRequest_descriptor, - new java.lang.String[] { "WriteObjectSpec", "CommonObjectRequestParams", "ObjectChecksums", }); - internal_static_google_storage_v2_StartResumableWriteResponse_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_storage_v2_StartResumableWriteResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_StartResumableWriteResponse_descriptor, - new java.lang.String[] { "UploadId", }); - internal_static_google_storage_v2_UpdateObjectRequest_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_storage_v2_UpdateObjectRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_UpdateObjectRequest_descriptor, - new java.lang.String[] { "Object", "IfGenerationMatch", "IfGenerationNotMatch", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "PredefinedAcl", "UpdateMask", "CommonObjectRequestParams", }); - internal_static_google_storage_v2_GetServiceAccountRequest_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_storage_v2_GetServiceAccountRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_GetServiceAccountRequest_descriptor, - new java.lang.String[] { "Project", }); - internal_static_google_storage_v2_CreateHmacKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_storage_v2_CreateHmacKeyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_CreateHmacKeyRequest_descriptor, - new java.lang.String[] { "Project", "ServiceAccountEmail", }); - internal_static_google_storage_v2_CreateHmacKeyResponse_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_storage_v2_CreateHmacKeyResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_CreateHmacKeyResponse_descriptor, - new java.lang.String[] { "Metadata", "SecretKeyBytes", }); - internal_static_google_storage_v2_DeleteHmacKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_storage_v2_DeleteHmacKeyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_DeleteHmacKeyRequest_descriptor, - new java.lang.String[] { "AccessId", "Project", }); - internal_static_google_storage_v2_GetHmacKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_google_storage_v2_GetHmacKeyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_GetHmacKeyRequest_descriptor, - new java.lang.String[] { "AccessId", "Project", }); - internal_static_google_storage_v2_ListHmacKeysRequest_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_google_storage_v2_ListHmacKeysRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ListHmacKeysRequest_descriptor, - new java.lang.String[] { "Project", "PageSize", "PageToken", "ServiceAccountEmail", "ShowDeletedKeys", }); - internal_static_google_storage_v2_ListHmacKeysResponse_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_google_storage_v2_ListHmacKeysResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ListHmacKeysResponse_descriptor, - new java.lang.String[] { "HmacKeys", "NextPageToken", }); - internal_static_google_storage_v2_UpdateHmacKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_google_storage_v2_UpdateHmacKeyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_UpdateHmacKeyRequest_descriptor, - new java.lang.String[] { "HmacKey", "UpdateMask", }); - internal_static_google_storage_v2_CommonObjectRequestParams_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_google_storage_v2_CommonObjectRequestParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_CommonObjectRequestParams_descriptor, - new java.lang.String[] { "EncryptionAlgorithm", "EncryptionKeyBytes", "EncryptionKeySha256Bytes", }); - internal_static_google_storage_v2_ServiceConstants_descriptor = - getDescriptor().getMessageTypes().get(42); - internal_static_google_storage_v2_ServiceConstants_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ServiceConstants_descriptor, - new java.lang.String[] { }); - internal_static_google_storage_v2_Bucket_descriptor = - getDescriptor().getMessageTypes().get(43); - internal_static_google_storage_v2_Bucket_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_descriptor, - new java.lang.String[] { "Name", "BucketId", "Etag", "Project", "Metageneration", "Location", "LocationType", "StorageClass", "Rpo", "Acl", "DefaultObjectAcl", "Lifecycle", "CreateTime", "Cors", "UpdateTime", "DefaultEventBasedHold", "Labels", "Website", "Versioning", "Logging", "Owner", "Encryption", "Billing", "RetentionPolicy", "IamConfig", "SatisfiesPzs", "CustomPlacementConfig", "Autoclass", "HierarchicalNamespace", "SoftDeletePolicy", }); - internal_static_google_storage_v2_Bucket_Billing_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(0); - internal_static_google_storage_v2_Bucket_Billing_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_Billing_descriptor, - new java.lang.String[] { "RequesterPays", }); - internal_static_google_storage_v2_Bucket_Cors_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(1); - internal_static_google_storage_v2_Bucket_Cors_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_Cors_descriptor, - new java.lang.String[] { "Origin", "Method", "ResponseHeader", "MaxAgeSeconds", }); - internal_static_google_storage_v2_Bucket_Encryption_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(2); - internal_static_google_storage_v2_Bucket_Encryption_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_Encryption_descriptor, - new java.lang.String[] { "DefaultKmsKey", }); - internal_static_google_storage_v2_Bucket_IamConfig_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(3); - internal_static_google_storage_v2_Bucket_IamConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_IamConfig_descriptor, - new java.lang.String[] { "UniformBucketLevelAccess", "PublicAccessPrevention", }); - internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_descriptor = - internal_static_google_storage_v2_Bucket_IamConfig_descriptor.getNestedTypes().get(0); - internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_descriptor, - new java.lang.String[] { "Enabled", "LockTime", }); - internal_static_google_storage_v2_Bucket_Lifecycle_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(4); - internal_static_google_storage_v2_Bucket_Lifecycle_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_Lifecycle_descriptor, - new java.lang.String[] { "Rule", }); - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor = - internal_static_google_storage_v2_Bucket_Lifecycle_descriptor.getNestedTypes().get(0); - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor, - new java.lang.String[] { "Action", "Condition", }); - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_descriptor = - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor.getNestedTypes().get(0); - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_descriptor, - new java.lang.String[] { "Type", "StorageClass", }); - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_descriptor = - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor.getNestedTypes().get(1); - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_descriptor, - new java.lang.String[] { "AgeDays", "CreatedBefore", "IsLive", "NumNewerVersions", "MatchesStorageClass", "DaysSinceCustomTime", "CustomTimeBefore", "DaysSinceNoncurrentTime", "NoncurrentTimeBefore", "MatchesPrefix", "MatchesSuffix", }); - internal_static_google_storage_v2_Bucket_Logging_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(5); - internal_static_google_storage_v2_Bucket_Logging_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_Logging_descriptor, - new java.lang.String[] { "LogBucket", "LogObjectPrefix", }); - internal_static_google_storage_v2_Bucket_RetentionPolicy_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(6); - internal_static_google_storage_v2_Bucket_RetentionPolicy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_RetentionPolicy_descriptor, - new java.lang.String[] { "EffectiveTime", "IsLocked", "RetentionDuration", }); - internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(7); - internal_static_google_storage_v2_Bucket_SoftDeletePolicy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor, - new java.lang.String[] { "RetentionDuration", "EffectiveTime", }); - internal_static_google_storage_v2_Bucket_Versioning_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(8); - internal_static_google_storage_v2_Bucket_Versioning_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_Versioning_descriptor, - new java.lang.String[] { "Enabled", }); - internal_static_google_storage_v2_Bucket_Website_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(9); - internal_static_google_storage_v2_Bucket_Website_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_Website_descriptor, - new java.lang.String[] { "MainPageSuffix", "NotFoundPage", }); - internal_static_google_storage_v2_Bucket_CustomPlacementConfig_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(10); - internal_static_google_storage_v2_Bucket_CustomPlacementConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_CustomPlacementConfig_descriptor, - new java.lang.String[] { "DataLocations", }); - internal_static_google_storage_v2_Bucket_Autoclass_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(11); - internal_static_google_storage_v2_Bucket_Autoclass_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_Autoclass_descriptor, - new java.lang.String[] { "Enabled", "ToggleTime", "TerminalStorageClass", "TerminalStorageClassUpdateTime", }); - internal_static_google_storage_v2_Bucket_HierarchicalNamespace_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(12); - internal_static_google_storage_v2_Bucket_HierarchicalNamespace_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_HierarchicalNamespace_descriptor, - new java.lang.String[] { "Enabled", }); - internal_static_google_storage_v2_Bucket_LabelsEntry_descriptor = - internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(13); - internal_static_google_storage_v2_Bucket_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Bucket_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_storage_v2_BucketAccessControl_descriptor = - getDescriptor().getMessageTypes().get(44); - internal_static_google_storage_v2_BucketAccessControl_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_BucketAccessControl_descriptor, - new java.lang.String[] { "Role", "Id", "Entity", "EntityAlt", "EntityId", "Etag", "Email", "Domain", "ProjectTeam", }); - internal_static_google_storage_v2_ChecksummedData_descriptor = - getDescriptor().getMessageTypes().get(45); - internal_static_google_storage_v2_ChecksummedData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ChecksummedData_descriptor, - new java.lang.String[] { "Content", "Crc32C", }); - internal_static_google_storage_v2_ObjectChecksums_descriptor = - getDescriptor().getMessageTypes().get(46); - internal_static_google_storage_v2_ObjectChecksums_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ObjectChecksums_descriptor, - new java.lang.String[] { "Crc32C", "Md5Hash", }); - internal_static_google_storage_v2_HmacKeyMetadata_descriptor = - getDescriptor().getMessageTypes().get(47); - internal_static_google_storage_v2_HmacKeyMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_HmacKeyMetadata_descriptor, - new java.lang.String[] { "Id", "AccessId", "Project", "ServiceAccountEmail", "State", "CreateTime", "UpdateTime", "Etag", }); - internal_static_google_storage_v2_NotificationConfig_descriptor = - getDescriptor().getMessageTypes().get(48); - internal_static_google_storage_v2_NotificationConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_NotificationConfig_descriptor, - new java.lang.String[] { "Name", "Topic", "Etag", "EventTypes", "CustomAttributes", "ObjectNamePrefix", "PayloadFormat", }); - internal_static_google_storage_v2_NotificationConfig_CustomAttributesEntry_descriptor = - internal_static_google_storage_v2_NotificationConfig_descriptor.getNestedTypes().get(0); - internal_static_google_storage_v2_NotificationConfig_CustomAttributesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_NotificationConfig_CustomAttributesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_storage_v2_CustomerEncryption_descriptor = - getDescriptor().getMessageTypes().get(49); - internal_static_google_storage_v2_CustomerEncryption_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_CustomerEncryption_descriptor, - new java.lang.String[] { "EncryptionAlgorithm", "KeySha256Bytes", }); - internal_static_google_storage_v2_Object_descriptor = - getDescriptor().getMessageTypes().get(50); - internal_static_google_storage_v2_Object_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Object_descriptor, - new java.lang.String[] { "Name", "Bucket", "Etag", "Generation", "Metageneration", "StorageClass", "Size", "ContentEncoding", "ContentDisposition", "CacheControl", "Acl", "ContentLanguage", "DeleteTime", "ContentType", "CreateTime", "ComponentCount", "Checksums", "UpdateTime", "KmsKey", "UpdateStorageClassTime", "TemporaryHold", "RetentionExpireTime", "Metadata", "EventBasedHold", "Owner", "CustomerEncryption", "CustomTime", "SoftDeleteTime", "HardDeleteTime", }); - internal_static_google_storage_v2_Object_MetadataEntry_descriptor = - internal_static_google_storage_v2_Object_descriptor.getNestedTypes().get(0); - internal_static_google_storage_v2_Object_MetadataEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Object_MetadataEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_storage_v2_ObjectAccessControl_descriptor = - getDescriptor().getMessageTypes().get(51); - internal_static_google_storage_v2_ObjectAccessControl_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ObjectAccessControl_descriptor, - new java.lang.String[] { "Role", "Id", "Entity", "EntityAlt", "EntityId", "Etag", "Email", "Domain", "ProjectTeam", }); - internal_static_google_storage_v2_ListObjectsResponse_descriptor = - getDescriptor().getMessageTypes().get(52); - internal_static_google_storage_v2_ListObjectsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ListObjectsResponse_descriptor, - new java.lang.String[] { "Objects", "Prefixes", "NextPageToken", }); - internal_static_google_storage_v2_ProjectTeam_descriptor = - getDescriptor().getMessageTypes().get(53); - internal_static_google_storage_v2_ProjectTeam_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ProjectTeam_descriptor, - new java.lang.String[] { "ProjectNumber", "Team", }); - internal_static_google_storage_v2_ServiceAccount_descriptor = - getDescriptor().getMessageTypes().get(54); - internal_static_google_storage_v2_ServiceAccount_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ServiceAccount_descriptor, - new java.lang.String[] { "EmailAddress", }); - internal_static_google_storage_v2_Owner_descriptor = - getDescriptor().getMessageTypes().get(55); - internal_static_google_storage_v2_Owner_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_Owner_descriptor, - new java.lang.String[] { "Entity", "EntityId", }); - internal_static_google_storage_v2_ContentRange_descriptor = - getDescriptor().getMessageTypes().get(56); - internal_static_google_storage_v2_ContentRange_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_storage_v2_ContentRange_descriptor, - new java.lang.String[] { "Start", "End", "CompleteLength", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.api.RoutingProto.routing); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.api.RoutingProto.getDescriptor(); - com.google.iam.v1.IamPolicyProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.type.DateProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/BucketName.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/BucketName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/BucketName.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/BucketName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadata.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadata.java similarity index 66% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadata.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadata.java index 930f8dc7cc..c5d0bb3ced 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadata.java +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadata.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto @@ -5,6 +20,8 @@ package com.google.storage.control.v2; /** + * + * *
              * The message contains metadata that is common to all Storage Control
              * long-running operations, present in its `google.longrunning.Operation`
            @@ -13,48 +30,55 @@
              *
              * Protobuf type {@code google.storage.control.v2.CommonLongRunningOperationMetadata}
              */
            -public final class CommonLongRunningOperationMetadata extends
            -    com.google.protobuf.GeneratedMessageV3 implements
            +public final class CommonLongRunningOperationMetadata extends com.google.protobuf.GeneratedMessageV3
            +    implements
                 // @@protoc_insertion_point(message_implements:google.storage.control.v2.CommonLongRunningOperationMetadata)
                 CommonLongRunningOperationMetadataOrBuilder {
            -private static final long serialVersionUID = 0L;
            +  private static final long serialVersionUID = 0L;
               // Use CommonLongRunningOperationMetadata.newBuilder() to construct.
            -  private CommonLongRunningOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
            +  private CommonLongRunningOperationMetadata(
            +      com.google.protobuf.GeneratedMessageV3.Builder builder) {
                 super(builder);
               }
            +
               private CommonLongRunningOperationMetadata() {
                 type_ = "";
               }
             
               @java.lang.Override
               @SuppressWarnings({"unused"})
            -  protected java.lang.Object newInstance(
            -      UnusedPrivateParameter unused) {
            +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                 return new CommonLongRunningOperationMetadata();
               }
             
            -  public static final com.google.protobuf.Descriptors.Descriptor
            -      getDescriptor() {
            -    return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_descriptor;
            +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            +    return com.google.storage.control.v2.StorageControlProto
            +        .internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_descriptor;
               }
             
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
            -    return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_fieldAccessorTable
            +    return com.google.storage.control.v2.StorageControlProto
            +        .internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
            -            com.google.storage.control.v2.CommonLongRunningOperationMetadata.class, com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder.class);
            +            com.google.storage.control.v2.CommonLongRunningOperationMetadata.class,
            +            com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder.class);
               }
             
               private int bitField0_;
               public static final int CREATE_TIME_FIELD_NUMBER = 1;
               private com.google.protobuf.Timestamp createTime_;
               /**
            +   *
            +   *
                * 
                * Output only. The time the operation was created.
                * 
            * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -62,11 +86,15 @@ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * Output only. The time the operation was created.
                * 
            * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -74,11 +102,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
                * Output only. The time the operation was created.
                * 
            * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -88,11 +119,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
                * Output only. The time the operation finished running.
                * 
            * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -100,11 +135,15 @@ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
                * Output only. The time the operation finished running.
                * 
            * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -112,11 +151,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
                * Output only. The time the operation finished running.
                * 
            * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -126,11 +168,15 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
                * Output only. The time the operation was last modified.
                * 
            * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -138,11 +184,15 @@ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
                * Output only. The time the operation was last modified.
                * 
            * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -150,11 +200,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
                * Output only. The time the operation was last modified.
                * 
            * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -162,14 +215,18 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int TYPE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object type_ = ""; /** + * + * *
                * Output only. The type of operation invoked.
                * 
            * * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The type. */ @java.lang.Override @@ -178,29 +235,29 @@ public java.lang.String getType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** + * + * *
                * Output only. The type of operation invoked.
                * 
            * * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -211,11 +268,14 @@ public java.lang.String getType() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 5; private boolean requestedCancellation_ = false; /** + * + * *
                * Output only. Identifies whether the user has requested cancellation.
                * 
            * * bool requested_cancellation = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -226,12 +286,15 @@ public boolean getRequestedCancellation() { public static final int PROGRESS_PERCENT_FIELD_NUMBER = 6; private int progressPercent_ = 0; /** + * + * *
                * Output only. The estimated progress of the operation in percentage [0,
                * 100]. The value -1 means the progress is unknown.
                * 
            * * int32 progress_percent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The progressPercent. */ @java.lang.Override @@ -240,6 +303,7 @@ public int getProgressPercent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -251,8 +315,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.writeMessage(1, getCreateTime()); } @@ -281,27 +344,22 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, type_); } if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, requestedCancellation_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, requestedCancellation_); } if (progressPercent_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, progressPercent_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, progressPercent_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -311,34 +369,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.control.v2.CommonLongRunningOperationMetadata)) { return super.equals(obj); } - com.google.storage.control.v2.CommonLongRunningOperationMetadata other = (com.google.storage.control.v2.CommonLongRunningOperationMetadata) obj; + com.google.storage.control.v2.CommonLongRunningOperationMetadata other = + (com.google.storage.control.v2.CommonLongRunningOperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; - } - if (!getType() - .equals(other.getType())) return false; - if (getRequestedCancellation() - != other.getRequestedCancellation()) return false; - if (getProgressPercent() - != other.getProgressPercent()) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getType().equals(other.getType())) return false; + if (getRequestedCancellation() != other.getRequestedCancellation()) return false; + if (getProgressPercent() != other.getProgressPercent()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -365,8 +418,7 @@ public int hashCode() { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRequestedCancellation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); hash = (37 * hash) + PROGRESS_PERCENT_FIELD_NUMBER; hash = (53 * hash) + getProgressPercent(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -375,98 +427,104 @@ public int hashCode() { } public static com.google.storage.control.v2.CommonLongRunningOperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.CommonLongRunningOperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.CommonLongRunningOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.CommonLongRunningOperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.CommonLongRunningOperationMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.storage.control.v2.CommonLongRunningOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.CommonLongRunningOperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.CommonLongRunningOperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.storage.control.v2.CommonLongRunningOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.CommonLongRunningOperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.CommonLongRunningOperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.CommonLongRunningOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.CommonLongRunningOperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.storage.control.v2.CommonLongRunningOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.CommonLongRunningOperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.control.v2.CommonLongRunningOperationMetadata prototype) { + + public static Builder newBuilder( + com.google.storage.control.v2.CommonLongRunningOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                * The message contains metadata that is common to all Storage Control
                * long-running operations, present in its `google.longrunning.Operation`
            @@ -475,21 +533,23 @@ protected Builder newBuilderForType(
                *
                * Protobuf type {@code google.storage.control.v2.CommonLongRunningOperationMetadata}
                */
            -  public static final class Builder extends
            -      com.google.protobuf.GeneratedMessageV3.Builder implements
            +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
            +      implements
                   // @@protoc_insertion_point(builder_implements:google.storage.control.v2.CommonLongRunningOperationMetadata)
                   com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder {
            -    public static final com.google.protobuf.Descriptors.Descriptor
            -        getDescriptor() {
            -      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_descriptor;
            +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            +      return com.google.storage.control.v2.StorageControlProto
            +          .internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_descriptor;
                 }
             
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
            -      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_fieldAccessorTable
            +      return com.google.storage.control.v2.StorageControlProto
            +          .internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
            -              com.google.storage.control.v2.CommonLongRunningOperationMetadata.class, com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder.class);
            +              com.google.storage.control.v2.CommonLongRunningOperationMetadata.class,
            +              com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder.class);
                 }
             
                 // Construct using com.google.storage.control.v2.CommonLongRunningOperationMetadata.newBuilder()
            @@ -497,19 +557,19 @@ 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) {
                     getCreateTimeFieldBuilder();
                     getEndTimeFieldBuilder();
                     getUpdateTimeFieldBuilder();
                   }
                 }
            +
                 @java.lang.Override
                 public Builder clear() {
                   super.clear();
            @@ -536,13 +596,14 @@ public Builder clear() {
                 }
             
                 @java.lang.Override
            -    public com.google.protobuf.Descriptors.Descriptor
            -        getDescriptorForType() {
            -      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_descriptor;
            +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            +      return com.google.storage.control.v2.StorageControlProto
            +          .internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_descriptor;
                 }
             
                 @java.lang.Override
            -    public com.google.storage.control.v2.CommonLongRunningOperationMetadata getDefaultInstanceForType() {
            +    public com.google.storage.control.v2.CommonLongRunningOperationMetadata
            +        getDefaultInstanceForType() {
                   return com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance();
                 }
             
            @@ -557,31 +618,29 @@ public com.google.storage.control.v2.CommonLongRunningOperationMetadata build()
             
                 @java.lang.Override
                 public com.google.storage.control.v2.CommonLongRunningOperationMetadata buildPartial() {
            -      com.google.storage.control.v2.CommonLongRunningOperationMetadata result = new com.google.storage.control.v2.CommonLongRunningOperationMetadata(this);
            -      if (bitField0_ != 0) { buildPartial0(result); }
            +      com.google.storage.control.v2.CommonLongRunningOperationMetadata result =
            +          new com.google.storage.control.v2.CommonLongRunningOperationMetadata(this);
            +      if (bitField0_ != 0) {
            +        buildPartial0(result);
            +      }
                   onBuilt();
                   return result;
                 }
             
            -    private void buildPartial0(com.google.storage.control.v2.CommonLongRunningOperationMetadata result) {
            +    private void buildPartial0(
            +        com.google.storage.control.v2.CommonLongRunningOperationMetadata result) {
                   int from_bitField0_ = bitField0_;
                   int to_bitField0_ = 0;
                   if (((from_bitField0_ & 0x00000001) != 0)) {
            -        result.createTime_ = createTimeBuilder_ == null
            -            ? createTime_
            -            : createTimeBuilder_.build();
            +        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
                     to_bitField0_ |= 0x00000001;
                   }
                   if (((from_bitField0_ & 0x00000002) != 0)) {
            -        result.endTime_ = endTimeBuilder_ == null
            -            ? endTime_
            -            : endTimeBuilder_.build();
            +        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
                     to_bitField0_ |= 0x00000002;
                   }
                   if (((from_bitField0_ & 0x00000004) != 0)) {
            -        result.updateTime_ = updateTimeBuilder_ == null
            -            ? updateTime_
            -            : updateTimeBuilder_.build();
            +        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
                     to_bitField0_ |= 0x00000004;
                   }
                   if (((from_bitField0_ & 0x00000008) != 0)) {
            @@ -600,46 +659,50 @@ private void buildPartial0(com.google.storage.control.v2.CommonLongRunningOperat
                 public Builder clone() {
                   return super.clone();
                 }
            +
                 @java.lang.Override
                 public Builder setField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field,
            -        java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                   return super.setField(field, value);
                 }
            +
                 @java.lang.Override
            -    public Builder clearField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field) {
            +    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
                   return super.clearField(field);
                 }
            +
                 @java.lang.Override
            -    public Builder clearOneof(
            -        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
            +    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                   return super.clearOneof(oneof);
                 }
            +
                 @java.lang.Override
                 public Builder setRepeatedField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field,
            -        int index, java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
                   return super.setRepeatedField(field, index, value);
                 }
            +
                 @java.lang.Override
                 public Builder addRepeatedField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field,
            -        java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                   return super.addRepeatedField(field, value);
                 }
            +
                 @java.lang.Override
                 public Builder mergeFrom(com.google.protobuf.Message other) {
                   if (other instanceof com.google.storage.control.v2.CommonLongRunningOperationMetadata) {
            -        return mergeFrom((com.google.storage.control.v2.CommonLongRunningOperationMetadata)other);
            +        return mergeFrom((com.google.storage.control.v2.CommonLongRunningOperationMetadata) other);
                   } else {
                     super.mergeFrom(other);
                     return this;
                   }
                 }
             
            -    public Builder mergeFrom(com.google.storage.control.v2.CommonLongRunningOperationMetadata other) {
            -      if (other == com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance()) return this;
            +    public Builder mergeFrom(
            +        com.google.storage.control.v2.CommonLongRunningOperationMetadata other) {
            +      if (other
            +          == com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance())
            +        return this;
                   if (other.hasCreateTime()) {
                     mergeCreateTime(other.getCreateTime());
                   }
            @@ -686,48 +749,49 @@ public Builder mergeFrom(
                         case 0:
                           done = true;
                           break;
            -            case 10: {
            -              input.readMessage(
            -                  getCreateTimeFieldBuilder().getBuilder(),
            -                  extensionRegistry);
            -              bitField0_ |= 0x00000001;
            -              break;
            -            } // case 10
            -            case 18: {
            -              input.readMessage(
            -                  getEndTimeFieldBuilder().getBuilder(),
            -                  extensionRegistry);
            -              bitField0_ |= 0x00000002;
            -              break;
            -            } // case 18
            -            case 26: {
            -              input.readMessage(
            -                  getUpdateTimeFieldBuilder().getBuilder(),
            -                  extensionRegistry);
            -              bitField0_ |= 0x00000004;
            -              break;
            -            } // case 26
            -            case 34: {
            -              type_ = input.readStringRequireUtf8();
            -              bitField0_ |= 0x00000008;
            -              break;
            -            } // case 34
            -            case 40: {
            -              requestedCancellation_ = input.readBool();
            -              bitField0_ |= 0x00000010;
            -              break;
            -            } // case 40
            -            case 48: {
            -              progressPercent_ = input.readInt32();
            -              bitField0_ |= 0x00000020;
            -              break;
            -            } // case 48
            -            default: {
            -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            -                done = true; // was an endgroup tag
            -              }
            -              break;
            -            } // default:
            +            case 10:
            +              {
            +                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
            +                bitField0_ |= 0x00000001;
            +                break;
            +              } // case 10
            +            case 18:
            +              {
            +                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
            +                bitField0_ |= 0x00000002;
            +                break;
            +              } // case 18
            +            case 26:
            +              {
            +                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
            +                bitField0_ |= 0x00000004;
            +                break;
            +              } // case 26
            +            case 34:
            +              {
            +                type_ = input.readStringRequireUtf8();
            +                bitField0_ |= 0x00000008;
            +                break;
            +              } // case 34
            +            case 40:
            +              {
            +                requestedCancellation_ = input.readBool();
            +                bitField0_ |= 0x00000010;
            +                break;
            +              } // case 40
            +            case 48:
            +              {
            +                progressPercent_ = input.readInt32();
            +                bitField0_ |= 0x00000020;
            +                break;
            +              } // case 48
            +            default:
            +              {
            +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            +                  done = true; // was an endgroup tag
            +                }
            +                break;
            +              } // default:
                       } // switch (tag)
                     } // while (!done)
                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            @@ -737,43 +801,63 @@ public Builder mergeFrom(
                   } // finally
                   return this;
                 }
            +
                 private int bitField0_;
             
                 private com.google.protobuf.Timestamp createTime_;
                 private com.google.protobuf.SingleFieldBuilderV3<
            -        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
            +            com.google.protobuf.Timestamp,
            +            com.google.protobuf.Timestamp.Builder,
            +            com.google.protobuf.TimestampOrBuilder>
            +        createTimeBuilder_;
                 /**
            +     *
            +     *
                  * 
                  * Output only. The time the operation was created.
                  * 
            * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                  * Output only. The time the operation was created.
                  * 
            * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
                  * Output only. The time the operation was created.
                  * 
            * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -789,14 +873,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                  * Output only. The time the operation was created.
                  * 
            * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -807,17 +894,21 @@ public Builder setCreateTime( return this; } /** + * + * *
                  * Output only. The time the operation was created.
                  * 
            * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -832,11 +923,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                  * Output only. The time the operation was created.
                  * 
            * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000001); @@ -849,11 +944,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
                  * Output only. The time the operation was created.
                  * 
            * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000001; @@ -861,36 +960,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
                  * Output only. The time the operation was created.
                  * 
            * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
                  * Output only. The time the operation was created.
                  * 
            * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -898,24 +1009,35 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
                  * Output only. The time the operation finished running.
                  * 
            * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
                  * Output only. The time the operation finished running.
                  * 
            * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -926,11 +1048,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
                  * Output only. The time the operation finished running.
                  * 
            * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -946,14 +1071,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                  * Output only. The time the operation finished running.
                  * 
            * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -964,17 +1091,20 @@ public Builder setEndTime( return this; } /** + * + * *
                  * Output only. The time the operation finished running.
                  * 
            * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - endTime_ != null && - endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -989,11 +1119,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                  * Output only. The time the operation finished running.
                  * 
            * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1006,11 +1139,14 @@ public Builder clearEndTime() { return this; } /** + * + * *
                  * Output only. The time the operation finished running.
                  * 
            * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000002; @@ -1018,36 +1154,44 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
                  * Output only. The time the operation finished running.
                  * 
            * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
                  * Output only. The time the operation finished running.
                  * 
            * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1055,39 +1199,58 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
                  * Output only. The time the operation was last modified.
                  * 
            * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
                  * Output only. The time the operation was last modified.
                  * 
            * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
                  * Output only. The time the operation was last modified.
                  * 
            * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1103,14 +1266,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                  * Output only. The time the operation was last modified.
                  * 
            * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1121,17 +1287,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
                  * Output only. The time the operation was last modified.
                  * 
            * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1146,11 +1316,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                  * Output only. The time the operation was last modified.
                  * 
            * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1163,11 +1337,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
                  * Output only. The time the operation was last modified.
                  * 
            * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000004; @@ -1175,36 +1353,48 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
                  * Output only. The time the operation was last modified.
                  * 
            * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
                  * Output only. The time the operation was last modified.
                  * 
            * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -1212,18 +1402,20 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object type_ = ""; /** + * + * *
                  * Output only. The type of operation invoked.
                  * 
            * * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -1232,20 +1424,21 @@ public java.lang.String getType() { } } /** + * + * *
                  * Output only. The type of operation invoked.
                  * 
            * * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for type. */ - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -1253,28 +1446,35 @@ public java.lang.String getType() { } } /** + * + * *
                  * Output only. The type of operation invoked.
                  * 
            * * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } type_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
                  * Output only. The type of operation invoked.
                  * 
            * * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearType() { @@ -1284,17 +1484,21 @@ public Builder clearType() { return this; } /** + * + * *
                  * Output only. The type of operation invoked.
                  * 
            * * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); type_ = value; bitField0_ |= 0x00000008; @@ -1302,13 +1506,16 @@ public Builder setTypeBytes( return this; } - private boolean requestedCancellation_ ; + private boolean requestedCancellation_; /** + * + * *
                  * Output only. Identifies whether the user has requested cancellation.
                  * 
            * * bool requested_cancellation = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -1316,11 +1523,14 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** + * + * *
                  * Output only. Identifies whether the user has requested cancellation.
                  * 
            * * bool requested_cancellation = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The requestedCancellation to set. * @return This builder for chaining. */ @@ -1332,11 +1542,14 @@ public Builder setRequestedCancellation(boolean value) { return this; } /** + * + * *
                  * Output only. Identifies whether the user has requested cancellation.
                  * 
            * * bool requested_cancellation = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { @@ -1346,14 +1559,17 @@ public Builder clearRequestedCancellation() { return this; } - private int progressPercent_ ; + private int progressPercent_; /** + * + * *
                  * Output only. The estimated progress of the operation in percentage [0,
                  * 100]. The value -1 means the progress is unknown.
                  * 
            * * int32 progress_percent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The progressPercent. */ @java.lang.Override @@ -1361,12 +1577,15 @@ public int getProgressPercent() { return progressPercent_; } /** + * + * *
                  * Output only. The estimated progress of the operation in percentage [0,
                  * 100]. The value -1 means the progress is unknown.
                  * 
            * * int32 progress_percent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The progressPercent to set. * @return This builder for chaining. */ @@ -1378,12 +1597,15 @@ public Builder setProgressPercent(int value) { return this; } /** + * + * *
                  * Output only. The estimated progress of the operation in percentage [0,
                  * 100]. The value -1 means the progress is unknown.
                  * 
            * * int32 progress_percent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearProgressPercent() { @@ -1392,9 +1614,9 @@ public Builder clearProgressPercent() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1404,41 +1626,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.storage.control.v2.CommonLongRunningOperationMetadata) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.CommonLongRunningOperationMetadata) - private static final com.google.storage.control.v2.CommonLongRunningOperationMetadata DEFAULT_INSTANCE; + private static final com.google.storage.control.v2.CommonLongRunningOperationMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.storage.control.v2.CommonLongRunningOperationMetadata(); } - public static com.google.storage.control.v2.CommonLongRunningOperationMetadata getDefaultInstance() { + public static com.google.storage.control.v2.CommonLongRunningOperationMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommonLongRunningOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommonLongRunningOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1450,9 +1674,8 @@ public com.google.protobuf.Parser getParserF } @java.lang.Override - public com.google.storage.control.v2.CommonLongRunningOperationMetadata getDefaultInstanceForType() { + public com.google.storage.control.v2.CommonLongRunningOperationMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadataOrBuilder.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadataOrBuilder.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadataOrBuilder.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadataOrBuilder.java index de060a9a9e..e203b7dacb 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadataOrBuilder.java +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CommonLongRunningOperationMetadataOrBuilder.java @@ -1,131 +1,191 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto // Protobuf Java Version: 3.25.3 package com.google.storage.control.v2; -public interface CommonLongRunningOperationMetadataOrBuilder extends +public interface CommonLongRunningOperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.CommonLongRunningOperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
                * Output only. The time the operation was created.
                * 
            * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
                * Output only. The time the operation was created.
                * 
            * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
                * Output only. The time the operation was created.
                * 
            * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
                * Output only. The time the operation finished running.
                * 
            * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
                * Output only. The time the operation finished running.
                * 
            * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
                * Output only. The time the operation finished running.
                * 
            * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
                * Output only. The time the operation was last modified.
                * 
            * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
                * Output only. The time the operation was last modified.
                * 
            * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
                * Output only. The time the operation was last modified.
                * 
            * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
                * Output only. The type of operation invoked.
                * 
            * * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The type. */ java.lang.String getType(); /** + * + * *
                * Output only. The type of operation invoked.
                * 
            * * string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for type. */ - com.google.protobuf.ByteString - getTypeBytes(); + com.google.protobuf.ByteString getTypeBytes(); /** + * + * *
                * Output only. Identifies whether the user has requested cancellation.
                * 
            * * bool requested_cancellation = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** + * + * *
                * Output only. The estimated progress of the operation in percentage [0,
                * 100]. The value -1 means the progress is unknown.
                * 
            * * int32 progress_percent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The progressPercent. */ int getProgressPercent(); diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateFolderRequest.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateFolderRequest.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateFolderRequest.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateFolderRequest.java index 9a12506c9d..e950c655ec 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateFolderRequest.java +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateFolderRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto @@ -5,6 +20,8 @@ package com.google.storage.control.v2; /** + * + * *
              * Request message for CreateFolder. This operation is only applicable to a
              * hierarchical namespace enabled bucket.
            @@ -12,15 +29,16 @@
              *
              * Protobuf type {@code google.storage.control.v2.CreateFolderRequest}
              */
            -public final class CreateFolderRequest extends
            -    com.google.protobuf.GeneratedMessageV3 implements
            +public final class CreateFolderRequest extends com.google.protobuf.GeneratedMessageV3
            +    implements
                 // @@protoc_insertion_point(message_implements:google.storage.control.v2.CreateFolderRequest)
                 CreateFolderRequestOrBuilder {
            -private static final long serialVersionUID = 0L;
            +  private static final long serialVersionUID = 0L;
               // Use CreateFolderRequest.newBuilder() to construct.
               private CreateFolderRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                 super(builder);
               }
            +
               private CreateFolderRequest() {
                 parent_ = "";
                 folderId_ = "";
            @@ -29,35 +47,42 @@ private CreateFolderRequest() {
             
               @java.lang.Override
               @SuppressWarnings({"unused"})
            -  protected java.lang.Object newInstance(
            -      UnusedPrivateParameter unused) {
            +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                 return new CreateFolderRequest();
               }
             
            -  public static final com.google.protobuf.Descriptors.Descriptor
            -      getDescriptor() {
            -    return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CreateFolderRequest_descriptor;
            +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            +    return com.google.storage.control.v2.StorageControlProto
            +        .internal_static_google_storage_control_v2_CreateFolderRequest_descriptor;
               }
             
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
            -    return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CreateFolderRequest_fieldAccessorTable
            +    return com.google.storage.control.v2.StorageControlProto
            +        .internal_static_google_storage_control_v2_CreateFolderRequest_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
            -            com.google.storage.control.v2.CreateFolderRequest.class, com.google.storage.control.v2.CreateFolderRequest.Builder.class);
            +            com.google.storage.control.v2.CreateFolderRequest.class,
            +            com.google.storage.control.v2.CreateFolderRequest.Builder.class);
               }
             
               private int bitField0_;
               public static final int PARENT_FIELD_NUMBER = 1;
            +
               @SuppressWarnings("serial")
               private volatile java.lang.Object parent_ = "";
               /**
            +   *
            +   *
                * 
                * Required. Name of the bucket in which the folder will reside. The bucket
                * must be a hierarchical namespace enabled 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,30 +91,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
                * Required. Name of the bucket in which the folder will reside. The bucket
                * must be a hierarchical namespace enabled 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 { @@ -100,6 +127,8 @@ public java.lang.String getParent() { public static final int FOLDER_FIELD_NUMBER = 2; private com.google.storage.control.v2.Folder folder_; /** + * + * *
                * Required. Properties of the new folder being created.
                * The bucket and name of the folder are specified in the parent and folder_id
            @@ -107,7 +136,9 @@ public java.lang.String getParent() {
                * error.
                * 
            * - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the folder field is set. */ @java.lang.Override @@ -115,6 +146,8 @@ public boolean hasFolder() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * Required. Properties of the new folder being created.
                * The bucket and name of the folder are specified in the parent and folder_id
            @@ -122,7 +155,9 @@ public boolean hasFolder() {
                * error.
                * 
            * - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The folder. */ @java.lang.Override @@ -130,6 +165,8 @@ public com.google.storage.control.v2.Folder getFolder() { return folder_ == null ? com.google.storage.control.v2.Folder.getDefaultInstance() : folder_; } /** + * + * *
                * Required. Properties of the new folder being created.
                * The bucket and name of the folder are specified in the parent and folder_id
            @@ -137,7 +174,8 @@ public com.google.storage.control.v2.Folder getFolder() {
                * error.
                * 
            * - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.storage.control.v2.FolderOrBuilder getFolderOrBuilder() { @@ -145,9 +183,12 @@ public com.google.storage.control.v2.FolderOrBuilder getFolderOrBuilder() { } public static final int FOLDER_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object folderId_ = ""; /** + * + * *
                * Required. The full name of a folder, including all its parent folders.
                * Folders use single '/' characters as a delimiter.
            @@ -157,6 +198,7 @@ public com.google.storage.control.v2.FolderOrBuilder getFolderOrBuilder() {
                * 
            * * string folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The folderId. */ @java.lang.Override @@ -165,14 +207,15 @@ public java.lang.String getFolderId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); folderId_ = s; return s; } } /** + * + * *
                * Required. The full name of a folder, including all its parent folders.
                * Folders use single '/' characters as a delimiter.
            @@ -182,16 +225,15 @@ public java.lang.String getFolderId() {
                * 
            * * string folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for folderId. */ @java.lang.Override - public com.google.protobuf.ByteString - getFolderIdBytes() { + public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = folderId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); folderId_ = b; return b; } else { @@ -202,12 +244,15 @@ public java.lang.String getFolderId() { public static final int RECURSIVE_FIELD_NUMBER = 4; private boolean recursive_ = false; /** + * + * *
                * Optional. If true, parent folder doesn't have to be present and all missing
                * ancestor folders will be created atomically.
                * 
            * * bool recursive = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The recursive. */ @java.lang.Override @@ -216,15 +261,21 @@ public boolean getRecursive() { } public static final int REQUEST_ID_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The requestId. */ @java.lang.Override @@ -233,30 +284,32 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -265,6 +318,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -276,8 +330,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_); } @@ -306,15 +359,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFolder()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFolder()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(folderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, folderId_); } if (recursive_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, recursive_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, recursive_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, requestId_); @@ -327,26 +378,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.control.v2.CreateFolderRequest)) { return super.equals(obj); } - com.google.storage.control.v2.CreateFolderRequest other = (com.google.storage.control.v2.CreateFolderRequest) obj; + com.google.storage.control.v2.CreateFolderRequest other = + (com.google.storage.control.v2.CreateFolderRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasFolder() != other.hasFolder()) return false; if (hasFolder()) { - if (!getFolder() - .equals(other.getFolder())) return false; - } - if (!getFolderId() - .equals(other.getFolderId())) return false; - if (getRecursive() - != other.getRecursive()) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getFolder().equals(other.getFolder())) return false; + } + if (!getFolderId().equals(other.getFolderId())) return false; + if (getRecursive() != other.getRecursive()) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -367,8 +414,7 @@ public int hashCode() { hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER; hash = (53 * hash) + getFolderId().hashCode(); hash = (37 * hash) + RECURSIVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRecursive()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecursive()); hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -377,98 +423,103 @@ public int hashCode() { } public static com.google.storage.control.v2.CreateFolderRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.CreateFolderRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.CreateFolderRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.CreateFolderRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.CreateFolderRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.CreateFolderRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.CreateFolderRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.storage.control.v2.CreateFolderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.CreateFolderRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.CreateFolderRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.CreateFolderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.CreateFolderRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.storage.control.v2.CreateFolderRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.CreateFolderRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.storage.control.v2.CreateFolderRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                * Request message for CreateFolder. This operation is only applicable to a
                * hierarchical namespace enabled bucket.
            @@ -476,21 +527,23 @@ protected Builder newBuilderForType(
                *
                * Protobuf type {@code google.storage.control.v2.CreateFolderRequest}
                */
            -  public static final class Builder extends
            -      com.google.protobuf.GeneratedMessageV3.Builder implements
            +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
            +      implements
                   // @@protoc_insertion_point(builder_implements:google.storage.control.v2.CreateFolderRequest)
                   com.google.storage.control.v2.CreateFolderRequestOrBuilder {
            -    public static final com.google.protobuf.Descriptors.Descriptor
            -        getDescriptor() {
            -      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CreateFolderRequest_descriptor;
            +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            +      return com.google.storage.control.v2.StorageControlProto
            +          .internal_static_google_storage_control_v2_CreateFolderRequest_descriptor;
                 }
             
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
            -      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CreateFolderRequest_fieldAccessorTable
            +      return com.google.storage.control.v2.StorageControlProto
            +          .internal_static_google_storage_control_v2_CreateFolderRequest_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
            -              com.google.storage.control.v2.CreateFolderRequest.class, com.google.storage.control.v2.CreateFolderRequest.Builder.class);
            +              com.google.storage.control.v2.CreateFolderRequest.class,
            +              com.google.storage.control.v2.CreateFolderRequest.Builder.class);
                 }
             
                 // Construct using com.google.storage.control.v2.CreateFolderRequest.newBuilder()
            @@ -498,17 +551,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) {
                     getFolderFieldBuilder();
                   }
                 }
            +
                 @java.lang.Override
                 public Builder clear() {
                   super.clear();
            @@ -526,9 +579,9 @@ public Builder clear() {
                 }
             
                 @java.lang.Override
            -    public com.google.protobuf.Descriptors.Descriptor
            -        getDescriptorForType() {
            -      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CreateFolderRequest_descriptor;
            +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            +      return com.google.storage.control.v2.StorageControlProto
            +          .internal_static_google_storage_control_v2_CreateFolderRequest_descriptor;
                 }
             
                 @java.lang.Override
            @@ -547,8 +600,11 @@ public com.google.storage.control.v2.CreateFolderRequest build() {
             
                 @java.lang.Override
                 public com.google.storage.control.v2.CreateFolderRequest buildPartial() {
            -      com.google.storage.control.v2.CreateFolderRequest result = new com.google.storage.control.v2.CreateFolderRequest(this);
            -      if (bitField0_ != 0) { buildPartial0(result); }
            +      com.google.storage.control.v2.CreateFolderRequest result =
            +          new com.google.storage.control.v2.CreateFolderRequest(this);
            +      if (bitField0_ != 0) {
            +        buildPartial0(result);
            +      }
                   onBuilt();
                   return result;
                 }
            @@ -560,9 +616,7 @@ private void buildPartial0(com.google.storage.control.v2.CreateFolderRequest res
                   }
                   int to_bitField0_ = 0;
                   if (((from_bitField0_ & 0x00000002) != 0)) {
            -        result.folder_ = folderBuilder_ == null
            -            ? folder_
            -            : folderBuilder_.build();
            +        result.folder_ = folderBuilder_ == null ? folder_ : folderBuilder_.build();
                     to_bitField0_ |= 0x00000001;
                   }
                   if (((from_bitField0_ & 0x00000004) != 0)) {
            @@ -581,38 +635,39 @@ private void buildPartial0(com.google.storage.control.v2.CreateFolderRequest res
                 public Builder clone() {
                   return super.clone();
                 }
            +
                 @java.lang.Override
                 public Builder setField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field,
            -        java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                   return super.setField(field, value);
                 }
            +
                 @java.lang.Override
            -    public Builder clearField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field) {
            +    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
                   return super.clearField(field);
                 }
            +
                 @java.lang.Override
            -    public Builder clearOneof(
            -        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
            +    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                   return super.clearOneof(oneof);
                 }
            +
                 @java.lang.Override
                 public Builder setRepeatedField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field,
            -        int index, java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
                   return super.setRepeatedField(field, index, value);
                 }
            +
                 @java.lang.Override
                 public Builder addRepeatedField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field,
            -        java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                   return super.addRepeatedField(field, value);
                 }
            +
                 @java.lang.Override
                 public Builder mergeFrom(com.google.protobuf.Message other) {
                   if (other instanceof com.google.storage.control.v2.CreateFolderRequest) {
            -        return mergeFrom((com.google.storage.control.v2.CreateFolderRequest)other);
            +        return mergeFrom((com.google.storage.control.v2.CreateFolderRequest) other);
                   } else {
                     super.mergeFrom(other);
                     return this;
            @@ -620,7 +675,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
                 }
             
                 public Builder mergeFrom(com.google.storage.control.v2.CreateFolderRequest other) {
            -      if (other == com.google.storage.control.v2.CreateFolderRequest.getDefaultInstance()) return this;
            +      if (other == com.google.storage.control.v2.CreateFolderRequest.getDefaultInstance())
            +        return this;
                   if (!other.getParent().isEmpty()) {
                     parent_ = other.parent_;
                     bitField0_ |= 0x00000001;
            @@ -668,39 +724,43 @@ public Builder mergeFrom(
                         case 0:
                           done = true;
                           break;
            -            case 10: {
            -              parent_ = input.readStringRequireUtf8();
            -              bitField0_ |= 0x00000001;
            -              break;
            -            } // case 10
            -            case 18: {
            -              input.readMessage(
            -                  getFolderFieldBuilder().getBuilder(),
            -                  extensionRegistry);
            -              bitField0_ |= 0x00000002;
            -              break;
            -            } // case 18
            -            case 26: {
            -              folderId_ = input.readStringRequireUtf8();
            -              bitField0_ |= 0x00000004;
            -              break;
            -            } // case 26
            -            case 32: {
            -              recursive_ = input.readBool();
            -              bitField0_ |= 0x00000008;
            -              break;
            -            } // case 32
            -            case 42: {
            -              requestId_ = input.readStringRequireUtf8();
            -              bitField0_ |= 0x00000010;
            -              break;
            -            } // case 42
            -            default: {
            -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            -                done = true; // was an endgroup tag
            -              }
            -              break;
            -            } // default:
            +            case 10:
            +              {
            +                parent_ = input.readStringRequireUtf8();
            +                bitField0_ |= 0x00000001;
            +                break;
            +              } // case 10
            +            case 18:
            +              {
            +                input.readMessage(getFolderFieldBuilder().getBuilder(), extensionRegistry);
            +                bitField0_ |= 0x00000002;
            +                break;
            +              } // case 18
            +            case 26:
            +              {
            +                folderId_ = input.readStringRequireUtf8();
            +                bitField0_ |= 0x00000004;
            +                break;
            +              } // case 26
            +            case 32:
            +              {
            +                recursive_ = input.readBool();
            +                bitField0_ |= 0x00000008;
            +                break;
            +              } // case 32
            +            case 42:
            +              {
            +                requestId_ = input.readStringRequireUtf8();
            +                bitField0_ |= 0x00000010;
            +                break;
            +              } // case 42
            +            default:
            +              {
            +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            +                  done = true; // was an endgroup tag
            +                }
            +                break;
            +              } // default:
                       } // switch (tag)
                     } // while (!done)
                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            @@ -710,23 +770,28 @@ public Builder mergeFrom(
                   } // finally
                   return this;
                 }
            +
                 private int bitField0_;
             
                 private java.lang.Object parent_ = "";
                 /**
            +     *
            +     *
                  * 
                  * Required. Name of the bucket in which the folder will reside. The bucket
                  * must be a hierarchical namespace enabled 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; @@ -735,21 +800,24 @@ public java.lang.String getParent() { } } /** + * + * *
                  * Required. Name of the bucket in which the folder will reside. The bucket
                  * must be a hierarchical namespace enabled 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 { @@ -757,30 +825,41 @@ public java.lang.String getParent() { } } /** + * + * *
                  * Required. Name of the bucket in which the folder will reside. The bucket
                  * must be a hierarchical namespace enabled 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 the bucket in which the folder will reside. The bucket
                  * must be a hierarchical namespace enabled 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() { @@ -790,18 +869,24 @@ public Builder clearParent() { return this; } /** + * + * *
                  * Required. Name of the bucket in which the folder will reside. The bucket
                  * must be a hierarchical namespace enabled 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; @@ -811,8 +896,13 @@ public Builder setParentBytes( private com.google.storage.control.v2.Folder folder_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.Folder, com.google.storage.control.v2.Folder.Builder, com.google.storage.control.v2.FolderOrBuilder> folderBuilder_; + com.google.storage.control.v2.Folder, + com.google.storage.control.v2.Folder.Builder, + com.google.storage.control.v2.FolderOrBuilder> + folderBuilder_; /** + * + * *
                  * Required. Properties of the new folder being created.
                  * The bucket and name of the folder are specified in the parent and folder_id
            @@ -820,13 +910,17 @@ public Builder setParentBytes(
                  * error.
                  * 
            * - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the folder field is set. */ public boolean hasFolder() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
                  * Required. Properties of the new folder being created.
                  * The bucket and name of the folder are specified in the parent and folder_id
            @@ -834,17 +928,23 @@ public boolean hasFolder() {
                  * error.
                  * 
            * - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The folder. */ public com.google.storage.control.v2.Folder getFolder() { if (folderBuilder_ == null) { - return folder_ == null ? com.google.storage.control.v2.Folder.getDefaultInstance() : folder_; + return folder_ == null + ? com.google.storage.control.v2.Folder.getDefaultInstance() + : folder_; } else { return folderBuilder_.getMessage(); } } /** + * + * *
                  * Required. Properties of the new folder being created.
                  * The bucket and name of the folder are specified in the parent and folder_id
            @@ -852,7 +952,8 @@ public com.google.storage.control.v2.Folder getFolder() {
                  * error.
                  * 
            * - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setFolder(com.google.storage.control.v2.Folder value) { if (folderBuilder_ == null) { @@ -868,6 +969,8 @@ public Builder setFolder(com.google.storage.control.v2.Folder value) { return this; } /** + * + * *
                  * Required. Properties of the new folder being created.
                  * The bucket and name of the folder are specified in the parent and folder_id
            @@ -875,10 +978,10 @@ public Builder setFolder(com.google.storage.control.v2.Folder value) {
                  * error.
                  * 
            * - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setFolder( - com.google.storage.control.v2.Folder.Builder builderForValue) { + public Builder setFolder(com.google.storage.control.v2.Folder.Builder builderForValue) { if (folderBuilder_ == null) { folder_ = builderForValue.build(); } else { @@ -889,6 +992,8 @@ public Builder setFolder( return this; } /** + * + * *
                  * Required. Properties of the new folder being created.
                  * The bucket and name of the folder are specified in the parent and folder_id
            @@ -896,13 +1001,14 @@ public Builder setFolder(
                  * error.
                  * 
            * - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeFolder(com.google.storage.control.v2.Folder value) { if (folderBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - folder_ != null && - folder_ != com.google.storage.control.v2.Folder.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && folder_ != null + && folder_ != com.google.storage.control.v2.Folder.getDefaultInstance()) { getFolderBuilder().mergeFrom(value); } else { folder_ = value; @@ -917,6 +1023,8 @@ public Builder mergeFolder(com.google.storage.control.v2.Folder value) { return this; } /** + * + * *
                  * Required. Properties of the new folder being created.
                  * The bucket and name of the folder are specified in the parent and folder_id
            @@ -924,7 +1032,8 @@ public Builder mergeFolder(com.google.storage.control.v2.Folder value) {
                  * error.
                  * 
            * - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearFolder() { bitField0_ = (bitField0_ & ~0x00000002); @@ -937,6 +1046,8 @@ public Builder clearFolder() { return this; } /** + * + * *
                  * Required. Properties of the new folder being created.
                  * The bucket and name of the folder are specified in the parent and folder_id
            @@ -944,7 +1055,8 @@ public Builder clearFolder() {
                  * error.
                  * 
            * - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.storage.control.v2.Folder.Builder getFolderBuilder() { bitField0_ |= 0x00000002; @@ -952,6 +1064,8 @@ public com.google.storage.control.v2.Folder.Builder getFolderBuilder() { return getFolderFieldBuilder().getBuilder(); } /** + * + * *
                  * Required. Properties of the new folder being created.
                  * The bucket and name of the folder are specified in the parent and folder_id
            @@ -959,17 +1073,21 @@ public com.google.storage.control.v2.Folder.Builder getFolderBuilder() {
                  * error.
                  * 
            * - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.storage.control.v2.FolderOrBuilder getFolderOrBuilder() { if (folderBuilder_ != null) { return folderBuilder_.getMessageOrBuilder(); } else { - return folder_ == null ? - com.google.storage.control.v2.Folder.getDefaultInstance() : folder_; + return folder_ == null + ? com.google.storage.control.v2.Folder.getDefaultInstance() + : folder_; } } /** + * + * *
                  * Required. Properties of the new folder being created.
                  * The bucket and name of the folder are specified in the parent and folder_id
            @@ -977,17 +1095,21 @@ public com.google.storage.control.v2.FolderOrBuilder getFolderOrBuilder() {
                  * error.
                  * 
            * - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.Folder, com.google.storage.control.v2.Folder.Builder, com.google.storage.control.v2.FolderOrBuilder> + com.google.storage.control.v2.Folder, + com.google.storage.control.v2.Folder.Builder, + com.google.storage.control.v2.FolderOrBuilder> getFolderFieldBuilder() { if (folderBuilder_ == null) { - folderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.Folder, com.google.storage.control.v2.Folder.Builder, com.google.storage.control.v2.FolderOrBuilder>( - getFolder(), - getParentForChildren(), - isClean()); + folderBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.control.v2.Folder, + com.google.storage.control.v2.Folder.Builder, + com.google.storage.control.v2.FolderOrBuilder>( + getFolder(), getParentForChildren(), isClean()); folder_ = null; } return folderBuilder_; @@ -995,6 +1117,8 @@ public com.google.storage.control.v2.FolderOrBuilder getFolderOrBuilder() { private java.lang.Object folderId_ = ""; /** + * + * *
                  * Required. The full name of a folder, including all its parent folders.
                  * Folders use single '/' characters as a delimiter.
            @@ -1004,13 +1128,13 @@ public com.google.storage.control.v2.FolderOrBuilder getFolderOrBuilder() {
                  * 
            * * string folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The folderId. */ public java.lang.String getFolderId() { java.lang.Object ref = folderId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); folderId_ = s; return s; @@ -1019,6 +1143,8 @@ public java.lang.String getFolderId() { } } /** + * + * *
                  * Required. The full name of a folder, including all its parent folders.
                  * Folders use single '/' characters as a delimiter.
            @@ -1028,15 +1154,14 @@ public java.lang.String getFolderId() {
                  * 
            * * string folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for folderId. */ - public com.google.protobuf.ByteString - getFolderIdBytes() { + public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = folderId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); folderId_ = b; return b; } else { @@ -1044,6 +1169,8 @@ public java.lang.String getFolderId() { } } /** + * + * *
                  * Required. The full name of a folder, including all its parent folders.
                  * Folders use single '/' characters as a delimiter.
            @@ -1053,18 +1180,22 @@ public java.lang.String getFolderId() {
                  * 
            * * string folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The folderId to set. * @return This builder for chaining. */ - public Builder setFolderId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFolderId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } folderId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
                  * Required. The full name of a folder, including all its parent folders.
                  * Folders use single '/' characters as a delimiter.
            @@ -1074,6 +1205,7 @@ public Builder setFolderId(
                  * 
            * * string folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearFolderId() { @@ -1083,6 +1215,8 @@ public Builder clearFolderId() { return this; } /** + * + * *
                  * Required. The full name of a folder, including all its parent folders.
                  * Folders use single '/' characters as a delimiter.
            @@ -1092,12 +1226,14 @@ public Builder clearFolderId() {
                  * 
            * * string folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for folderId to set. * @return This builder for chaining. */ - public Builder setFolderIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFolderIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); folderId_ = value; bitField0_ |= 0x00000004; @@ -1105,14 +1241,17 @@ public Builder setFolderIdBytes( return this; } - private boolean recursive_ ; + private boolean recursive_; /** + * + * *
                  * Optional. If true, parent folder doesn't have to be present and all missing
                  * ancestor folders will be created atomically.
                  * 
            * * bool recursive = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The recursive. */ @java.lang.Override @@ -1120,12 +1259,15 @@ public boolean getRecursive() { return recursive_; } /** + * + * *
                  * Optional. If true, parent folder doesn't have to be present and all missing
                  * ancestor folders will be created atomically.
                  * 
            * * bool recursive = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The recursive to set. * @return This builder for chaining. */ @@ -1137,12 +1279,15 @@ public Builder setRecursive(boolean value) { return this; } /** + * + * *
                  * Optional. If true, parent folder doesn't have to be present and all missing
                  * ancestor folders will be created atomically.
                  * 
            * * bool recursive = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRecursive() { @@ -1154,19 +1299,23 @@ public Builder clearRecursive() { private java.lang.Object requestId_ = ""; /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1175,21 +1324,24 @@ public java.lang.String getRequestId() { } } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1197,30 +1349,41 @@ public java.lang.String getRequestId() { } } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1230,27 +1393,33 @@ public Builder clearRequestId() { return this; } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 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); } @@ -1260,12 +1429,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.storage.control.v2.CreateFolderRequest) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.CreateFolderRequest) private static final com.google.storage.control.v2.CreateFolderRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.storage.control.v2.CreateFolderRequest(); } @@ -1274,27 +1443,27 @@ public static com.google.storage.control.v2.CreateFolderRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateFolderRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFolderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1309,6 +1478,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.CreateFolderRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateFolderRequestOrBuilder.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateFolderRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateFolderRequestOrBuilder.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateFolderRequestOrBuilder.java index acc2717411..88c7f84c57 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateFolderRequestOrBuilder.java +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateFolderRequestOrBuilder.java @@ -1,36 +1,63 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto // Protobuf Java Version: 3.25.3 package com.google.storage.control.v2; -public interface CreateFolderRequestOrBuilder extends +public interface CreateFolderRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.CreateFolderRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
                * Required. Name of the bucket in which the folder will reside. The bucket
                * must be a hierarchical namespace enabled 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 the bucket in which the folder will reside. The bucket
                * must be a hierarchical namespace enabled 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(); /** + * + * *
                * Required. Properties of the new folder being created.
                * The bucket and name of the folder are specified in the parent and folder_id
            @@ -38,11 +65,15 @@ public interface CreateFolderRequestOrBuilder extends
                * error.
                * 
            * - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the folder field is set. */ boolean hasFolder(); /** + * + * *
                * Required. Properties of the new folder being created.
                * The bucket and name of the folder are specified in the parent and folder_id
            @@ -50,11 +81,15 @@ public interface CreateFolderRequestOrBuilder extends
                * error.
                * 
            * - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The folder. */ com.google.storage.control.v2.Folder getFolder(); /** + * + * *
                * Required. Properties of the new folder being created.
                * The bucket and name of the folder are specified in the parent and folder_id
            @@ -62,11 +97,14 @@ public interface CreateFolderRequestOrBuilder extends
                * error.
                * 
            * - * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.storage.control.v2.Folder folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.storage.control.v2.FolderOrBuilder getFolderOrBuilder(); /** + * + * *
                * Required. The full name of a folder, including all its parent folders.
                * Folders use single '/' characters as a delimiter.
            @@ -76,10 +114,13 @@ public interface CreateFolderRequestOrBuilder extends
                * 
            * * string folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The folderId. */ java.lang.String getFolderId(); /** + * + * *
                * Required. The full name of a folder, including all its parent folders.
                * Folders use single '/' characters as a delimiter.
            @@ -89,41 +130,53 @@ public interface CreateFolderRequestOrBuilder extends
                * 
            * * string folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for folderId. */ - com.google.protobuf.ByteString - getFolderIdBytes(); + com.google.protobuf.ByteString getFolderIdBytes(); /** + * + * *
                * Optional. If true, parent folder doesn't have to be present and all missing
                * ancestor folders will be created atomically.
                * 
            * * bool recursive = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The recursive. */ boolean getRecursive(); /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateManagedFolderRequest.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateManagedFolderRequest.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateManagedFolderRequest.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateManagedFolderRequest.java index 76e7a1c358..7442427387 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateManagedFolderRequest.java +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateManagedFolderRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto @@ -5,21 +20,24 @@ package com.google.storage.control.v2; /** + * + * *
              * Request message for CreateManagedFolder.
              * 
            * * Protobuf type {@code google.storage.control.v2.CreateManagedFolderRequest} */ -public final class CreateManagedFolderRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateManagedFolderRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.CreateManagedFolderRequest) CreateManagedFolderRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateManagedFolderRequest.newBuilder() to construct. private CreateManagedFolderRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateManagedFolderRequest() { parent_ = ""; managedFolderId_ = ""; @@ -28,34 +46,41 @@ private CreateManagedFolderRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateManagedFolderRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CreateManagedFolderRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_CreateManagedFolderRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CreateManagedFolderRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_CreateManagedFolderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.CreateManagedFolderRequest.class, com.google.storage.control.v2.CreateManagedFolderRequest.Builder.class); + com.google.storage.control.v2.CreateManagedFolderRequest.class, + com.google.storage.control.v2.CreateManagedFolderRequest.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 this managed folder belongs to.
                * 
            * - * 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 @@ -64,29 +89,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 this managed folder belongs to.
                * 
            * - * 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 { @@ -97,6 +124,8 @@ public java.lang.String getParent() { public static final int MANAGED_FOLDER_FIELD_NUMBER = 2; private com.google.storage.control.v2.ManagedFolder managedFolder_; /** + * + * *
                * Required. Properties of the managed folder being created.
                * The bucket and managed folder names are specified in the `parent` and
            @@ -104,7 +133,10 @@ public java.lang.String getParent() {
                * will result in an error.
                * 
            * - * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the managedFolder field is set. */ @java.lang.Override @@ -112,6 +144,8 @@ public boolean hasManagedFolder() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * Required. Properties of the managed folder being created.
                * The bucket and managed folder names are specified in the `parent` and
            @@ -119,14 +153,21 @@ public boolean hasManagedFolder() {
                * will result in an error.
                * 
            * - * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The managedFolder. */ @java.lang.Override public com.google.storage.control.v2.ManagedFolder getManagedFolder() { - return managedFolder_ == null ? com.google.storage.control.v2.ManagedFolder.getDefaultInstance() : managedFolder_; + return managedFolder_ == null + ? com.google.storage.control.v2.ManagedFolder.getDefaultInstance() + : managedFolder_; } /** + * + * *
                * Required. Properties of the managed folder being created.
                * The bucket and managed folder names are specified in the `parent` and
            @@ -134,23 +175,31 @@ public com.google.storage.control.v2.ManagedFolder getManagedFolder() {
                * will result in an error.
                * 
            * - * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.storage.control.v2.ManagedFolderOrBuilder getManagedFolderOrBuilder() { - return managedFolder_ == null ? com.google.storage.control.v2.ManagedFolder.getDefaultInstance() : managedFolder_; + return managedFolder_ == null + ? com.google.storage.control.v2.ManagedFolder.getDefaultInstance() + : managedFolder_; } public static final int MANAGED_FOLDER_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object managedFolderId_ = ""; /** + * + * *
                * Required. The name of the managed folder. It uses a single `/` as delimiter
                * and leading and trailing `/` are allowed.
                * 
            * * string managed_folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The managedFolderId. */ @java.lang.Override @@ -159,30 +208,30 @@ public java.lang.String getManagedFolderId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); managedFolderId_ = s; return s; } } /** + * + * *
                * Required. The name of the managed folder. It uses a single `/` as delimiter
                * and leading and trailing `/` are allowed.
                * 
            * * string managed_folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for managedFolderId. */ @java.lang.Override - public com.google.protobuf.ByteString - getManagedFolderIdBytes() { + public com.google.protobuf.ByteString getManagedFolderIdBytes() { java.lang.Object ref = managedFolderId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); managedFolderId_ = b; return b; } else { @@ -191,15 +240,21 @@ public java.lang.String getManagedFolderId() { } public static final int REQUEST_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The requestId. */ @java.lang.Override @@ -208,30 +263,32 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -240,6 +297,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -251,8 +309,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_); } @@ -278,8 +335,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getManagedFolder()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getManagedFolder()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(managedFolderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, managedFolderId_); @@ -295,24 +351,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.control.v2.CreateManagedFolderRequest)) { return super.equals(obj); } - com.google.storage.control.v2.CreateManagedFolderRequest other = (com.google.storage.control.v2.CreateManagedFolderRequest) obj; + com.google.storage.control.v2.CreateManagedFolderRequest other = + (com.google.storage.control.v2.CreateManagedFolderRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasManagedFolder() != other.hasManagedFolder()) return false; if (hasManagedFolder()) { - if (!getManagedFolder() - .equals(other.getManagedFolder())) return false; + if (!getManagedFolder().equals(other.getManagedFolder())) return false; } - if (!getManagedFolderId() - .equals(other.getManagedFolderId())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getManagedFolderId().equals(other.getManagedFolderId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -340,119 +393,127 @@ public int hashCode() { } public static com.google.storage.control.v2.CreateManagedFolderRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.CreateManagedFolderRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.CreateManagedFolderRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.CreateManagedFolderRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.CreateManagedFolderRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.CreateManagedFolderRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.CreateManagedFolderRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.storage.control.v2.CreateManagedFolderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.CreateManagedFolderRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.CreateManagedFolderRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.CreateManagedFolderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.CreateManagedFolderRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.storage.control.v2.CreateManagedFolderRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.CreateManagedFolderRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.control.v2.CreateManagedFolderRequest prototype) { + + public static Builder newBuilder( + com.google.storage.control.v2.CreateManagedFolderRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 CreateManagedFolder.
                * 
            * * Protobuf type {@code google.storage.control.v2.CreateManagedFolderRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.storage.control.v2.CreateManagedFolderRequest) com.google.storage.control.v2.CreateManagedFolderRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CreateManagedFolderRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_CreateManagedFolderRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CreateManagedFolderRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_CreateManagedFolderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.CreateManagedFolderRequest.class, com.google.storage.control.v2.CreateManagedFolderRequest.Builder.class); + com.google.storage.control.v2.CreateManagedFolderRequest.class, + com.google.storage.control.v2.CreateManagedFolderRequest.Builder.class); } // Construct using com.google.storage.control.v2.CreateManagedFolderRequest.newBuilder() @@ -460,17 +521,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) { getManagedFolderFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -487,9 +548,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_CreateManagedFolderRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_CreateManagedFolderRequest_descriptor; } @java.lang.Override @@ -508,8 +569,11 @@ public com.google.storage.control.v2.CreateManagedFolderRequest build() { @java.lang.Override public com.google.storage.control.v2.CreateManagedFolderRequest buildPartial() { - com.google.storage.control.v2.CreateManagedFolderRequest result = new com.google.storage.control.v2.CreateManagedFolderRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.storage.control.v2.CreateManagedFolderRequest result = + new com.google.storage.control.v2.CreateManagedFolderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -521,9 +585,8 @@ private void buildPartial0(com.google.storage.control.v2.CreateManagedFolderRequ } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.managedFolder_ = managedFolderBuilder_ == null - ? managedFolder_ - : managedFolderBuilder_.build(); + result.managedFolder_ = + managedFolderBuilder_ == null ? managedFolder_ : managedFolderBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -539,38 +602,39 @@ private void buildPartial0(com.google.storage.control.v2.CreateManagedFolderRequ public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.control.v2.CreateManagedFolderRequest) { - return mergeFrom((com.google.storage.control.v2.CreateManagedFolderRequest)other); + return mergeFrom((com.google.storage.control.v2.CreateManagedFolderRequest) other); } else { super.mergeFrom(other); return this; @@ -578,7 +642,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.control.v2.CreateManagedFolderRequest other) { - if (other == com.google.storage.control.v2.CreateManagedFolderRequest.getDefaultInstance()) return this; + if (other == com.google.storage.control.v2.CreateManagedFolderRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -623,34 +688,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getManagedFolderFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - managedFolderId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - 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(getManagedFolderFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + managedFolderId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + 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) { @@ -660,22 +728,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
                  * Required. Name of the bucket this managed folder belongs to.
                  * 
            * - * 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; @@ -684,20 +757,23 @@ public java.lang.String getParent() { } } /** + * + * *
                  * Required. Name of the bucket this managed folder belongs to.
                  * 
            * - * 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 { @@ -705,28 +781,39 @@ public java.lang.String getParent() { } } /** + * + * *
                  * Required. Name of the bucket this managed folder belongs to.
                  * 
            * - * 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 this managed folder belongs to.
                  * 
            * - * 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() { @@ -736,17 +823,23 @@ public Builder clearParent() { return this; } /** + * + * *
                  * Required. Name of the bucket this managed folder belongs to.
                  * 
            * - * 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; @@ -756,8 +849,13 @@ public Builder setParentBytes( private com.google.storage.control.v2.ManagedFolder managedFolder_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.ManagedFolder, com.google.storage.control.v2.ManagedFolder.Builder, com.google.storage.control.v2.ManagedFolderOrBuilder> managedFolderBuilder_; + com.google.storage.control.v2.ManagedFolder, + com.google.storage.control.v2.ManagedFolder.Builder, + com.google.storage.control.v2.ManagedFolderOrBuilder> + managedFolderBuilder_; /** + * + * *
                  * Required. Properties of the managed folder being created.
                  * The bucket and managed folder names are specified in the `parent` and
            @@ -765,13 +863,18 @@ public Builder setParentBytes(
                  * will result in an error.
                  * 
            * - * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the managedFolder field is set. */ public boolean hasManagedFolder() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
                  * Required. Properties of the managed folder being created.
                  * The bucket and managed folder names are specified in the `parent` and
            @@ -779,17 +882,24 @@ public boolean hasManagedFolder() {
                  * will result in an error.
                  * 
            * - * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The managedFolder. */ public com.google.storage.control.v2.ManagedFolder getManagedFolder() { if (managedFolderBuilder_ == null) { - return managedFolder_ == null ? com.google.storage.control.v2.ManagedFolder.getDefaultInstance() : managedFolder_; + return managedFolder_ == null + ? com.google.storage.control.v2.ManagedFolder.getDefaultInstance() + : managedFolder_; } else { return managedFolderBuilder_.getMessage(); } } /** + * + * *
                  * Required. Properties of the managed folder being created.
                  * The bucket and managed folder names are specified in the `parent` and
            @@ -797,7 +907,9 @@ public com.google.storage.control.v2.ManagedFolder getManagedFolder() {
                  * will result in an error.
                  * 
            * - * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setManagedFolder(com.google.storage.control.v2.ManagedFolder value) { if (managedFolderBuilder_ == null) { @@ -813,6 +925,8 @@ public Builder setManagedFolder(com.google.storage.control.v2.ManagedFolder valu return this; } /** + * + * *
                  * Required. Properties of the managed folder being created.
                  * The bucket and managed folder names are specified in the `parent` and
            @@ -820,7 +934,9 @@ public Builder setManagedFolder(com.google.storage.control.v2.ManagedFolder valu
                  * will result in an error.
                  * 
            * - * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setManagedFolder( com.google.storage.control.v2.ManagedFolder.Builder builderForValue) { @@ -834,6 +950,8 @@ public Builder setManagedFolder( return this; } /** + * + * *
                  * Required. Properties of the managed folder being created.
                  * The bucket and managed folder names are specified in the `parent` and
            @@ -841,13 +959,15 @@ public Builder setManagedFolder(
                  * will result in an error.
                  * 
            * - * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeManagedFolder(com.google.storage.control.v2.ManagedFolder value) { if (managedFolderBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - managedFolder_ != null && - managedFolder_ != com.google.storage.control.v2.ManagedFolder.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && managedFolder_ != null + && managedFolder_ != com.google.storage.control.v2.ManagedFolder.getDefaultInstance()) { getManagedFolderBuilder().mergeFrom(value); } else { managedFolder_ = value; @@ -862,6 +982,8 @@ public Builder mergeManagedFolder(com.google.storage.control.v2.ManagedFolder va return this; } /** + * + * *
                  * Required. Properties of the managed folder being created.
                  * The bucket and managed folder names are specified in the `parent` and
            @@ -869,7 +991,9 @@ public Builder mergeManagedFolder(com.google.storage.control.v2.ManagedFolder va
                  * will result in an error.
                  * 
            * - * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearManagedFolder() { bitField0_ = (bitField0_ & ~0x00000002); @@ -882,6 +1006,8 @@ public Builder clearManagedFolder() { return this; } /** + * + * *
                  * Required. Properties of the managed folder being created.
                  * The bucket and managed folder names are specified in the `parent` and
            @@ -889,7 +1015,9 @@ public Builder clearManagedFolder() {
                  * will result in an error.
                  * 
            * - * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.storage.control.v2.ManagedFolder.Builder getManagedFolderBuilder() { bitField0_ |= 0x00000002; @@ -897,6 +1025,8 @@ public com.google.storage.control.v2.ManagedFolder.Builder getManagedFolderBuild return getManagedFolderFieldBuilder().getBuilder(); } /** + * + * *
                  * Required. Properties of the managed folder being created.
                  * The bucket and managed folder names are specified in the `parent` and
            @@ -904,17 +1034,22 @@ public com.google.storage.control.v2.ManagedFolder.Builder getManagedFolderBuild
                  * will result in an error.
                  * 
            * - * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.storage.control.v2.ManagedFolderOrBuilder getManagedFolderOrBuilder() { if (managedFolderBuilder_ != null) { return managedFolderBuilder_.getMessageOrBuilder(); } else { - return managedFolder_ == null ? - com.google.storage.control.v2.ManagedFolder.getDefaultInstance() : managedFolder_; + return managedFolder_ == null + ? com.google.storage.control.v2.ManagedFolder.getDefaultInstance() + : managedFolder_; } } /** + * + * *
                  * Required. Properties of the managed folder being created.
                  * The bucket and managed folder names are specified in the `parent` and
            @@ -922,17 +1057,22 @@ public com.google.storage.control.v2.ManagedFolderOrBuilder getManagedFolderOrBu
                  * will result in an error.
                  * 
            * - * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.ManagedFolder, com.google.storage.control.v2.ManagedFolder.Builder, com.google.storage.control.v2.ManagedFolderOrBuilder> + com.google.storage.control.v2.ManagedFolder, + com.google.storage.control.v2.ManagedFolder.Builder, + com.google.storage.control.v2.ManagedFolderOrBuilder> getManagedFolderFieldBuilder() { if (managedFolderBuilder_ == null) { - managedFolderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.ManagedFolder, com.google.storage.control.v2.ManagedFolder.Builder, com.google.storage.control.v2.ManagedFolderOrBuilder>( - getManagedFolder(), - getParentForChildren(), - isClean()); + managedFolderBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.control.v2.ManagedFolder, + com.google.storage.control.v2.ManagedFolder.Builder, + com.google.storage.control.v2.ManagedFolderOrBuilder>( + getManagedFolder(), getParentForChildren(), isClean()); managedFolder_ = null; } return managedFolderBuilder_; @@ -940,19 +1080,21 @@ public com.google.storage.control.v2.ManagedFolderOrBuilder getManagedFolderOrBu private java.lang.Object managedFolderId_ = ""; /** + * + * *
                  * Required. The name of the managed folder. It uses a single `/` as delimiter
                  * and leading and trailing `/` are allowed.
                  * 
            * * string managed_folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The managedFolderId. */ public java.lang.String getManagedFolderId() { java.lang.Object ref = managedFolderId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); managedFolderId_ = s; return s; @@ -961,21 +1103,22 @@ public java.lang.String getManagedFolderId() { } } /** + * + * *
                  * Required. The name of the managed folder. It uses a single `/` as delimiter
                  * and leading and trailing `/` are allowed.
                  * 
            * * string managed_folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for managedFolderId. */ - public com.google.protobuf.ByteString - getManagedFolderIdBytes() { + public com.google.protobuf.ByteString getManagedFolderIdBytes() { java.lang.Object ref = managedFolderId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); managedFolderId_ = b; return b; } else { @@ -983,30 +1126,37 @@ public java.lang.String getManagedFolderId() { } } /** + * + * *
                  * Required. The name of the managed folder. It uses a single `/` as delimiter
                  * and leading and trailing `/` are allowed.
                  * 
            * * string managed_folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The managedFolderId to set. * @return This builder for chaining. */ - public Builder setManagedFolderId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setManagedFolderId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } managedFolderId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
                  * Required. The name of the managed folder. It uses a single `/` as delimiter
                  * and leading and trailing `/` are allowed.
                  * 
            * * string managed_folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearManagedFolderId() { @@ -1016,18 +1166,22 @@ public Builder clearManagedFolderId() { return this; } /** + * + * *
                  * Required. The name of the managed folder. It uses a single `/` as delimiter
                  * and leading and trailing `/` are allowed.
                  * 
            * * string managed_folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for managedFolderId to set. * @return This builder for chaining. */ - public Builder setManagedFolderIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setManagedFolderIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); managedFolderId_ = value; bitField0_ |= 0x00000004; @@ -1037,19 +1191,23 @@ public Builder setManagedFolderIdBytes( private java.lang.Object requestId_ = ""; /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1058,21 +1216,24 @@ public java.lang.String getRequestId() { } } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1080,30 +1241,41 @@ public java.lang.String getRequestId() { } } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1113,27 +1285,33 @@ public Builder clearRequestId() { return this; } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1143,12 +1321,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.storage.control.v2.CreateManagedFolderRequest) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.CreateManagedFolderRequest) private static final com.google.storage.control.v2.CreateManagedFolderRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.storage.control.v2.CreateManagedFolderRequest(); } @@ -1157,27 +1335,27 @@ public static com.google.storage.control.v2.CreateManagedFolderRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateManagedFolderRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateManagedFolderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1192,6 +1370,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.storage.control.v2.CreateManagedFolderRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateManagedFolderRequestOrBuilder.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateManagedFolderRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateManagedFolderRequestOrBuilder.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateManagedFolderRequestOrBuilder.java index f3df0cc3fa..d59a43a153 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateManagedFolderRequestOrBuilder.java +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/CreateManagedFolderRequestOrBuilder.java @@ -1,34 +1,61 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto // Protobuf Java Version: 3.25.3 package com.google.storage.control.v2; -public interface CreateManagedFolderRequestOrBuilder extends +public interface CreateManagedFolderRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.CreateManagedFolderRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
                * Required. Name of the bucket this managed folder belongs to.
                * 
            * - * 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 this managed folder belongs to.
                * 
            * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
                * Required. Properties of the managed folder being created.
                * The bucket and managed folder names are specified in the `parent` and
            @@ -36,11 +63,16 @@ public interface CreateManagedFolderRequestOrBuilder extends
                * will result in an error.
                * 
            * - * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the managedFolder field is set. */ boolean hasManagedFolder(); /** + * + * *
                * Required. Properties of the managed folder being created.
                * The bucket and managed folder names are specified in the `parent` and
            @@ -48,11 +80,16 @@ public interface CreateManagedFolderRequestOrBuilder extends
                * will result in an error.
                * 
            * - * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The managedFolder. */ com.google.storage.control.v2.ManagedFolder getManagedFolder(); /** + * + * *
                * Required. Properties of the managed folder being created.
                * The bucket and managed folder names are specified in the `parent` and
            @@ -60,51 +97,67 @@ public interface CreateManagedFolderRequestOrBuilder extends
                * will result in an error.
                * 
            * - * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.storage.control.v2.ManagedFolder managed_folder = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.storage.control.v2.ManagedFolderOrBuilder getManagedFolderOrBuilder(); /** + * + * *
                * Required. The name of the managed folder. It uses a single `/` as delimiter
                * and leading and trailing `/` are allowed.
                * 
            * * string managed_folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The managedFolderId. */ java.lang.String getManagedFolderId(); /** + * + * *
                * Required. The name of the managed folder. It uses a single `/` as delimiter
                * and leading and trailing `/` are allowed.
                * 
            * * string managed_folder_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for managedFolderId. */ - com.google.protobuf.ByteString - getManagedFolderIdBytes(); + com.google.protobuf.ByteString getManagedFolderIdBytes(); /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteFolderRequest.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteFolderRequest.java similarity index 68% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteFolderRequest.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteFolderRequest.java index 26bf08e457..18e8ce401b 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteFolderRequest.java +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteFolderRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto @@ -5,6 +20,8 @@ package com.google.storage.control.v2; /** + * + * *
              * Request message for DeleteFolder. This operation is only applicable to a
              * hierarchical namespace enabled bucket.
            @@ -12,15 +29,16 @@
              *
              * Protobuf type {@code google.storage.control.v2.DeleteFolderRequest}
              */
            -public final class DeleteFolderRequest extends
            -    com.google.protobuf.GeneratedMessageV3 implements
            +public final class DeleteFolderRequest extends com.google.protobuf.GeneratedMessageV3
            +    implements
                 // @@protoc_insertion_point(message_implements:google.storage.control.v2.DeleteFolderRequest)
                 DeleteFolderRequestOrBuilder {
            -private static final long serialVersionUID = 0L;
            +  private static final long serialVersionUID = 0L;
               // Use DeleteFolderRequest.newBuilder() to construct.
               private DeleteFolderRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                 super(builder);
               }
            +
               private DeleteFolderRequest() {
                 name_ = "";
                 requestId_ = "";
            @@ -28,35 +46,42 @@ private DeleteFolderRequest() {
             
               @java.lang.Override
               @SuppressWarnings({"unused"})
            -  protected java.lang.Object newInstance(
            -      UnusedPrivateParameter unused) {
            +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                 return new DeleteFolderRequest();
               }
             
            -  public static final com.google.protobuf.Descriptors.Descriptor
            -      getDescriptor() {
            -    return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_DeleteFolderRequest_descriptor;
            +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            +    return com.google.storage.control.v2.StorageControlProto
            +        .internal_static_google_storage_control_v2_DeleteFolderRequest_descriptor;
               }
             
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
            -    return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_DeleteFolderRequest_fieldAccessorTable
            +    return com.google.storage.control.v2.StorageControlProto
            +        .internal_static_google_storage_control_v2_DeleteFolderRequest_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
            -            com.google.storage.control.v2.DeleteFolderRequest.class, com.google.storage.control.v2.DeleteFolderRequest.Builder.class);
            +            com.google.storage.control.v2.DeleteFolderRequest.class,
            +            com.google.storage.control.v2.DeleteFolderRequest.Builder.class);
               }
             
               private int bitField0_;
               public static final int NAME_FIELD_NUMBER = 6;
            +
               @SuppressWarnings("serial")
               private volatile java.lang.Object name_ = "";
               /**
            +   *
            +   *
                * 
                * Required. Name of the folder.
                * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                * 
            * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,30 +90,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
                * Required. Name of the folder.
                * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                * 
            * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -99,12 +126,15 @@ public java.lang.String getName() { public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER = 3; private long ifMetagenerationMatch_ = 0L; /** + * + * *
                * Makes the operation only succeed conditional on whether the folder's
                * current metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 3; + * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -112,12 +142,15 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * Makes the operation only succeed conditional on whether the folder's
                * current metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 3; + * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -128,12 +161,15 @@ public long getIfMetagenerationMatch() { public static final int IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER = 4; private long ifMetagenerationNotMatch_ = 0L; /** + * + * *
                * Makes the operation only succeed conditional on whether the folder's
                * current metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 4; + * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -141,12 +177,15 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
                * Makes the operation only succeed conditional on whether the folder's
                * current metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 4; + * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -155,15 +194,21 @@ public long getIfMetagenerationNotMatch() { } public static final int REQUEST_ID_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The requestId. */ @java.lang.Override @@ -172,30 +217,32 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -204,6 +251,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -215,8 +263,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(3, ifMetagenerationMatch_); } @@ -239,12 +286,10 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, ifMetagenerationMatch_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, ifMetagenerationMatch_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, ifMetagenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ifMetagenerationNotMatch_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, requestId_); @@ -260,27 +305,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.control.v2.DeleteFolderRequest)) { return super.equals(obj); } - com.google.storage.control.v2.DeleteFolderRequest other = (com.google.storage.control.v2.DeleteFolderRequest) obj; + com.google.storage.control.v2.DeleteFolderRequest other = + (com.google.storage.control.v2.DeleteFolderRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasIfMetagenerationMatch() != other.hasIfMetagenerationMatch()) return false; if (hasIfMetagenerationMatch()) { - if (getIfMetagenerationMatch() - != other.getIfMetagenerationMatch()) return false; + if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false; } if (hasIfMetagenerationNotMatch() != other.hasIfMetagenerationNotMatch()) return false; if (hasIfMetagenerationNotMatch()) { - if (getIfMetagenerationNotMatch() - != other.getIfMetagenerationNotMatch()) return false; + if (getIfMetagenerationNotMatch() != other.getIfMetagenerationNotMatch()) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -296,13 +338,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()); } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); @@ -312,98 +352,103 @@ public int hashCode() { } public static com.google.storage.control.v2.DeleteFolderRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.DeleteFolderRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.DeleteFolderRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.DeleteFolderRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.DeleteFolderRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.DeleteFolderRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.DeleteFolderRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.storage.control.v2.DeleteFolderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.DeleteFolderRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.DeleteFolderRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.DeleteFolderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.DeleteFolderRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.storage.control.v2.DeleteFolderRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.DeleteFolderRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.storage.control.v2.DeleteFolderRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                * Request message for DeleteFolder. This operation is only applicable to a
                * hierarchical namespace enabled bucket.
            @@ -411,33 +456,32 @@ protected Builder newBuilderForType(
                *
                * Protobuf type {@code google.storage.control.v2.DeleteFolderRequest}
                */
            -  public static final class Builder extends
            -      com.google.protobuf.GeneratedMessageV3.Builder implements
            +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
            +      implements
                   // @@protoc_insertion_point(builder_implements:google.storage.control.v2.DeleteFolderRequest)
                   com.google.storage.control.v2.DeleteFolderRequestOrBuilder {
            -    public static final com.google.protobuf.Descriptors.Descriptor
            -        getDescriptor() {
            -      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_DeleteFolderRequest_descriptor;
            +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            +      return com.google.storage.control.v2.StorageControlProto
            +          .internal_static_google_storage_control_v2_DeleteFolderRequest_descriptor;
                 }
             
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
            -      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_DeleteFolderRequest_fieldAccessorTable
            +      return com.google.storage.control.v2.StorageControlProto
            +          .internal_static_google_storage_control_v2_DeleteFolderRequest_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
            -              com.google.storage.control.v2.DeleteFolderRequest.class, com.google.storage.control.v2.DeleteFolderRequest.Builder.class);
            +              com.google.storage.control.v2.DeleteFolderRequest.class,
            +              com.google.storage.control.v2.DeleteFolderRequest.Builder.class);
                 }
             
                 // Construct using com.google.storage.control.v2.DeleteFolderRequest.newBuilder()
            -    private Builder() {
            -
            -    }
            +    private Builder() {}
             
            -    private Builder(
            -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                   super(parent);
            -
                 }
            +
                 @java.lang.Override
                 public Builder clear() {
                   super.clear();
            @@ -450,9 +494,9 @@ public Builder clear() {
                 }
             
                 @java.lang.Override
            -    public com.google.protobuf.Descriptors.Descriptor
            -        getDescriptorForType() {
            -      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_DeleteFolderRequest_descriptor;
            +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            +      return com.google.storage.control.v2.StorageControlProto
            +          .internal_static_google_storage_control_v2_DeleteFolderRequest_descriptor;
                 }
             
                 @java.lang.Override
            @@ -471,8 +515,11 @@ public com.google.storage.control.v2.DeleteFolderRequest build() {
             
                 @java.lang.Override
                 public com.google.storage.control.v2.DeleteFolderRequest buildPartial() {
            -      com.google.storage.control.v2.DeleteFolderRequest result = new com.google.storage.control.v2.DeleteFolderRequest(this);
            -      if (bitField0_ != 0) { buildPartial0(result); }
            +      com.google.storage.control.v2.DeleteFolderRequest result =
            +          new com.google.storage.control.v2.DeleteFolderRequest(this);
            +      if (bitField0_ != 0) {
            +        buildPartial0(result);
            +      }
                   onBuilt();
                   return result;
                 }
            @@ -501,38 +548,39 @@ private void buildPartial0(com.google.storage.control.v2.DeleteFolderRequest res
                 public Builder clone() {
                   return super.clone();
                 }
            +
                 @java.lang.Override
                 public Builder setField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field,
            -        java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                   return super.setField(field, value);
                 }
            +
                 @java.lang.Override
            -    public Builder clearField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field) {
            +    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
                   return super.clearField(field);
                 }
            +
                 @java.lang.Override
            -    public Builder clearOneof(
            -        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
            +    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                   return super.clearOneof(oneof);
                 }
            +
                 @java.lang.Override
                 public Builder setRepeatedField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field,
            -        int index, java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
                   return super.setRepeatedField(field, index, value);
                 }
            +
                 @java.lang.Override
                 public Builder addRepeatedField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field,
            -        java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                   return super.addRepeatedField(field, value);
                 }
            +
                 @java.lang.Override
                 public Builder mergeFrom(com.google.protobuf.Message other) {
                   if (other instanceof com.google.storage.control.v2.DeleteFolderRequest) {
            -        return mergeFrom((com.google.storage.control.v2.DeleteFolderRequest)other);
            +        return mergeFrom((com.google.storage.control.v2.DeleteFolderRequest) other);
                   } else {
                     super.mergeFrom(other);
                     return this;
            @@ -540,7 +588,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
                 }
             
                 public Builder mergeFrom(com.google.storage.control.v2.DeleteFolderRequest other) {
            -      if (other == com.google.storage.control.v2.DeleteFolderRequest.getDefaultInstance()) return this;
            +      if (other == com.google.storage.control.v2.DeleteFolderRequest.getDefaultInstance())
            +        return this;
                   if (!other.getName().isEmpty()) {
                     name_ = other.name_;
                     bitField0_ |= 0x00000001;
            @@ -583,32 +632,37 @@ public Builder mergeFrom(
                         case 0:
                           done = true;
                           break;
            -            case 24: {
            -              ifMetagenerationMatch_ = input.readInt64();
            -              bitField0_ |= 0x00000002;
            -              break;
            -            } // case 24
            -            case 32: {
            -              ifMetagenerationNotMatch_ = input.readInt64();
            -              bitField0_ |= 0x00000004;
            -              break;
            -            } // case 32
            -            case 42: {
            -              requestId_ = input.readStringRequireUtf8();
            -              bitField0_ |= 0x00000008;
            -              break;
            -            } // case 42
            -            case 50: {
            -              name_ = input.readStringRequireUtf8();
            -              bitField0_ |= 0x00000001;
            -              break;
            -            } // case 50
            -            default: {
            -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            -                done = true; // was an endgroup tag
            -              }
            -              break;
            -            } // default:
            +            case 24:
            +              {
            +                ifMetagenerationMatch_ = input.readInt64();
            +                bitField0_ |= 0x00000002;
            +                break;
            +              } // case 24
            +            case 32:
            +              {
            +                ifMetagenerationNotMatch_ = input.readInt64();
            +                bitField0_ |= 0x00000004;
            +                break;
            +              } // case 32
            +            case 42:
            +              {
            +                requestId_ = input.readStringRequireUtf8();
            +                bitField0_ |= 0x00000008;
            +                break;
            +              } // case 42
            +            case 50:
            +              {
            +                name_ = input.readStringRequireUtf8();
            +                bitField0_ |= 0x00000001;
            +                break;
            +              } // case 50
            +            default:
            +              {
            +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            +                  done = true; // was an endgroup tag
            +                }
            +                break;
            +              } // default:
                       } // switch (tag)
                     } // while (!done)
                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            @@ -618,23 +672,28 @@ public Builder mergeFrom(
                   } // finally
                   return this;
                 }
            +
                 private int bitField0_;
             
                 private java.lang.Object name_ = "";
                 /**
            +     *
            +     *
                  * 
                  * Required. Name of the folder.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -643,21 +702,24 @@ public java.lang.String getName() { } } /** + * + * *
                  * Required. Name of the folder.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -665,30 +727,41 @@ public java.lang.String getName() { } } /** + * + * *
                  * Required. Name of the folder.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
                  * Required. Name of the folder.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -698,18 +771,24 @@ public Builder clearName() { return this; } /** + * + * *
                  * Required. Name of the folder.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -717,14 +796,17 @@ public Builder setNameBytes( return this; } - private long ifMetagenerationMatch_ ; + private long ifMetagenerationMatch_; /** + * + * *
                  * Makes the operation only succeed conditional on whether the folder's
                  * current metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 3; + * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -732,12 +814,15 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
                  * Makes the operation only succeed conditional on whether the folder's
                  * current metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 3; + * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -745,12 +830,15 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** + * + * *
                  * Makes the operation only succeed conditional on whether the folder's
                  * current metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 3; + * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -762,12 +850,15 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** + * + * *
                  * Makes the operation only succeed conditional on whether the folder's
                  * current metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 3; + * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -777,14 +868,17 @@ public Builder clearIfMetagenerationMatch() { return this; } - private long ifMetagenerationNotMatch_ ; + private long ifMetagenerationNotMatch_; /** + * + * *
                  * Makes the operation only succeed conditional on whether the folder's
                  * current metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 4; + * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -792,12 +886,15 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
                  * Makes the operation only succeed conditional on whether the folder's
                  * current metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 4; + * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -805,12 +902,15 @@ public long getIfMetagenerationNotMatch() { return ifMetagenerationNotMatch_; } /** + * + * *
                  * Makes the operation only succeed conditional on whether the folder's
                  * current metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 4; + * * @param value The ifMetagenerationNotMatch to set. * @return This builder for chaining. */ @@ -822,12 +922,15 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** + * + * *
                  * Makes the operation only succeed conditional on whether the folder's
                  * current metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 4; + * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -839,19 +942,23 @@ public Builder clearIfMetagenerationNotMatch() { private java.lang.Object requestId_ = ""; /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -860,21 +967,24 @@ public java.lang.String getRequestId() { } } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -882,30 +992,41 @@ public java.lang.String getRequestId() { } } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -915,27 +1036,33 @@ public Builder clearRequestId() { return this; } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -945,12 +1072,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.storage.control.v2.DeleteFolderRequest) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.DeleteFolderRequest) private static final com.google.storage.control.v2.DeleteFolderRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.storage.control.v2.DeleteFolderRequest(); } @@ -959,27 +1086,27 @@ public static com.google.storage.control.v2.DeleteFolderRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteFolderRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFolderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -994,6 +1121,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.DeleteFolderRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteFolderRequestOrBuilder.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteFolderRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteFolderRequestOrBuilder.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteFolderRequestOrBuilder.java index f080f667cb..3f7b5b6229 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteFolderRequestOrBuilder.java +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteFolderRequestOrBuilder.java @@ -1,96 +1,142 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto // Protobuf Java Version: 3.25.3 package com.google.storage.control.v2; -public interface DeleteFolderRequestOrBuilder extends +public interface DeleteFolderRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.DeleteFolderRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
                * Required. Name of the folder.
                * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                * 
            * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
                * Required. Name of the folder.
                * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                * 
            * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
                * Makes the operation only succeed conditional on whether the folder's
                * current metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 3; + * * @return Whether the ifMetagenerationMatch field is set. */ boolean hasIfMetagenerationMatch(); /** + * + * *
                * Makes the operation only succeed conditional on whether the folder's
                * current metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 3; + * * @return The ifMetagenerationMatch. */ long getIfMetagenerationMatch(); /** + * + * *
                * Makes the operation only succeed conditional on whether the folder's
                * current metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 4; + * * @return Whether the ifMetagenerationNotMatch field is set. */ boolean hasIfMetagenerationNotMatch(); /** + * + * *
                * Makes the operation only succeed conditional on whether the folder's
                * current metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 4; + * * @return The ifMetagenerationNotMatch. */ long getIfMetagenerationNotMatch(); /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteManagedFolderRequest.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteManagedFolderRequest.java similarity index 69% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteManagedFolderRequest.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteManagedFolderRequest.java index 84a365253f..a46860075d 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteManagedFolderRequest.java +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteManagedFolderRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto @@ -5,21 +20,24 @@ package com.google.storage.control.v2; /** + * + * *
              * DeleteManagedFolder RPC request message.
              * 
            * * Protobuf type {@code google.storage.control.v2.DeleteManagedFolderRequest} */ -public final class DeleteManagedFolderRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteManagedFolderRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.DeleteManagedFolderRequest) DeleteManagedFolderRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteManagedFolderRequest.newBuilder() to construct. private DeleteManagedFolderRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteManagedFolderRequest() { name_ = ""; requestId_ = ""; @@ -27,36 +45,43 @@ private DeleteManagedFolderRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteManagedFolderRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_DeleteManagedFolderRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_DeleteManagedFolderRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_DeleteManagedFolderRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_DeleteManagedFolderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.DeleteManagedFolderRequest.class, com.google.storage.control.v2.DeleteManagedFolderRequest.Builder.class); + com.google.storage.control.v2.DeleteManagedFolderRequest.class, + com.google.storage.control.v2.DeleteManagedFolderRequest.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
                * Required. Name of the managed folder.
                * Format:
                * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
                * 
            * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,31 +90,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. Name of the managed folder.
                * Format:
                * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
                * 
            * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -100,12 +127,15 @@ public java.lang.String getName() { public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER = 3; private long ifMetagenerationMatch_ = 0L; /** + * + * *
                * The operation succeeds conditional on the managed folder's current
                * metageneration matching the value here specified.
                * 
            * * optional int64 if_metageneration_match = 3; + * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -113,12 +143,15 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * The operation succeeds conditional on the managed folder's current
                * metageneration matching the value here specified.
                * 
            * * optional int64 if_metageneration_match = 3; + * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -129,12 +162,15 @@ public long getIfMetagenerationMatch() { public static final int IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER = 4; private long ifMetagenerationNotMatch_ = 0L; /** + * + * *
                * The operation succeeds conditional on the managed folder's current
                * metageneration NOT matching the value here specified.
                * 
            * * optional int64 if_metageneration_not_match = 4; + * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -142,12 +178,15 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
                * The operation succeeds conditional on the managed folder's current
                * metageneration NOT matching the value here specified.
                * 
            * * optional int64 if_metageneration_not_match = 4; + * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -158,6 +197,8 @@ public long getIfMetagenerationNotMatch() { public static final int ALLOW_NON_EMPTY_FIELD_NUMBER = 5; private boolean allowNonEmpty_ = false; /** + * + * *
                * Allows deletion of a managed folder even if it is not empty.
                * A managed folder is empty if it manages no child managed folders or
            @@ -166,6 +207,7 @@ public long getIfMetagenerationNotMatch() {
                * 
            * * bool allow_non_empty = 5; + * * @return The allowNonEmpty. */ @java.lang.Override @@ -174,15 +216,21 @@ public boolean getAllowNonEmpty() { } public static final int REQUEST_ID_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The requestId. */ @java.lang.Override @@ -191,30 +239,32 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -223,6 +273,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -234,8 +285,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(3, ifMetagenerationMatch_); } @@ -261,16 +311,13 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, ifMetagenerationMatch_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, ifMetagenerationMatch_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, ifMetagenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ifMetagenerationNotMatch_); } if (allowNonEmpty_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, allowNonEmpty_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, allowNonEmpty_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, requestId_); @@ -286,29 +333,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.control.v2.DeleteManagedFolderRequest)) { return super.equals(obj); } - com.google.storage.control.v2.DeleteManagedFolderRequest other = (com.google.storage.control.v2.DeleteManagedFolderRequest) obj; + com.google.storage.control.v2.DeleteManagedFolderRequest other = + (com.google.storage.control.v2.DeleteManagedFolderRequest) 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 (getAllowNonEmpty() - != other.getAllowNonEmpty()) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (getAllowNonEmpty() != other.getAllowNonEmpty()) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -324,17 +367,14 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); if (hasIfMetagenerationMatch()) { hash = (37 * hash) + IF_METAGENERATION_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIfMetagenerationMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationMatch()); } if (hasIfMetagenerationNotMatch()) { hash = (37 * hash) + IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIfMetagenerationNotMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationNotMatch()); } hash = (37 * hash) + ALLOW_NON_EMPTY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowNonEmpty()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowNonEmpty()); hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -343,131 +383,136 @@ public int hashCode() { } public static com.google.storage.control.v2.DeleteManagedFolderRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.DeleteManagedFolderRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.DeleteManagedFolderRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.DeleteManagedFolderRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.DeleteManagedFolderRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.DeleteManagedFolderRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.DeleteManagedFolderRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.storage.control.v2.DeleteManagedFolderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.DeleteManagedFolderRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.DeleteManagedFolderRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.DeleteManagedFolderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.DeleteManagedFolderRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.storage.control.v2.DeleteManagedFolderRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.DeleteManagedFolderRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.control.v2.DeleteManagedFolderRequest prototype) { + + public static Builder newBuilder( + com.google.storage.control.v2.DeleteManagedFolderRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                * DeleteManagedFolder RPC request message.
                * 
            * * Protobuf type {@code google.storage.control.v2.DeleteManagedFolderRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.storage.control.v2.DeleteManagedFolderRequest) com.google.storage.control.v2.DeleteManagedFolderRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_DeleteManagedFolderRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_DeleteManagedFolderRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_DeleteManagedFolderRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_DeleteManagedFolderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.DeleteManagedFolderRequest.class, com.google.storage.control.v2.DeleteManagedFolderRequest.Builder.class); + com.google.storage.control.v2.DeleteManagedFolderRequest.class, + com.google.storage.control.v2.DeleteManagedFolderRequest.Builder.class); } // Construct using com.google.storage.control.v2.DeleteManagedFolderRequest.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(); @@ -481,9 +526,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_DeleteManagedFolderRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_DeleteManagedFolderRequest_descriptor; } @java.lang.Override @@ -502,8 +547,11 @@ public com.google.storage.control.v2.DeleteManagedFolderRequest build() { @java.lang.Override public com.google.storage.control.v2.DeleteManagedFolderRequest buildPartial() { - com.google.storage.control.v2.DeleteManagedFolderRequest result = new com.google.storage.control.v2.DeleteManagedFolderRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.storage.control.v2.DeleteManagedFolderRequest result = + new com.google.storage.control.v2.DeleteManagedFolderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -535,38 +583,39 @@ private void buildPartial0(com.google.storage.control.v2.DeleteManagedFolderRequ public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.control.v2.DeleteManagedFolderRequest) { - return mergeFrom((com.google.storage.control.v2.DeleteManagedFolderRequest)other); + return mergeFrom((com.google.storage.control.v2.DeleteManagedFolderRequest) other); } else { super.mergeFrom(other); return this; @@ -574,7 +623,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.control.v2.DeleteManagedFolderRequest other) { - if (other == com.google.storage.control.v2.DeleteManagedFolderRequest.getDefaultInstance()) return this; + if (other == com.google.storage.control.v2.DeleteManagedFolderRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -620,37 +670,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 24: { - ifMetagenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 24 - case 32: { - ifMetagenerationNotMatch_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 32 - case 40: { - allowNonEmpty_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 40 - case 50: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - case 58: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 24: + { + ifMetagenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 32: + { + ifMetagenerationNotMatch_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 40: + { + allowNonEmpty_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 40 + case 50: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 58: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -660,24 +716,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
                  * Required. Name of the managed folder.
                  * Format:
                  * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
                  * 
            * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -686,22 +747,25 @@ public java.lang.String getName() { } } /** + * + * *
                  * Required. Name of the managed folder.
                  * Format:
                  * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
                  * 
            * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -709,32 +773,43 @@ public java.lang.String getName() { } } /** + * + * *
                  * Required. Name of the managed folder.
                  * Format:
                  * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
                  * 
            * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
                  * Required. Name of the managed folder.
                  * Format:
                  * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
                  * 
            * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -744,19 +819,25 @@ public Builder clearName() { return this; } /** + * + * *
                  * Required. Name of the managed folder.
                  * Format:
                  * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
                  * 
            * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -764,14 +845,17 @@ public Builder setNameBytes( return this; } - private long ifMetagenerationMatch_ ; + private long ifMetagenerationMatch_; /** + * + * *
                  * The operation succeeds conditional on the managed folder's current
                  * metageneration matching the value here specified.
                  * 
            * * optional int64 if_metageneration_match = 3; + * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -779,12 +863,15 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
                  * The operation succeeds conditional on the managed folder's current
                  * metageneration matching the value here specified.
                  * 
            * * optional int64 if_metageneration_match = 3; + * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -792,12 +879,15 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** + * + * *
                  * The operation succeeds conditional on the managed folder's current
                  * metageneration matching the value here specified.
                  * 
            * * optional int64 if_metageneration_match = 3; + * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -809,12 +899,15 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** + * + * *
                  * The operation succeeds conditional on the managed folder's current
                  * metageneration matching the value here specified.
                  * 
            * * optional int64 if_metageneration_match = 3; + * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -824,14 +917,17 @@ public Builder clearIfMetagenerationMatch() { return this; } - private long ifMetagenerationNotMatch_ ; + private long ifMetagenerationNotMatch_; /** + * + * *
                  * The operation succeeds conditional on the managed folder's current
                  * metageneration NOT matching the value here specified.
                  * 
            * * optional int64 if_metageneration_not_match = 4; + * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -839,12 +935,15 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
                  * The operation succeeds conditional on the managed folder's current
                  * metageneration NOT matching the value here specified.
                  * 
            * * optional int64 if_metageneration_not_match = 4; + * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -852,12 +951,15 @@ public long getIfMetagenerationNotMatch() { return ifMetagenerationNotMatch_; } /** + * + * *
                  * The operation succeeds conditional on the managed folder's current
                  * metageneration NOT matching the value here specified.
                  * 
            * * optional int64 if_metageneration_not_match = 4; + * * @param value The ifMetagenerationNotMatch to set. * @return This builder for chaining. */ @@ -869,12 +971,15 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** + * + * *
                  * The operation succeeds conditional on the managed folder's current
                  * metageneration NOT matching the value here specified.
                  * 
            * * optional int64 if_metageneration_not_match = 4; + * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -884,8 +989,10 @@ public Builder clearIfMetagenerationNotMatch() { return this; } - private boolean allowNonEmpty_ ; + private boolean allowNonEmpty_; /** + * + * *
                  * Allows deletion of a managed folder even if it is not empty.
                  * A managed folder is empty if it manages no child managed folders or
            @@ -894,6 +1001,7 @@ public Builder clearIfMetagenerationNotMatch() {
                  * 
            * * bool allow_non_empty = 5; + * * @return The allowNonEmpty. */ @java.lang.Override @@ -901,6 +1009,8 @@ public boolean getAllowNonEmpty() { return allowNonEmpty_; } /** + * + * *
                  * Allows deletion of a managed folder even if it is not empty.
                  * A managed folder is empty if it manages no child managed folders or
            @@ -909,6 +1019,7 @@ public boolean getAllowNonEmpty() {
                  * 
            * * bool allow_non_empty = 5; + * * @param value The allowNonEmpty to set. * @return This builder for chaining. */ @@ -920,6 +1031,8 @@ public Builder setAllowNonEmpty(boolean value) { return this; } /** + * + * *
                  * Allows deletion of a managed folder even if it is not empty.
                  * A managed folder is empty if it manages no child managed folders or
            @@ -928,6 +1041,7 @@ public Builder setAllowNonEmpty(boolean value) {
                  * 
            * * bool allow_non_empty = 5; + * * @return This builder for chaining. */ public Builder clearAllowNonEmpty() { @@ -939,19 +1053,23 @@ public Builder clearAllowNonEmpty() { private java.lang.Object requestId_ = ""; /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -960,21 +1078,24 @@ public java.lang.String getRequestId() { } } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -982,30 +1103,41 @@ public java.lang.String getRequestId() { } } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1015,27 +1147,33 @@ public Builder clearRequestId() { return this; } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1045,12 +1183,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.storage.control.v2.DeleteManagedFolderRequest) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.DeleteManagedFolderRequest) private static final com.google.storage.control.v2.DeleteManagedFolderRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.storage.control.v2.DeleteManagedFolderRequest(); } @@ -1059,27 +1197,27 @@ public static com.google.storage.control.v2.DeleteManagedFolderRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteManagedFolderRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteManagedFolderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1094,6 +1232,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.storage.control.v2.DeleteManagedFolderRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteManagedFolderRequestOrBuilder.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteManagedFolderRequestOrBuilder.java similarity index 66% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteManagedFolderRequestOrBuilder.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteManagedFolderRequestOrBuilder.java index b435904af9..953ece8b28 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteManagedFolderRequestOrBuilder.java +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/DeleteManagedFolderRequestOrBuilder.java @@ -1,80 +1,119 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto // Protobuf Java Version: 3.25.3 package com.google.storage.control.v2; -public interface DeleteManagedFolderRequestOrBuilder extends +public interface DeleteManagedFolderRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.DeleteManagedFolderRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
                * Required. Name of the managed folder.
                * Format:
                * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
                * 
            * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
                * Required. Name of the managed folder.
                * Format:
                * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
                * 
            * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
                * The operation succeeds conditional on the managed folder's current
                * metageneration matching the value here specified.
                * 
            * * optional int64 if_metageneration_match = 3; + * * @return Whether the ifMetagenerationMatch field is set. */ boolean hasIfMetagenerationMatch(); /** + * + * *
                * The operation succeeds conditional on the managed folder's current
                * metageneration matching the value here specified.
                * 
            * * optional int64 if_metageneration_match = 3; + * * @return The ifMetagenerationMatch. */ long getIfMetagenerationMatch(); /** + * + * *
                * The operation succeeds conditional on the managed folder's current
                * metageneration NOT matching the value here specified.
                * 
            * * optional int64 if_metageneration_not_match = 4; + * * @return Whether the ifMetagenerationNotMatch field is set. */ boolean hasIfMetagenerationNotMatch(); /** + * + * *
                * The operation succeeds conditional on the managed folder's current
                * metageneration NOT matching the value here specified.
                * 
            * * optional int64 if_metageneration_not_match = 4; + * * @return The ifMetagenerationNotMatch. */ long getIfMetagenerationNotMatch(); /** + * + * *
                * Allows deletion of a managed folder even if it is not empty.
                * A managed folder is empty if it manages no child managed folders or
            @@ -83,29 +122,39 @@ public interface DeleteManagedFolderRequestOrBuilder extends
                * 
            * * bool allow_non_empty = 5; + * * @return The allowNonEmpty. */ boolean getAllowNonEmpty(); /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/Folder.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/Folder.java similarity index 66% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/Folder.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/Folder.java index a235d52fbc..200c19a938 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/Folder.java +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/Folder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto @@ -5,6 +20,8 @@ package com.google.storage.control.v2; /** + * + * *
              * A folder resource. This resource can only exist in a hierarchical namespace
              * enabled bucket.
            @@ -12,50 +29,56 @@
              *
              * Protobuf type {@code google.storage.control.v2.Folder}
              */
            -public final class Folder extends
            -    com.google.protobuf.GeneratedMessageV3 implements
            +public final class Folder extends com.google.protobuf.GeneratedMessageV3
            +    implements
                 // @@protoc_insertion_point(message_implements:google.storage.control.v2.Folder)
                 FolderOrBuilder {
            -private static final long serialVersionUID = 0L;
            +  private static final long serialVersionUID = 0L;
               // Use Folder.newBuilder() to construct.
               private Folder(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                 super(builder);
               }
            +
               private Folder() {
                 name_ = "";
               }
             
               @java.lang.Override
               @SuppressWarnings({"unused"})
            -  protected java.lang.Object newInstance(
            -      UnusedPrivateParameter unused) {
            +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                 return new Folder();
               }
             
            -  public static final com.google.protobuf.Descriptors.Descriptor
            -      getDescriptor() {
            -    return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_Folder_descriptor;
            +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            +    return com.google.storage.control.v2.StorageControlProto
            +        .internal_static_google_storage_control_v2_Folder_descriptor;
               }
             
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
            -    return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_Folder_fieldAccessorTable
            +    return com.google.storage.control.v2.StorageControlProto
            +        .internal_static_google_storage_control_v2_Folder_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
            -            com.google.storage.control.v2.Folder.class, com.google.storage.control.v2.Folder.Builder.class);
            +            com.google.storage.control.v2.Folder.class,
            +            com.google.storage.control.v2.Folder.Builder.class);
               }
             
               private int bitField0_;
               public static final int NAME_FIELD_NUMBER = 1;
            +
               @SuppressWarnings("serial")
               private volatile java.lang.Object name_ = "";
               /**
            +   *
            +   *
                * 
                * Identifier. The name of this folder.
                * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @return The name. */ @java.lang.Override @@ -64,30 +87,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
                * Identifier. The name of this folder.
                * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -98,12 +121,15 @@ public java.lang.String getName() { public static final int METAGENERATION_FIELD_NUMBER = 3; private long metageneration_ = 0L; /** + * + * *
                * Output only. The version of the metadata for this folder. Used for
                * preconditions and for detecting changes in metadata.
                * 
            * * int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The metageneration. */ @java.lang.Override @@ -114,11 +140,15 @@ public long getMetageneration() { public static final int CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createTime_; /** + * + * *
                * Output only. The creation time of the folder.
                * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -126,11 +156,15 @@ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * Output only. The creation time of the folder.
                * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -138,11 +172,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
                * Output only. The creation time of the folder.
                * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -152,11 +189,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
                * Output only. The modification time of the folder.
                * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -164,11 +205,15 @@ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
                * Output only. The modification time of the folder.
                * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -176,11 +221,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
                * Output only. The modification time of the folder.
                * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -190,6 +238,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int PENDING_RENAME_INFO_FIELD_NUMBER = 7; private com.google.storage.control.v2.PendingRenameInfo pendingRenameInfo_; /** + * + * *
                * Output only. Only present if the folder is part of an ongoing RenameFolder
                * operation. Contains information which can be used to query the operation
            @@ -198,7 +248,10 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
                * operations.
                * 
            * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the pendingRenameInfo field is set. */ @java.lang.Override @@ -206,6 +259,8 @@ public boolean hasPendingRenameInfo() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
                * Output only. Only present if the folder is part of an ongoing RenameFolder
                * operation. Contains information which can be used to query the operation
            @@ -214,14 +269,21 @@ public boolean hasPendingRenameInfo() {
                * operations.
                * 
            * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The pendingRenameInfo. */ @java.lang.Override public com.google.storage.control.v2.PendingRenameInfo getPendingRenameInfo() { - return pendingRenameInfo_ == null ? com.google.storage.control.v2.PendingRenameInfo.getDefaultInstance() : pendingRenameInfo_; + return pendingRenameInfo_ == null + ? com.google.storage.control.v2.PendingRenameInfo.getDefaultInstance() + : pendingRenameInfo_; } /** + * + * *
                * Output only. Only present if the folder is part of an ongoing RenameFolder
                * operation. Contains information which can be used to query the operation
            @@ -230,14 +292,19 @@ public com.google.storage.control.v2.PendingRenameInfo getPendingRenameInfo() {
                * operations.
                * 
            * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.storage.control.v2.PendingRenameInfoOrBuilder getPendingRenameInfoOrBuilder() { - return pendingRenameInfo_ == null ? com.google.storage.control.v2.PendingRenameInfo.getDefaultInstance() : pendingRenameInfo_; + return pendingRenameInfo_ == null + ? com.google.storage.control.v2.PendingRenameInfo.getDefaultInstance() + : pendingRenameInfo_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -249,8 +316,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_); } @@ -279,20 +345,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (metageneration_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, metageneration_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, metageneration_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getPendingRenameInfo()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getPendingRenameInfo()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -302,31 +364,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.control.v2.Folder)) { return super.equals(obj); } com.google.storage.control.v2.Folder other = (com.google.storage.control.v2.Folder) obj; - if (!getName() - .equals(other.getName())) return false; - if (getMetageneration() - != other.getMetageneration()) return false; + if (!getName().equals(other.getName())) return false; + if (getMetageneration() != other.getMetageneration()) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (hasPendingRenameInfo() != other.hasPendingRenameInfo()) return false; if (hasPendingRenameInfo()) { - if (!getPendingRenameInfo() - .equals(other.getPendingRenameInfo())) return false; + if (!getPendingRenameInfo().equals(other.getPendingRenameInfo())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -342,8 +399,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + METAGENERATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMetageneration()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMetageneration()); if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); @@ -361,99 +417,103 @@ public int hashCode() { return hash; } - public static com.google.storage.control.v2.Folder parseFrom( - java.nio.ByteBuffer data) + public static com.google.storage.control.v2.Folder parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.Folder parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.Folder parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.storage.control.v2.Folder parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.Folder parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.Folder parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.Folder parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.Folder parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.Folder parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.storage.control.v2.Folder parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.Folder parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.storage.control.v2.Folder parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.Folder parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.storage.control.v2.Folder prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                * A folder resource. This resource can only exist in a hierarchical namespace
                * enabled bucket.
            @@ -461,21 +521,23 @@ protected Builder newBuilderForType(
                *
                * Protobuf type {@code google.storage.control.v2.Folder}
                */
            -  public static final class Builder extends
            -      com.google.protobuf.GeneratedMessageV3.Builder implements
            +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
            +      implements
                   // @@protoc_insertion_point(builder_implements:google.storage.control.v2.Folder)
                   com.google.storage.control.v2.FolderOrBuilder {
            -    public static final com.google.protobuf.Descriptors.Descriptor
            -        getDescriptor() {
            -      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_Folder_descriptor;
            +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            +      return com.google.storage.control.v2.StorageControlProto
            +          .internal_static_google_storage_control_v2_Folder_descriptor;
                 }
             
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
            -      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_Folder_fieldAccessorTable
            +      return com.google.storage.control.v2.StorageControlProto
            +          .internal_static_google_storage_control_v2_Folder_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
            -              com.google.storage.control.v2.Folder.class, com.google.storage.control.v2.Folder.Builder.class);
            +              com.google.storage.control.v2.Folder.class,
            +              com.google.storage.control.v2.Folder.Builder.class);
                 }
             
                 // Construct using com.google.storage.control.v2.Folder.newBuilder()
            @@ -483,19 +545,19 @@ 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) {
                     getCreateTimeFieldBuilder();
                     getUpdateTimeFieldBuilder();
                     getPendingRenameInfoFieldBuilder();
                   }
                 }
            +
                 @java.lang.Override
                 public Builder clear() {
                   super.clear();
            @@ -521,9 +583,9 @@ public Builder clear() {
                 }
             
                 @java.lang.Override
            -    public com.google.protobuf.Descriptors.Descriptor
            -        getDescriptorForType() {
            -      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_Folder_descriptor;
            +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            +      return com.google.storage.control.v2.StorageControlProto
            +          .internal_static_google_storage_control_v2_Folder_descriptor;
                 }
             
                 @java.lang.Override
            @@ -543,7 +605,9 @@ public com.google.storage.control.v2.Folder build() {
                 @java.lang.Override
                 public com.google.storage.control.v2.Folder buildPartial() {
                   com.google.storage.control.v2.Folder result = new com.google.storage.control.v2.Folder(this);
            -      if (bitField0_ != 0) { buildPartial0(result); }
            +      if (bitField0_ != 0) {
            +        buildPartial0(result);
            +      }
                   onBuilt();
                   return result;
                 }
            @@ -558,21 +622,18 @@ private void buildPartial0(com.google.storage.control.v2.Folder result) {
                   }
                   int to_bitField0_ = 0;
                   if (((from_bitField0_ & 0x00000004) != 0)) {
            -        result.createTime_ = createTimeBuilder_ == null
            -            ? createTime_
            -            : createTimeBuilder_.build();
            +        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
                     to_bitField0_ |= 0x00000001;
                   }
                   if (((from_bitField0_ & 0x00000008) != 0)) {
            -        result.updateTime_ = updateTimeBuilder_ == null
            -            ? updateTime_
            -            : updateTimeBuilder_.build();
            +        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
                     to_bitField0_ |= 0x00000002;
                   }
                   if (((from_bitField0_ & 0x00000010) != 0)) {
            -        result.pendingRenameInfo_ = pendingRenameInfoBuilder_ == null
            -            ? pendingRenameInfo_
            -            : pendingRenameInfoBuilder_.build();
            +        result.pendingRenameInfo_ =
            +            pendingRenameInfoBuilder_ == null
            +                ? pendingRenameInfo_
            +                : pendingRenameInfoBuilder_.build();
                     to_bitField0_ |= 0x00000004;
                   }
                   result.bitField0_ |= to_bitField0_;
            @@ -582,38 +643,39 @@ private void buildPartial0(com.google.storage.control.v2.Folder result) {
                 public Builder clone() {
                   return super.clone();
                 }
            +
                 @java.lang.Override
                 public Builder setField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field,
            -        java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                   return super.setField(field, value);
                 }
            +
                 @java.lang.Override
            -    public Builder clearField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field) {
            +    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
                   return super.clearField(field);
                 }
            +
                 @java.lang.Override
            -    public Builder clearOneof(
            -        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
            +    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                   return super.clearOneof(oneof);
                 }
            +
                 @java.lang.Override
                 public Builder setRepeatedField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field,
            -        int index, java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
                   return super.setRepeatedField(field, index, value);
                 }
            +
                 @java.lang.Override
                 public Builder addRepeatedField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field,
            -        java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                   return super.addRepeatedField(field, value);
                 }
            +
                 @java.lang.Override
                 public Builder mergeFrom(com.google.protobuf.Message other) {
                   if (other instanceof com.google.storage.control.v2.Folder) {
            -        return mergeFrom((com.google.storage.control.v2.Folder)other);
            +        return mergeFrom((com.google.storage.control.v2.Folder) other);
                   } else {
                     super.mergeFrom(other);
                     return this;
            @@ -665,43 +727,44 @@ public Builder mergeFrom(
                         case 0:
                           done = true;
                           break;
            -            case 10: {
            -              name_ = input.readStringRequireUtf8();
            -              bitField0_ |= 0x00000001;
            -              break;
            -            } // case 10
            -            case 24: {
            -              metageneration_ = input.readInt64();
            -              bitField0_ |= 0x00000002;
            -              break;
            -            } // case 24
            -            case 34: {
            -              input.readMessage(
            -                  getCreateTimeFieldBuilder().getBuilder(),
            -                  extensionRegistry);
            -              bitField0_ |= 0x00000004;
            -              break;
            -            } // case 34
            -            case 42: {
            -              input.readMessage(
            -                  getUpdateTimeFieldBuilder().getBuilder(),
            -                  extensionRegistry);
            -              bitField0_ |= 0x00000008;
            -              break;
            -            } // case 42
            -            case 58: {
            -              input.readMessage(
            -                  getPendingRenameInfoFieldBuilder().getBuilder(),
            -                  extensionRegistry);
            -              bitField0_ |= 0x00000010;
            -              break;
            -            } // case 58
            -            default: {
            -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            -                done = true; // was an endgroup tag
            -              }
            -              break;
            -            } // default:
            +            case 10:
            +              {
            +                name_ = input.readStringRequireUtf8();
            +                bitField0_ |= 0x00000001;
            +                break;
            +              } // case 10
            +            case 24:
            +              {
            +                metageneration_ = input.readInt64();
            +                bitField0_ |= 0x00000002;
            +                break;
            +              } // case 24
            +            case 34:
            +              {
            +                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
            +                bitField0_ |= 0x00000004;
            +                break;
            +              } // case 34
            +            case 42:
            +              {
            +                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
            +                bitField0_ |= 0x00000008;
            +                break;
            +              } // case 42
            +            case 58:
            +              {
            +                input.readMessage(
            +                    getPendingRenameInfoFieldBuilder().getBuilder(), extensionRegistry);
            +                bitField0_ |= 0x00000010;
            +                break;
            +              } // case 58
            +            default:
            +              {
            +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            +                  done = true; // was an endgroup tag
            +                }
            +                break;
            +              } // default:
                       } // switch (tag)
                     } // while (!done)
                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            @@ -711,23 +774,26 @@ public Builder mergeFrom(
                   } // finally
                   return this;
                 }
            +
                 private int bitField0_;
             
                 private java.lang.Object name_ = "";
                 /**
            +     *
            +     *
                  * 
                  * Identifier. The name of this folder.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -736,21 +802,22 @@ public java.lang.String getName() { } } /** + * + * *
                  * Identifier. The name of this folder.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -758,30 +825,37 @@ public java.lang.String getName() { } } /** + * + * *
                  * Identifier. The name of this folder.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
                  * Identifier. The name of this folder.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -791,18 +865,22 @@ public Builder clearName() { return this; } /** + * + * *
                  * Identifier. The name of this folder.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -810,14 +888,17 @@ public Builder setNameBytes( return this; } - private long metageneration_ ; + private long metageneration_; /** + * + * *
                  * Output only. The version of the metadata for this folder. Used for
                  * preconditions and for detecting changes in metadata.
                  * 
            * * int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The metageneration. */ @java.lang.Override @@ -825,12 +906,15 @@ public long getMetageneration() { return metageneration_; } /** + * + * *
                  * Output only. The version of the metadata for this folder. Used for
                  * preconditions and for detecting changes in metadata.
                  * 
            * * int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The metageneration to set. * @return This builder for chaining. */ @@ -842,12 +926,15 @@ public Builder setMetageneration(long value) { return this; } /** + * + * *
                  * Output only. The version of the metadata for this folder. Used for
                  * preconditions and for detecting changes in metadata.
                  * 
            * * int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearMetageneration() { @@ -859,39 +946,58 @@ public Builder clearMetageneration() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
                  * Output only. The creation time of the folder.
                  * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
                  * Output only. The creation time of the folder.
                  * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
                  * Output only. The creation time of the folder.
                  * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -907,14 +1013,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                  * Output only. The creation time of the folder.
                  * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -925,17 +1034,21 @@ public Builder setCreateTime( return this; } /** + * + * *
                  * Output only. The creation time of the folder.
                  * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -950,11 +1063,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                  * Output only. The creation time of the folder.
                  * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -967,11 +1084,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
                  * Output only. The creation time of the folder.
                  * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000004; @@ -979,36 +1100,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
                  * Output only. The creation time of the folder.
                  * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
                  * Output only. The creation time of the folder.
                  * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1016,39 +1149,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 modification time of the folder.
                  * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
                  * Output only. The modification time of the folder.
                  * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
                  * Output only. The modification time of the folder.
                  * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1064,14 +1216,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                  * Output only. The modification time of the folder.
                  * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1082,17 +1237,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
                  * Output only. The modification time of the folder.
                  * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1107,11 +1266,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                  * Output only. The modification time of the folder.
                  * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1124,11 +1287,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
                  * Output only. The modification time of the folder.
                  * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000008; @@ -1136,36 +1303,48 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
                  * Output only. The modification time of the folder.
                  * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
                  * Output only. The modification time of the folder.
                  * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -1173,8 +1352,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.storage.control.v2.PendingRenameInfo pendingRenameInfo_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.PendingRenameInfo, com.google.storage.control.v2.PendingRenameInfo.Builder, com.google.storage.control.v2.PendingRenameInfoOrBuilder> pendingRenameInfoBuilder_; + com.google.storage.control.v2.PendingRenameInfo, + com.google.storage.control.v2.PendingRenameInfo.Builder, + com.google.storage.control.v2.PendingRenameInfoOrBuilder> + pendingRenameInfoBuilder_; /** + * + * *
                  * Output only. Only present if the folder is part of an ongoing RenameFolder
                  * operation. Contains information which can be used to query the operation
            @@ -1183,13 +1367,18 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
                  * operations.
                  * 
            * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the pendingRenameInfo field is set. */ public boolean hasPendingRenameInfo() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
                  * Output only. Only present if the folder is part of an ongoing RenameFolder
                  * operation. Contains information which can be used to query the operation
            @@ -1198,17 +1387,24 @@ public boolean hasPendingRenameInfo() {
                  * operations.
                  * 
            * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The pendingRenameInfo. */ public com.google.storage.control.v2.PendingRenameInfo getPendingRenameInfo() { if (pendingRenameInfoBuilder_ == null) { - return pendingRenameInfo_ == null ? com.google.storage.control.v2.PendingRenameInfo.getDefaultInstance() : pendingRenameInfo_; + return pendingRenameInfo_ == null + ? com.google.storage.control.v2.PendingRenameInfo.getDefaultInstance() + : pendingRenameInfo_; } else { return pendingRenameInfoBuilder_.getMessage(); } } /** + * + * *
                  * Output only. Only present if the folder is part of an ongoing RenameFolder
                  * operation. Contains information which can be used to query the operation
            @@ -1217,7 +1413,9 @@ public com.google.storage.control.v2.PendingRenameInfo getPendingRenameInfo() {
                  * operations.
                  * 
            * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setPendingRenameInfo(com.google.storage.control.v2.PendingRenameInfo value) { if (pendingRenameInfoBuilder_ == null) { @@ -1233,6 +1431,8 @@ public Builder setPendingRenameInfo(com.google.storage.control.v2.PendingRenameI return this; } /** + * + * *
                  * Output only. Only present if the folder is part of an ongoing RenameFolder
                  * operation. Contains information which can be used to query the operation
            @@ -1241,7 +1441,9 @@ public Builder setPendingRenameInfo(com.google.storage.control.v2.PendingRenameI
                  * operations.
                  * 
            * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setPendingRenameInfo( com.google.storage.control.v2.PendingRenameInfo.Builder builderForValue) { @@ -1255,6 +1457,8 @@ public Builder setPendingRenameInfo( return this; } /** + * + * *
                  * Output only. Only present if the folder is part of an ongoing RenameFolder
                  * operation. Contains information which can be used to query the operation
            @@ -1263,13 +1467,16 @@ public Builder setPendingRenameInfo(
                  * operations.
                  * 
            * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergePendingRenameInfo(com.google.storage.control.v2.PendingRenameInfo value) { if (pendingRenameInfoBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - pendingRenameInfo_ != null && - pendingRenameInfo_ != com.google.storage.control.v2.PendingRenameInfo.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && pendingRenameInfo_ != null + && pendingRenameInfo_ + != com.google.storage.control.v2.PendingRenameInfo.getDefaultInstance()) { getPendingRenameInfoBuilder().mergeFrom(value); } else { pendingRenameInfo_ = value; @@ -1284,6 +1491,8 @@ public Builder mergePendingRenameInfo(com.google.storage.control.v2.PendingRenam return this; } /** + * + * *
                  * Output only. Only present if the folder is part of an ongoing RenameFolder
                  * operation. Contains information which can be used to query the operation
            @@ -1292,7 +1501,9 @@ public Builder mergePendingRenameInfo(com.google.storage.control.v2.PendingRenam
                  * operations.
                  * 
            * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearPendingRenameInfo() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1305,6 +1516,8 @@ public Builder clearPendingRenameInfo() { return this; } /** + * + * *
                  * Output only. Only present if the folder is part of an ongoing RenameFolder
                  * operation. Contains information which can be used to query the operation
            @@ -1313,7 +1526,9 @@ public Builder clearPendingRenameInfo() {
                  * operations.
                  * 
            * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.storage.control.v2.PendingRenameInfo.Builder getPendingRenameInfoBuilder() { bitField0_ |= 0x00000010; @@ -1321,6 +1536,8 @@ public com.google.storage.control.v2.PendingRenameInfo.Builder getPendingRenameI return getPendingRenameInfoFieldBuilder().getBuilder(); } /** + * + * *
                  * Output only. Only present if the folder is part of an ongoing RenameFolder
                  * operation. Contains information which can be used to query the operation
            @@ -1329,17 +1546,23 @@ public com.google.storage.control.v2.PendingRenameInfo.Builder getPendingRenameI
                  * operations.
                  * 
            * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.storage.control.v2.PendingRenameInfoOrBuilder getPendingRenameInfoOrBuilder() { + public com.google.storage.control.v2.PendingRenameInfoOrBuilder + getPendingRenameInfoOrBuilder() { if (pendingRenameInfoBuilder_ != null) { return pendingRenameInfoBuilder_.getMessageOrBuilder(); } else { - return pendingRenameInfo_ == null ? - com.google.storage.control.v2.PendingRenameInfo.getDefaultInstance() : pendingRenameInfo_; + return pendingRenameInfo_ == null + ? com.google.storage.control.v2.PendingRenameInfo.getDefaultInstance() + : pendingRenameInfo_; } } /** + * + * *
                  * Output only. Only present if the folder is part of an ongoing RenameFolder
                  * operation. Contains information which can be used to query the operation
            @@ -1348,24 +1571,29 @@ public com.google.storage.control.v2.PendingRenameInfoOrBuilder getPendingRename
                  * operations.
                  * 
            * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.PendingRenameInfo, com.google.storage.control.v2.PendingRenameInfo.Builder, com.google.storage.control.v2.PendingRenameInfoOrBuilder> + com.google.storage.control.v2.PendingRenameInfo, + com.google.storage.control.v2.PendingRenameInfo.Builder, + com.google.storage.control.v2.PendingRenameInfoOrBuilder> getPendingRenameInfoFieldBuilder() { if (pendingRenameInfoBuilder_ == null) { - pendingRenameInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.PendingRenameInfo, com.google.storage.control.v2.PendingRenameInfo.Builder, com.google.storage.control.v2.PendingRenameInfoOrBuilder>( - getPendingRenameInfo(), - getParentForChildren(), - isClean()); + pendingRenameInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.control.v2.PendingRenameInfo, + com.google.storage.control.v2.PendingRenameInfo.Builder, + com.google.storage.control.v2.PendingRenameInfoOrBuilder>( + getPendingRenameInfo(), getParentForChildren(), isClean()); pendingRenameInfo_ = null; } return pendingRenameInfoBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1375,12 +1603,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.storage.control.v2.Folder) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.Folder) private static final com.google.storage.control.v2.Folder DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.storage.control.v2.Folder(); } @@ -1389,27 +1617,27 @@ public static com.google.storage.control.v2.Folder getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Folder parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Folder parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1424,6 +1652,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.Folder getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/FolderName.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/FolderName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/FolderName.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/FolderName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/FolderOrBuilder.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/FolderOrBuilder.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/FolderOrBuilder.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/FolderOrBuilder.java index 5026ffc4e1..b6a87b4ac1 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/FolderOrBuilder.java +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/FolderOrBuilder.java @@ -1,101 +1,149 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto // Protobuf Java Version: 3.25.3 package com.google.storage.control.v2; -public interface FolderOrBuilder extends +public interface FolderOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.Folder) com.google.protobuf.MessageOrBuilder { /** + * + * *
                * Identifier. The name of this folder.
                * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
                * Identifier. The name of this folder.
                * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
                * Output only. The version of the metadata for this folder. Used for
                * preconditions and for detecting changes in metadata.
                * 
            * * int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The metageneration. */ long getMetageneration(); /** + * + * *
                * Output only. The creation time of the folder.
                * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
                * Output only. The creation time of the folder.
                * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
                * Output only. The creation time of the folder.
                * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
                * Output only. The modification time of the folder.
                * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
                * Output only. The modification time of the folder.
                * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
                * Output only. The modification time of the folder.
                * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
                * Output only. Only present if the folder is part of an ongoing RenameFolder
                * operation. Contains information which can be used to query the operation
            @@ -104,11 +152,16 @@ public interface FolderOrBuilder extends
                * operations.
                * 
            * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the pendingRenameInfo field is set. */ boolean hasPendingRenameInfo(); /** + * + * *
                * Output only. Only present if the folder is part of an ongoing RenameFolder
                * operation. Contains information which can be used to query the operation
            @@ -117,11 +170,16 @@ public interface FolderOrBuilder extends
                * operations.
                * 
            * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The pendingRenameInfo. */ com.google.storage.control.v2.PendingRenameInfo getPendingRenameInfo(); /** + * + * *
                * Output only. Only present if the folder is part of an ongoing RenameFolder
                * operation. Contains information which can be used to query the operation
            @@ -130,7 +188,9 @@ public interface FolderOrBuilder extends
                * operations.
                * 
            * - * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.PendingRenameInfo pending_rename_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.storage.control.v2.PendingRenameInfoOrBuilder getPendingRenameInfoOrBuilder(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetFolderRequest.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetFolderRequest.java similarity index 68% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetFolderRequest.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetFolderRequest.java index 560760020e..4ca2825c2a 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetFolderRequest.java +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetFolderRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto @@ -5,6 +20,8 @@ package com.google.storage.control.v2; /** + * + * *
              * Request message for GetFolder. This operation is only applicable to a
              * hierarchical namespace enabled bucket.
            @@ -12,15 +29,16 @@
              *
              * Protobuf type {@code google.storage.control.v2.GetFolderRequest}
              */
            -public final class GetFolderRequest extends
            -    com.google.protobuf.GeneratedMessageV3 implements
            +public final class GetFolderRequest extends com.google.protobuf.GeneratedMessageV3
            +    implements
                 // @@protoc_insertion_point(message_implements:google.storage.control.v2.GetFolderRequest)
                 GetFolderRequestOrBuilder {
            -private static final long serialVersionUID = 0L;
            +  private static final long serialVersionUID = 0L;
               // Use GetFolderRequest.newBuilder() to construct.
               private GetFolderRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                 super(builder);
               }
            +
               private GetFolderRequest() {
                 name_ = "";
                 requestId_ = "";
            @@ -28,35 +46,42 @@ private GetFolderRequest() {
             
               @java.lang.Override
               @SuppressWarnings({"unused"})
            -  protected java.lang.Object newInstance(
            -      UnusedPrivateParameter unused) {
            +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                 return new GetFolderRequest();
               }
             
            -  public static final com.google.protobuf.Descriptors.Descriptor
            -      getDescriptor() {
            -    return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetFolderRequest_descriptor;
            +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            +    return com.google.storage.control.v2.StorageControlProto
            +        .internal_static_google_storage_control_v2_GetFolderRequest_descriptor;
               }
             
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
            -    return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetFolderRequest_fieldAccessorTable
            +    return com.google.storage.control.v2.StorageControlProto
            +        .internal_static_google_storage_control_v2_GetFolderRequest_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
            -            com.google.storage.control.v2.GetFolderRequest.class, com.google.storage.control.v2.GetFolderRequest.Builder.class);
            +            com.google.storage.control.v2.GetFolderRequest.class,
            +            com.google.storage.control.v2.GetFolderRequest.Builder.class);
               }
             
               private int bitField0_;
               public static final int NAME_FIELD_NUMBER = 6;
            +
               @SuppressWarnings("serial")
               private volatile java.lang.Object name_ = "";
               /**
            +   *
            +   *
                * 
                * Required. Name of the folder.
                * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                * 
            * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,30 +90,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
                * Required. Name of the folder.
                * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                * 
            * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -99,12 +126,15 @@ public java.lang.String getName() { public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER = 3; private long ifMetagenerationMatch_ = 0L; /** + * + * *
                * Makes the operation only succeed conditional on whether the folder's
                * current metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 3; + * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -112,12 +142,15 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * Makes the operation only succeed conditional on whether the folder's
                * current metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 3; + * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -128,12 +161,15 @@ public long getIfMetagenerationMatch() { public static final int IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER = 4; private long ifMetagenerationNotMatch_ = 0L; /** + * + * *
                * Makes the operation only succeed conditional on whether the folder's
                * current metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 4; + * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -141,12 +177,15 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
                * Makes the operation only succeed conditional on whether the folder's
                * current metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 4; + * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -155,15 +194,21 @@ public long getIfMetagenerationNotMatch() { } public static final int REQUEST_ID_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The requestId. */ @java.lang.Override @@ -172,30 +217,32 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -204,6 +251,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -215,8 +263,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(3, ifMetagenerationMatch_); } @@ -239,12 +286,10 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, ifMetagenerationMatch_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, ifMetagenerationMatch_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, ifMetagenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ifMetagenerationNotMatch_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, requestId_); @@ -260,27 +305,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.control.v2.GetFolderRequest)) { return super.equals(obj); } - com.google.storage.control.v2.GetFolderRequest other = (com.google.storage.control.v2.GetFolderRequest) obj; + com.google.storage.control.v2.GetFolderRequest other = + (com.google.storage.control.v2.GetFolderRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasIfMetagenerationMatch() != other.hasIfMetagenerationMatch()) return false; if (hasIfMetagenerationMatch()) { - if (getIfMetagenerationMatch() - != other.getIfMetagenerationMatch()) return false; + if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false; } if (hasIfMetagenerationNotMatch() != other.hasIfMetagenerationNotMatch()) return false; if (hasIfMetagenerationNotMatch()) { - if (getIfMetagenerationNotMatch() - != other.getIfMetagenerationNotMatch()) return false; + if (getIfMetagenerationNotMatch() != other.getIfMetagenerationNotMatch()) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -296,13 +338,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()); } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); @@ -311,99 +351,104 @@ public int hashCode() { return hash; } - public static com.google.storage.control.v2.GetFolderRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.storage.control.v2.GetFolderRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.GetFolderRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.GetFolderRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.GetFolderRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.GetFolderRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.GetFolderRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.GetFolderRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.GetFolderRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.GetFolderRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.GetFolderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.GetFolderRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.storage.control.v2.GetFolderRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.GetFolderRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.storage.control.v2.GetFolderRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                * Request message for GetFolder. This operation is only applicable to a
                * hierarchical namespace enabled bucket.
            @@ -411,33 +456,32 @@ protected Builder newBuilderForType(
                *
                * Protobuf type {@code google.storage.control.v2.GetFolderRequest}
                */
            -  public static final class Builder extends
            -      com.google.protobuf.GeneratedMessageV3.Builder implements
            +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
            +      implements
                   // @@protoc_insertion_point(builder_implements:google.storage.control.v2.GetFolderRequest)
                   com.google.storage.control.v2.GetFolderRequestOrBuilder {
            -    public static final com.google.protobuf.Descriptors.Descriptor
            -        getDescriptor() {
            -      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetFolderRequest_descriptor;
            +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            +      return com.google.storage.control.v2.StorageControlProto
            +          .internal_static_google_storage_control_v2_GetFolderRequest_descriptor;
                 }
             
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
            -      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetFolderRequest_fieldAccessorTable
            +      return com.google.storage.control.v2.StorageControlProto
            +          .internal_static_google_storage_control_v2_GetFolderRequest_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
            -              com.google.storage.control.v2.GetFolderRequest.class, com.google.storage.control.v2.GetFolderRequest.Builder.class);
            +              com.google.storage.control.v2.GetFolderRequest.class,
            +              com.google.storage.control.v2.GetFolderRequest.Builder.class);
                 }
             
                 // Construct using com.google.storage.control.v2.GetFolderRequest.newBuilder()
            -    private Builder() {
            -
            -    }
            +    private Builder() {}
             
            -    private Builder(
            -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                   super(parent);
            -
                 }
            +
                 @java.lang.Override
                 public Builder clear() {
                   super.clear();
            @@ -450,9 +494,9 @@ public Builder clear() {
                 }
             
                 @java.lang.Override
            -    public com.google.protobuf.Descriptors.Descriptor
            -        getDescriptorForType() {
            -      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetFolderRequest_descriptor;
            +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            +      return com.google.storage.control.v2.StorageControlProto
            +          .internal_static_google_storage_control_v2_GetFolderRequest_descriptor;
                 }
             
                 @java.lang.Override
            @@ -471,8 +515,11 @@ public com.google.storage.control.v2.GetFolderRequest build() {
             
                 @java.lang.Override
                 public com.google.storage.control.v2.GetFolderRequest buildPartial() {
            -      com.google.storage.control.v2.GetFolderRequest result = new com.google.storage.control.v2.GetFolderRequest(this);
            -      if (bitField0_ != 0) { buildPartial0(result); }
            +      com.google.storage.control.v2.GetFolderRequest result =
            +          new com.google.storage.control.v2.GetFolderRequest(this);
            +      if (bitField0_ != 0) {
            +        buildPartial0(result);
            +      }
                   onBuilt();
                   return result;
                 }
            @@ -501,38 +548,39 @@ private void buildPartial0(com.google.storage.control.v2.GetFolderRequest result
                 public Builder clone() {
                   return super.clone();
                 }
            +
                 @java.lang.Override
                 public Builder setField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field,
            -        java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                   return super.setField(field, value);
                 }
            +
                 @java.lang.Override
            -    public Builder clearField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field) {
            +    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
                   return super.clearField(field);
                 }
            +
                 @java.lang.Override
            -    public Builder clearOneof(
            -        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
            +    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                   return super.clearOneof(oneof);
                 }
            +
                 @java.lang.Override
                 public Builder setRepeatedField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field,
            -        int index, java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
                   return super.setRepeatedField(field, index, value);
                 }
            +
                 @java.lang.Override
                 public Builder addRepeatedField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field,
            -        java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                   return super.addRepeatedField(field, value);
                 }
            +
                 @java.lang.Override
                 public Builder mergeFrom(com.google.protobuf.Message other) {
                   if (other instanceof com.google.storage.control.v2.GetFolderRequest) {
            -        return mergeFrom((com.google.storage.control.v2.GetFolderRequest)other);
            +        return mergeFrom((com.google.storage.control.v2.GetFolderRequest) other);
                   } else {
                     super.mergeFrom(other);
                     return this;
            @@ -583,32 +631,37 @@ public Builder mergeFrom(
                         case 0:
                           done = true;
                           break;
            -            case 24: {
            -              ifMetagenerationMatch_ = input.readInt64();
            -              bitField0_ |= 0x00000002;
            -              break;
            -            } // case 24
            -            case 32: {
            -              ifMetagenerationNotMatch_ = input.readInt64();
            -              bitField0_ |= 0x00000004;
            -              break;
            -            } // case 32
            -            case 42: {
            -              requestId_ = input.readStringRequireUtf8();
            -              bitField0_ |= 0x00000008;
            -              break;
            -            } // case 42
            -            case 50: {
            -              name_ = input.readStringRequireUtf8();
            -              bitField0_ |= 0x00000001;
            -              break;
            -            } // case 50
            -            default: {
            -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            -                done = true; // was an endgroup tag
            -              }
            -              break;
            -            } // default:
            +            case 24:
            +              {
            +                ifMetagenerationMatch_ = input.readInt64();
            +                bitField0_ |= 0x00000002;
            +                break;
            +              } // case 24
            +            case 32:
            +              {
            +                ifMetagenerationNotMatch_ = input.readInt64();
            +                bitField0_ |= 0x00000004;
            +                break;
            +              } // case 32
            +            case 42:
            +              {
            +                requestId_ = input.readStringRequireUtf8();
            +                bitField0_ |= 0x00000008;
            +                break;
            +              } // case 42
            +            case 50:
            +              {
            +                name_ = input.readStringRequireUtf8();
            +                bitField0_ |= 0x00000001;
            +                break;
            +              } // case 50
            +            default:
            +              {
            +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            +                  done = true; // was an endgroup tag
            +                }
            +                break;
            +              } // default:
                       } // switch (tag)
                     } // while (!done)
                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            @@ -618,23 +671,28 @@ public Builder mergeFrom(
                   } // finally
                   return this;
                 }
            +
                 private int bitField0_;
             
                 private java.lang.Object name_ = "";
                 /**
            +     *
            +     *
                  * 
                  * Required. Name of the folder.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -643,21 +701,24 @@ public java.lang.String getName() { } } /** + * + * *
                  * Required. Name of the folder.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -665,30 +726,41 @@ public java.lang.String getName() { } } /** + * + * *
                  * Required. Name of the folder.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
                  * Required. Name of the folder.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -698,18 +770,24 @@ public Builder clearName() { return this; } /** + * + * *
                  * Required. Name of the folder.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -717,14 +795,17 @@ public Builder setNameBytes( return this; } - private long ifMetagenerationMatch_ ; + private long ifMetagenerationMatch_; /** + * + * *
                  * Makes the operation only succeed conditional on whether the folder's
                  * current metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 3; + * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -732,12 +813,15 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
                  * Makes the operation only succeed conditional on whether the folder's
                  * current metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 3; + * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -745,12 +829,15 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** + * + * *
                  * Makes the operation only succeed conditional on whether the folder's
                  * current metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 3; + * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -762,12 +849,15 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** + * + * *
                  * Makes the operation only succeed conditional on whether the folder's
                  * current metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 3; + * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -777,14 +867,17 @@ public Builder clearIfMetagenerationMatch() { return this; } - private long ifMetagenerationNotMatch_ ; + private long ifMetagenerationNotMatch_; /** + * + * *
                  * Makes the operation only succeed conditional on whether the folder's
                  * current metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 4; + * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -792,12 +885,15 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
                  * Makes the operation only succeed conditional on whether the folder's
                  * current metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 4; + * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -805,12 +901,15 @@ public long getIfMetagenerationNotMatch() { return ifMetagenerationNotMatch_; } /** + * + * *
                  * Makes the operation only succeed conditional on whether the folder's
                  * current metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 4; + * * @param value The ifMetagenerationNotMatch to set. * @return This builder for chaining. */ @@ -822,12 +921,15 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** + * + * *
                  * Makes the operation only succeed conditional on whether the folder's
                  * current metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 4; + * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -839,19 +941,23 @@ public Builder clearIfMetagenerationNotMatch() { private java.lang.Object requestId_ = ""; /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -860,21 +966,24 @@ public java.lang.String getRequestId() { } } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -882,30 +991,41 @@ public java.lang.String getRequestId() { } } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -915,27 +1035,33 @@ public Builder clearRequestId() { return this; } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -945,12 +1071,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.storage.control.v2.GetFolderRequest) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.GetFolderRequest) private static final com.google.storage.control.v2.GetFolderRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.storage.control.v2.GetFolderRequest(); } @@ -959,27 +1085,27 @@ public static com.google.storage.control.v2.GetFolderRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetFolderRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFolderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -994,6 +1120,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.GetFolderRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetFolderRequestOrBuilder.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetFolderRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetFolderRequestOrBuilder.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetFolderRequestOrBuilder.java index 0f704cb322..2041920c33 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetFolderRequestOrBuilder.java +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetFolderRequestOrBuilder.java @@ -1,96 +1,142 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto // Protobuf Java Version: 3.25.3 package com.google.storage.control.v2; -public interface GetFolderRequestOrBuilder extends +public interface GetFolderRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.GetFolderRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
                * Required. Name of the folder.
                * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                * 
            * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
                * Required. Name of the folder.
                * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                * 
            * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
                * Makes the operation only succeed conditional on whether the folder's
                * current metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 3; + * * @return Whether the ifMetagenerationMatch field is set. */ boolean hasIfMetagenerationMatch(); /** + * + * *
                * Makes the operation only succeed conditional on whether the folder's
                * current metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 3; + * * @return The ifMetagenerationMatch. */ long getIfMetagenerationMatch(); /** + * + * *
                * Makes the operation only succeed conditional on whether the folder's
                * current metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 4; + * * @return Whether the ifMetagenerationNotMatch field is set. */ boolean hasIfMetagenerationNotMatch(); /** + * + * *
                * Makes the operation only succeed conditional on whether the folder's
                * current metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 4; + * * @return The ifMetagenerationNotMatch. */ long getIfMetagenerationNotMatch(); /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetManagedFolderRequest.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetManagedFolderRequest.java similarity index 68% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetManagedFolderRequest.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetManagedFolderRequest.java index fd1fe926cb..1d79d2235e 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetManagedFolderRequest.java +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetManagedFolderRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto @@ -5,21 +20,24 @@ package com.google.storage.control.v2; /** + * + * *
              * Request message for GetManagedFolder.
              * 
            * * Protobuf type {@code google.storage.control.v2.GetManagedFolderRequest} */ -public final class GetManagedFolderRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetManagedFolderRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.GetManagedFolderRequest) GetManagedFolderRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetManagedFolderRequest.newBuilder() to construct. private GetManagedFolderRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetManagedFolderRequest() { name_ = ""; requestId_ = ""; @@ -27,36 +45,43 @@ private GetManagedFolderRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetManagedFolderRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetManagedFolderRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_GetManagedFolderRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetManagedFolderRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_GetManagedFolderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.GetManagedFolderRequest.class, com.google.storage.control.v2.GetManagedFolderRequest.Builder.class); + com.google.storage.control.v2.GetManagedFolderRequest.class, + com.google.storage.control.v2.GetManagedFolderRequest.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
                * Required. Name of the managed folder.
                * Format:
                * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
                * 
            * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,31 +90,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. Name of the managed folder.
                * Format:
                * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
                * 
            * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -100,12 +127,15 @@ public java.lang.String getName() { public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER = 3; private long ifMetagenerationMatch_ = 0L; /** + * + * *
                * The operation succeeds conditional on the managed folder's current
                * metageneration matching the value here specified.
                * 
            * * optional int64 if_metageneration_match = 3; + * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -113,12 +143,15 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * The operation succeeds conditional on the managed folder's current
                * metageneration matching the value here specified.
                * 
            * * optional int64 if_metageneration_match = 3; + * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -129,12 +162,15 @@ public long getIfMetagenerationMatch() { public static final int IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER = 4; private long ifMetagenerationNotMatch_ = 0L; /** + * + * *
                * The operation succeeds conditional on the managed folder's current
                * metageneration NOT matching the value here specified.
                * 
            * * optional int64 if_metageneration_not_match = 4; + * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -142,12 +178,15 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
                * The operation succeeds conditional on the managed folder's current
                * metageneration NOT matching the value here specified.
                * 
            * * optional int64 if_metageneration_not_match = 4; + * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -156,15 +195,21 @@ public long getIfMetagenerationNotMatch() { } public static final int REQUEST_ID_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The requestId. */ @java.lang.Override @@ -173,30 +218,32 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -205,6 +252,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -216,8 +264,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(3, ifMetagenerationMatch_); } @@ -240,12 +287,10 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, ifMetagenerationMatch_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, ifMetagenerationMatch_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, ifMetagenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ifMetagenerationNotMatch_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, requestId_); @@ -261,27 +306,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.control.v2.GetManagedFolderRequest)) { return super.equals(obj); } - com.google.storage.control.v2.GetManagedFolderRequest other = (com.google.storage.control.v2.GetManagedFolderRequest) obj; + com.google.storage.control.v2.GetManagedFolderRequest other = + (com.google.storage.control.v2.GetManagedFolderRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasIfMetagenerationMatch() != other.hasIfMetagenerationMatch()) return false; if (hasIfMetagenerationMatch()) { - if (getIfMetagenerationMatch() - != other.getIfMetagenerationMatch()) return false; + if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false; } if (hasIfMetagenerationNotMatch() != other.hasIfMetagenerationNotMatch()) return false; if (hasIfMetagenerationNotMatch()) { - if (getIfMetagenerationNotMatch() - != other.getIfMetagenerationNotMatch()) return false; + if (getIfMetagenerationNotMatch() != other.getIfMetagenerationNotMatch()) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -297,13 +339,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()); } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); @@ -313,131 +353,136 @@ public int hashCode() { } public static com.google.storage.control.v2.GetManagedFolderRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.GetManagedFolderRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.GetManagedFolderRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.GetManagedFolderRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.GetManagedFolderRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.GetManagedFolderRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.GetManagedFolderRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.storage.control.v2.GetManagedFolderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.GetManagedFolderRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.GetManagedFolderRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.GetManagedFolderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.GetManagedFolderRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.storage.control.v2.GetManagedFolderRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.GetManagedFolderRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.control.v2.GetManagedFolderRequest prototype) { + + public static Builder newBuilder( + com.google.storage.control.v2.GetManagedFolderRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 GetManagedFolder.
                * 
            * * Protobuf type {@code google.storage.control.v2.GetManagedFolderRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.storage.control.v2.GetManagedFolderRequest) com.google.storage.control.v2.GetManagedFolderRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetManagedFolderRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_GetManagedFolderRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetManagedFolderRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_GetManagedFolderRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.GetManagedFolderRequest.class, com.google.storage.control.v2.GetManagedFolderRequest.Builder.class); + com.google.storage.control.v2.GetManagedFolderRequest.class, + com.google.storage.control.v2.GetManagedFolderRequest.Builder.class); } // Construct using com.google.storage.control.v2.GetManagedFolderRequest.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(); @@ -450,9 +495,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetManagedFolderRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_GetManagedFolderRequest_descriptor; } @java.lang.Override @@ -471,8 +516,11 @@ public com.google.storage.control.v2.GetManagedFolderRequest build() { @java.lang.Override public com.google.storage.control.v2.GetManagedFolderRequest buildPartial() { - com.google.storage.control.v2.GetManagedFolderRequest result = new com.google.storage.control.v2.GetManagedFolderRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.storage.control.v2.GetManagedFolderRequest result = + new com.google.storage.control.v2.GetManagedFolderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -501,38 +549,39 @@ private void buildPartial0(com.google.storage.control.v2.GetManagedFolderRequest public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.control.v2.GetManagedFolderRequest) { - return mergeFrom((com.google.storage.control.v2.GetManagedFolderRequest)other); + return mergeFrom((com.google.storage.control.v2.GetManagedFolderRequest) other); } else { super.mergeFrom(other); return this; @@ -540,7 +589,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.control.v2.GetManagedFolderRequest other) { - if (other == com.google.storage.control.v2.GetManagedFolderRequest.getDefaultInstance()) return this; + if (other == com.google.storage.control.v2.GetManagedFolderRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -583,32 +633,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 24: { - ifMetagenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 24 - case 32: { - ifMetagenerationNotMatch_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 32 - case 42: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 50: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 24: + { + ifMetagenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 32: + { + ifMetagenerationNotMatch_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 42: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -618,24 +673,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
                  * Required. Name of the managed folder.
                  * Format:
                  * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
                  * 
            * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -644,22 +704,25 @@ public java.lang.String getName() { } } /** + * + * *
                  * Required. Name of the managed folder.
                  * Format:
                  * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
                  * 
            * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -667,32 +730,43 @@ public java.lang.String getName() { } } /** + * + * *
                  * Required. Name of the managed folder.
                  * Format:
                  * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
                  * 
            * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
                  * Required. Name of the managed folder.
                  * Format:
                  * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
                  * 
            * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -702,19 +776,25 @@ public Builder clearName() { return this; } /** + * + * *
                  * Required. Name of the managed folder.
                  * Format:
                  * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
                  * 
            * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -722,14 +802,17 @@ public Builder setNameBytes( return this; } - private long ifMetagenerationMatch_ ; + private long ifMetagenerationMatch_; /** + * + * *
                  * The operation succeeds conditional on the managed folder's current
                  * metageneration matching the value here specified.
                  * 
            * * optional int64 if_metageneration_match = 3; + * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -737,12 +820,15 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
                  * The operation succeeds conditional on the managed folder's current
                  * metageneration matching the value here specified.
                  * 
            * * optional int64 if_metageneration_match = 3; + * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -750,12 +836,15 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** + * + * *
                  * The operation succeeds conditional on the managed folder's current
                  * metageneration matching the value here specified.
                  * 
            * * optional int64 if_metageneration_match = 3; + * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -767,12 +856,15 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** + * + * *
                  * The operation succeeds conditional on the managed folder's current
                  * metageneration matching the value here specified.
                  * 
            * * optional int64 if_metageneration_match = 3; + * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -782,14 +874,17 @@ public Builder clearIfMetagenerationMatch() { return this; } - private long ifMetagenerationNotMatch_ ; + private long ifMetagenerationNotMatch_; /** + * + * *
                  * The operation succeeds conditional on the managed folder's current
                  * metageneration NOT matching the value here specified.
                  * 
            * * optional int64 if_metageneration_not_match = 4; + * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -797,12 +892,15 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
                  * The operation succeeds conditional on the managed folder's current
                  * metageneration NOT matching the value here specified.
                  * 
            * * optional int64 if_metageneration_not_match = 4; + * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -810,12 +908,15 @@ public long getIfMetagenerationNotMatch() { return ifMetagenerationNotMatch_; } /** + * + * *
                  * The operation succeeds conditional on the managed folder's current
                  * metageneration NOT matching the value here specified.
                  * 
            * * optional int64 if_metageneration_not_match = 4; + * * @param value The ifMetagenerationNotMatch to set. * @return This builder for chaining. */ @@ -827,12 +928,15 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** + * + * *
                  * The operation succeeds conditional on the managed folder's current
                  * metageneration NOT matching the value here specified.
                  * 
            * * optional int64 if_metageneration_not_match = 4; + * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -844,19 +948,23 @@ public Builder clearIfMetagenerationNotMatch() { private java.lang.Object requestId_ = ""; /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -865,21 +973,24 @@ public java.lang.String getRequestId() { } } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -887,30 +998,41 @@ public java.lang.String getRequestId() { } } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -920,27 +1042,33 @@ public Builder clearRequestId() { return this; } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -950,12 +1078,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.storage.control.v2.GetManagedFolderRequest) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.GetManagedFolderRequest) private static final com.google.storage.control.v2.GetManagedFolderRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.storage.control.v2.GetManagedFolderRequest(); } @@ -964,27 +1092,27 @@ public static com.google.storage.control.v2.GetManagedFolderRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetManagedFolderRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetManagedFolderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -999,6 +1127,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.GetManagedFolderRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetManagedFolderRequestOrBuilder.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetManagedFolderRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetManagedFolderRequestOrBuilder.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetManagedFolderRequestOrBuilder.java index 5bd022971f..191c0a1500 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetManagedFolderRequestOrBuilder.java +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetManagedFolderRequestOrBuilder.java @@ -1,98 +1,144 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto // Protobuf Java Version: 3.25.3 package com.google.storage.control.v2; -public interface GetManagedFolderRequestOrBuilder extends +public interface GetManagedFolderRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.GetManagedFolderRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
                * Required. Name of the managed folder.
                * Format:
                * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
                * 
            * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
                * Required. Name of the managed folder.
                * Format:
                * `projects/{project}/buckets/{bucket}/managedFolders/{managedFolder}`
                * 
            * - * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
                * The operation succeeds conditional on the managed folder's current
                * metageneration matching the value here specified.
                * 
            * * optional int64 if_metageneration_match = 3; + * * @return Whether the ifMetagenerationMatch field is set. */ boolean hasIfMetagenerationMatch(); /** + * + * *
                * The operation succeeds conditional on the managed folder's current
                * metageneration matching the value here specified.
                * 
            * * optional int64 if_metageneration_match = 3; + * * @return The ifMetagenerationMatch. */ long getIfMetagenerationMatch(); /** + * + * *
                * The operation succeeds conditional on the managed folder's current
                * metageneration NOT matching the value here specified.
                * 
            * * optional int64 if_metageneration_not_match = 4; + * * @return Whether the ifMetagenerationNotMatch field is set. */ boolean hasIfMetagenerationNotMatch(); /** + * + * *
                * The operation succeeds conditional on the managed folder's current
                * metageneration NOT matching the value here specified.
                * 
            * * optional int64 if_metageneration_not_match = 4; + * * @return The ifMetagenerationNotMatch. */ long getIfMetagenerationNotMatch(); /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequest.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequest.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequest.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequest.java index 764284721b..63c3eae7f0 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequest.java +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto @@ -5,21 +20,24 @@ package com.google.storage.control.v2; /** + * + * *
              * Request message for GetStorageLayout.
              * 
            * * Protobuf type {@code google.storage.control.v2.GetStorageLayoutRequest} */ -public final class GetStorageLayoutRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetStorageLayoutRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.GetStorageLayoutRequest) GetStorageLayoutRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetStorageLayoutRequest.newBuilder() to construct. private GetStorageLayoutRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetStorageLayoutRequest() { name_ = ""; prefix_ = ""; @@ -28,34 +46,41 @@ private GetStorageLayoutRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetStorageLayoutRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetStorageLayoutRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_GetStorageLayoutRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetStorageLayoutRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_GetStorageLayoutRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.GetStorageLayoutRequest.class, com.google.storage.control.v2.GetStorageLayoutRequest.Builder.class); + com.google.storage.control.v2.GetStorageLayoutRequest.class, + com.google.storage.control.v2.GetStorageLayoutRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
                * Required. The name of the StorageLayout resource.
                * Format: `projects/{project}/buckets/{bucket}/storageLayout`
                * 
            * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -64,30 +89,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
                * Required. The name of the StorageLayout resource.
                * Format: `projects/{project}/buckets/{bucket}/storageLayout`
                * 
            * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -96,15 +123,19 @@ public java.lang.String getName() { } public static final int PREFIX_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object prefix_ = ""; /** + * + * *
                * An optional prefix used for permission check. It is useful when the caller
                * only has limited permissions under a specific prefix.
                * 
            * * string prefix = 2; + * * @return The prefix. */ @java.lang.Override @@ -113,30 +144,30 @@ public java.lang.String getPrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); prefix_ = s; return s; } } /** + * + * *
                * An optional prefix used for permission check. It is useful when the caller
                * only has limited permissions under a specific prefix.
                * 
            * * string prefix = 2; + * * @return The bytes for prefix. */ @java.lang.Override - public com.google.protobuf.ByteString - getPrefixBytes() { + public com.google.protobuf.ByteString getPrefixBytes() { java.lang.Object ref = prefix_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); prefix_ = b; return b; } else { @@ -145,15 +176,21 @@ public java.lang.String getPrefix() { } public static final int REQUEST_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The requestId. */ @java.lang.Override @@ -162,30 +199,32 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -194,6 +233,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,8 +245,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_); } @@ -242,19 +281,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.control.v2.GetStorageLayoutRequest)) { return super.equals(obj); } - com.google.storage.control.v2.GetStorageLayoutRequest other = (com.google.storage.control.v2.GetStorageLayoutRequest) obj; + com.google.storage.control.v2.GetStorageLayoutRequest other = + (com.google.storage.control.v2.GetStorageLayoutRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getPrefix() - .equals(other.getPrefix())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getPrefix().equals(other.getPrefix())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -278,131 +315,136 @@ public int hashCode() { } public static com.google.storage.control.v2.GetStorageLayoutRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.GetStorageLayoutRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.GetStorageLayoutRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.GetStorageLayoutRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.GetStorageLayoutRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.GetStorageLayoutRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.GetStorageLayoutRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.storage.control.v2.GetStorageLayoutRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.GetStorageLayoutRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.GetStorageLayoutRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.GetStorageLayoutRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.GetStorageLayoutRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.storage.control.v2.GetStorageLayoutRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.GetStorageLayoutRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.control.v2.GetStorageLayoutRequest prototype) { + + public static Builder newBuilder( + com.google.storage.control.v2.GetStorageLayoutRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                * Request message for GetStorageLayout.
                * 
            * * Protobuf type {@code google.storage.control.v2.GetStorageLayoutRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.storage.control.v2.GetStorageLayoutRequest) com.google.storage.control.v2.GetStorageLayoutRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetStorageLayoutRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_GetStorageLayoutRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetStorageLayoutRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_GetStorageLayoutRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.GetStorageLayoutRequest.class, com.google.storage.control.v2.GetStorageLayoutRequest.Builder.class); + com.google.storage.control.v2.GetStorageLayoutRequest.class, + com.google.storage.control.v2.GetStorageLayoutRequest.Builder.class); } // Construct using com.google.storage.control.v2.GetStorageLayoutRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -414,9 +456,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_GetStorageLayoutRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_GetStorageLayoutRequest_descriptor; } @java.lang.Override @@ -435,8 +477,11 @@ public com.google.storage.control.v2.GetStorageLayoutRequest build() { @java.lang.Override public com.google.storage.control.v2.GetStorageLayoutRequest buildPartial() { - com.google.storage.control.v2.GetStorageLayoutRequest result = new com.google.storage.control.v2.GetStorageLayoutRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.storage.control.v2.GetStorageLayoutRequest result = + new com.google.storage.control.v2.GetStorageLayoutRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -458,38 +503,39 @@ private void buildPartial0(com.google.storage.control.v2.GetStorageLayoutRequest public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.control.v2.GetStorageLayoutRequest) { - return mergeFrom((com.google.storage.control.v2.GetStorageLayoutRequest)other); + return mergeFrom((com.google.storage.control.v2.GetStorageLayoutRequest) other); } else { super.mergeFrom(other); return this; @@ -497,7 +543,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.control.v2.GetStorageLayoutRequest other) { - if (other == com.google.storage.control.v2.GetStorageLayoutRequest.getDefaultInstance()) return this; + if (other == com.google.storage.control.v2.GetStorageLayoutRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -539,27 +586,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - prefix_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + prefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -569,23 +620,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
                  * Required. The name of the StorageLayout resource.
                  * Format: `projects/{project}/buckets/{bucket}/storageLayout`
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -594,21 +650,24 @@ public java.lang.String getName() { } } /** + * + * *
                  * Required. The name of the StorageLayout resource.
                  * Format: `projects/{project}/buckets/{bucket}/storageLayout`
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -616,30 +675,41 @@ public java.lang.String getName() { } } /** + * + * *
                  * Required. The name of the StorageLayout resource.
                  * Format: `projects/{project}/buckets/{bucket}/storageLayout`
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
                  * Required. The name of the StorageLayout resource.
                  * Format: `projects/{project}/buckets/{bucket}/storageLayout`
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -649,18 +719,24 @@ public Builder clearName() { return this; } /** + * + * *
                  * Required. The name of the StorageLayout resource.
                  * Format: `projects/{project}/buckets/{bucket}/storageLayout`
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -670,19 +746,21 @@ public Builder setNameBytes( private java.lang.Object prefix_ = ""; /** + * + * *
                  * An optional prefix used for permission check. It is useful when the caller
                  * only has limited permissions under a specific prefix.
                  * 
            * * string prefix = 2; + * * @return The prefix. */ public java.lang.String getPrefix() { java.lang.Object ref = prefix_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); prefix_ = s; return s; @@ -691,21 +769,22 @@ public java.lang.String getPrefix() { } } /** + * + * *
                  * An optional prefix used for permission check. It is useful when the caller
                  * only has limited permissions under a specific prefix.
                  * 
            * * string prefix = 2; + * * @return The bytes for prefix. */ - public com.google.protobuf.ByteString - getPrefixBytes() { + public com.google.protobuf.ByteString getPrefixBytes() { java.lang.Object ref = prefix_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); prefix_ = b; return b; } else { @@ -713,30 +792,37 @@ public java.lang.String getPrefix() { } } /** + * + * *
                  * An optional prefix used for permission check. It is useful when the caller
                  * only has limited permissions under a specific prefix.
                  * 
            * * string prefix = 2; + * * @param value The prefix to set. * @return This builder for chaining. */ - public Builder setPrefix( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } prefix_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
                  * An optional prefix used for permission check. It is useful when the caller
                  * only has limited permissions under a specific prefix.
                  * 
            * * string prefix = 2; + * * @return This builder for chaining. */ public Builder clearPrefix() { @@ -746,18 +832,22 @@ public Builder clearPrefix() { return this; } /** + * + * *
                  * An optional prefix used for permission check. It is useful when the caller
                  * only has limited permissions under a specific prefix.
                  * 
            * * string prefix = 2; + * * @param value The bytes for prefix to set. * @return This builder for chaining. */ - public Builder setPrefixBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); prefix_ = value; bitField0_ |= 0x00000002; @@ -767,19 +857,23 @@ public Builder setPrefixBytes( private java.lang.Object requestId_ = ""; /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -788,21 +882,24 @@ public java.lang.String getRequestId() { } } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -810,30 +907,41 @@ public java.lang.String getRequestId() { } } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -843,27 +951,33 @@ public Builder clearRequestId() { return this; } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -873,12 +987,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.storage.control.v2.GetStorageLayoutRequest) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.GetStorageLayoutRequest) private static final com.google.storage.control.v2.GetStorageLayoutRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.storage.control.v2.GetStorageLayoutRequest(); } @@ -887,27 +1001,27 @@ public static com.google.storage.control.v2.GetStorageLayoutRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetStorageLayoutRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetStorageLayoutRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -922,6 +1036,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.GetStorageLayoutRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequestOrBuilder.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequestOrBuilder.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequestOrBuilder.java index be2b67e1bc..984bd15a2e 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequestOrBuilder.java +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/GetStorageLayoutRequestOrBuilder.java @@ -1,76 +1,115 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto // Protobuf Java Version: 3.25.3 package com.google.storage.control.v2; -public interface GetStorageLayoutRequestOrBuilder extends +public interface GetStorageLayoutRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.GetStorageLayoutRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
                * Required. The name of the StorageLayout resource.
                * Format: `projects/{project}/buckets/{bucket}/storageLayout`
                * 
            * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
                * Required. The name of the StorageLayout resource.
                * Format: `projects/{project}/buckets/{bucket}/storageLayout`
                * 
            * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
                * An optional prefix used for permission check. It is useful when the caller
                * only has limited permissions under a specific prefix.
                * 
            * * string prefix = 2; + * * @return The prefix. */ java.lang.String getPrefix(); /** + * + * *
                * An optional prefix used for permission check. It is useful when the caller
                * only has limited permissions under a specific prefix.
                * 
            * * string prefix = 2; + * * @return The bytes for prefix. */ - com.google.protobuf.ByteString - getPrefixBytes(); + com.google.protobuf.ByteString getPrefixBytes(); /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersRequest.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersRequest.java similarity index 73% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersRequest.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersRequest.java index eb064b07c8..8f3a952434 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersRequest.java +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto @@ -5,6 +20,8 @@ package com.google.storage.control.v2; /** + * + * *
              * Request message for ListFolders. This operation is only applicable to a
              * hierarchical namespace enabled bucket.
            @@ -12,15 +29,16 @@
              *
              * Protobuf type {@code google.storage.control.v2.ListFoldersRequest}
              */
            -public final class ListFoldersRequest extends
            -    com.google.protobuf.GeneratedMessageV3 implements
            +public final class ListFoldersRequest extends com.google.protobuf.GeneratedMessageV3
            +    implements
                 // @@protoc_insertion_point(message_implements:google.storage.control.v2.ListFoldersRequest)
                 ListFoldersRequestOrBuilder {
            -private static final long serialVersionUID = 0L;
            +  private static final long serialVersionUID = 0L;
               // Use ListFoldersRequest.newBuilder() to construct.
               private ListFoldersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                 super(builder);
               }
            +
               private ListFoldersRequest() {
                 parent_ = "";
                 pageToken_ = "";
            @@ -33,34 +51,41 @@ private ListFoldersRequest() {
             
               @java.lang.Override
               @SuppressWarnings({"unused"})
            -  protected java.lang.Object newInstance(
            -      UnusedPrivateParameter unused) {
            +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                 return new ListFoldersRequest();
               }
             
            -  public static final com.google.protobuf.Descriptors.Descriptor
            -      getDescriptor() {
            -    return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListFoldersRequest_descriptor;
            +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            +    return com.google.storage.control.v2.StorageControlProto
            +        .internal_static_google_storage_control_v2_ListFoldersRequest_descriptor;
               }
             
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
            -    return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListFoldersRequest_fieldAccessorTable
            +    return com.google.storage.control.v2.StorageControlProto
            +        .internal_static_google_storage_control_v2_ListFoldersRequest_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
            -            com.google.storage.control.v2.ListFoldersRequest.class, com.google.storage.control.v2.ListFoldersRequest.Builder.class);
            +            com.google.storage.control.v2.ListFoldersRequest.class,
            +            com.google.storage.control.v2.ListFoldersRequest.Builder.class);
               }
             
               public static final int PARENT_FIELD_NUMBER = 1;
            +
               @SuppressWarnings("serial")
               private volatile java.lang.Object parent_ = "";
               /**
            +   *
            +   *
                * 
                * Required. Name of the bucket in which to look for folders. The bucket must
                * be a hierarchical namespace enabled 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 @@ -69,30 +94,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
                * Required. Name of the bucket in which to look for folders. The bucket must
                * be a hierarchical namespace enabled 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 { @@ -103,12 +130,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
                * Optional. Maximum number of folders to return in a single response. The
                * service will use this parameter or 1,000 items, whichever is smaller.
                * 
            * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -117,15 +147,19 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
                * Optional. A previously-returned page token representing part of the larger
                * set of results to view.
                * 
            * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -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; } } /** + * + * *
                * Optional. A previously-returned page token representing part of the larger
                * set of results to view.
                * 
            * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -166,15 +200,19 @@ public java.lang.String getPageToken() { } public static final int PREFIX_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object prefix_ = ""; /** + * + * *
                * Optional. Filter results to folders whose names begin with this prefix.
                * If set, the value must either be an empty string or end with a '/'.
                * 
            * * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The prefix. */ @java.lang.Override @@ -183,30 +221,30 @@ public java.lang.String getPrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); prefix_ = s; return s; } } /** + * + * *
                * Optional. Filter results to folders whose names begin with this prefix.
                * If set, the value must either be an empty string or end with a '/'.
                * 
            * * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for prefix. */ @java.lang.Override - public com.google.protobuf.ByteString - getPrefixBytes() { + public com.google.protobuf.ByteString getPrefixBytes() { java.lang.Object ref = prefix_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); prefix_ = b; return b; } else { @@ -215,9 +253,12 @@ public java.lang.String getPrefix() { } public static final int DELIMITER_FIELD_NUMBER = 8; + @SuppressWarnings("serial") private volatile java.lang.Object delimiter_ = ""; /** + * + * *
                * Optional. If set, returns results in a directory-like mode. The results
                * will only include folders that either exactly match the above prefix, or
            @@ -225,6 +266,7 @@ public java.lang.String getPrefix() {
                * 
            * * string delimiter = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The delimiter. */ @java.lang.Override @@ -233,14 +275,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; } } /** + * + * *
                * Optional. If set, returns results in a directory-like mode. The results
                * will only include folders that either exactly match the above prefix, or
            @@ -248,16 +291,15 @@ public java.lang.String getDelimiter() {
                * 
            * * string delimiter = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for delimiter. */ @java.lang.Override - public com.google.protobuf.ByteString - getDelimiterBytes() { + public com.google.protobuf.ByteString getDelimiterBytes() { java.lang.Object ref = delimiter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); delimiter_ = b; return b; } else { @@ -266,9 +308,12 @@ public java.lang.String getDelimiter() { } public static final int LEXICOGRAPHIC_START_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object lexicographicStart_ = ""; /** + * + * *
                * Optional. Filter results to folders whose names are lexicographically equal
                * to or after lexicographic_start. If lexicographic_end is also set, the
            @@ -277,6 +322,7 @@ public java.lang.String getDelimiter() {
                * 
            * * string lexicographic_start = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The lexicographicStart. */ @java.lang.Override @@ -285,14 +331,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 folders whose names are lexicographically equal
                * to or after lexicographic_start. If lexicographic_end is also set, the
            @@ -301,16 +348,15 @@ public java.lang.String getLexicographicStart() {
                * 
            * * string lexicographic_start = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for lexicographicStart. */ @java.lang.Override - public com.google.protobuf.ByteString - getLexicographicStartBytes() { + public com.google.protobuf.ByteString getLexicographicStartBytes() { java.lang.Object ref = lexicographicStart_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); lexicographicStart_ = b; return b; } else { @@ -319,9 +365,12 @@ public java.lang.String getLexicographicStart() { } public static final int LEXICOGRAPHIC_END_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object lexicographicEnd_ = ""; /** + * + * *
                * Optional. Filter results to folders whose names are lexicographically
                * before lexicographic_end. If lexicographic_start is also set, the folders
            @@ -330,6 +379,7 @@ public java.lang.String getLexicographicStart() {
                * 
            * * string lexicographic_end = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The lexicographicEnd. */ @java.lang.Override @@ -338,14 +388,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 folders whose names are lexicographically
                * before lexicographic_end. If lexicographic_start is also set, the folders
            @@ -354,16 +405,15 @@ public java.lang.String getLexicographicEnd() {
                * 
            * * string lexicographic_end = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for lexicographicEnd. */ @java.lang.Override - public com.google.protobuf.ByteString - getLexicographicEndBytes() { + public com.google.protobuf.ByteString getLexicographicEndBytes() { java.lang.Object ref = lexicographicEnd_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); lexicographicEnd_ = b; return b; } else { @@ -372,15 +422,21 @@ public java.lang.String getLexicographicEnd() { } public static final int REQUEST_ID_FIELD_NUMBER = 9; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The requestId. */ @java.lang.Override @@ -389,30 +445,32 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -421,6 +479,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -432,8 +491,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_); } @@ -471,8 +529,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_); @@ -500,29 +557,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.control.v2.ListFoldersRequest)) { return super.equals(obj); } - com.google.storage.control.v2.ListFoldersRequest other = (com.google.storage.control.v2.ListFoldersRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getPrefix() - .equals(other.getPrefix())) return false; - if (!getDelimiter() - .equals(other.getDelimiter())) return false; - if (!getLexicographicStart() - .equals(other.getLexicographicStart())) return false; - if (!getLexicographicEnd() - .equals(other.getLexicographicEnd())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + com.google.storage.control.v2.ListFoldersRequest other = + (com.google.storage.control.v2.ListFoldersRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getPrefix().equals(other.getPrefix())) return false; + if (!getDelimiter().equals(other.getDelimiter())) return false; + if (!getLexicographicStart().equals(other.getLexicographicStart())) return false; + if (!getLexicographicEnd().equals(other.getLexicographicEnd())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -555,99 +605,104 @@ public int hashCode() { return hash; } - public static com.google.storage.control.v2.ListFoldersRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.storage.control.v2.ListFoldersRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.ListFoldersRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.ListFoldersRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.ListFoldersRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.ListFoldersRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.ListFoldersRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.ListFoldersRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.storage.control.v2.ListFoldersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.ListFoldersRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.ListFoldersRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.ListFoldersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.ListFoldersRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.storage.control.v2.ListFoldersRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.ListFoldersRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.storage.control.v2.ListFoldersRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                * Request message for ListFolders. This operation is only applicable to a
                * hierarchical namespace enabled bucket.
            @@ -655,33 +710,32 @@ protected Builder newBuilderForType(
                *
                * Protobuf type {@code google.storage.control.v2.ListFoldersRequest}
                */
            -  public static final class Builder extends
            -      com.google.protobuf.GeneratedMessageV3.Builder implements
            +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
            +      implements
                   // @@protoc_insertion_point(builder_implements:google.storage.control.v2.ListFoldersRequest)
                   com.google.storage.control.v2.ListFoldersRequestOrBuilder {
            -    public static final com.google.protobuf.Descriptors.Descriptor
            -        getDescriptor() {
            -      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListFoldersRequest_descriptor;
            +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            +      return com.google.storage.control.v2.StorageControlProto
            +          .internal_static_google_storage_control_v2_ListFoldersRequest_descriptor;
                 }
             
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
            -      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListFoldersRequest_fieldAccessorTable
            +      return com.google.storage.control.v2.StorageControlProto
            +          .internal_static_google_storage_control_v2_ListFoldersRequest_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
            -              com.google.storage.control.v2.ListFoldersRequest.class, com.google.storage.control.v2.ListFoldersRequest.Builder.class);
            +              com.google.storage.control.v2.ListFoldersRequest.class,
            +              com.google.storage.control.v2.ListFoldersRequest.Builder.class);
                 }
             
                 // Construct using com.google.storage.control.v2.ListFoldersRequest.newBuilder()
            -    private Builder() {
            +    private Builder() {}
             
            -    }
            -
            -    private Builder(
            -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                   super(parent);
            -
                 }
            +
                 @java.lang.Override
                 public Builder clear() {
                   super.clear();
            @@ -698,9 +752,9 @@ public Builder clear() {
                 }
             
                 @java.lang.Override
            -    public com.google.protobuf.Descriptors.Descriptor
            -        getDescriptorForType() {
            -      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListFoldersRequest_descriptor;
            +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            +      return com.google.storage.control.v2.StorageControlProto
            +          .internal_static_google_storage_control_v2_ListFoldersRequest_descriptor;
                 }
             
                 @java.lang.Override
            @@ -719,8 +773,11 @@ public com.google.storage.control.v2.ListFoldersRequest build() {
             
                 @java.lang.Override
                 public com.google.storage.control.v2.ListFoldersRequest buildPartial() {
            -      com.google.storage.control.v2.ListFoldersRequest result = new com.google.storage.control.v2.ListFoldersRequest(this);
            -      if (bitField0_ != 0) { buildPartial0(result); }
            +      com.google.storage.control.v2.ListFoldersRequest result =
            +          new com.google.storage.control.v2.ListFoldersRequest(this);
            +      if (bitField0_ != 0) {
            +        buildPartial0(result);
            +      }
                   onBuilt();
                   return result;
                 }
            @@ -757,38 +814,39 @@ private void buildPartial0(com.google.storage.control.v2.ListFoldersRequest resu
                 public Builder clone() {
                   return super.clone();
                 }
            +
                 @java.lang.Override
                 public Builder setField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field,
            -        java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                   return super.setField(field, value);
                 }
            +
                 @java.lang.Override
            -    public Builder clearField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field) {
            +    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
                   return super.clearField(field);
                 }
            +
                 @java.lang.Override
            -    public Builder clearOneof(
            -        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
            +    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                   return super.clearOneof(oneof);
                 }
            +
                 @java.lang.Override
                 public Builder setRepeatedField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field,
            -        int index, java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
                   return super.setRepeatedField(field, index, value);
                 }
            +
                 @java.lang.Override
                 public Builder addRepeatedField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field,
            -        java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                   return super.addRepeatedField(field, value);
                 }
            +
                 @java.lang.Override
                 public Builder mergeFrom(com.google.protobuf.Message other) {
                   if (other instanceof com.google.storage.control.v2.ListFoldersRequest) {
            -        return mergeFrom((com.google.storage.control.v2.ListFoldersRequest)other);
            +        return mergeFrom((com.google.storage.control.v2.ListFoldersRequest) other);
                   } else {
                     super.mergeFrom(other);
                     return this;
            @@ -796,7 +854,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
                 }
             
                 public Builder mergeFrom(com.google.storage.control.v2.ListFoldersRequest other) {
            -      if (other == com.google.storage.control.v2.ListFoldersRequest.getDefaultInstance()) return this;
            +      if (other == com.google.storage.control.v2.ListFoldersRequest.getDefaultInstance())
            +        return this;
                   if (!other.getParent().isEmpty()) {
                     parent_ = other.parent_;
                     bitField0_ |= 0x00000001;
            @@ -861,52 +920,61 @@ public Builder mergeFrom(
                         case 0:
                           done = true;
                           break;
            -            case 10: {
            -              parent_ = input.readStringRequireUtf8();
            -              bitField0_ |= 0x00000001;
            -              break;
            -            } // case 10
            -            case 16: {
            -              pageSize_ = input.readInt32();
            -              bitField0_ |= 0x00000002;
            -              break;
            -            } // case 16
            -            case 26: {
            -              pageToken_ = input.readStringRequireUtf8();
            -              bitField0_ |= 0x00000004;
            -              break;
            -            } // case 26
            -            case 34: {
            -              prefix_ = input.readStringRequireUtf8();
            -              bitField0_ |= 0x00000008;
            -              break;
            -            } // case 34
            -            case 50: {
            -              lexicographicStart_ = input.readStringRequireUtf8();
            -              bitField0_ |= 0x00000020;
            -              break;
            -            } // case 50
            -            case 58: {
            -              lexicographicEnd_ = input.readStringRequireUtf8();
            -              bitField0_ |= 0x00000040;
            -              break;
            -            } // case 58
            -            case 66: {
            -              delimiter_ = input.readStringRequireUtf8();
            -              bitField0_ |= 0x00000010;
            -              break;
            -            } // case 66
            -            case 74: {
            -              requestId_ = input.readStringRequireUtf8();
            -              bitField0_ |= 0x00000080;
            -              break;
            -            } // case 74
            -            default: {
            -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            -                done = true; // was an endgroup tag
            -              }
            -              break;
            -            } // default:
            +            case 10:
            +              {
            +                parent_ = input.readStringRequireUtf8();
            +                bitField0_ |= 0x00000001;
            +                break;
            +              } // case 10
            +            case 16:
            +              {
            +                pageSize_ = input.readInt32();
            +                bitField0_ |= 0x00000002;
            +                break;
            +              } // case 16
            +            case 26:
            +              {
            +                pageToken_ = input.readStringRequireUtf8();
            +                bitField0_ |= 0x00000004;
            +                break;
            +              } // case 26
            +            case 34:
            +              {
            +                prefix_ = input.readStringRequireUtf8();
            +                bitField0_ |= 0x00000008;
            +                break;
            +              } // case 34
            +            case 50:
            +              {
            +                lexicographicStart_ = input.readStringRequireUtf8();
            +                bitField0_ |= 0x00000020;
            +                break;
            +              } // case 50
            +            case 58:
            +              {
            +                lexicographicEnd_ = input.readStringRequireUtf8();
            +                bitField0_ |= 0x00000040;
            +                break;
            +              } // case 58
            +            case 66:
            +              {
            +                delimiter_ = input.readStringRequireUtf8();
            +                bitField0_ |= 0x00000010;
            +                break;
            +              } // case 66
            +            case 74:
            +              {
            +                requestId_ = input.readStringRequireUtf8();
            +                bitField0_ |= 0x00000080;
            +                break;
            +              } // case 74
            +            default:
            +              {
            +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            +                  done = true; // was an endgroup tag
            +                }
            +                break;
            +              } // default:
                       } // switch (tag)
                     } // while (!done)
                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            @@ -916,23 +984,28 @@ public Builder mergeFrom(
                   } // finally
                   return this;
                 }
            +
                 private int bitField0_;
             
                 private java.lang.Object parent_ = "";
                 /**
            +     *
            +     *
                  * 
                  * Required. Name of the bucket in which to look for folders. The bucket must
                  * be a hierarchical namespace enabled 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; @@ -941,21 +1014,24 @@ public java.lang.String getParent() { } } /** + * + * *
                  * Required. Name of the bucket in which to look for folders. The bucket must
                  * be a hierarchical namespace enabled 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 { @@ -963,30 +1039,41 @@ public java.lang.String getParent() { } } /** + * + * *
                  * Required. Name of the bucket in which to look for folders. The bucket must
                  * be a hierarchical namespace enabled 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 the bucket in which to look for folders. The bucket must
                  * be a hierarchical namespace enabled 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() { @@ -996,18 +1083,24 @@ public Builder clearParent() { return this; } /** + * + * *
                  * Required. Name of the bucket in which to look for folders. The bucket must
                  * be a hierarchical namespace enabled 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; @@ -1015,14 +1108,17 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
                  * Optional. Maximum number of folders to return in a single response. The
                  * service will use this parameter or 1,000 items, whichever is smaller.
                  * 
            * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -1030,12 +1126,15 @@ public int getPageSize() { return pageSize_; } /** + * + * *
                  * Optional. Maximum number of folders to return in a single response. The
                  * service will use this parameter or 1,000 items, whichever is smaller.
                  * 
            * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1047,12 +1146,15 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
                  * Optional. Maximum number of folders to return in a single response. The
                  * service will use this parameter or 1,000 items, whichever is smaller.
                  * 
            * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1064,19 +1166,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
                  * Optional. A previously-returned page token representing part of the larger
                  * set of results to view.
                  * 
            * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1085,21 +1189,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
                  * Optional. A previously-returned page token representing part of the larger
                  * set of results to view.
                  * 
            * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1107,30 +1212,37 @@ public java.lang.String getPageToken() { } } /** + * + * *
                  * Optional. A previously-returned page token representing part of the larger
                  * set of results to view.
                  * 
            * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
                  * Optional. A previously-returned page token representing part of the larger
                  * set of results to view.
                  * 
            * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1140,18 +1252,22 @@ public Builder clearPageToken() { return this; } /** + * + * *
                  * Optional. A previously-returned page token representing part of the larger
                  * set of results to view.
                  * 
            * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1161,19 +1277,21 @@ public Builder setPageTokenBytes( private java.lang.Object prefix_ = ""; /** + * + * *
                  * Optional. Filter results to folders whose names begin with this prefix.
                  * If set, the value must either be an empty string or end with a '/'.
                  * 
            * * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The prefix. */ public java.lang.String getPrefix() { java.lang.Object ref = prefix_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); prefix_ = s; return s; @@ -1182,21 +1300,22 @@ public java.lang.String getPrefix() { } } /** + * + * *
                  * Optional. Filter results to folders whose names begin with this prefix.
                  * If set, the value must either be an empty string or end with a '/'.
                  * 
            * * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for prefix. */ - public com.google.protobuf.ByteString - getPrefixBytes() { + public com.google.protobuf.ByteString getPrefixBytes() { java.lang.Object ref = prefix_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); prefix_ = b; return b; } else { @@ -1204,30 +1323,37 @@ public java.lang.String getPrefix() { } } /** + * + * *
                  * Optional. Filter results to folders whose names begin with this prefix.
                  * If set, the value must either be an empty string or end with a '/'.
                  * 
            * * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The prefix to set. * @return This builder for chaining. */ - public Builder setPrefix( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } prefix_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
                  * Optional. Filter results to folders whose names begin with this prefix.
                  * If set, the value must either be an empty string or end with a '/'.
                  * 
            * * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPrefix() { @@ -1237,18 +1363,22 @@ public Builder clearPrefix() { return this; } /** + * + * *
                  * Optional. Filter results to folders whose names begin with this prefix.
                  * If set, the value must either be an empty string or end with a '/'.
                  * 
            * * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for prefix to set. * @return This builder for chaining. */ - public Builder setPrefixBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); prefix_ = value; bitField0_ |= 0x00000008; @@ -1258,6 +1388,8 @@ public Builder setPrefixBytes( private java.lang.Object delimiter_ = ""; /** + * + * *
                  * Optional. If set, returns results in a directory-like mode. The results
                  * will only include folders that either exactly match the above prefix, or
            @@ -1265,13 +1397,13 @@ public Builder setPrefixBytes(
                  * 
            * * string delimiter = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The delimiter. */ public java.lang.String getDelimiter() { java.lang.Object ref = delimiter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); delimiter_ = s; return s; @@ -1280,6 +1412,8 @@ public java.lang.String getDelimiter() { } } /** + * + * *
                  * Optional. If set, returns results in a directory-like mode. The results
                  * will only include folders that either exactly match the above prefix, or
            @@ -1287,15 +1421,14 @@ public java.lang.String getDelimiter() {
                  * 
            * * string delimiter = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for delimiter. */ - public com.google.protobuf.ByteString - getDelimiterBytes() { + public com.google.protobuf.ByteString getDelimiterBytes() { java.lang.Object ref = delimiter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); delimiter_ = b; return b; } else { @@ -1303,6 +1436,8 @@ public java.lang.String getDelimiter() { } } /** + * + * *
                  * Optional. If set, returns results in a directory-like mode. The results
                  * will only include folders that either exactly match the above prefix, or
            @@ -1310,18 +1445,22 @@ public java.lang.String getDelimiter() {
                  * 
            * * string delimiter = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The delimiter to set. * @return This builder for chaining. */ - public Builder setDelimiter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDelimiter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } delimiter_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
                  * Optional. If set, returns results in a directory-like mode. The results
                  * will only include folders that either exactly match the above prefix, or
            @@ -1329,6 +1468,7 @@ public Builder setDelimiter(
                  * 
            * * string delimiter = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDelimiter() { @@ -1338,6 +1478,8 @@ public Builder clearDelimiter() { return this; } /** + * + * *
                  * Optional. If set, returns results in a directory-like mode. The results
                  * will only include folders that either exactly match the above prefix, or
            @@ -1345,12 +1487,14 @@ public Builder clearDelimiter() {
                  * 
            * * string delimiter = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for delimiter to set. * @return This builder for chaining. */ - public Builder setDelimiterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDelimiterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); delimiter_ = value; bitField0_ |= 0x00000010; @@ -1360,6 +1504,8 @@ public Builder setDelimiterBytes( private java.lang.Object lexicographicStart_ = ""; /** + * + * *
                  * Optional. Filter results to folders whose names are lexicographically equal
                  * to or after lexicographic_start. If lexicographic_end is also set, the
            @@ -1368,13 +1514,13 @@ public Builder setDelimiterBytes(
                  * 
            * * string lexicographic_start = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The lexicographicStart. */ public java.lang.String getLexicographicStart() { java.lang.Object ref = lexicographicStart_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lexicographicStart_ = s; return s; @@ -1383,6 +1529,8 @@ public java.lang.String getLexicographicStart() { } } /** + * + * *
                  * Optional. Filter results to folders whose names are lexicographically equal
                  * to or after lexicographic_start. If lexicographic_end is also set, the
            @@ -1391,15 +1539,14 @@ public java.lang.String getLexicographicStart() {
                  * 
            * * string lexicographic_start = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for lexicographicStart. */ - public com.google.protobuf.ByteString - getLexicographicStartBytes() { + public com.google.protobuf.ByteString getLexicographicStartBytes() { java.lang.Object ref = lexicographicStart_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); lexicographicStart_ = b; return b; } else { @@ -1407,6 +1554,8 @@ public java.lang.String getLexicographicStart() { } } /** + * + * *
                  * Optional. Filter results to folders whose names are lexicographically equal
                  * to or after lexicographic_start. If lexicographic_end is also set, the
            @@ -1415,18 +1564,22 @@ public java.lang.String getLexicographicStart() {
                  * 
            * * string lexicographic_start = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The lexicographicStart to set. * @return This builder for chaining. */ - public Builder setLexicographicStart( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLexicographicStart(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } lexicographicStart_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
                  * Optional. Filter results to folders whose names are lexicographically equal
                  * to or after lexicographic_start. If lexicographic_end is also set, the
            @@ -1435,6 +1588,7 @@ public Builder setLexicographicStart(
                  * 
            * * string lexicographic_start = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearLexicographicStart() { @@ -1444,6 +1598,8 @@ public Builder clearLexicographicStart() { return this; } /** + * + * *
                  * Optional. Filter results to folders whose names are lexicographically equal
                  * to or after lexicographic_start. If lexicographic_end is also set, the
            @@ -1452,12 +1608,14 @@ public Builder clearLexicographicStart() {
                  * 
            * * string lexicographic_start = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for lexicographicStart to set. * @return This builder for chaining. */ - public Builder setLexicographicStartBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLexicographicStartBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); lexicographicStart_ = value; bitField0_ |= 0x00000020; @@ -1467,6 +1625,8 @@ public Builder setLexicographicStartBytes( private java.lang.Object lexicographicEnd_ = ""; /** + * + * *
                  * Optional. Filter results to folders whose names are lexicographically
                  * before lexicographic_end. If lexicographic_start is also set, the folders
            @@ -1475,13 +1635,13 @@ public Builder setLexicographicStartBytes(
                  * 
            * * string lexicographic_end = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The lexicographicEnd. */ public java.lang.String getLexicographicEnd() { java.lang.Object ref = lexicographicEnd_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lexicographicEnd_ = s; return s; @@ -1490,6 +1650,8 @@ public java.lang.String getLexicographicEnd() { } } /** + * + * *
                  * Optional. Filter results to folders whose names are lexicographically
                  * before lexicographic_end. If lexicographic_start is also set, the folders
            @@ -1498,15 +1660,14 @@ public java.lang.String getLexicographicEnd() {
                  * 
            * * string lexicographic_end = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for lexicographicEnd. */ - public com.google.protobuf.ByteString - getLexicographicEndBytes() { + public com.google.protobuf.ByteString getLexicographicEndBytes() { java.lang.Object ref = lexicographicEnd_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); lexicographicEnd_ = b; return b; } else { @@ -1514,6 +1675,8 @@ public java.lang.String getLexicographicEnd() { } } /** + * + * *
                  * Optional. Filter results to folders whose names are lexicographically
                  * before lexicographic_end. If lexicographic_start is also set, the folders
            @@ -1522,18 +1685,22 @@ public java.lang.String getLexicographicEnd() {
                  * 
            * * string lexicographic_end = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The lexicographicEnd to set. * @return This builder for chaining. */ - public Builder setLexicographicEnd( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLexicographicEnd(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } lexicographicEnd_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
                  * Optional. Filter results to folders whose names are lexicographically
                  * before lexicographic_end. If lexicographic_start is also set, the folders
            @@ -1542,6 +1709,7 @@ public Builder setLexicographicEnd(
                  * 
            * * string lexicographic_end = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearLexicographicEnd() { @@ -1551,6 +1719,8 @@ public Builder clearLexicographicEnd() { return this; } /** + * + * *
                  * Optional. Filter results to folders whose names are lexicographically
                  * before lexicographic_end. If lexicographic_start is also set, the folders
            @@ -1559,12 +1729,14 @@ public Builder clearLexicographicEnd() {
                  * 
            * * string lexicographic_end = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for lexicographicEnd to set. * @return This builder for chaining. */ - public Builder setLexicographicEndBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLexicographicEndBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); lexicographicEnd_ = value; bitField0_ |= 0x00000040; @@ -1574,19 +1746,23 @@ public Builder setLexicographicEndBytes( private java.lang.Object requestId_ = ""; /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1595,21 +1771,24 @@ public java.lang.String getRequestId() { } } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1617,30 +1796,41 @@ public java.lang.String getRequestId() { } } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1650,27 +1840,33 @@ public Builder clearRequestId() { return this; } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1680,12 +1876,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.storage.control.v2.ListFoldersRequest) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.ListFoldersRequest) private static final com.google.storage.control.v2.ListFoldersRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.storage.control.v2.ListFoldersRequest(); } @@ -1694,27 +1890,27 @@ public static com.google.storage.control.v2.ListFoldersRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFoldersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFoldersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1729,6 +1925,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.ListFoldersRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersRequestOrBuilder.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersRequestOrBuilder.java similarity index 74% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersRequestOrBuilder.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersRequestOrBuilder.java index 2e20f70085..0e06b43233 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersRequestOrBuilder.java +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersRequestOrBuilder.java @@ -1,91 +1,131 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto // Protobuf Java Version: 3.25.3 package com.google.storage.control.v2; -public interface ListFoldersRequestOrBuilder extends +public interface ListFoldersRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.ListFoldersRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
                * Required. Name of the bucket in which to look for folders. The bucket must
                * be a hierarchical namespace enabled 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 the bucket in which to look for folders. The bucket must
                * be a hierarchical namespace enabled 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(); /** + * + * *
                * Optional. Maximum number of folders to return in a single response. The
                * service will use this parameter or 1,000 items, whichever is smaller.
                * 
            * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
                * Optional. A previously-returned page token representing part of the larger
                * set of results to view.
                * 
            * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
                * Optional. A previously-returned page token representing part of the larger
                * set of results to view.
                * 
            * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
                * Optional. Filter results to folders whose names begin with this prefix.
                * If set, the value must either be an empty string or end with a '/'.
                * 
            * * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The prefix. */ java.lang.String getPrefix(); /** + * + * *
                * Optional. Filter results to folders whose names begin with this prefix.
                * If set, the value must either be an empty string or end with a '/'.
                * 
            * * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for prefix. */ - com.google.protobuf.ByteString - getPrefixBytes(); + com.google.protobuf.ByteString getPrefixBytes(); /** + * + * *
                * Optional. If set, returns results in a directory-like mode. The results
                * will only include folders that either exactly match the above prefix, or
            @@ -93,10 +133,13 @@ public interface ListFoldersRequestOrBuilder extends
                * 
            * * string delimiter = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The delimiter. */ java.lang.String getDelimiter(); /** + * + * *
                * Optional. If set, returns results in a directory-like mode. The results
                * will only include folders that either exactly match the above prefix, or
            @@ -104,12 +147,14 @@ public interface ListFoldersRequestOrBuilder extends
                * 
            * * string delimiter = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for delimiter. */ - com.google.protobuf.ByteString - getDelimiterBytes(); + com.google.protobuf.ByteString getDelimiterBytes(); /** + * + * *
                * Optional. Filter results to folders whose names are lexicographically equal
                * to or after lexicographic_start. If lexicographic_end is also set, the
            @@ -118,10 +163,13 @@ public interface ListFoldersRequestOrBuilder extends
                * 
            * * string lexicographic_start = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The lexicographicStart. */ java.lang.String getLexicographicStart(); /** + * + * *
                * Optional. Filter results to folders whose names are lexicographically equal
                * to or after lexicographic_start. If lexicographic_end is also set, the
            @@ -130,12 +178,14 @@ public interface ListFoldersRequestOrBuilder extends
                * 
            * * string lexicographic_start = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for lexicographicStart. */ - com.google.protobuf.ByteString - getLexicographicStartBytes(); + com.google.protobuf.ByteString getLexicographicStartBytes(); /** + * + * *
                * Optional. Filter results to folders whose names are lexicographically
                * before lexicographic_end. If lexicographic_start is also set, the folders
            @@ -144,10 +194,13 @@ public interface ListFoldersRequestOrBuilder extends
                * 
            * * string lexicographic_end = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The lexicographicEnd. */ java.lang.String getLexicographicEnd(); /** + * + * *
                * Optional. Filter results to folders whose names are lexicographically
                * before lexicographic_end. If lexicographic_start is also set, the folders
            @@ -156,30 +209,39 @@ public interface ListFoldersRequestOrBuilder extends
                * 
            * * string lexicographic_end = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for lexicographicEnd. */ - com.google.protobuf.ByteString - getLexicographicEndBytes(); + com.google.protobuf.ByteString getLexicographicEndBytes(); /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersResponse.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersResponse.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersResponse.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersResponse.java index afc553c5c8..31f6c07568 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersResponse.java +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto @@ -5,21 +20,24 @@ package com.google.storage.control.v2; /** + * + * *
              * Response message for ListFolders.
              * 
            * * Protobuf type {@code google.storage.control.v2.ListFoldersResponse} */ -public final class ListFoldersResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFoldersResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.ListFoldersResponse) ListFoldersResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFoldersResponse.newBuilder() to construct. private ListFoldersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFoldersResponse() { folders_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,28 +45,32 @@ private ListFoldersResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFoldersResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListFoldersResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_ListFoldersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListFoldersResponse_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_ListFoldersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.ListFoldersResponse.class, com.google.storage.control.v2.ListFoldersResponse.Builder.class); + com.google.storage.control.v2.ListFoldersResponse.class, + com.google.storage.control.v2.ListFoldersResponse.Builder.class); } public static final int FOLDERS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List folders_; /** + * + * *
                * The list of child folders
                * 
            @@ -60,6 +82,8 @@ public java.util.List getFoldersList() { return folders_; } /** + * + * *
                * The list of child folders
                * 
            @@ -67,11 +91,13 @@ public java.util.List getFoldersList() { * repeated .google.storage.control.v2.Folder folders = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFoldersOrBuilderList() { return folders_; } /** + * + * *
                * The list of child folders
                * 
            @@ -83,6 +109,8 @@ public int getFoldersCount() { return folders_.size(); } /** + * + * *
                * The list of child folders
                * 
            @@ -94,6 +122,8 @@ public com.google.storage.control.v2.Folder getFolders(int index) { return folders_.get(index); } /** + * + * *
                * The list of child folders
                * 
            @@ -101,21 +131,24 @@ public com.google.storage.control.v2.Folder getFolders(int index) { * repeated .google.storage.control.v2.Folder folders = 1; */ @java.lang.Override - public com.google.storage.control.v2.FolderOrBuilder getFoldersOrBuilder( - int index) { + public com.google.storage.control.v2.FolderOrBuilder getFoldersOrBuilder(int index) { return folders_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
                * The continuation token, used to page through large result sets. Provide
                * this value in a subsequent request to return the next page of results.
                * 
            * * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -124,30 +157,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 { @@ -156,6 +189,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,8 +201,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 < folders_.size(); i++) { output.writeMessage(1, folders_.get(i)); } @@ -185,8 +218,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < folders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, folders_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, folders_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -199,17 +231,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.control.v2.ListFoldersResponse)) { return super.equals(obj); } - com.google.storage.control.v2.ListFoldersResponse other = (com.google.storage.control.v2.ListFoldersResponse) obj; + com.google.storage.control.v2.ListFoldersResponse other = + (com.google.storage.control.v2.ListFoldersResponse) obj; - if (!getFoldersList() - .equals(other.getFoldersList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getFoldersList().equals(other.getFoldersList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -233,131 +264,135 @@ public int hashCode() { } public static com.google.storage.control.v2.ListFoldersResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.ListFoldersResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.ListFoldersResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.ListFoldersResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.ListFoldersResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.ListFoldersResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.ListFoldersResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.storage.control.v2.ListFoldersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.ListFoldersResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.ListFoldersResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.ListFoldersResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.ListFoldersResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.storage.control.v2.ListFoldersResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.ListFoldersResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.storage.control.v2.ListFoldersResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                * Response message for ListFolders.
                * 
            * * Protobuf type {@code google.storage.control.v2.ListFoldersResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.storage.control.v2.ListFoldersResponse) com.google.storage.control.v2.ListFoldersResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListFoldersResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_ListFoldersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListFoldersResponse_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_ListFoldersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.ListFoldersResponse.class, com.google.storage.control.v2.ListFoldersResponse.Builder.class); + com.google.storage.control.v2.ListFoldersResponse.class, + com.google.storage.control.v2.ListFoldersResponse.Builder.class); } // Construct using com.google.storage.control.v2.ListFoldersResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +409,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListFoldersResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_ListFoldersResponse_descriptor; } @java.lang.Override @@ -395,14 +430,18 @@ public com.google.storage.control.v2.ListFoldersResponse build() { @java.lang.Override public com.google.storage.control.v2.ListFoldersResponse buildPartial() { - com.google.storage.control.v2.ListFoldersResponse result = new com.google.storage.control.v2.ListFoldersResponse(this); + com.google.storage.control.v2.ListFoldersResponse result = + new com.google.storage.control.v2.ListFoldersResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.storage.control.v2.ListFoldersResponse result) { + private void buildPartialRepeatedFields( + com.google.storage.control.v2.ListFoldersResponse result) { if (foldersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { folders_ = java.util.Collections.unmodifiableList(folders_); @@ -425,38 +464,39 @@ private void buildPartial0(com.google.storage.control.v2.ListFoldersResponse res public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.control.v2.ListFoldersResponse) { - return mergeFrom((com.google.storage.control.v2.ListFoldersResponse)other); + return mergeFrom((com.google.storage.control.v2.ListFoldersResponse) other); } else { super.mergeFrom(other); return this; @@ -464,7 +504,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.control.v2.ListFoldersResponse other) { - if (other == com.google.storage.control.v2.ListFoldersResponse.getDefaultInstance()) return this; + if (other == com.google.storage.control.v2.ListFoldersResponse.getDefaultInstance()) + return this; if (foldersBuilder_ == null) { if (!other.folders_.isEmpty()) { if (folders_.isEmpty()) { @@ -483,9 +524,10 @@ public Builder mergeFrom(com.google.storage.control.v2.ListFoldersResponse other foldersBuilder_ = null; folders_ = other.folders_; bitField0_ = (bitField0_ & ~0x00000001); - foldersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFoldersFieldBuilder() : null; + foldersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFoldersFieldBuilder() + : null; } else { foldersBuilder_.addAllMessages(other.folders_); } @@ -522,30 +564,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.storage.control.v2.Folder m = - input.readMessage( - com.google.storage.control.v2.Folder.parser(), - extensionRegistry); - if (foldersBuilder_ == null) { - ensureFoldersIsMutable(); - folders_.add(m); - } else { - foldersBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.storage.control.v2.Folder m = + input.readMessage( + com.google.storage.control.v2.Folder.parser(), extensionRegistry); + if (foldersBuilder_ == null) { + ensureFoldersIsMutable(); + folders_.add(m); + } else { + foldersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -555,21 +599,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List folders_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFoldersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { folders_ = new java.util.ArrayList(folders_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.control.v2.Folder, com.google.storage.control.v2.Folder.Builder, com.google.storage.control.v2.FolderOrBuilder> foldersBuilder_; + com.google.storage.control.v2.Folder, + com.google.storage.control.v2.Folder.Builder, + com.google.storage.control.v2.FolderOrBuilder> + foldersBuilder_; /** + * + * *
                  * The list of child folders
                  * 
            @@ -584,6 +635,8 @@ public java.util.List getFoldersList() { } } /** + * + * *
                  * The list of child folders
                  * 
            @@ -598,6 +651,8 @@ public int getFoldersCount() { } } /** + * + * *
                  * The list of child folders
                  * 
            @@ -612,14 +667,15 @@ public com.google.storage.control.v2.Folder getFolders(int index) { } } /** + * + * *
                  * The list of child folders
                  * 
            * * repeated .google.storage.control.v2.Folder folders = 1; */ - public Builder setFolders( - int index, com.google.storage.control.v2.Folder value) { + public Builder setFolders(int index, com.google.storage.control.v2.Folder value) { if (foldersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -633,6 +689,8 @@ public Builder setFolders( return this; } /** + * + * *
                  * The list of child folders
                  * 
            @@ -651,6 +709,8 @@ public Builder setFolders( return this; } /** + * + * *
                  * The list of child folders
                  * 
            @@ -671,14 +731,15 @@ public Builder addFolders(com.google.storage.control.v2.Folder value) { return this; } /** + * + * *
                  * The list of child folders
                  * 
            * * repeated .google.storage.control.v2.Folder folders = 1; */ - public Builder addFolders( - int index, com.google.storage.control.v2.Folder value) { + public Builder addFolders(int index, com.google.storage.control.v2.Folder value) { if (foldersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -692,14 +753,15 @@ public Builder addFolders( return this; } /** + * + * *
                  * The list of child folders
                  * 
            * * repeated .google.storage.control.v2.Folder folders = 1; */ - public Builder addFolders( - com.google.storage.control.v2.Folder.Builder builderForValue) { + public Builder addFolders(com.google.storage.control.v2.Folder.Builder builderForValue) { if (foldersBuilder_ == null) { ensureFoldersIsMutable(); folders_.add(builderForValue.build()); @@ -710,6 +772,8 @@ public Builder addFolders( return this; } /** + * + * *
                  * The list of child folders
                  * 
            @@ -728,6 +792,8 @@ public Builder addFolders( return this; } /** + * + * *
                  * The list of child folders
                  * 
            @@ -738,8 +804,7 @@ public Builder addAllFolders( java.lang.Iterable values) { if (foldersBuilder_ == null) { ensureFoldersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, folders_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, folders_); onChanged(); } else { foldersBuilder_.addAllMessages(values); @@ -747,6 +812,8 @@ public Builder addAllFolders( return this; } /** + * + * *
                  * The list of child folders
                  * 
            @@ -764,6 +831,8 @@ public Builder clearFolders() { return this; } /** + * + * *
                  * The list of child folders
                  * 
            @@ -781,39 +850,44 @@ public Builder removeFolders(int index) { return this; } /** + * + * *
                  * The list of child folders
                  * 
            * * repeated .google.storage.control.v2.Folder folders = 1; */ - public com.google.storage.control.v2.Folder.Builder getFoldersBuilder( - int index) { + public com.google.storage.control.v2.Folder.Builder getFoldersBuilder(int index) { return getFoldersFieldBuilder().getBuilder(index); } /** + * + * *
                  * The list of child folders
                  * 
            * * repeated .google.storage.control.v2.Folder folders = 1; */ - public com.google.storage.control.v2.FolderOrBuilder getFoldersOrBuilder( - int index) { + public com.google.storage.control.v2.FolderOrBuilder getFoldersOrBuilder(int index) { if (foldersBuilder_ == null) { - return folders_.get(index); } else { + return folders_.get(index); + } else { return foldersBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                  * The list of child folders
                  * 
            * * repeated .google.storage.control.v2.Folder folders = 1; */ - public java.util.List - getFoldersOrBuilderList() { + public java.util.List + getFoldersOrBuilderList() { if (foldersBuilder_ != null) { return foldersBuilder_.getMessageOrBuilderList(); } else { @@ -821,6 +895,8 @@ public com.google.storage.control.v2.FolderOrBuilder getFoldersOrBuilder( } } /** + * + * *
                  * The list of child folders
                  * 
            @@ -828,42 +904,47 @@ public com.google.storage.control.v2.FolderOrBuilder getFoldersOrBuilder( * repeated .google.storage.control.v2.Folder folders = 1; */ public com.google.storage.control.v2.Folder.Builder addFoldersBuilder() { - return getFoldersFieldBuilder().addBuilder( - com.google.storage.control.v2.Folder.getDefaultInstance()); + return getFoldersFieldBuilder() + .addBuilder(com.google.storage.control.v2.Folder.getDefaultInstance()); } /** + * + * *
                  * The list of child folders
                  * 
            * * repeated .google.storage.control.v2.Folder folders = 1; */ - public com.google.storage.control.v2.Folder.Builder addFoldersBuilder( - int index) { - return getFoldersFieldBuilder().addBuilder( - index, com.google.storage.control.v2.Folder.getDefaultInstance()); + public com.google.storage.control.v2.Folder.Builder addFoldersBuilder(int index) { + return getFoldersFieldBuilder() + .addBuilder(index, com.google.storage.control.v2.Folder.getDefaultInstance()); } /** + * + * *
                  * The list of child folders
                  * 
            * * repeated .google.storage.control.v2.Folder folders = 1; */ - public java.util.List - getFoldersBuilderList() { + public java.util.List getFoldersBuilderList() { return getFoldersFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.control.v2.Folder, com.google.storage.control.v2.Folder.Builder, com.google.storage.control.v2.FolderOrBuilder> + com.google.storage.control.v2.Folder, + com.google.storage.control.v2.Folder.Builder, + com.google.storage.control.v2.FolderOrBuilder> getFoldersFieldBuilder() { if (foldersBuilder_ == null) { - foldersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.control.v2.Folder, com.google.storage.control.v2.Folder.Builder, com.google.storage.control.v2.FolderOrBuilder>( - folders_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + foldersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.storage.control.v2.Folder, + com.google.storage.control.v2.Folder.Builder, + com.google.storage.control.v2.FolderOrBuilder>( + folders_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); folders_ = null; } return foldersBuilder_; @@ -871,19 +952,21 @@ public com.google.storage.control.v2.Folder.Builder addFoldersBuilder( 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; @@ -892,21 +975,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 { @@ -914,30 +998,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() { @@ -947,27 +1038,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); } @@ -977,12 +1072,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.storage.control.v2.ListFoldersResponse) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.ListFoldersResponse) private static final com.google.storage.control.v2.ListFoldersResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.storage.control.v2.ListFoldersResponse(); } @@ -991,27 +1086,27 @@ public static com.google.storage.control.v2.ListFoldersResponse getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFoldersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFoldersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1026,6 +1121,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.ListFoldersResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersResponseOrBuilder.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersResponseOrBuilder.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersResponseOrBuilder.java index afb4660583..fb158a83fb 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersResponseOrBuilder.java +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListFoldersResponseOrBuilder.java @@ -1,23 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto // Protobuf Java Version: 3.25.3 package com.google.storage.control.v2; -public interface ListFoldersResponseOrBuilder extends +public interface ListFoldersResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.ListFoldersResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
                * The list of child folders
                * 
            * * repeated .google.storage.control.v2.Folder folders = 1; */ - java.util.List - getFoldersList(); + java.util.List getFoldersList(); /** + * + * *
                * The list of child folders
                * 
            @@ -26,6 +45,8 @@ public interface ListFoldersResponseOrBuilder extends */ com.google.storage.control.v2.Folder getFolders(int index); /** + * + * *
                * The list of child folders
                * 
            @@ -34,43 +55,50 @@ public interface ListFoldersResponseOrBuilder extends */ int getFoldersCount(); /** + * + * *
                * The list of child folders
                * 
            * * repeated .google.storage.control.v2.Folder folders = 1; */ - java.util.List - getFoldersOrBuilderList(); + java.util.List getFoldersOrBuilderList(); /** + * + * *
                * The list of child folders
                * 
            * * repeated .google.storage.control.v2.Folder folders = 1; */ - com.google.storage.control.v2.FolderOrBuilder getFoldersOrBuilder( - int index); + com.google.storage.control.v2.FolderOrBuilder getFoldersOrBuilder(int index); /** + * + * *
                * The continuation token, used to page through large result sets. Provide
                * this value in a subsequent request to return the next page of results.
                * 
            * * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
                * The continuation token, used to page through large result sets. Provide
                * this value in a subsequent request to return the next page of results.
                * 
            * * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersRequest.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersRequest.java similarity index 68% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersRequest.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersRequest.java index 894127b1ed..999775be33 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersRequest.java +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto @@ -5,21 +20,24 @@ package com.google.storage.control.v2; /** + * + * *
              * Request message for ListManagedFolders.
              * 
            * * Protobuf type {@code google.storage.control.v2.ListManagedFoldersRequest} */ -public final class ListManagedFoldersRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListManagedFoldersRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.ListManagedFoldersRequest) ListManagedFoldersRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListManagedFoldersRequest.newBuilder() to construct. private ListManagedFoldersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListManagedFoldersRequest() { parent_ = ""; pageToken_ = ""; @@ -29,33 +47,40 @@ private ListManagedFoldersRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListManagedFoldersRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListManagedFoldersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_ListManagedFoldersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListManagedFoldersRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_ListManagedFoldersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.ListManagedFoldersRequest.class, com.google.storage.control.v2.ListManagedFoldersRequest.Builder.class); + com.google.storage.control.v2.ListManagedFoldersRequest.class, + com.google.storage.control.v2.ListManagedFoldersRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
                * Required. Name of the bucket this managed folder belongs to.
                * 
            * - * 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 @@ -64,29 +89,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 this managed folder belongs to.
                * 
            * - * 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 { @@ -97,12 +124,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
                * Optional. Maximum number of managed folders to return in a single response.
                * The service will use this parameter or 1,000 items, whichever is smaller.
                * 
            * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -111,15 +141,19 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
                * Optional. A previously-returned page token representing part of the larger
                * set of results to view.
                * 
            * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -128,30 +162,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
                * Optional. A previously-returned page token representing part of the larger
                * set of results to view.
                * 
            * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -160,15 +194,19 @@ public java.lang.String getPageToken() { } public static final int PREFIX_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object prefix_ = ""; /** + * + * *
                * Optional. Filter results to match managed folders with name starting with
                * this prefix.
                * 
            * * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The prefix. */ @java.lang.Override @@ -177,30 +215,30 @@ public java.lang.String getPrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); prefix_ = s; return s; } } /** + * + * *
                * Optional. Filter results to match managed folders with name starting with
                * this prefix.
                * 
            * * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for prefix. */ @java.lang.Override - public com.google.protobuf.ByteString - getPrefixBytes() { + public com.google.protobuf.ByteString getPrefixBytes() { java.lang.Object ref = prefix_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); prefix_ = b; return b; } else { @@ -209,15 +247,21 @@ public java.lang.String getPrefix() { } public static final int REQUEST_ID_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The requestId. */ @java.lang.Override @@ -226,30 +270,32 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -258,6 +304,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -269,8 +316,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_); } @@ -299,8 +345,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_); @@ -319,23 +364,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.control.v2.ListManagedFoldersRequest)) { return super.equals(obj); } - com.google.storage.control.v2.ListManagedFoldersRequest other = (com.google.storage.control.v2.ListManagedFoldersRequest) 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 (!getRequestId() - .equals(other.getRequestId())) return false; + com.google.storage.control.v2.ListManagedFoldersRequest other = + (com.google.storage.control.v2.ListManagedFoldersRequest) 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 (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -363,131 +404,136 @@ public int hashCode() { } public static com.google.storage.control.v2.ListManagedFoldersRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.ListManagedFoldersRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.ListManagedFoldersRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.ListManagedFoldersRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.ListManagedFoldersRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.ListManagedFoldersRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.ListManagedFoldersRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.storage.control.v2.ListManagedFoldersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.ListManagedFoldersRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.ListManagedFoldersRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.ListManagedFoldersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.ListManagedFoldersRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.storage.control.v2.ListManagedFoldersRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.ListManagedFoldersRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.control.v2.ListManagedFoldersRequest prototype) { + + public static Builder newBuilder( + com.google.storage.control.v2.ListManagedFoldersRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListManagedFolders.
                * 
            * * Protobuf type {@code google.storage.control.v2.ListManagedFoldersRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.storage.control.v2.ListManagedFoldersRequest) com.google.storage.control.v2.ListManagedFoldersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListManagedFoldersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_ListManagedFoldersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListManagedFoldersRequest_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_ListManagedFoldersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.ListManagedFoldersRequest.class, com.google.storage.control.v2.ListManagedFoldersRequest.Builder.class); + com.google.storage.control.v2.ListManagedFoldersRequest.class, + com.google.storage.control.v2.ListManagedFoldersRequest.Builder.class); } // Construct using com.google.storage.control.v2.ListManagedFoldersRequest.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(); @@ -501,9 +547,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListManagedFoldersRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_ListManagedFoldersRequest_descriptor; } @java.lang.Override @@ -522,8 +568,11 @@ public com.google.storage.control.v2.ListManagedFoldersRequest build() { @java.lang.Override public com.google.storage.control.v2.ListManagedFoldersRequest buildPartial() { - com.google.storage.control.v2.ListManagedFoldersRequest result = new com.google.storage.control.v2.ListManagedFoldersRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.storage.control.v2.ListManagedFoldersRequest result = + new com.google.storage.control.v2.ListManagedFoldersRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -551,38 +600,39 @@ private void buildPartial0(com.google.storage.control.v2.ListManagedFoldersReque public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.control.v2.ListManagedFoldersRequest) { - return mergeFrom((com.google.storage.control.v2.ListManagedFoldersRequest)other); + return mergeFrom((com.google.storage.control.v2.ListManagedFoldersRequest) other); } else { super.mergeFrom(other); return this; @@ -590,7 +640,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.control.v2.ListManagedFoldersRequest other) { - if (other == com.google.storage.control.v2.ListManagedFoldersRequest.getDefaultInstance()) return this; + if (other == com.google.storage.control.v2.ListManagedFoldersRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -640,37 +691,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: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 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: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -680,22 +737,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
                  * Required. Name of the bucket this managed folder belongs to.
                  * 
            * - * 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; @@ -704,20 +766,23 @@ public java.lang.String getParent() { } } /** + * + * *
                  * Required. Name of the bucket this managed folder belongs to.
                  * 
            * - * 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 { @@ -725,28 +790,39 @@ public java.lang.String getParent() { } } /** + * + * *
                  * Required. Name of the bucket this managed folder belongs to.
                  * 
            * - * 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 this managed folder belongs to.
                  * 
            * - * 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() { @@ -756,17 +832,23 @@ public Builder clearParent() { return this; } /** + * + * *
                  * Required. Name of the bucket this managed folder belongs to.
                  * 
            * - * 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; @@ -774,14 +856,17 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
                  * Optional. Maximum number of managed folders to return in a single response.
                  * The service will use this parameter or 1,000 items, whichever is smaller.
                  * 
            * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -789,12 +874,15 @@ public int getPageSize() { return pageSize_; } /** + * + * *
                  * Optional. Maximum number of managed folders to return in a single response.
                  * The service will use this parameter or 1,000 items, whichever is smaller.
                  * 
            * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -806,12 +894,15 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
                  * Optional. Maximum number of managed folders to return in a single response.
                  * The service will use this parameter or 1,000 items, whichever is smaller.
                  * 
            * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -823,19 +914,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
                  * Optional. A previously-returned page token representing part of the larger
                  * set of results to view.
                  * 
            * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -844,21 +937,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
                  * Optional. A previously-returned page token representing part of the larger
                  * set of results to view.
                  * 
            * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -866,30 +960,37 @@ public java.lang.String getPageToken() { } } /** + * + * *
                  * Optional. A previously-returned page token representing part of the larger
                  * set of results to view.
                  * 
            * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
                  * Optional. A previously-returned page token representing part of the larger
                  * set of results to view.
                  * 
            * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -899,18 +1000,22 @@ public Builder clearPageToken() { return this; } /** + * + * *
                  * Optional. A previously-returned page token representing part of the larger
                  * set of results to view.
                  * 
            * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -920,19 +1025,21 @@ public Builder setPageTokenBytes( private java.lang.Object prefix_ = ""; /** + * + * *
                  * Optional. Filter results to match managed folders with name starting with
                  * this prefix.
                  * 
            * * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The prefix. */ public java.lang.String getPrefix() { java.lang.Object ref = prefix_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); prefix_ = s; return s; @@ -941,21 +1048,22 @@ public java.lang.String getPrefix() { } } /** + * + * *
                  * Optional. Filter results to match managed folders with name starting with
                  * this prefix.
                  * 
            * * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for prefix. */ - public com.google.protobuf.ByteString - getPrefixBytes() { + public com.google.protobuf.ByteString getPrefixBytes() { java.lang.Object ref = prefix_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); prefix_ = b; return b; } else { @@ -963,30 +1071,37 @@ public java.lang.String getPrefix() { } } /** + * + * *
                  * Optional. Filter results to match managed folders with name starting with
                  * this prefix.
                  * 
            * * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The prefix to set. * @return This builder for chaining. */ - public Builder setPrefix( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } prefix_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
                  * Optional. Filter results to match managed folders with name starting with
                  * this prefix.
                  * 
            * * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPrefix() { @@ -996,18 +1111,22 @@ public Builder clearPrefix() { return this; } /** + * + * *
                  * Optional. Filter results to match managed folders with name starting with
                  * this prefix.
                  * 
            * * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for prefix to set. * @return This builder for chaining. */ - public Builder setPrefixBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); prefix_ = value; bitField0_ |= 0x00000008; @@ -1017,19 +1136,23 @@ public Builder setPrefixBytes( private java.lang.Object requestId_ = ""; /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1038,21 +1161,24 @@ public java.lang.String getRequestId() { } } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1060,30 +1186,41 @@ public java.lang.String getRequestId() { } } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1093,27 +1230,33 @@ public Builder clearRequestId() { return this; } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted.
                  * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 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); } @@ -1123,12 +1266,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.storage.control.v2.ListManagedFoldersRequest) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.ListManagedFoldersRequest) private static final com.google.storage.control.v2.ListManagedFoldersRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.storage.control.v2.ListManagedFoldersRequest(); } @@ -1137,27 +1280,27 @@ public static com.google.storage.control.v2.ListManagedFoldersRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListManagedFoldersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListManagedFoldersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1172,6 +1315,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.storage.control.v2.ListManagedFoldersRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersRequestOrBuilder.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersRequestOrBuilder.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersRequestOrBuilder.java index f5fd07b22a..0041f11360 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersRequestOrBuilder.java +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersRequestOrBuilder.java @@ -1,107 +1,154 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto // Protobuf Java Version: 3.25.3 package com.google.storage.control.v2; -public interface ListManagedFoldersRequestOrBuilder extends +public interface ListManagedFoldersRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.ListManagedFoldersRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
                * Required. Name of the bucket this managed folder belongs to.
                * 
            * - * 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 this managed folder belongs to.
                * 
            * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
                * Optional. Maximum number of managed folders to return in a single response.
                * The service will use this parameter or 1,000 items, whichever is smaller.
                * 
            * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
                * Optional. A previously-returned page token representing part of the larger
                * set of results to view.
                * 
            * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
                * Optional. A previously-returned page token representing part of the larger
                * set of results to view.
                * 
            * * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
                * Optional. Filter results to match managed folders with name starting with
                * this prefix.
                * 
            * * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The prefix. */ java.lang.String getPrefix(); /** + * + * *
                * Optional. Filter results to match managed folders with name starting with
                * this prefix.
                * 
            * * string prefix = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for prefix. */ - com.google.protobuf.ByteString - getPrefixBytes(); + com.google.protobuf.ByteString getPrefixBytes(); /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted.
                * 
            * - * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersResponse.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersResponse.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersResponse.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersResponse.java index cfbfd7eeac..abc6cc7b1d 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersResponse.java +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto @@ -5,21 +20,24 @@ package com.google.storage.control.v2; /** + * + * *
              * Response message for ListManagedFolders.
              * 
            * * Protobuf type {@code google.storage.control.v2.ListManagedFoldersResponse} */ -public final class ListManagedFoldersResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListManagedFoldersResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.ListManagedFoldersResponse) ListManagedFoldersResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListManagedFoldersResponse.newBuilder() to construct. private ListManagedFoldersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListManagedFoldersResponse() { managedFolders_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,28 +45,32 @@ private ListManagedFoldersResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListManagedFoldersResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListManagedFoldersResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_ListManagedFoldersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListManagedFoldersResponse_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_ListManagedFoldersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.ListManagedFoldersResponse.class, com.google.storage.control.v2.ListManagedFoldersResponse.Builder.class); + com.google.storage.control.v2.ListManagedFoldersResponse.class, + com.google.storage.control.v2.ListManagedFoldersResponse.Builder.class); } public static final int MANAGED_FOLDERS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List managedFolders_; /** + * + * *
                * The list of matching managed folders
                * 
            @@ -60,6 +82,8 @@ public java.util.List getManagedFol return managedFolders_; } /** + * + * *
                * The list of matching managed folders
                * 
            @@ -67,11 +91,13 @@ public java.util.List getManagedFol * repeated .google.storage.control.v2.ManagedFolder managed_folders = 1; */ @java.lang.Override - public java.util.List + public java.util.List getManagedFoldersOrBuilderList() { return managedFolders_; } /** + * + * *
                * The list of matching managed folders
                * 
            @@ -83,6 +109,8 @@ public int getManagedFoldersCount() { return managedFolders_.size(); } /** + * + * *
                * The list of matching managed folders
                * 
            @@ -94,6 +122,8 @@ public com.google.storage.control.v2.ManagedFolder getManagedFolders(int index) return managedFolders_.get(index); } /** + * + * *
                * The list of matching managed folders
                * 
            @@ -107,15 +137,19 @@ public com.google.storage.control.v2.ManagedFolderOrBuilder getManagedFoldersOrB } 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 @@ -124,30 +158,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 { @@ -156,6 +190,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,8 +202,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < managedFolders_.size(); i++) { output.writeMessage(1, managedFolders_.get(i)); } @@ -185,8 +219,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < managedFolders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, managedFolders_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, managedFolders_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -199,17 +232,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.control.v2.ListManagedFoldersResponse)) { return super.equals(obj); } - com.google.storage.control.v2.ListManagedFoldersResponse other = (com.google.storage.control.v2.ListManagedFoldersResponse) obj; + com.google.storage.control.v2.ListManagedFoldersResponse other = + (com.google.storage.control.v2.ListManagedFoldersResponse) obj; - if (!getManagedFoldersList() - .equals(other.getManagedFoldersList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getManagedFoldersList().equals(other.getManagedFoldersList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -233,131 +265,136 @@ public int hashCode() { } public static com.google.storage.control.v2.ListManagedFoldersResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.ListManagedFoldersResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.ListManagedFoldersResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.ListManagedFoldersResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.ListManagedFoldersResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.ListManagedFoldersResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.ListManagedFoldersResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.storage.control.v2.ListManagedFoldersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.ListManagedFoldersResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.ListManagedFoldersResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.ListManagedFoldersResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.ListManagedFoldersResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.storage.control.v2.ListManagedFoldersResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.ListManagedFoldersResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.control.v2.ListManagedFoldersResponse prototype) { + + public static Builder newBuilder( + com.google.storage.control.v2.ListManagedFoldersResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListManagedFolders.
                * 
            * * Protobuf type {@code google.storage.control.v2.ListManagedFoldersResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.storage.control.v2.ListManagedFoldersResponse) com.google.storage.control.v2.ListManagedFoldersResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListManagedFoldersResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_ListManagedFoldersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListManagedFoldersResponse_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_ListManagedFoldersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.ListManagedFoldersResponse.class, com.google.storage.control.v2.ListManagedFoldersResponse.Builder.class); + com.google.storage.control.v2.ListManagedFoldersResponse.class, + com.google.storage.control.v2.ListManagedFoldersResponse.Builder.class); } // Construct using com.google.storage.control.v2.ListManagedFoldersResponse.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(); @@ -374,9 +411,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ListManagedFoldersResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_ListManagedFoldersResponse_descriptor; } @java.lang.Override @@ -395,14 +432,18 @@ public com.google.storage.control.v2.ListManagedFoldersResponse build() { @java.lang.Override public com.google.storage.control.v2.ListManagedFoldersResponse buildPartial() { - com.google.storage.control.v2.ListManagedFoldersResponse result = new com.google.storage.control.v2.ListManagedFoldersResponse(this); + com.google.storage.control.v2.ListManagedFoldersResponse result = + new com.google.storage.control.v2.ListManagedFoldersResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.storage.control.v2.ListManagedFoldersResponse result) { + private void buildPartialRepeatedFields( + com.google.storage.control.v2.ListManagedFoldersResponse result) { if (managedFoldersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { managedFolders_ = java.util.Collections.unmodifiableList(managedFolders_); @@ -425,38 +466,39 @@ private void buildPartial0(com.google.storage.control.v2.ListManagedFoldersRespo public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.control.v2.ListManagedFoldersResponse) { - return mergeFrom((com.google.storage.control.v2.ListManagedFoldersResponse)other); + return mergeFrom((com.google.storage.control.v2.ListManagedFoldersResponse) other); } else { super.mergeFrom(other); return this; @@ -464,7 +506,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.control.v2.ListManagedFoldersResponse other) { - if (other == com.google.storage.control.v2.ListManagedFoldersResponse.getDefaultInstance()) return this; + if (other == com.google.storage.control.v2.ListManagedFoldersResponse.getDefaultInstance()) + return this; if (managedFoldersBuilder_ == null) { if (!other.managedFolders_.isEmpty()) { if (managedFolders_.isEmpty()) { @@ -483,9 +526,10 @@ public Builder mergeFrom(com.google.storage.control.v2.ListManagedFoldersRespons managedFoldersBuilder_ = null; managedFolders_ = other.managedFolders_; bitField0_ = (bitField0_ & ~0x00000001); - managedFoldersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getManagedFoldersFieldBuilder() : null; + managedFoldersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getManagedFoldersFieldBuilder() + : null; } else { managedFoldersBuilder_.addAllMessages(other.managedFolders_); } @@ -522,30 +566,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.storage.control.v2.ManagedFolder m = - input.readMessage( - com.google.storage.control.v2.ManagedFolder.parser(), - extensionRegistry); - if (managedFoldersBuilder_ == null) { - ensureManagedFoldersIsMutable(); - managedFolders_.add(m); - } else { - managedFoldersBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.storage.control.v2.ManagedFolder m = + input.readMessage( + com.google.storage.control.v2.ManagedFolder.parser(), extensionRegistry); + if (managedFoldersBuilder_ == null) { + ensureManagedFoldersIsMutable(); + managedFolders_.add(m); + } else { + managedFoldersBuilder_.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) { @@ -555,21 +601,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List managedFolders_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureManagedFoldersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - managedFolders_ = new java.util.ArrayList(managedFolders_); + managedFolders_ = + new java.util.ArrayList(managedFolders_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.control.v2.ManagedFolder, com.google.storage.control.v2.ManagedFolder.Builder, com.google.storage.control.v2.ManagedFolderOrBuilder> managedFoldersBuilder_; + com.google.storage.control.v2.ManagedFolder, + com.google.storage.control.v2.ManagedFolder.Builder, + com.google.storage.control.v2.ManagedFolderOrBuilder> + managedFoldersBuilder_; /** + * + * *
                  * The list of matching managed folders
                  * 
            @@ -584,6 +638,8 @@ public java.util.List getManagedFol } } /** + * + * *
                  * The list of matching managed folders
                  * 
            @@ -598,6 +654,8 @@ public int getManagedFoldersCount() { } } /** + * + * *
                  * The list of matching managed folders
                  * 
            @@ -612,14 +670,15 @@ public com.google.storage.control.v2.ManagedFolder getManagedFolders(int index) } } /** + * + * *
                  * The list of matching managed folders
                  * 
            * * repeated .google.storage.control.v2.ManagedFolder managed_folders = 1; */ - public Builder setManagedFolders( - int index, com.google.storage.control.v2.ManagedFolder value) { + public Builder setManagedFolders(int index, com.google.storage.control.v2.ManagedFolder value) { if (managedFoldersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -633,6 +692,8 @@ public Builder setManagedFolders( return this; } /** + * + * *
                  * The list of matching managed folders
                  * 
            @@ -651,6 +712,8 @@ public Builder setManagedFolders( return this; } /** + * + * *
                  * The list of matching managed folders
                  * 
            @@ -671,14 +734,15 @@ public Builder addManagedFolders(com.google.storage.control.v2.ManagedFolder val return this; } /** + * + * *
                  * The list of matching managed folders
                  * 
            * * repeated .google.storage.control.v2.ManagedFolder managed_folders = 1; */ - public Builder addManagedFolders( - int index, com.google.storage.control.v2.ManagedFolder value) { + public Builder addManagedFolders(int index, com.google.storage.control.v2.ManagedFolder value) { if (managedFoldersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -692,6 +756,8 @@ public Builder addManagedFolders( return this; } /** + * + * *
                  * The list of matching managed folders
                  * 
            @@ -710,6 +776,8 @@ public Builder addManagedFolders( return this; } /** + * + * *
                  * The list of matching managed folders
                  * 
            @@ -728,6 +796,8 @@ public Builder addManagedFolders( return this; } /** + * + * *
                  * The list of matching managed folders
                  * 
            @@ -738,8 +808,7 @@ public Builder addAllManagedFolders( java.lang.Iterable values) { if (managedFoldersBuilder_ == null) { ensureManagedFoldersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, managedFolders_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, managedFolders_); onChanged(); } else { managedFoldersBuilder_.addAllMessages(values); @@ -747,6 +816,8 @@ public Builder addAllManagedFolders( return this; } /** + * + * *
                  * The list of matching managed folders
                  * 
            @@ -764,6 +835,8 @@ public Builder clearManagedFolders() { return this; } /** + * + * *
                  * The list of matching managed folders
                  * 
            @@ -781,17 +854,20 @@ public Builder removeManagedFolders(int index) { return this; } /** + * + * *
                  * The list of matching managed folders
                  * 
            * * repeated .google.storage.control.v2.ManagedFolder managed_folders = 1; */ - public com.google.storage.control.v2.ManagedFolder.Builder getManagedFoldersBuilder( - int index) { + public com.google.storage.control.v2.ManagedFolder.Builder getManagedFoldersBuilder(int index) { return getManagedFoldersFieldBuilder().getBuilder(index); } /** + * + * *
                  * The list of matching managed folders
                  * 
            @@ -801,19 +877,22 @@ public com.google.storage.control.v2.ManagedFolder.Builder getManagedFoldersBuil public com.google.storage.control.v2.ManagedFolderOrBuilder getManagedFoldersOrBuilder( int index) { if (managedFoldersBuilder_ == null) { - return managedFolders_.get(index); } else { + return managedFolders_.get(index); + } else { return managedFoldersBuilder_.getMessageOrBuilder(index); } } /** + * + * *
                  * The list of matching managed folders
                  * 
            * * repeated .google.storage.control.v2.ManagedFolder managed_folders = 1; */ - public java.util.List - getManagedFoldersOrBuilderList() { + public java.util.List + getManagedFoldersOrBuilderList() { if (managedFoldersBuilder_ != null) { return managedFoldersBuilder_.getMessageOrBuilderList(); } else { @@ -821,6 +900,8 @@ public com.google.storage.control.v2.ManagedFolderOrBuilder getManagedFoldersOrB } } /** + * + * *
                  * The list of matching managed folders
                  * 
            @@ -828,38 +909,47 @@ public com.google.storage.control.v2.ManagedFolderOrBuilder getManagedFoldersOrB * repeated .google.storage.control.v2.ManagedFolder managed_folders = 1; */ public com.google.storage.control.v2.ManagedFolder.Builder addManagedFoldersBuilder() { - return getManagedFoldersFieldBuilder().addBuilder( - com.google.storage.control.v2.ManagedFolder.getDefaultInstance()); + return getManagedFoldersFieldBuilder() + .addBuilder(com.google.storage.control.v2.ManagedFolder.getDefaultInstance()); } /** + * + * *
                  * The list of matching managed folders
                  * 
            * * repeated .google.storage.control.v2.ManagedFolder managed_folders = 1; */ - public com.google.storage.control.v2.ManagedFolder.Builder addManagedFoldersBuilder( - int index) { - return getManagedFoldersFieldBuilder().addBuilder( - index, com.google.storage.control.v2.ManagedFolder.getDefaultInstance()); + public com.google.storage.control.v2.ManagedFolder.Builder addManagedFoldersBuilder(int index) { + return getManagedFoldersFieldBuilder() + .addBuilder(index, com.google.storage.control.v2.ManagedFolder.getDefaultInstance()); } /** + * + * *
                  * The list of matching managed folders
                  * 
            * * repeated .google.storage.control.v2.ManagedFolder managed_folders = 1; */ - public java.util.List - getManagedFoldersBuilderList() { + public java.util.List + getManagedFoldersBuilderList() { return getManagedFoldersFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.control.v2.ManagedFolder, com.google.storage.control.v2.ManagedFolder.Builder, com.google.storage.control.v2.ManagedFolderOrBuilder> + com.google.storage.control.v2.ManagedFolder, + com.google.storage.control.v2.ManagedFolder.Builder, + com.google.storage.control.v2.ManagedFolderOrBuilder> getManagedFoldersFieldBuilder() { if (managedFoldersBuilder_ == null) { - managedFoldersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.control.v2.ManagedFolder, com.google.storage.control.v2.ManagedFolder.Builder, com.google.storage.control.v2.ManagedFolderOrBuilder>( + managedFoldersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.storage.control.v2.ManagedFolder, + com.google.storage.control.v2.ManagedFolder.Builder, + com.google.storage.control.v2.ManagedFolderOrBuilder>( managedFolders_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -871,19 +961,21 @@ public com.google.storage.control.v2.ManagedFolder.Builder addManagedFoldersBuil 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; @@ -892,21 +984,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 { @@ -914,30 +1007,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() { @@ -947,27 +1047,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); } @@ -977,12 +1081,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.storage.control.v2.ListManagedFoldersResponse) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.ListManagedFoldersResponse) private static final com.google.storage.control.v2.ListManagedFoldersResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.storage.control.v2.ListManagedFoldersResponse(); } @@ -991,27 +1095,27 @@ public static com.google.storage.control.v2.ListManagedFoldersResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListManagedFoldersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListManagedFoldersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1026,6 +1130,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.storage.control.v2.ListManagedFoldersResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersResponseOrBuilder.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersResponseOrBuilder.java similarity index 68% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersResponseOrBuilder.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersResponseOrBuilder.java index af217d77c8..322c36b639 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersResponseOrBuilder.java +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ListManagedFoldersResponseOrBuilder.java @@ -1,23 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto // Protobuf Java Version: 3.25.3 package com.google.storage.control.v2; -public interface ListManagedFoldersResponseOrBuilder extends +public interface ListManagedFoldersResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.ListManagedFoldersResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
                * The list of matching managed folders
                * 
            * * repeated .google.storage.control.v2.ManagedFolder managed_folders = 1; */ - java.util.List - getManagedFoldersList(); + java.util.List getManagedFoldersList(); /** + * + * *
                * The list of matching managed folders
                * 
            @@ -26,6 +45,8 @@ public interface ListManagedFoldersResponseOrBuilder extends */ com.google.storage.control.v2.ManagedFolder getManagedFolders(int index); /** + * + * *
                * The list of matching managed folders
                * 
            @@ -34,43 +55,51 @@ public interface ListManagedFoldersResponseOrBuilder extends */ int getManagedFoldersCount(); /** + * + * *
                * The list of matching managed folders
                * 
            * * repeated .google.storage.control.v2.ManagedFolder managed_folders = 1; */ - java.util.List + java.util.List getManagedFoldersOrBuilderList(); /** + * + * *
                * The list of matching managed folders
                * 
            * * repeated .google.storage.control.v2.ManagedFolder managed_folders = 1; */ - com.google.storage.control.v2.ManagedFolderOrBuilder getManagedFoldersOrBuilder( - int index); + com.google.storage.control.v2.ManagedFolderOrBuilder getManagedFoldersOrBuilder(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-control-v2/src/main/java/com/google/storage/control/v2/ManagedFolder.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ManagedFolder.java similarity index 66% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ManagedFolder.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ManagedFolder.java index f10c49aa53..86435b6650 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ManagedFolder.java +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ManagedFolder.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto @@ -5,50 +20,57 @@ package com.google.storage.control.v2; /** + * + * *
              * A managed folder.
              * 
            * * Protobuf type {@code google.storage.control.v2.ManagedFolder} */ -public final class ManagedFolder extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ManagedFolder extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.ManagedFolder) ManagedFolderOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ManagedFolder.newBuilder() to construct. private ManagedFolder(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ManagedFolder() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ManagedFolder(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ManagedFolder_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_ManagedFolder_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ManagedFolder_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_ManagedFolder_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.ManagedFolder.class, com.google.storage.control.v2.ManagedFolder.Builder.class); + com.google.storage.control.v2.ManagedFolder.class, + com.google.storage.control.v2.ManagedFolder.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
                * Identifier. The name of this managed folder.
                * Format:
            @@ -56,6 +78,7 @@ protected java.lang.Object newInstance(
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @return The name. */ @java.lang.Override @@ -64,14 +87,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; } } /** + * + * *
                * Identifier. The name of this managed folder.
                * Format:
            @@ -79,16 +103,15 @@ public java.lang.String getName() {
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -99,6 +122,8 @@ public java.lang.String getName() { public static final int METAGENERATION_FIELD_NUMBER = 3; private long metageneration_ = 0L; /** + * + * *
                * Output only. The metadata version of this managed folder. It increases
                * whenever the metadata is updated. Used for preconditions and for detecting
            @@ -106,6 +131,7 @@ public java.lang.String getName() {
                * 
            * * int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The metageneration. */ @java.lang.Override @@ -116,11 +142,15 @@ public long getMetageneration() { public static final int CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createTime_; /** + * + * *
                * Output only. The creation time of the managed folder.
                * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -128,11 +158,15 @@ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * Output only. The creation time of the managed folder.
                * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -140,11 +174,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
                * Output only. The creation time of the managed folder.
                * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -154,11 +191,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
                * Output only. The modification time of the managed folder.
                * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -166,11 +207,15 @@ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
                * Output only. The modification time of the managed folder.
                * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -178,11 +223,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
                * Output only. The modification time of the managed folder.
                * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -190,6 +238,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,8 +250,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_); } @@ -228,16 +276,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (metageneration_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, metageneration_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, metageneration_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -247,26 +292,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.control.v2.ManagedFolder)) { return super.equals(obj); } - com.google.storage.control.v2.ManagedFolder other = (com.google.storage.control.v2.ManagedFolder) obj; + com.google.storage.control.v2.ManagedFolder other = + (com.google.storage.control.v2.ManagedFolder) obj; - if (!getName() - .equals(other.getName())) return false; - if (getMetageneration() - != other.getMetageneration()) return false; + if (!getName().equals(other.getName())) return false; + if (getMetageneration() != other.getMetageneration()) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -282,8 +324,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + METAGENERATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMetageneration()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMetageneration()); if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); @@ -297,120 +338,127 @@ public int hashCode() { return hash; } - public static com.google.storage.control.v2.ManagedFolder parseFrom( - java.nio.ByteBuffer data) + public static com.google.storage.control.v2.ManagedFolder parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.ManagedFolder parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.ManagedFolder parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.ManagedFolder parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.ManagedFolder parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.ManagedFolder parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.ManagedFolder parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.ManagedFolder parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.ManagedFolder parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.ManagedFolder parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.ManagedFolder parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.storage.control.v2.ManagedFolder parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.ManagedFolder parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.storage.control.v2.ManagedFolder prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 managed folder.
                * 
            * * Protobuf type {@code google.storage.control.v2.ManagedFolder} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.storage.control.v2.ManagedFolder) com.google.storage.control.v2.ManagedFolderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ManagedFolder_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_ManagedFolder_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ManagedFolder_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_ManagedFolder_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.ManagedFolder.class, com.google.storage.control.v2.ManagedFolder.Builder.class); + com.google.storage.control.v2.ManagedFolder.class, + com.google.storage.control.v2.ManagedFolder.Builder.class); } // Construct using com.google.storage.control.v2.ManagedFolder.newBuilder() @@ -418,18 +466,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) { getCreateTimeFieldBuilder(); getUpdateTimeFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -450,9 +498,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_ManagedFolder_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_ManagedFolder_descriptor; } @java.lang.Override @@ -471,8 +519,11 @@ public com.google.storage.control.v2.ManagedFolder build() { @java.lang.Override public com.google.storage.control.v2.ManagedFolder buildPartial() { - com.google.storage.control.v2.ManagedFolder result = new com.google.storage.control.v2.ManagedFolder(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.storage.control.v2.ManagedFolder result = + new com.google.storage.control.v2.ManagedFolder(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -487,15 +538,11 @@ private void buildPartial0(com.google.storage.control.v2.ManagedFolder result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -505,38 +552,39 @@ private void buildPartial0(com.google.storage.control.v2.ManagedFolder result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.control.v2.ManagedFolder) { - return mergeFrom((com.google.storage.control.v2.ManagedFolder)other); + return mergeFrom((com.google.storage.control.v2.ManagedFolder) other); } else { super.mergeFrom(other); return this; @@ -585,36 +633,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 24: { - metageneration_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 24 - case 34: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 24: + { + metageneration_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 34: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -624,10 +673,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
                  * Identifier. The name of this managed folder.
                  * Format:
            @@ -635,13 +687,13 @@ public Builder mergeFrom(
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -650,6 +702,8 @@ public java.lang.String getName() { } } /** + * + * *
                  * Identifier. The name of this managed folder.
                  * Format:
            @@ -657,15 +711,14 @@ public java.lang.String getName() {
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -673,6 +726,8 @@ public java.lang.String getName() { } } /** + * + * *
                  * Identifier. The name of this managed folder.
                  * Format:
            @@ -680,18 +735,22 @@ public java.lang.String getName() {
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
                  * Identifier. The name of this managed folder.
                  * Format:
            @@ -699,6 +758,7 @@ public Builder setName(
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -708,6 +768,8 @@ public Builder clearName() { return this; } /** + * + * *
                  * Identifier. The name of this managed folder.
                  * Format:
            @@ -715,12 +777,14 @@ public Builder clearName() {
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -728,8 +792,10 @@ public Builder setNameBytes( return this; } - private long metageneration_ ; + private long metageneration_; /** + * + * *
                  * Output only. The metadata version of this managed folder. It increases
                  * whenever the metadata is updated. Used for preconditions and for detecting
            @@ -737,6 +803,7 @@ public Builder setNameBytes(
                  * 
            * * int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The metageneration. */ @java.lang.Override @@ -744,6 +811,8 @@ public long getMetageneration() { return metageneration_; } /** + * + * *
                  * Output only. The metadata version of this managed folder. It increases
                  * whenever the metadata is updated. Used for preconditions and for detecting
            @@ -751,6 +820,7 @@ public long getMetageneration() {
                  * 
            * * int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The metageneration to set. * @return This builder for chaining. */ @@ -762,6 +832,8 @@ public Builder setMetageneration(long value) { return this; } /** + * + * *
                  * Output only. The metadata version of this managed folder. It increases
                  * whenever the metadata is updated. Used for preconditions and for detecting
            @@ -769,6 +841,7 @@ public Builder setMetageneration(long value) {
                  * 
            * * int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearMetageneration() { @@ -780,39 +853,58 @@ public Builder clearMetageneration() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
                  * Output only. The creation time of the managed folder.
                  * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
                  * Output only. The creation time of the managed folder.
                  * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
                  * Output only. The creation time of the managed folder.
                  * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -828,14 +920,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                  * Output only. The creation time of the managed folder.
                  * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -846,17 +941,21 @@ public Builder setCreateTime( return this; } /** + * + * *
                  * Output only. The creation time of the managed folder.
                  * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -871,11 +970,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                  * Output only. The creation time of the managed folder.
                  * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -888,11 +991,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
                  * Output only. The creation time of the managed folder.
                  * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000004; @@ -900,36 +1007,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
                  * Output only. The creation time of the managed folder.
                  * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
                  * Output only. The creation time of the managed folder.
                  * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -937,39 +1056,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 modification time of the managed folder.
                  * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
                  * Output only. The modification time of the managed folder.
                  * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
                  * Output only. The modification time of the managed folder.
                  * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -985,14 +1123,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                  * Output only. The modification time of the managed folder.
                  * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1003,17 +1144,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
                  * Output only. The modification time of the managed folder.
                  * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1028,11 +1173,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                  * Output only. The modification time of the managed folder.
                  * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1045,11 +1194,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
                  * Output only. The modification time of the managed folder.
                  * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000008; @@ -1057,43 +1210,55 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
                  * Output only. The modification time of the managed folder.
                  * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
                  * Output only. The modification time of the managed folder.
                  * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1103,12 +1268,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.storage.control.v2.ManagedFolder) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.ManagedFolder) private static final com.google.storage.control.v2.ManagedFolder DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.storage.control.v2.ManagedFolder(); } @@ -1117,27 +1282,27 @@ public static com.google.storage.control.v2.ManagedFolder getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ManagedFolder parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ManagedFolder parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1152,6 +1317,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.ManagedFolder getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ManagedFolderName.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ManagedFolderName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ManagedFolderName.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ManagedFolderName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ManagedFolderOrBuilder.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ManagedFolderOrBuilder.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ManagedFolderOrBuilder.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ManagedFolderOrBuilder.java index 77bdc07fd9..e5d481ae8f 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ManagedFolderOrBuilder.java +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/ManagedFolderOrBuilder.java @@ -1,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto // Protobuf Java Version: 3.25.3 package com.google.storage.control.v2; -public interface ManagedFolderOrBuilder extends +public interface ManagedFolderOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.ManagedFolder) com.google.protobuf.MessageOrBuilder { /** + * + * *
                * Identifier. The name of this managed folder.
                * Format:
            @@ -16,10 +34,13 @@ public interface ManagedFolderOrBuilder extends
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
                * Identifier. The name of this managed folder.
                * Format:
            @@ -27,12 +48,14 @@ public interface ManagedFolderOrBuilder extends
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
                * Output only. The metadata version of this managed folder. It increases
                * whenever the metadata is updated. Used for preconditions and for detecting
            @@ -40,61 +63,84 @@ public interface ManagedFolderOrBuilder extends
                * 
            * * int64 metageneration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The metageneration. */ long getMetageneration(); /** + * + * *
                * Output only. The creation time of the managed folder.
                * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
                * Output only. The creation time of the managed folder.
                * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
                * Output only. The creation time of the managed folder.
                * 
            * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
                * Output only. The modification time of the managed folder.
                * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
                * Output only. The modification time of the managed folder.
                * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
                * Output only. The modification time of the managed folder.
                * 
            * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/PendingRenameInfo.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/PendingRenameInfo.java similarity index 66% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/PendingRenameInfo.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/PendingRenameInfo.java index 5e9d6f4289..059f96157b 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/PendingRenameInfo.java +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/PendingRenameInfo.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto @@ -5,54 +20,62 @@ package com.google.storage.control.v2; /** + * + * *
              * Contains information about a pending rename operation.
              * 
            * * Protobuf type {@code google.storage.control.v2.PendingRenameInfo} */ -public final class PendingRenameInfo extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PendingRenameInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.PendingRenameInfo) PendingRenameInfoOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PendingRenameInfo.newBuilder() to construct. private PendingRenameInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PendingRenameInfo() { operation_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PendingRenameInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_PendingRenameInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_PendingRenameInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_PendingRenameInfo_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_PendingRenameInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.PendingRenameInfo.class, com.google.storage.control.v2.PendingRenameInfo.Builder.class); + com.google.storage.control.v2.PendingRenameInfo.class, + com.google.storage.control.v2.PendingRenameInfo.Builder.class); } public static final int OPERATION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object operation_ = ""; /** + * + * *
                * Output only. The name of the rename operation.
                * 
            * * string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The operation. */ @java.lang.Override @@ -61,29 +84,29 @@ public java.lang.String getOperation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operation_ = s; return s; } } /** + * + * *
                * Output only. The name of the rename operation.
                * 
            * * string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for operation. */ @java.lang.Override - public com.google.protobuf.ByteString - getOperationBytes() { + public com.google.protobuf.ByteString getOperationBytes() { java.lang.Object ref = operation_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); operation_ = b; return b; } else { @@ -92,6 +115,7 @@ public java.lang.String getOperation() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -103,8 +127,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, operation_); } @@ -128,15 +151,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.control.v2.PendingRenameInfo)) { return super.equals(obj); } - com.google.storage.control.v2.PendingRenameInfo other = (com.google.storage.control.v2.PendingRenameInfo) obj; + com.google.storage.control.v2.PendingRenameInfo other = + (com.google.storage.control.v2.PendingRenameInfo) obj; - if (!getOperation() - .equals(other.getOperation())) return false; + if (!getOperation().equals(other.getOperation())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -155,132 +178,136 @@ public int hashCode() { return hash; } - public static com.google.storage.control.v2.PendingRenameInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.storage.control.v2.PendingRenameInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.PendingRenameInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.PendingRenameInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.PendingRenameInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.PendingRenameInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.PendingRenameInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.PendingRenameInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.PendingRenameInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.PendingRenameInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.PendingRenameInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.PendingRenameInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.storage.control.v2.PendingRenameInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.PendingRenameInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.storage.control.v2.PendingRenameInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                * Contains information about a pending rename operation.
                * 
            * * Protobuf type {@code google.storage.control.v2.PendingRenameInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.storage.control.v2.PendingRenameInfo) com.google.storage.control.v2.PendingRenameInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_PendingRenameInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_PendingRenameInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_PendingRenameInfo_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_PendingRenameInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.PendingRenameInfo.class, com.google.storage.control.v2.PendingRenameInfo.Builder.class); + com.google.storage.control.v2.PendingRenameInfo.class, + com.google.storage.control.v2.PendingRenameInfo.Builder.class); } // Construct using com.google.storage.control.v2.PendingRenameInfo.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -290,9 +317,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_PendingRenameInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_PendingRenameInfo_descriptor; } @java.lang.Override @@ -311,8 +338,11 @@ public com.google.storage.control.v2.PendingRenameInfo build() { @java.lang.Override public com.google.storage.control.v2.PendingRenameInfo buildPartial() { - com.google.storage.control.v2.PendingRenameInfo result = new com.google.storage.control.v2.PendingRenameInfo(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.storage.control.v2.PendingRenameInfo result = + new com.google.storage.control.v2.PendingRenameInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -328,38 +358,39 @@ private void buildPartial0(com.google.storage.control.v2.PendingRenameInfo resul public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.control.v2.PendingRenameInfo) { - return mergeFrom((com.google.storage.control.v2.PendingRenameInfo)other); + return mergeFrom((com.google.storage.control.v2.PendingRenameInfo) other); } else { super.mergeFrom(other); return this; @@ -367,7 +398,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.control.v2.PendingRenameInfo other) { - if (other == com.google.storage.control.v2.PendingRenameInfo.getDefaultInstance()) return this; + if (other == com.google.storage.control.v2.PendingRenameInfo.getDefaultInstance()) + return this; if (!other.getOperation().isEmpty()) { operation_ = other.operation_; bitField0_ |= 0x00000001; @@ -399,17 +431,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - operation_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + operation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -419,22 +453,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object operation_ = ""; /** + * + * *
                  * Output only. The name of the rename operation.
                  * 
            * * string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The operation. */ public java.lang.String getOperation() { java.lang.Object ref = operation_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); operation_ = s; return s; @@ -443,20 +480,21 @@ public java.lang.String getOperation() { } } /** + * + * *
                  * Output only. The name of the rename operation.
                  * 
            * * string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for operation. */ - public com.google.protobuf.ByteString - getOperationBytes() { + public com.google.protobuf.ByteString getOperationBytes() { java.lang.Object ref = operation_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); operation_ = b; return b; } else { @@ -464,28 +502,35 @@ public java.lang.String getOperation() { } } /** + * + * *
                  * Output only. The name of the rename operation.
                  * 
            * * string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The operation to set. * @return This builder for chaining. */ - public Builder setOperation( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOperation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } operation_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
                  * Output only. The name of the rename operation.
                  * 
            * * string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearOperation() { @@ -495,26 +540,30 @@ public Builder clearOperation() { return this; } /** + * + * *
                  * Output only. The name of the rename operation.
                  * 
            * * string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for operation to set. * @return This builder for chaining. */ - public Builder setOperationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOperationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); operation_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -524,12 +573,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.storage.control.v2.PendingRenameInfo) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.PendingRenameInfo) private static final com.google.storage.control.v2.PendingRenameInfo DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.storage.control.v2.PendingRenameInfo(); } @@ -538,27 +587,27 @@ public static com.google.storage.control.v2.PendingRenameInfo getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PendingRenameInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PendingRenameInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -573,6 +622,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.PendingRenameInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/PendingRenameInfoOrBuilder.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/PendingRenameInfoOrBuilder.java similarity index 51% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/PendingRenameInfoOrBuilder.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/PendingRenameInfoOrBuilder.java index 776746d1a3..5331177419 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/PendingRenameInfoOrBuilder.java +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/PendingRenameInfoOrBuilder.java @@ -1,30 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto // Protobuf Java Version: 3.25.3 package com.google.storage.control.v2; -public interface PendingRenameInfoOrBuilder extends +public interface PendingRenameInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.PendingRenameInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
                * Output only. The name of the rename operation.
                * 
            * * string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The operation. */ java.lang.String getOperation(); /** + * + * *
                * Output only. The name of the rename operation.
                * 
            * * string operation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for operation. */ - com.google.protobuf.ByteString - getOperationBytes(); + com.google.protobuf.ByteString getOperationBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderMetadata.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderMetadata.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderMetadata.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderMetadata.java index e19ea9edcb..f6cddfa643 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderMetadata.java +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderMetadata.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto @@ -5,6 +20,8 @@ package com.google.storage.control.v2; /** + * + * *
              * Message returned in the metadata field of the Operation resource for
              * RenameFolder operations.
            @@ -12,15 +29,16 @@
              *
              * Protobuf type {@code google.storage.control.v2.RenameFolderMetadata}
              */
            -public final class RenameFolderMetadata extends
            -    com.google.protobuf.GeneratedMessageV3 implements
            +public final class RenameFolderMetadata extends com.google.protobuf.GeneratedMessageV3
            +    implements
                 // @@protoc_insertion_point(message_implements:google.storage.control.v2.RenameFolderMetadata)
                 RenameFolderMetadataOrBuilder {
            -private static final long serialVersionUID = 0L;
            +  private static final long serialVersionUID = 0L;
               // Use RenameFolderMetadata.newBuilder() to construct.
               private RenameFolderMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                 super(builder);
               }
            +
               private RenameFolderMetadata() {
                 sourceFolderId_ = "";
                 destinationFolderId_ = "";
            @@ -28,33 +46,37 @@ private RenameFolderMetadata() {
             
               @java.lang.Override
               @SuppressWarnings({"unused"})
            -  protected java.lang.Object newInstance(
            -      UnusedPrivateParameter unused) {
            +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                 return new RenameFolderMetadata();
               }
             
            -  public static final com.google.protobuf.Descriptors.Descriptor
            -      getDescriptor() {
            -    return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_RenameFolderMetadata_descriptor;
            +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            +    return com.google.storage.control.v2.StorageControlProto
            +        .internal_static_google_storage_control_v2_RenameFolderMetadata_descriptor;
               }
             
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
            -    return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_RenameFolderMetadata_fieldAccessorTable
            +    return com.google.storage.control.v2.StorageControlProto
            +        .internal_static_google_storage_control_v2_RenameFolderMetadata_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
            -            com.google.storage.control.v2.RenameFolderMetadata.class, com.google.storage.control.v2.RenameFolderMetadata.Builder.class);
            +            com.google.storage.control.v2.RenameFolderMetadata.class,
            +            com.google.storage.control.v2.RenameFolderMetadata.Builder.class);
               }
             
               private int bitField0_;
               public static final int COMMON_METADATA_FIELD_NUMBER = 1;
               private com.google.storage.control.v2.CommonLongRunningOperationMetadata commonMetadata_;
               /**
            +   *
            +   *
                * 
                * Generic metadata for the long running operation.
                * 
            * * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + * * @return Whether the commonMetadata field is set. */ @java.lang.Override @@ -62,18 +84,25 @@ public boolean hasCommonMetadata() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * Generic metadata for the long running operation.
                * 
            * * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + * * @return The commonMetadata. */ @java.lang.Override public com.google.storage.control.v2.CommonLongRunningOperationMetadata getCommonMetadata() { - return commonMetadata_ == null ? com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance() : commonMetadata_; + return commonMetadata_ == null + ? com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance() + : commonMetadata_; } /** + * + * *
                * Generic metadata for the long running operation.
                * 
            @@ -81,19 +110,26 @@ public com.google.storage.control.v2.CommonLongRunningOperationMetadata getCommo * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; */ @java.lang.Override - public com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder getCommonMetadataOrBuilder() { - return commonMetadata_ == null ? com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance() : commonMetadata_; + public com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder + getCommonMetadataOrBuilder() { + return commonMetadata_ == null + ? com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance() + : commonMetadata_; } public static final int SOURCE_FOLDER_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object sourceFolderId_ = ""; /** + * + * *
                * The path of the source folder.
                * 
            * * string source_folder_id = 2; + * * @return The sourceFolderId. */ @java.lang.Override @@ -102,29 +138,29 @@ public java.lang.String getSourceFolderId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceFolderId_ = s; return s; } } /** + * + * *
                * The path of the source folder.
                * 
            * * string source_folder_id = 2; + * * @return The bytes for sourceFolderId. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceFolderIdBytes() { + public com.google.protobuf.ByteString getSourceFolderIdBytes() { java.lang.Object ref = sourceFolderId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceFolderId_ = b; return b; } else { @@ -133,14 +169,18 @@ public java.lang.String getSourceFolderId() { } public static final int DESTINATION_FOLDER_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object destinationFolderId_ = ""; /** + * + * *
                * The path of the destination folder.
                * 
            * * string destination_folder_id = 3; + * * @return The destinationFolderId. */ @java.lang.Override @@ -149,29 +189,29 @@ public java.lang.String getDestinationFolderId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationFolderId_ = s; return s; } } /** + * + * *
                * The path of the destination folder.
                * 
            * * string destination_folder_id = 3; + * * @return The bytes for destinationFolderId. */ @java.lang.Override - public com.google.protobuf.ByteString - getDestinationFolderIdBytes() { + public com.google.protobuf.ByteString getDestinationFolderIdBytes() { java.lang.Object ref = destinationFolderId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); destinationFolderId_ = b; return b; } else { @@ -180,6 +220,7 @@ public java.lang.String getDestinationFolderId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,8 +232,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.writeMessage(1, getCommonMetadata()); } @@ -212,8 +252,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCommonMetadata()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommonMetadata()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceFolderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceFolderId_); @@ -229,22 +268,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.control.v2.RenameFolderMetadata)) { return super.equals(obj); } - com.google.storage.control.v2.RenameFolderMetadata other = (com.google.storage.control.v2.RenameFolderMetadata) obj; + com.google.storage.control.v2.RenameFolderMetadata other = + (com.google.storage.control.v2.RenameFolderMetadata) obj; if (hasCommonMetadata() != other.hasCommonMetadata()) return false; if (hasCommonMetadata()) { - if (!getCommonMetadata() - .equals(other.getCommonMetadata())) return false; + if (!getCommonMetadata().equals(other.getCommonMetadata())) return false; } - if (!getSourceFolderId() - .equals(other.getSourceFolderId())) return false; - if (!getDestinationFolderId() - .equals(other.getDestinationFolderId())) return false; + if (!getSourceFolderId().equals(other.getSourceFolderId())) return false; + if (!getDestinationFolderId().equals(other.getDestinationFolderId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -270,98 +307,103 @@ public int hashCode() { } public static com.google.storage.control.v2.RenameFolderMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.RenameFolderMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.RenameFolderMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.RenameFolderMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.RenameFolderMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.RenameFolderMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.RenameFolderMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.storage.control.v2.RenameFolderMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.RenameFolderMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.RenameFolderMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.RenameFolderMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.RenameFolderMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.storage.control.v2.RenameFolderMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.RenameFolderMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.storage.control.v2.RenameFolderMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                * Message returned in the metadata field of the Operation resource for
                * RenameFolder operations.
            @@ -369,21 +411,23 @@ protected Builder newBuilderForType(
                *
                * Protobuf type {@code google.storage.control.v2.RenameFolderMetadata}
                */
            -  public static final class Builder extends
            -      com.google.protobuf.GeneratedMessageV3.Builder implements
            +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
            +      implements
                   // @@protoc_insertion_point(builder_implements:google.storage.control.v2.RenameFolderMetadata)
                   com.google.storage.control.v2.RenameFolderMetadataOrBuilder {
            -    public static final com.google.protobuf.Descriptors.Descriptor
            -        getDescriptor() {
            -      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_RenameFolderMetadata_descriptor;
            +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            +      return com.google.storage.control.v2.StorageControlProto
            +          .internal_static_google_storage_control_v2_RenameFolderMetadata_descriptor;
                 }
             
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
            -      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_RenameFolderMetadata_fieldAccessorTable
            +      return com.google.storage.control.v2.StorageControlProto
            +          .internal_static_google_storage_control_v2_RenameFolderMetadata_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
            -              com.google.storage.control.v2.RenameFolderMetadata.class, com.google.storage.control.v2.RenameFolderMetadata.Builder.class);
            +              com.google.storage.control.v2.RenameFolderMetadata.class,
            +              com.google.storage.control.v2.RenameFolderMetadata.Builder.class);
                 }
             
                 // Construct using com.google.storage.control.v2.RenameFolderMetadata.newBuilder()
            @@ -391,17 +435,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) {
                     getCommonMetadataFieldBuilder();
                   }
                 }
            +
                 @java.lang.Override
                 public Builder clear() {
                   super.clear();
            @@ -417,9 +461,9 @@ public Builder clear() {
                 }
             
                 @java.lang.Override
            -    public com.google.protobuf.Descriptors.Descriptor
            -        getDescriptorForType() {
            -      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_RenameFolderMetadata_descriptor;
            +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            +      return com.google.storage.control.v2.StorageControlProto
            +          .internal_static_google_storage_control_v2_RenameFolderMetadata_descriptor;
                 }
             
                 @java.lang.Override
            @@ -438,8 +482,11 @@ public com.google.storage.control.v2.RenameFolderMetadata build() {
             
                 @java.lang.Override
                 public com.google.storage.control.v2.RenameFolderMetadata buildPartial() {
            -      com.google.storage.control.v2.RenameFolderMetadata result = new com.google.storage.control.v2.RenameFolderMetadata(this);
            -      if (bitField0_ != 0) { buildPartial0(result); }
            +      com.google.storage.control.v2.RenameFolderMetadata result =
            +          new com.google.storage.control.v2.RenameFolderMetadata(this);
            +      if (bitField0_ != 0) {
            +        buildPartial0(result);
            +      }
                   onBuilt();
                   return result;
                 }
            @@ -448,9 +495,8 @@ private void buildPartial0(com.google.storage.control.v2.RenameFolderMetadata re
                   int from_bitField0_ = bitField0_;
                   int to_bitField0_ = 0;
                   if (((from_bitField0_ & 0x00000001) != 0)) {
            -        result.commonMetadata_ = commonMetadataBuilder_ == null
            -            ? commonMetadata_
            -            : commonMetadataBuilder_.build();
            +        result.commonMetadata_ =
            +            commonMetadataBuilder_ == null ? commonMetadata_ : commonMetadataBuilder_.build();
                     to_bitField0_ |= 0x00000001;
                   }
                   if (((from_bitField0_ & 0x00000002) != 0)) {
            @@ -466,38 +512,39 @@ private void buildPartial0(com.google.storage.control.v2.RenameFolderMetadata 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.control.v2.RenameFolderMetadata) {
            -        return mergeFrom((com.google.storage.control.v2.RenameFolderMetadata)other);
            +        return mergeFrom((com.google.storage.control.v2.RenameFolderMetadata) other);
                   } else {
                     super.mergeFrom(other);
                     return this;
            @@ -505,7 +552,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
                 }
             
                 public Builder mergeFrom(com.google.storage.control.v2.RenameFolderMetadata other) {
            -      if (other == com.google.storage.control.v2.RenameFolderMetadata.getDefaultInstance()) return this;
            +      if (other == com.google.storage.control.v2.RenameFolderMetadata.getDefaultInstance())
            +        return this;
                   if (other.hasCommonMetadata()) {
                     mergeCommonMetadata(other.getCommonMetadata());
                   }
            @@ -545,29 +593,31 @@ public Builder mergeFrom(
                         case 0:
                           done = true;
                           break;
            -            case 10: {
            -              input.readMessage(
            -                  getCommonMetadataFieldBuilder().getBuilder(),
            -                  extensionRegistry);
            -              bitField0_ |= 0x00000001;
            -              break;
            -            } // case 10
            -            case 18: {
            -              sourceFolderId_ = input.readStringRequireUtf8();
            -              bitField0_ |= 0x00000002;
            -              break;
            -            } // case 18
            -            case 26: {
            -              destinationFolderId_ = input.readStringRequireUtf8();
            -              bitField0_ |= 0x00000004;
            -              break;
            -            } // case 26
            -            default: {
            -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            -                done = true; // was an endgroup tag
            -              }
            -              break;
            -            } // default:
            +            case 10:
            +              {
            +                input.readMessage(getCommonMetadataFieldBuilder().getBuilder(), extensionRegistry);
            +                bitField0_ |= 0x00000001;
            +                break;
            +              } // case 10
            +            case 18:
            +              {
            +                sourceFolderId_ = input.readStringRequireUtf8();
            +                bitField0_ |= 0x00000002;
            +                break;
            +              } // case 18
            +            case 26:
            +              {
            +                destinationFolderId_ = input.readStringRequireUtf8();
            +                bitField0_ |= 0x00000004;
            +                break;
            +              } // case 26
            +            default:
            +              {
            +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            +                  done = true; // was an endgroup tag
            +                }
            +                break;
            +              } // default:
                       } // switch (tag)
                     } // while (!done)
                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            @@ -577,45 +627,63 @@ public Builder mergeFrom(
                   } // finally
                   return this;
                 }
            +
                 private int bitField0_;
             
                 private com.google.storage.control.v2.CommonLongRunningOperationMetadata commonMetadata_;
                 private com.google.protobuf.SingleFieldBuilderV3<
            -        com.google.storage.control.v2.CommonLongRunningOperationMetadata, com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder, com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder> commonMetadataBuilder_;
            +            com.google.storage.control.v2.CommonLongRunningOperationMetadata,
            +            com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder,
            +            com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder>
            +        commonMetadataBuilder_;
                 /**
            +     *
            +     *
                  * 
                  * Generic metadata for the long running operation.
                  * 
            * - * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + * + * * @return Whether the commonMetadata field is set. */ public boolean hasCommonMetadata() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                  * Generic metadata for the long running operation.
                  * 
            * - * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + * + * * @return The commonMetadata. */ public com.google.storage.control.v2.CommonLongRunningOperationMetadata getCommonMetadata() { if (commonMetadataBuilder_ == null) { - return commonMetadata_ == null ? com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance() : commonMetadata_; + return commonMetadata_ == null + ? com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance() + : commonMetadata_; } else { return commonMetadataBuilder_.getMessage(); } } /** + * + * *
                  * Generic metadata for the long running operation.
                  * 
            * - * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + * */ - public Builder setCommonMetadata(com.google.storage.control.v2.CommonLongRunningOperationMetadata value) { + public Builder setCommonMetadata( + com.google.storage.control.v2.CommonLongRunningOperationMetadata value) { if (commonMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -629,11 +697,14 @@ public Builder setCommonMetadata(com.google.storage.control.v2.CommonLongRunning return this; } /** + * + * *
                  * Generic metadata for the long running operation.
                  * 
            * - * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + * */ public Builder setCommonMetadata( com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder builderForValue) { @@ -647,17 +718,23 @@ public Builder setCommonMetadata( return this; } /** + * + * *
                  * Generic metadata for the long running operation.
                  * 
            * - * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + * */ - public Builder mergeCommonMetadata(com.google.storage.control.v2.CommonLongRunningOperationMetadata value) { + public Builder mergeCommonMetadata( + com.google.storage.control.v2.CommonLongRunningOperationMetadata value) { if (commonMetadataBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - commonMetadata_ != null && - commonMetadata_ != com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && commonMetadata_ != null + && commonMetadata_ + != com.google.storage.control.v2.CommonLongRunningOperationMetadata + .getDefaultInstance()) { getCommonMetadataBuilder().mergeFrom(value); } else { commonMetadata_ = value; @@ -672,11 +749,14 @@ public Builder mergeCommonMetadata(com.google.storage.control.v2.CommonLongRunni return this; } /** + * + * *
                  * Generic metadata for the long running operation.
                  * 
            * - * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + * */ public Builder clearCommonMetadata() { bitField0_ = (bitField0_ & ~0x00000001); @@ -689,48 +769,63 @@ public Builder clearCommonMetadata() { return this; } /** + * + * *
                  * Generic metadata for the long running operation.
                  * 
            * - * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + * */ - public com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder getCommonMetadataBuilder() { + public com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder + getCommonMetadataBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCommonMetadataFieldBuilder().getBuilder(); } /** + * + * *
                  * Generic metadata for the long running operation.
                  * 
            * - * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + * */ - public com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder getCommonMetadataOrBuilder() { + public com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder + getCommonMetadataOrBuilder() { if (commonMetadataBuilder_ != null) { return commonMetadataBuilder_.getMessageOrBuilder(); } else { - return commonMetadata_ == null ? - com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance() : commonMetadata_; + return commonMetadata_ == null + ? com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance() + : commonMetadata_; } } /** + * + * *
                  * Generic metadata for the long running operation.
                  * 
            * - * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.CommonLongRunningOperationMetadata, com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder, com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder> + com.google.storage.control.v2.CommonLongRunningOperationMetadata, + com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder, + com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder> getCommonMetadataFieldBuilder() { if (commonMetadataBuilder_ == null) { - commonMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.CommonLongRunningOperationMetadata, com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder, com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder>( - getCommonMetadata(), - getParentForChildren(), - isClean()); + commonMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.control.v2.CommonLongRunningOperationMetadata, + com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder, + com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder>( + getCommonMetadata(), getParentForChildren(), isClean()); commonMetadata_ = null; } return commonMetadataBuilder_; @@ -738,18 +833,20 @@ public com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder private java.lang.Object sourceFolderId_ = ""; /** + * + * *
                  * The path of the source folder.
                  * 
            * * string source_folder_id = 2; + * * @return The sourceFolderId. */ public java.lang.String getSourceFolderId() { java.lang.Object ref = sourceFolderId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceFolderId_ = s; return s; @@ -758,20 +855,21 @@ public java.lang.String getSourceFolderId() { } } /** + * + * *
                  * The path of the source folder.
                  * 
            * * string source_folder_id = 2; + * * @return The bytes for sourceFolderId. */ - public com.google.protobuf.ByteString - getSourceFolderIdBytes() { + public com.google.protobuf.ByteString getSourceFolderIdBytes() { java.lang.Object ref = sourceFolderId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceFolderId_ = b; return b; } else { @@ -779,28 +877,35 @@ public java.lang.String getSourceFolderId() { } } /** + * + * *
                  * The path of the source folder.
                  * 
            * * string source_folder_id = 2; + * * @param value The sourceFolderId to set. * @return This builder for chaining. */ - public Builder setSourceFolderId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceFolderId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceFolderId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
                  * The path of the source folder.
                  * 
            * * string source_folder_id = 2; + * * @return This builder for chaining. */ public Builder clearSourceFolderId() { @@ -810,17 +915,21 @@ public Builder clearSourceFolderId() { return this; } /** + * + * *
                  * The path of the source folder.
                  * 
            * * string source_folder_id = 2; + * * @param value The bytes for sourceFolderId to set. * @return This builder for chaining. */ - public Builder setSourceFolderIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceFolderIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceFolderId_ = value; bitField0_ |= 0x00000002; @@ -830,18 +939,20 @@ public Builder setSourceFolderIdBytes( private java.lang.Object destinationFolderId_ = ""; /** + * + * *
                  * The path of the destination folder.
                  * 
            * * string destination_folder_id = 3; + * * @return The destinationFolderId. */ public java.lang.String getDestinationFolderId() { java.lang.Object ref = destinationFolderId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationFolderId_ = s; return s; @@ -850,20 +961,21 @@ public java.lang.String getDestinationFolderId() { } } /** + * + * *
                  * The path of the destination folder.
                  * 
            * * string destination_folder_id = 3; + * * @return The bytes for destinationFolderId. */ - public com.google.protobuf.ByteString - getDestinationFolderIdBytes() { + public com.google.protobuf.ByteString getDestinationFolderIdBytes() { java.lang.Object ref = destinationFolderId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); destinationFolderId_ = b; return b; } else { @@ -871,28 +983,35 @@ public java.lang.String getDestinationFolderId() { } } /** + * + * *
                  * The path of the destination folder.
                  * 
            * * string destination_folder_id = 3; + * * @param value The destinationFolderId to set. * @return This builder for chaining. */ - public Builder setDestinationFolderId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDestinationFolderId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } destinationFolderId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
                  * The path of the destination folder.
                  * 
            * * string destination_folder_id = 3; + * * @return This builder for chaining. */ public Builder clearDestinationFolderId() { @@ -902,26 +1021,30 @@ public Builder clearDestinationFolderId() { return this; } /** + * + * *
                  * The path of the destination folder.
                  * 
            * * string destination_folder_id = 3; + * * @param value The bytes for destinationFolderId to set. * @return This builder for chaining. */ - public Builder setDestinationFolderIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDestinationFolderIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); destinationFolderId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -931,12 +1054,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.storage.control.v2.RenameFolderMetadata) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.RenameFolderMetadata) private static final com.google.storage.control.v2.RenameFolderMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.storage.control.v2.RenameFolderMetadata(); } @@ -945,27 +1068,27 @@ public static com.google.storage.control.v2.RenameFolderMetadata getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RenameFolderMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RenameFolderMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -980,6 +1103,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.RenameFolderMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderMetadataOrBuilder.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderMetadataOrBuilder.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderMetadataOrBuilder.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderMetadataOrBuilder.java index f28f41bb39..6af4130aec 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderMetadataOrBuilder.java +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderMetadataOrBuilder.java @@ -1,77 +1,112 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto // Protobuf Java Version: 3.25.3 package com.google.storage.control.v2; -public interface RenameFolderMetadataOrBuilder extends +public interface RenameFolderMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.RenameFolderMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
                * Generic metadata for the long running operation.
                * 
            * * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + * * @return Whether the commonMetadata field is set. */ boolean hasCommonMetadata(); /** + * + * *
                * Generic metadata for the long running operation.
                * 
            * * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; + * * @return The commonMetadata. */ com.google.storage.control.v2.CommonLongRunningOperationMetadata getCommonMetadata(); /** + * + * *
                * Generic metadata for the long running operation.
                * 
            * * .google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1; */ - com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder getCommonMetadataOrBuilder(); + com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder + getCommonMetadataOrBuilder(); /** + * + * *
                * The path of the source folder.
                * 
            * * string source_folder_id = 2; + * * @return The sourceFolderId. */ java.lang.String getSourceFolderId(); /** + * + * *
                * The path of the source folder.
                * 
            * * string source_folder_id = 2; + * * @return The bytes for sourceFolderId. */ - com.google.protobuf.ByteString - getSourceFolderIdBytes(); + com.google.protobuf.ByteString getSourceFolderIdBytes(); /** + * + * *
                * The path of the destination folder.
                * 
            * * string destination_folder_id = 3; + * * @return The destinationFolderId. */ java.lang.String getDestinationFolderId(); /** + * + * *
                * The path of the destination folder.
                * 
            * * string destination_folder_id = 3; + * * @return The bytes for destinationFolderId. */ - com.google.protobuf.ByteString - getDestinationFolderIdBytes(); + com.google.protobuf.ByteString getDestinationFolderIdBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderRequest.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderRequest.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderRequest.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderRequest.java index 68287b9ddb..b6bb50c359 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderRequest.java +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto @@ -5,6 +20,8 @@ package com.google.storage.control.v2; /** + * + * *
              * Request message for RenameFolder. This operation is only applicable to a
              * hierarchical namespace enabled bucket.
            @@ -12,15 +29,16 @@
              *
              * Protobuf type {@code google.storage.control.v2.RenameFolderRequest}
              */
            -public final class RenameFolderRequest extends
            -    com.google.protobuf.GeneratedMessageV3 implements
            +public final class RenameFolderRequest extends com.google.protobuf.GeneratedMessageV3
            +    implements
                 // @@protoc_insertion_point(message_implements:google.storage.control.v2.RenameFolderRequest)
                 RenameFolderRequestOrBuilder {
            -private static final long serialVersionUID = 0L;
            +  private static final long serialVersionUID = 0L;
               // Use RenameFolderRequest.newBuilder() to construct.
               private RenameFolderRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                 super(builder);
               }
            +
               private RenameFolderRequest() {
                 name_ = "";
                 destinationFolderId_ = "";
            @@ -29,35 +47,42 @@ private RenameFolderRequest() {
             
               @java.lang.Override
               @SuppressWarnings({"unused"})
            -  protected java.lang.Object newInstance(
            -      UnusedPrivateParameter unused) {
            +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                 return new RenameFolderRequest();
               }
             
            -  public static final com.google.protobuf.Descriptors.Descriptor
            -      getDescriptor() {
            -    return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_RenameFolderRequest_descriptor;
            +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            +    return com.google.storage.control.v2.StorageControlProto
            +        .internal_static_google_storage_control_v2_RenameFolderRequest_descriptor;
               }
             
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
            -    return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_RenameFolderRequest_fieldAccessorTable
            +    return com.google.storage.control.v2.StorageControlProto
            +        .internal_static_google_storage_control_v2_RenameFolderRequest_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
            -            com.google.storage.control.v2.RenameFolderRequest.class, com.google.storage.control.v2.RenameFolderRequest.Builder.class);
            +            com.google.storage.control.v2.RenameFolderRequest.class,
            +            com.google.storage.control.v2.RenameFolderRequest.Builder.class);
               }
             
               private int bitField0_;
               public static final int NAME_FIELD_NUMBER = 7;
            +
               @SuppressWarnings("serial")
               private volatile java.lang.Object name_ = "";
               /**
            +   *
            +   *
                * 
                * Required. Name of the source folder being renamed.
                * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                * 
            * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -66,30 +91,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
                * Required. Name of the source folder being renamed.
                * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                * 
            * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -98,14 +125,18 @@ public java.lang.String getName() { } public static final int DESTINATION_FOLDER_ID_FIELD_NUMBER = 8; + @SuppressWarnings("serial") private volatile java.lang.Object destinationFolderId_ = ""; /** + * + * *
                * Required. The destination folder ID, e.g. `foo/bar/`.
                * 
            * * string destination_folder_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The destinationFolderId. */ @java.lang.Override @@ -114,29 +145,29 @@ public java.lang.String getDestinationFolderId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationFolderId_ = s; return s; } } /** + * + * *
                * Required. The destination folder ID, e.g. `foo/bar/`.
                * 
            * * string destination_folder_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for destinationFolderId. */ @java.lang.Override - public com.google.protobuf.ByteString - getDestinationFolderIdBytes() { + public com.google.protobuf.ByteString getDestinationFolderIdBytes() { java.lang.Object ref = destinationFolderId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); destinationFolderId_ = b; return b; } else { @@ -147,12 +178,15 @@ public java.lang.String getDestinationFolderId() { public static final int IF_METAGENERATION_MATCH_FIELD_NUMBER = 4; private long ifMetagenerationMatch_ = 0L; /** + * + * *
                * Makes the operation only succeed conditional on whether the source
                * folder's current metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 4; + * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -160,12 +194,15 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * Makes the operation only succeed conditional on whether the source
                * folder's current metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 4; + * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -176,12 +213,15 @@ public long getIfMetagenerationMatch() { public static final int IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER = 5; private long ifMetagenerationNotMatch_ = 0L; /** + * + * *
                * Makes the operation only succeed conditional on whether the source
                * folder's current metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 5; + * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -189,12 +229,15 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
                * Makes the operation only succeed conditional on whether the source
                * folder's current metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 5; + * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -203,16 +246,22 @@ public long getIfMetagenerationNotMatch() { } public static final int REQUEST_ID_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted. This request is only
                * idempotent if a `request_id` is provided.
                * 
            * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The requestId. */ @java.lang.Override @@ -221,31 +270,33 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted. This request is only
                * idempotent if a `request_id` is provided.
                * 
            * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -254,6 +305,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,8 +317,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(4, ifMetagenerationMatch_); } @@ -292,12 +343,10 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, ifMetagenerationMatch_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ifMetagenerationMatch_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, ifMetagenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, ifMetagenerationNotMatch_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, requestId_); @@ -316,29 +365,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.control.v2.RenameFolderRequest)) { return super.equals(obj); } - com.google.storage.control.v2.RenameFolderRequest other = (com.google.storage.control.v2.RenameFolderRequest) obj; + com.google.storage.control.v2.RenameFolderRequest other = + (com.google.storage.control.v2.RenameFolderRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDestinationFolderId() - .equals(other.getDestinationFolderId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDestinationFolderId().equals(other.getDestinationFolderId())) return false; if (hasIfMetagenerationMatch() != other.hasIfMetagenerationMatch()) return false; if (hasIfMetagenerationMatch()) { - if (getIfMetagenerationMatch() - != other.getIfMetagenerationMatch()) return false; + if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false; } if (hasIfMetagenerationNotMatch() != other.hasIfMetagenerationNotMatch()) return false; if (hasIfMetagenerationNotMatch()) { - if (getIfMetagenerationNotMatch() - != other.getIfMetagenerationNotMatch()) return false; + if (getIfMetagenerationNotMatch() != other.getIfMetagenerationNotMatch()) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -356,13 +401,11 @@ public int hashCode() { hash = (53 * hash) + getDestinationFolderId().hashCode(); if (hasIfMetagenerationMatch()) { hash = (37 * hash) + IF_METAGENERATION_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIfMetagenerationMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationMatch()); } if (hasIfMetagenerationNotMatch()) { hash = (37 * hash) + IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIfMetagenerationNotMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationNotMatch()); } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); @@ -372,98 +415,103 @@ public int hashCode() { } public static com.google.storage.control.v2.RenameFolderRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.RenameFolderRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.RenameFolderRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.RenameFolderRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.RenameFolderRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.RenameFolderRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.RenameFolderRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.storage.control.v2.RenameFolderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.RenameFolderRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.RenameFolderRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.RenameFolderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.RenameFolderRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.storage.control.v2.RenameFolderRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.RenameFolderRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.storage.control.v2.RenameFolderRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                * Request message for RenameFolder. This operation is only applicable to a
                * hierarchical namespace enabled bucket.
            @@ -471,33 +519,32 @@ protected Builder newBuilderForType(
                *
                * Protobuf type {@code google.storage.control.v2.RenameFolderRequest}
                */
            -  public static final class Builder extends
            -      com.google.protobuf.GeneratedMessageV3.Builder implements
            +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
            +      implements
                   // @@protoc_insertion_point(builder_implements:google.storage.control.v2.RenameFolderRequest)
                   com.google.storage.control.v2.RenameFolderRequestOrBuilder {
            -    public static final com.google.protobuf.Descriptors.Descriptor
            -        getDescriptor() {
            -      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_RenameFolderRequest_descriptor;
            +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            +      return com.google.storage.control.v2.StorageControlProto
            +          .internal_static_google_storage_control_v2_RenameFolderRequest_descriptor;
                 }
             
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
            -      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_RenameFolderRequest_fieldAccessorTable
            +      return com.google.storage.control.v2.StorageControlProto
            +          .internal_static_google_storage_control_v2_RenameFolderRequest_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
            -              com.google.storage.control.v2.RenameFolderRequest.class, com.google.storage.control.v2.RenameFolderRequest.Builder.class);
            +              com.google.storage.control.v2.RenameFolderRequest.class,
            +              com.google.storage.control.v2.RenameFolderRequest.Builder.class);
                 }
             
                 // Construct using com.google.storage.control.v2.RenameFolderRequest.newBuilder()
            -    private Builder() {
            -
            -    }
            +    private Builder() {}
             
            -    private Builder(
            -        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            +    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                   super(parent);
            -
                 }
            +
                 @java.lang.Override
                 public Builder clear() {
                   super.clear();
            @@ -511,9 +558,9 @@ public Builder clear() {
                 }
             
                 @java.lang.Override
            -    public com.google.protobuf.Descriptors.Descriptor
            -        getDescriptorForType() {
            -      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_RenameFolderRequest_descriptor;
            +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            +      return com.google.storage.control.v2.StorageControlProto
            +          .internal_static_google_storage_control_v2_RenameFolderRequest_descriptor;
                 }
             
                 @java.lang.Override
            @@ -532,8 +579,11 @@ public com.google.storage.control.v2.RenameFolderRequest build() {
             
                 @java.lang.Override
                 public com.google.storage.control.v2.RenameFolderRequest buildPartial() {
            -      com.google.storage.control.v2.RenameFolderRequest result = new com.google.storage.control.v2.RenameFolderRequest(this);
            -      if (bitField0_ != 0) { buildPartial0(result); }
            +      com.google.storage.control.v2.RenameFolderRequest result =
            +          new com.google.storage.control.v2.RenameFolderRequest(this);
            +      if (bitField0_ != 0) {
            +        buildPartial0(result);
            +      }
                   onBuilt();
                   return result;
                 }
            @@ -565,38 +615,39 @@ private void buildPartial0(com.google.storage.control.v2.RenameFolderRequest res
                 public Builder clone() {
                   return super.clone();
                 }
            +
                 @java.lang.Override
                 public Builder setField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field,
            -        java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                   return super.setField(field, value);
                 }
            +
                 @java.lang.Override
            -    public Builder clearField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field) {
            +    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
                   return super.clearField(field);
                 }
            +
                 @java.lang.Override
            -    public Builder clearOneof(
            -        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
            +    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                   return super.clearOneof(oneof);
                 }
            +
                 @java.lang.Override
                 public Builder setRepeatedField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field,
            -        int index, java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
                   return super.setRepeatedField(field, index, value);
                 }
            +
                 @java.lang.Override
                 public Builder addRepeatedField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field,
            -        java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                   return super.addRepeatedField(field, value);
                 }
            +
                 @java.lang.Override
                 public Builder mergeFrom(com.google.protobuf.Message other) {
                   if (other instanceof com.google.storage.control.v2.RenameFolderRequest) {
            -        return mergeFrom((com.google.storage.control.v2.RenameFolderRequest)other);
            +        return mergeFrom((com.google.storage.control.v2.RenameFolderRequest) other);
                   } else {
                     super.mergeFrom(other);
                     return this;
            @@ -604,7 +655,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
                 }
             
                 public Builder mergeFrom(com.google.storage.control.v2.RenameFolderRequest other) {
            -      if (other == com.google.storage.control.v2.RenameFolderRequest.getDefaultInstance()) return this;
            +      if (other == com.google.storage.control.v2.RenameFolderRequest.getDefaultInstance())
            +        return this;
                   if (!other.getName().isEmpty()) {
                     name_ = other.name_;
                     bitField0_ |= 0x00000001;
            @@ -652,37 +704,43 @@ public Builder mergeFrom(
                         case 0:
                           done = true;
                           break;
            -            case 32: {
            -              ifMetagenerationMatch_ = input.readInt64();
            -              bitField0_ |= 0x00000004;
            -              break;
            -            } // case 32
            -            case 40: {
            -              ifMetagenerationNotMatch_ = input.readInt64();
            -              bitField0_ |= 0x00000008;
            -              break;
            -            } // case 40
            -            case 50: {
            -              requestId_ = input.readStringRequireUtf8();
            -              bitField0_ |= 0x00000010;
            -              break;
            -            } // case 50
            -            case 58: {
            -              name_ = input.readStringRequireUtf8();
            -              bitField0_ |= 0x00000001;
            -              break;
            -            } // case 58
            -            case 66: {
            -              destinationFolderId_ = input.readStringRequireUtf8();
            -              bitField0_ |= 0x00000002;
            -              break;
            -            } // case 66
            -            default: {
            -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            -                done = true; // was an endgroup tag
            -              }
            -              break;
            -            } // default:
            +            case 32:
            +              {
            +                ifMetagenerationMatch_ = input.readInt64();
            +                bitField0_ |= 0x00000004;
            +                break;
            +              } // case 32
            +            case 40:
            +              {
            +                ifMetagenerationNotMatch_ = input.readInt64();
            +                bitField0_ |= 0x00000008;
            +                break;
            +              } // case 40
            +            case 50:
            +              {
            +                requestId_ = input.readStringRequireUtf8();
            +                bitField0_ |= 0x00000010;
            +                break;
            +              } // case 50
            +            case 58:
            +              {
            +                name_ = input.readStringRequireUtf8();
            +                bitField0_ |= 0x00000001;
            +                break;
            +              } // case 58
            +            case 66:
            +              {
            +                destinationFolderId_ = input.readStringRequireUtf8();
            +                bitField0_ |= 0x00000002;
            +                break;
            +              } // case 66
            +            default:
            +              {
            +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            +                  done = true; // was an endgroup tag
            +                }
            +                break;
            +              } // default:
                       } // switch (tag)
                     } // while (!done)
                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            @@ -692,23 +750,28 @@ public Builder mergeFrom(
                   } // finally
                   return this;
                 }
            +
                 private int bitField0_;
             
                 private java.lang.Object name_ = "";
                 /**
            +     *
            +     *
                  * 
                  * Required. Name of the source folder being renamed.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -717,21 +780,24 @@ public java.lang.String getName() { } } /** + * + * *
                  * Required. Name of the source folder being renamed.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -739,30 +805,41 @@ public java.lang.String getName() { } } /** + * + * *
                  * Required. Name of the source folder being renamed.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
                  * Required. Name of the source folder being renamed.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -772,18 +849,24 @@ public Builder clearName() { return this; } /** + * + * *
                  * Required. Name of the source folder being renamed.
                  * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                  * 
            * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -793,18 +876,20 @@ public Builder setNameBytes( private java.lang.Object destinationFolderId_ = ""; /** + * + * *
                  * Required. The destination folder ID, e.g. `foo/bar/`.
                  * 
            * * string destination_folder_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The destinationFolderId. */ public java.lang.String getDestinationFolderId() { java.lang.Object ref = destinationFolderId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationFolderId_ = s; return s; @@ -813,20 +898,21 @@ public java.lang.String getDestinationFolderId() { } } /** + * + * *
                  * Required. The destination folder ID, e.g. `foo/bar/`.
                  * 
            * * string destination_folder_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for destinationFolderId. */ - public com.google.protobuf.ByteString - getDestinationFolderIdBytes() { + public com.google.protobuf.ByteString getDestinationFolderIdBytes() { java.lang.Object ref = destinationFolderId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); destinationFolderId_ = b; return b; } else { @@ -834,28 +920,35 @@ public java.lang.String getDestinationFolderId() { } } /** + * + * *
                  * Required. The destination folder ID, e.g. `foo/bar/`.
                  * 
            * * string destination_folder_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The destinationFolderId to set. * @return This builder for chaining. */ - public Builder setDestinationFolderId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDestinationFolderId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } destinationFolderId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
                  * Required. The destination folder ID, e.g. `foo/bar/`.
                  * 
            * * string destination_folder_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDestinationFolderId() { @@ -865,17 +958,21 @@ public Builder clearDestinationFolderId() { return this; } /** + * + * *
                  * Required. The destination folder ID, e.g. `foo/bar/`.
                  * 
            * * string destination_folder_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for destinationFolderId to set. * @return This builder for chaining. */ - public Builder setDestinationFolderIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDestinationFolderIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); destinationFolderId_ = value; bitField0_ |= 0x00000002; @@ -883,14 +980,17 @@ public Builder setDestinationFolderIdBytes( return this; } - private long ifMetagenerationMatch_ ; + private long ifMetagenerationMatch_; /** + * + * *
                  * Makes the operation only succeed conditional on whether the source
                  * folder's current metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 4; + * * @return Whether the ifMetagenerationMatch field is set. */ @java.lang.Override @@ -898,12 +998,15 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
                  * Makes the operation only succeed conditional on whether the source
                  * folder's current metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 4; + * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -911,12 +1014,15 @@ public long getIfMetagenerationMatch() { return ifMetagenerationMatch_; } /** + * + * *
                  * Makes the operation only succeed conditional on whether the source
                  * folder's current metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 4; + * * @param value The ifMetagenerationMatch to set. * @return This builder for chaining. */ @@ -928,12 +1034,15 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** + * + * *
                  * Makes the operation only succeed conditional on whether the source
                  * folder's current metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 4; + * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -943,14 +1052,17 @@ public Builder clearIfMetagenerationMatch() { return this; } - private long ifMetagenerationNotMatch_ ; + private long ifMetagenerationNotMatch_; /** + * + * *
                  * Makes the operation only succeed conditional on whether the source
                  * folder's current metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 5; + * * @return Whether the ifMetagenerationNotMatch field is set. */ @java.lang.Override @@ -958,12 +1070,15 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
                  * Makes the operation only succeed conditional on whether the source
                  * folder's current metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 5; + * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -971,12 +1086,15 @@ public long getIfMetagenerationNotMatch() { return ifMetagenerationNotMatch_; } /** + * + * *
                  * Makes the operation only succeed conditional on whether the source
                  * folder's current metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 5; + * * @param value The ifMetagenerationNotMatch to set. * @return This builder for chaining. */ @@ -988,12 +1106,15 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** + * + * *
                  * Makes the operation only succeed conditional on whether the source
                  * folder's current metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 5; + * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -1005,20 +1126,24 @@ public Builder clearIfMetagenerationNotMatch() { private java.lang.Object requestId_ = ""; /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted. This request is only
                  * idempotent if a `request_id` is provided.
                  * 
            * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1027,22 +1152,25 @@ public java.lang.String getRequestId() { } } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted. This request is only
                  * idempotent if a `request_id` is provided.
                  * 
            * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1050,32 +1178,43 @@ public java.lang.String getRequestId() { } } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted. This request is only
                  * idempotent if a `request_id` is provided.
                  * 
            * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted. This request is only
                  * idempotent if a `request_id` is provided.
                  * 
            * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1085,28 +1224,34 @@ public Builder clearRequestId() { return this; } /** + * + * *
                  * Optional. A unique identifier for this request. UUID is the recommended
                  * format, but other formats are still accepted. This request is only
                  * idempotent if a `request_id` is provided.
                  * 
            * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1116,12 +1261,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.storage.control.v2.RenameFolderRequest) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.RenameFolderRequest) private static final com.google.storage.control.v2.RenameFolderRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.storage.control.v2.RenameFolderRequest(); } @@ -1130,27 +1275,27 @@ public static com.google.storage.control.v2.RenameFolderRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RenameFolderRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RenameFolderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1165,6 +1310,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.RenameFolderRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderRequestOrBuilder.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderRequestOrBuilder.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderRequestOrBuilder.java index 6a0f86c794..b7799da96b 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderRequestOrBuilder.java +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/RenameFolderRequestOrBuilder.java @@ -1,118 +1,169 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto // Protobuf Java Version: 3.25.3 package com.google.storage.control.v2; -public interface RenameFolderRequestOrBuilder extends +public interface RenameFolderRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.RenameFolderRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
                * Required. Name of the source folder being renamed.
                * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                * 
            * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
                * Required. Name of the source folder being renamed.
                * Format: `projects/{project}/buckets/{bucket}/folders/{folder}`
                * 
            * - * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
                * Required. The destination folder ID, e.g. `foo/bar/`.
                * 
            * * string destination_folder_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The destinationFolderId. */ java.lang.String getDestinationFolderId(); /** + * + * *
                * Required. The destination folder ID, e.g. `foo/bar/`.
                * 
            * * string destination_folder_id = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for destinationFolderId. */ - com.google.protobuf.ByteString - getDestinationFolderIdBytes(); + com.google.protobuf.ByteString getDestinationFolderIdBytes(); /** + * + * *
                * Makes the operation only succeed conditional on whether the source
                * folder's current metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 4; + * * @return Whether the ifMetagenerationMatch field is set. */ boolean hasIfMetagenerationMatch(); /** + * + * *
                * Makes the operation only succeed conditional on whether the source
                * folder's current metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 4; + * * @return The ifMetagenerationMatch. */ long getIfMetagenerationMatch(); /** + * + * *
                * Makes the operation only succeed conditional on whether the source
                * folder's current metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 5; + * * @return Whether the ifMetagenerationNotMatch field is set. */ boolean hasIfMetagenerationNotMatch(); /** + * + * *
                * Makes the operation only succeed conditional on whether the source
                * folder's current metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 5; + * * @return The ifMetagenerationNotMatch. */ long getIfMetagenerationNotMatch(); /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted. This request is only
                * idempotent if a `request_id` is provided.
                * 
            * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
                * Optional. A unique identifier for this request. UUID is the recommended
                * format, but other formats are still accepted. This request is only
                * idempotent if a `request_id` is provided.
                * 
            * - * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * string request_id = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlProto.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlProto.java new file mode 100644 index 0000000000..3c7736c1b2 --- /dev/null +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageControlProto.java @@ -0,0 +1,511 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/storage/control/v2/storage_control.proto + +// Protobuf Java Version: 3.25.3 +package com.google.storage.control.v2; + +public final class StorageControlProto { + private StorageControlProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_PendingRenameInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_PendingRenameInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_Folder_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_Folder_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_GetFolderRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_GetFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_CreateFolderRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_CreateFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_DeleteFolderRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_DeleteFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_ListFoldersRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_ListFoldersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_ListFoldersResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_ListFoldersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_RenameFolderRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_RenameFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_RenameFolderMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_RenameFolderMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_StorageLayout_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_StorageLayout_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_GetStorageLayoutRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_GetStorageLayoutRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_ManagedFolder_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_ManagedFolder_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_GetManagedFolderRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_GetManagedFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_CreateManagedFolderRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_CreateManagedFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_DeleteManagedFolderRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_DeleteManagedFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_ListManagedFoldersRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_ListManagedFoldersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_control_v2_ListManagedFoldersResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_control_v2_ListManagedFoldersResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n/google/storage/control/v2/storage_cont" + + "rol.proto\022\031google.storage.control.v2\032\027go" + + "ogle/api/client.proto\032\037google/api/field_" + + "behavior.proto\032\033google/api/field_info.pr" + + "oto\032\031google/api/resource.proto\032\030google/a" + + "pi/routing.proto\032#google/longrunning/ope" + + "rations.proto\032\033google/protobuf/empty.pro" + + "to\032\037google/protobuf/timestamp.proto\"+\n\021P" + + "endingRenameInfo\022\026\n\toperation\030\001 \001(\tB\003\340A\003" + + "\"\342\002\n\006Folder\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\033\n\016metage" + + "neration\030\003 \001(\003B\003\340A\003\0224\n\013create_time\030\004 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upd" + + "ate_time\030\005 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\022N\n\023pending_rename_info\030\007 \001(\0132,.g" + + "oogle.storage.control.v2.PendingRenameIn" + + "foB\003\340A\003:l\352Ai\n\035storage.googleapis.com/Fol" + + "der\0227projects/{project}/buckets/{bucket}" + + "/folders/{folder=**}*\007folders2\006folder\"\364\001" + + "\n\020GetFolderRequest\0223\n\004name\030\006 \001(\tB%\340A\002\372A\037" + + "\n\035storage.googleapis.com/Folder\022$\n\027if_me" + + "tageneration_match\030\003 \001(\003H\000\210\001\001\022(\n\033if_meta" + + "generation_not_match\030\004 \001(\003H\001\210\001\001\022\037\n\nreque" + + "st_id\030\005 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001B\032\n\030_if_metagene" + + "ration_matchB\036\n\034_if_metageneration_not_m" + + "atch\"\325\001\n\023CreateFolderRequest\0225\n\006parent\030\001" + + " \001(\tB%\340A\002\372A\037\022\035storage.googleapis.com/Fol" + + "der\0226\n\006folder\030\002 \001(\0132!.google.storage.con" + + "trol.v2.FolderB\003\340A\002\022\026\n\tfolder_id\030\003 \001(\tB\003" + + "\340A\002\022\026\n\trecursive\030\004 \001(\010B\003\340A\001\022\037\n\nrequest_i" + + "d\030\005 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\367\001\n\023DeleteFolderReq" + + "uest\0223\n\004name\030\006 \001(\tB%\340A\002\372A\037\n\035storage.goog" + + "leapis.com/Folder\022$\n\027if_metageneration_m" + + "atch\030\003 \001(\003H\000\210\001\001\022(\n\033if_metageneration_not" + + "_match\030\004 \001(\003H\001\210\001\001\022\037\n\nrequest_id\030\005 \001(\tB\013\340" + + "A\001\342\214\317\327\010\002\010\001B\032\n\030_if_metageneration_matchB\036" + + "\n\034_if_metageneration_not_match\"\214\002\n\022ListF" + + "oldersRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\022\035s" + + "torage.googleapis.com/Folder\022\026\n\tpage_siz" + + "e\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006prefix\030\004 \001(\tB\003\340A\001\022\026\n\tdelimiter\030\010 \001(\tB\003\340" + + "A\001\022 \n\023lexicographic_start\030\006 \001(\tB\003\340A\001\022\036\n\021" + + "lexicographic_end\030\007 \001(\tB\003\340A\001\022\037\n\nrequest_" + + "id\030\t \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"b\n\023ListFoldersResp" + + "onse\0222\n\007folders\030\001 \003(\0132!.google.storage.c" + + "ontrol.v2.Folder\022\027\n\017next_page_token\030\002 \001(" + + "\t\"\233\002\n\023RenameFolderRequest\0223\n\004name\030\007 \001(\tB" + + "%\340A\002\372A\037\n\035storage.googleapis.com/Folder\022\"" + + "\n\025destination_folder_id\030\010 \001(\tB\003\340A\002\022$\n\027if" + + "_metageneration_match\030\004 \001(\003H\000\210\001\001\022(\n\033if_m" + + "etageneration_not_match\030\005 \001(\003H\001\210\001\001\022\037\n\nre" + + "quest_id\030\006 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001B\032\n\030_if_metag" + + "eneration_matchB\036\n\034_if_metageneration_no" + + "t_match\"\232\002\n\"CommonLongRunningOperationMe" + + "tadata\0224\n\013create_time\030\001 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\0224\n\013updat" + + "e_time\030\003 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\022\021\n\004type\030\004 \001(\tB\003\340A\003\022#\n\026requested_ca" + + "ncellation\030\005 \001(\010B\003\340A\003\022\035\n\020progress_percen" + + "t\030\006 \001(\005B\003\340A\003\"\247\001\n\024RenameFolderMetadata\022V\n" + + "\017common_metadata\030\001 \001(\0132=.google.storage." + + "control.v2.CommonLongRunningOperationMet" + + "adata\022\030\n\020source_folder_id\030\002 \001(\t\022\035\n\025desti" + + "nation_folder_id\030\003 \001(\t\"\331\003\n\rStorageLayout" + + "\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\025\n\010location\030\002 \001(\tB\003\340" + + "A\003\022\032\n\rlocation_type\030\003 \001(\tB\003\340A\003\022d\n\027custom" + + "_placement_config\030\004 \001(\0132>.google.storage" + + ".control.v2.StorageLayout.CustomPlacemen" + + "tConfigB\003\340A\003\022c\n\026hierarchical_namespace\030\005" + + " \001(\0132>.google.storage.control.v2.Storage" + + "Layout.HierarchicalNamespaceB\003\340A\003\032/\n\025Cus" + + "tomPlacementConfig\022\026\n\016data_locations\030\001 \003" + + "(\t\032(\n\025HierarchicalNamespace\022\017\n\007enabled\030\001" + + " \001(\010:\\\352AY\n$storage.googleapis.com/Storag" + + "eLayout\0221projects/{project}/buckets/{buc" + + "ket}/storageLayout\"\206\001\n\027GetStorageLayoutR" + + "equest\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$storage.go" + + "ogleapis.com/StorageLayout\022\016\n\006prefix\030\002 \001" + + "(\t\022\037\n\nrequest_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\277\002\n\r" + + "ManagedFolder\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\033\n\016meta" + + "generation\030\003 \001(\003B\003\340A\003\0224\n\013create_time\030\004 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013u" + + "pdate_time\030\005 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003:\221\001\352A\215\001\n$storage.googleapis.com" + + "/ManagedFolder\022Fprojects/{project}/bucke" + + "ts/{bucket}/managedFolders/{managed_fold" + + "er=**}*\016managedFolders2\rmanagedFolder\"\202\002" + + "\n\027GetManagedFolderRequest\022:\n\004name\030\006 \001(\tB" + + ",\340A\002\372A&\n$storage.googleapis.com/ManagedF" + + "older\022$\n\027if_metageneration_match\030\003 \001(\003H\000" + + "\210\001\001\022(\n\033if_metageneration_not_match\030\004 \001(\003" + + "H\001\210\001\001\022\037\n\nrequest_id\030\005 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001B\032" + + "\n\030_if_metageneration_matchB\036\n\034_if_metage" + + "neration_not_match\"\342\001\n\032CreateManagedFold" + + "erRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\022$stora" + + "ge.googleapis.com/ManagedFolder\022E\n\016manag" + + "ed_folder\030\002 \001(\0132(.google.storage.control" + + ".v2.ManagedFolderB\003\340A\002\022\036\n\021managed_folder" + + "_id\030\003 \001(\tB\003\340A\002\022\037\n\nrequest_id\030\004 \001(\tB\013\340A\001\342" + + "\214\317\327\010\002\010\001\"\236\002\n\032DeleteManagedFolderRequest\022:" + + "\n\004name\030\007 \001(\tB,\340A\002\372A&\n$storage.googleapis" + + ".com/ManagedFolder\022$\n\027if_metageneration_" + + "match\030\003 \001(\003H\000\210\001\001\022(\n\033if_metageneration_no" + + "t_match\030\004 \001(\003H\001\210\001\001\022\027\n\017allow_non_empty\030\005 " + + "\001(\010\022\037\n\nrequest_id\030\006 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001B\032\n\030" + + "_if_metageneration_matchB\036\n\034_if_metagene" + + "ration_not_match\"\300\001\n\031ListManagedFoldersR" + + "equest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\022$storage." + + "googleapis.com/ManagedFolder\022\026\n\tpage_siz" + + "e\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006prefix\030\004 \001(\tB\003\340A\001\022\037\n\nrequest_id\030\005 \001(\tB\013" + + "\340A\001\342\214\317\327\010\002\010\001\"x\n\032ListManagedFoldersRespons" + + "e\022A\n\017managed_folders\030\001 \003(\0132(.google.stor" + + "age.control.v2.ManagedFolder\022\027\n\017next_pag" + + "e_token\030\002 \001(\t2\315\017\n\016StorageControl\022\232\001\n\014Cre" + + "ateFolder\022..google.storage.control.v2.Cr" + + "eateFolderRequest\032!.google.storage.contr" + + "ol.v2.Folder\"7\332A\027parent,folder,folder_id" + + "\212\323\344\223\002\027\022\025\n\006parent\022\013{bucket=**}\022\217\001\n\014Delete" + + "Folder\022..google.storage.control.v2.Delet" + + "eFolderRequest\032\026.google.protobuf.Empty\"7" + + "\332A\004name\212\323\344\223\002*\022(\n\004name\022 {bucket=projects/" + + "*/buckets/*}/**\022\224\001\n\tGetFolder\022+.google.s" + + "torage.control.v2.GetFolderRequest\032!.goo" + + "gle.storage.control.v2.Folder\"7\332A\004name\212\323" + + "\344\223\002*\022(\n\004name\022 {bucket=projects/*/buckets" + + "/*}/**\022\224\001\n\013ListFolders\022-.google.storage." + + "control.v2.ListFoldersRequest\032..google.s" + + "torage.control.v2.ListFoldersResponse\"&\332" + + "A\006parent\212\323\344\223\002\027\022\025\n\006parent\022\013{bucket=**}\022\315\001" + + "\n\014RenameFolder\022..google.storage.control." + + "v2.RenameFolderRequest\032\035.google.longrunn" + + "ing.Operation\"n\312A\036\n\006Folder\022\024RenameFolder" + + "Metadata\332A\032name,destination_folder_id\212\323\344" + + "\223\002*\022(\n\004name\022 {bucket=projects/*/buckets/" + + "*}/**\022\251\001\n\020GetStorageLayout\0222.google.stor" + + "age.control.v2.GetStorageLayoutRequest\032(" + + ".google.storage.control.v2.StorageLayout" + + "\"7\332A\004name\212\323\344\223\002*\022(\n\004name\022 {bucket=project" + + "s/*/buckets/*}/**\022\277\001\n\023CreateManagedFolde" + + "r\0225.google.storage.control.v2.CreateMana" + + "gedFolderRequest\032(.google.storage.contro" + + "l.v2.ManagedFolder\"G\332A\'parent,managed_fo" + + "lder,managed_folder_id\212\323\344\223\002\027\022\025\n\006parent\022\013" + + "{bucket=**}\022\235\001\n\023DeleteManagedFolder\0225.go" + + "ogle.storage.control.v2.DeleteManagedFol" + + "derRequest\032\026.google.protobuf.Empty\"7\332A\004n" + + "ame\212\323\344\223\002*\022(\n\004name\022 {bucket=projects/*/bu" + + "ckets/*}/**\022\251\001\n\020GetManagedFolder\0222.googl" + + "e.storage.control.v2.GetManagedFolderReq" + + "uest\032(.google.storage.control.v2.Managed" + + "Folder\"7\332A\004name\212\323\344\223\002*\022(\n\004name\022 {bucket=p" + + "rojects/*/buckets/*}/**\022\251\001\n\022ListManagedF" + + "olders\0224.google.storage.control.v2.ListM" + + "anagedFoldersRequest\0325.google.storage.co" + + "ntrol.v2.ListManagedFoldersResponse\"&\332A\006" + + "parent\212\323\344\223\002\027\022\025\n\006parent\022\013{bucket=**}\032\247\002\312A" + + "\026storage.googleapis.com\322A\212\002https://www.g" + + "oogleapis.com/auth/cloud-platform,https:" + + "//www.googleapis.com/auth/cloud-platform" + + ".read-only,https://www.googleapis.com/au" + + "th/devstorage.full_control,https://www.g" + + "oogleapis.com/auth/devstorage.read_only," + + "https://www.googleapis.com/auth/devstora" + + "ge.read_writeB\246\002\n\035com.google.storage.con" + + "trol.v2B\023StorageControlProtoP\001Z=cloud.go" + + "ogle.com/go/storage/control/apiv2/contro" + + "lpb;controlpb\252\002\037Google.Cloud.Storage.Con" + + "trol.V2\312\002\037Google\\Cloud\\Storage\\Control\\V" + + "2\352\002#Google::Cloud::Storage::Control::V2\352" + + "AD\n\035storage.googleapis.com/Bucket\022#proje" + + "cts/{project}/buckets/{bucket}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.FieldInfoProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.api.RoutingProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_storage_control_v2_PendingRenameInfo_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_storage_control_v2_PendingRenameInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_PendingRenameInfo_descriptor, + new java.lang.String[] { + "Operation", + }); + internal_static_google_storage_control_v2_Folder_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_storage_control_v2_Folder_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_Folder_descriptor, + new java.lang.String[] { + "Name", "Metageneration", "CreateTime", "UpdateTime", "PendingRenameInfo", + }); + internal_static_google_storage_control_v2_GetFolderRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_storage_control_v2_GetFolderRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_GetFolderRequest_descriptor, + new java.lang.String[] { + "Name", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "RequestId", + }); + internal_static_google_storage_control_v2_CreateFolderRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_storage_control_v2_CreateFolderRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_CreateFolderRequest_descriptor, + new java.lang.String[] { + "Parent", "Folder", "FolderId", "Recursive", "RequestId", + }); + internal_static_google_storage_control_v2_DeleteFolderRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_storage_control_v2_DeleteFolderRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_DeleteFolderRequest_descriptor, + new java.lang.String[] { + "Name", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "RequestId", + }); + internal_static_google_storage_control_v2_ListFoldersRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_storage_control_v2_ListFoldersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_ListFoldersRequest_descriptor, + new java.lang.String[] { + "Parent", + "PageSize", + "PageToken", + "Prefix", + "Delimiter", + "LexicographicStart", + "LexicographicEnd", + "RequestId", + }); + internal_static_google_storage_control_v2_ListFoldersResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_storage_control_v2_ListFoldersResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_ListFoldersResponse_descriptor, + new java.lang.String[] { + "Folders", "NextPageToken", + }); + internal_static_google_storage_control_v2_RenameFolderRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_storage_control_v2_RenameFolderRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_RenameFolderRequest_descriptor, + new java.lang.String[] { + "Name", + "DestinationFolderId", + "IfMetagenerationMatch", + "IfMetagenerationNotMatch", + "RequestId", + }); + internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_CommonLongRunningOperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "UpdateTime", + "Type", + "RequestedCancellation", + "ProgressPercent", + }); + internal_static_google_storage_control_v2_RenameFolderMetadata_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_storage_control_v2_RenameFolderMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_RenameFolderMetadata_descriptor, + new java.lang.String[] { + "CommonMetadata", "SourceFolderId", "DestinationFolderId", + }); + internal_static_google_storage_control_v2_StorageLayout_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_storage_control_v2_StorageLayout_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_StorageLayout_descriptor, + new java.lang.String[] { + "Name", "Location", "LocationType", "CustomPlacementConfig", "HierarchicalNamespace", + }); + internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_descriptor = + internal_static_google_storage_control_v2_StorageLayout_descriptor.getNestedTypes().get(0); + internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_descriptor, + new java.lang.String[] { + "DataLocations", + }); + internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_descriptor = + internal_static_google_storage_control_v2_StorageLayout_descriptor.getNestedTypes().get(1); + internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_descriptor, + new java.lang.String[] { + "Enabled", + }); + internal_static_google_storage_control_v2_GetStorageLayoutRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_storage_control_v2_GetStorageLayoutRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_GetStorageLayoutRequest_descriptor, + new java.lang.String[] { + "Name", "Prefix", "RequestId", + }); + internal_static_google_storage_control_v2_ManagedFolder_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_storage_control_v2_ManagedFolder_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_ManagedFolder_descriptor, + new java.lang.String[] { + "Name", "Metageneration", "CreateTime", "UpdateTime", + }); + internal_static_google_storage_control_v2_GetManagedFolderRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_storage_control_v2_GetManagedFolderRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_GetManagedFolderRequest_descriptor, + new java.lang.String[] { + "Name", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "RequestId", + }); + internal_static_google_storage_control_v2_CreateManagedFolderRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_storage_control_v2_CreateManagedFolderRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_CreateManagedFolderRequest_descriptor, + new java.lang.String[] { + "Parent", "ManagedFolder", "ManagedFolderId", "RequestId", + }); + internal_static_google_storage_control_v2_DeleteManagedFolderRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_storage_control_v2_DeleteManagedFolderRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_DeleteManagedFolderRequest_descriptor, + new java.lang.String[] { + "Name", + "IfMetagenerationMatch", + "IfMetagenerationNotMatch", + "AllowNonEmpty", + "RequestId", + }); + internal_static_google_storage_control_v2_ListManagedFoldersRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_storage_control_v2_ListManagedFoldersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_ListManagedFoldersRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Prefix", "RequestId", + }); + internal_static_google_storage_control_v2_ListManagedFoldersResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_storage_control_v2_ListManagedFoldersResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_control_v2_ListManagedFoldersResponse_descriptor, + new java.lang.String[] { + "ManagedFolders", "NextPageToken", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.FieldInfoProto.fieldInfo); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.api.RoutingProto.routing); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.api.RoutingProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayout.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayout.java similarity index 66% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayout.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayout.java index bcf6160a2a..df62a75829 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayout.java +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayout.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto @@ -5,21 +20,24 @@ package com.google.storage.control.v2; /** + * + * *
              * The storage layout configuration of a bucket.
              * 
            * * Protobuf type {@code google.storage.control.v2.StorageLayout} */ -public final class StorageLayout extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StorageLayout extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.StorageLayout) StorageLayoutOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StorageLayout.newBuilder() to construct. private StorageLayout(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StorageLayout() { name_ = ""; location_ = ""; @@ -28,70 +46,84 @@ private StorageLayout() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StorageLayout(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_StorageLayout_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_StorageLayout_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.StorageLayout.class, com.google.storage.control.v2.StorageLayout.Builder.class); + com.google.storage.control.v2.StorageLayout.class, + com.google.storage.control.v2.StorageLayout.Builder.class); } - public interface CustomPlacementConfigOrBuilder extends + public interface CustomPlacementConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.StorageLayout.CustomPlacementConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
                  * List of locations to use for data placement.
                  * 
            * * repeated string data_locations = 1; + * * @return A list containing the dataLocations. */ - java.util.List - getDataLocationsList(); + java.util.List getDataLocationsList(); /** + * + * *
                  * List of locations to use for data placement.
                  * 
            * * repeated string data_locations = 1; + * * @return The count of dataLocations. */ int getDataLocationsCount(); /** + * + * *
                  * List of locations to use for data placement.
                  * 
            * * repeated string data_locations = 1; + * * @param index The index of the element to return. * @return The dataLocations at the given index. */ java.lang.String getDataLocations(int index); /** + * + * *
                  * List of locations to use for data placement.
                  * 
            * * repeated string data_locations = 1; + * * @param index The index of the value to return. * @return The bytes of the dataLocations at the given index. */ - com.google.protobuf.ByteString - getDataLocationsBytes(int index); + com.google.protobuf.ByteString getDataLocationsBytes(int index); } /** + * + * *
                * Configuration for Custom Dual Regions.  It should specify precisely two
                * eligible regions within the same Multiregion. More information on regions
            @@ -100,73 +132,83 @@ public interface CustomPlacementConfigOrBuilder extends
                *
                * Protobuf type {@code google.storage.control.v2.StorageLayout.CustomPlacementConfig}
                */
            -  public static final class CustomPlacementConfig extends
            -      com.google.protobuf.GeneratedMessageV3 implements
            +  public static final class CustomPlacementConfig extends com.google.protobuf.GeneratedMessageV3
            +      implements
                   // @@protoc_insertion_point(message_implements:google.storage.control.v2.StorageLayout.CustomPlacementConfig)
                   CustomPlacementConfigOrBuilder {
            -  private static final long serialVersionUID = 0L;
            +    private static final long serialVersionUID = 0L;
                 // Use CustomPlacementConfig.newBuilder() to construct.
                 private CustomPlacementConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                   super(builder);
                 }
            +
                 private CustomPlacementConfig() {
            -      dataLocations_ =
            -          com.google.protobuf.LazyStringArrayList.emptyList();
            +      dataLocations_ = com.google.protobuf.LazyStringArrayList.emptyList();
                 }
             
                 @java.lang.Override
                 @SuppressWarnings({"unused"})
            -    protected java.lang.Object newInstance(
            -        UnusedPrivateParameter unused) {
            +    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                   return new CustomPlacementConfig();
                 }
             
            -    public static final com.google.protobuf.Descriptors.Descriptor
            -        getDescriptor() {
            -      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_descriptor;
            +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            +      return com.google.storage.control.v2.StorageControlProto
            +          .internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_descriptor;
                 }
             
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
            -      return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_fieldAccessorTable
            +      return com.google.storage.control.v2.StorageControlProto
            +          .internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
            -              com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.class, com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder.class);
            +              com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.class,
            +              com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder.class);
                 }
             
                 public static final int DATA_LOCATIONS_FIELD_NUMBER = 1;
            +
                 @SuppressWarnings("serial")
                 private com.google.protobuf.LazyStringArrayList dataLocations_ =
                     com.google.protobuf.LazyStringArrayList.emptyList();
                 /**
            +     *
            +     *
                  * 
                  * List of locations to use for data placement.
                  * 
            * * repeated string data_locations = 1; + * * @return A list containing the dataLocations. */ - public com.google.protobuf.ProtocolStringList - getDataLocationsList() { + public com.google.protobuf.ProtocolStringList getDataLocationsList() { return dataLocations_; } /** + * + * *
                  * List of locations to use for data placement.
                  * 
            * * repeated string data_locations = 1; + * * @return The count of dataLocations. */ public int getDataLocationsCount() { return dataLocations_.size(); } /** + * + * *
                  * List of locations to use for data placement.
                  * 
            * * repeated string data_locations = 1; + * * @param index The index of the element to return. * @return The dataLocations at the given index. */ @@ -174,20 +216,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; @@ -199,8 +244,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)); } @@ -229,15 +273,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.control.v2.StorageLayout.CustomPlacementConfig)) { return super.equals(obj); } - com.google.storage.control.v2.StorageLayout.CustomPlacementConfig other = (com.google.storage.control.v2.StorageLayout.CustomPlacementConfig) obj; + com.google.storage.control.v2.StorageLayout.CustomPlacementConfig other = + (com.google.storage.control.v2.StorageLayout.CustomPlacementConfig) obj; - if (!getDataLocationsList() - .equals(other.getDataLocationsList())) return false; + if (!getDataLocationsList().equals(other.getDataLocationsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -259,89 +303,95 @@ public int hashCode() { } public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.control.v2.StorageLayout.CustomPlacementConfig prototype) { + + public static Builder newBuilder( + com.google.storage.control.v2.StorageLayout.CustomPlacementConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -351,6 +401,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
            @@ -359,51 +411,53 @@ protected Builder newBuilderForType(
                  *
                  * Protobuf type {@code google.storage.control.v2.StorageLayout.CustomPlacementConfig}
                  */
            -    public static final class Builder extends
            -        com.google.protobuf.GeneratedMessageV3.Builder implements
            +    public static final class Builder
            +        extends com.google.protobuf.GeneratedMessageV3.Builder
            +        implements
                     // @@protoc_insertion_point(builder_implements:google.storage.control.v2.StorageLayout.CustomPlacementConfig)
                     com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder {
            -      public static final com.google.protobuf.Descriptors.Descriptor
            -          getDescriptor() {
            -        return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_descriptor;
            +      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            +        return com.google.storage.control.v2.StorageControlProto
            +            .internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_descriptor;
                   }
             
                   @java.lang.Override
                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                       internalGetFieldAccessorTable() {
            -        return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_fieldAccessorTable
            +        return com.google.storage.control.v2.StorageControlProto
            +            .internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_fieldAccessorTable
                         .ensureFieldAccessorsInitialized(
            -                com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.class, com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder.class);
            +                com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.class,
            +                com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder.class);
                   }
             
            -      // Construct using com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.newBuilder()
            -      private Builder() {
            +      // Construct using
            +      // com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.newBuilder()
            +      private Builder() {}
             
            -      }
            -
            -      private Builder(
            -          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            +      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                     super(parent);
            -
                   }
            +
                   @java.lang.Override
                   public Builder clear() {
                     super.clear();
                     bitField0_ = 0;
            -        dataLocations_ =
            -            com.google.protobuf.LazyStringArrayList.emptyList();
            +        dataLocations_ = com.google.protobuf.LazyStringArrayList.emptyList();
                     return this;
                   }
             
                   @java.lang.Override
            -      public com.google.protobuf.Descriptors.Descriptor
            -          getDescriptorForType() {
            -        return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_descriptor;
            +      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            +        return com.google.storage.control.v2.StorageControlProto
            +            .internal_static_google_storage_control_v2_StorageLayout_CustomPlacementConfig_descriptor;
                   }
             
                   @java.lang.Override
            -      public com.google.storage.control.v2.StorageLayout.CustomPlacementConfig getDefaultInstanceForType() {
            -        return com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.getDefaultInstance();
            +      public com.google.storage.control.v2.StorageLayout.CustomPlacementConfig
            +          getDefaultInstanceForType() {
            +        return com.google.storage.control.v2.StorageLayout.CustomPlacementConfig
            +            .getDefaultInstance();
                   }
             
                   @java.lang.Override
            @@ -417,13 +471,17 @@ public com.google.storage.control.v2.StorageLayout.CustomPlacementConfig build()
             
                   @java.lang.Override
                   public com.google.storage.control.v2.StorageLayout.CustomPlacementConfig buildPartial() {
            -        com.google.storage.control.v2.StorageLayout.CustomPlacementConfig result = new com.google.storage.control.v2.StorageLayout.CustomPlacementConfig(this);
            -        if (bitField0_ != 0) { buildPartial0(result); }
            +        com.google.storage.control.v2.StorageLayout.CustomPlacementConfig result =
            +            new com.google.storage.control.v2.StorageLayout.CustomPlacementConfig(this);
            +        if (bitField0_ != 0) {
            +          buildPartial0(result);
            +        }
                     onBuilt();
                     return result;
                   }
             
            -      private void buildPartial0(com.google.storage.control.v2.StorageLayout.CustomPlacementConfig result) {
            +      private void buildPartial0(
            +          com.google.storage.control.v2.StorageLayout.CustomPlacementConfig result) {
                     int from_bitField0_ = bitField0_;
                     if (((from_bitField0_ & 0x00000001) != 0)) {
                       dataLocations_.makeImmutable();
            @@ -435,46 +493,53 @@ private void buildPartial0(com.google.storage.control.v2.StorageLayout.CustomPla
                   public Builder clone() {
                     return super.clone();
                   }
            +
                   @java.lang.Override
                   public Builder setField(
            -          com.google.protobuf.Descriptors.FieldDescriptor field,
            -          java.lang.Object value) {
            +          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                     return super.setField(field, value);
                   }
            +
                   @java.lang.Override
            -      public Builder clearField(
            -          com.google.protobuf.Descriptors.FieldDescriptor field) {
            +      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
                     return super.clearField(field);
                   }
            +
                   @java.lang.Override
            -      public Builder clearOneof(
            -          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
            +      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                     return super.clearOneof(oneof);
                   }
            +
                   @java.lang.Override
                   public Builder setRepeatedField(
                       com.google.protobuf.Descriptors.FieldDescriptor field,
            -          int index, java.lang.Object value) {
            +          int index,
            +          java.lang.Object value) {
                     return super.setRepeatedField(field, index, value);
                   }
            +
                   @java.lang.Override
                   public Builder addRepeatedField(
            -          com.google.protobuf.Descriptors.FieldDescriptor field,
            -          java.lang.Object value) {
            +          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                     return super.addRepeatedField(field, value);
                   }
            +
                   @java.lang.Override
                   public Builder mergeFrom(com.google.protobuf.Message other) {
                     if (other instanceof com.google.storage.control.v2.StorageLayout.CustomPlacementConfig) {
            -          return mergeFrom((com.google.storage.control.v2.StorageLayout.CustomPlacementConfig)other);
            +          return mergeFrom(
            +              (com.google.storage.control.v2.StorageLayout.CustomPlacementConfig) other);
                     } else {
                       super.mergeFrom(other);
                       return this;
                     }
                   }
             
            -      public Builder mergeFrom(com.google.storage.control.v2.StorageLayout.CustomPlacementConfig other) {
            -        if (other == com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.getDefaultInstance()) return this;
            +      public Builder mergeFrom(
            +          com.google.storage.control.v2.StorageLayout.CustomPlacementConfig other) {
            +        if (other
            +            == com.google.storage.control.v2.StorageLayout.CustomPlacementConfig
            +                .getDefaultInstance()) return this;
                     if (!other.dataLocations_.isEmpty()) {
                       if (dataLocations_.isEmpty()) {
                         dataLocations_ = other.dataLocations_;
            @@ -511,18 +576,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) {
            @@ -532,10 +599,12 @@ public Builder mergeFrom(
                     } // finally
                     return this;
                   }
            +
                   private int bitField0_;
             
                   private com.google.protobuf.LazyStringArrayList dataLocations_ =
                       com.google.protobuf.LazyStringArrayList.emptyList();
            +
                   private void ensureDataLocationsIsMutable() {
                     if (!dataLocations_.isModifiable()) {
                       dataLocations_ = new com.google.protobuf.LazyStringArrayList(dataLocations_);
            @@ -543,35 +612,43 @@ private void ensureDataLocationsIsMutable() {
                     bitField0_ |= 0x00000001;
                   }
                   /**
            +       *
            +       *
                    * 
                    * List of locations to use for data placement.
                    * 
            * * repeated string data_locations = 1; + * * @return A list containing the dataLocations. */ - public com.google.protobuf.ProtocolStringList - getDataLocationsList() { + public com.google.protobuf.ProtocolStringList getDataLocationsList() { dataLocations_.makeImmutable(); return dataLocations_; } /** + * + * *
                    * List of locations to use for data placement.
                    * 
            * * repeated string data_locations = 1; + * * @return The count of dataLocations. */ public int getDataLocationsCount() { return dataLocations_.size(); } /** + * + * *
                    * List of locations to use for data placement.
                    * 
            * * repeated string data_locations = 1; + * * @param index The index of the element to return. * @return The dataLocations at the given index. */ @@ -579,31 +656,37 @@ public java.lang.String getDataLocations(int index) { return dataLocations_.get(index); } /** + * + * *
                    * List of locations to use for data placement.
                    * 
            * * repeated string data_locations = 1; + * * @param index The index of the value to return. * @return The bytes of the dataLocations at the given index. */ - public com.google.protobuf.ByteString - getDataLocationsBytes(int index) { + public com.google.protobuf.ByteString getDataLocationsBytes(int index) { return dataLocations_.getByteString(index); } /** + * + * *
                    * List of locations to use for data placement.
                    * 
            * * repeated string data_locations = 1; + * * @param index The index to set the value at. * @param value The dataLocations to set. * @return This builder for chaining. */ - public Builder setDataLocations( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDataLocations(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureDataLocationsIsMutable(); dataLocations_.set(index, value); bitField0_ |= 0x00000001; @@ -611,17 +694,21 @@ public Builder setDataLocations( return this; } /** + * + * *
                    * List of locations to use for data placement.
                    * 
            * * repeated string data_locations = 1; + * * @param value The dataLocations to add. * @return This builder for chaining. */ - public Builder addDataLocations( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addDataLocations(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureDataLocationsIsMutable(); dataLocations_.add(value); bitField0_ |= 0x00000001; @@ -629,50 +716,58 @@ public Builder addDataLocations( return this; } /** + * + * *
                    * List of locations to use for data placement.
                    * 
            * * repeated string data_locations = 1; + * * @param values The dataLocations to add. * @return This builder for chaining. */ - public Builder addAllDataLocations( - java.lang.Iterable values) { + public Builder addAllDataLocations(java.lang.Iterable values) { ensureDataLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dataLocations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataLocations_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
                    * List of locations to use for data placement.
                    * 
            * * repeated string data_locations = 1; + * * @return This builder for chaining. */ public Builder clearDataLocations() { - dataLocations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + dataLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
                    * List of locations to use for data placement.
                    * 
            * * repeated string data_locations = 1; + * * @param value The bytes of the dataLocations to add. * @return This builder for chaining. */ - public Builder addDataLocationsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addDataLocationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureDataLocationsIsMutable(); dataLocations_.add(value); @@ -680,6 +775,7 @@ public Builder addDataLocationsBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -692,41 +788,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.storage.control.v2.StorageLayout.CustomPlacementConfig) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.StorageLayout.CustomPlacementConfig) - private static final com.google.storage.control.v2.StorageLayout.CustomPlacementConfig DEFAULT_INSTANCE; + private static final com.google.storage.control.v2.StorageLayout.CustomPlacementConfig + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.storage.control.v2.StorageLayout.CustomPlacementConfig(); } - public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig getDefaultInstance() { + public static com.google.storage.control.v2.StorageLayout.CustomPlacementConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomPlacementConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomPlacementConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -738,73 +837,83 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.storage.control.v2.StorageLayout.CustomPlacementConfig getDefaultInstanceForType() { + public com.google.storage.control.v2.StorageLayout.CustomPlacementConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface HierarchicalNamespaceOrBuilder extends + public interface HierarchicalNamespaceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.StorageLayout.HierarchicalNamespace) com.google.protobuf.MessageOrBuilder { /** + * + * *
                  * Enables the hierarchical namespace feature.
                  * 
            * * bool enabled = 1; + * * @return The enabled. */ boolean getEnabled(); } /** + * + * *
                * Configuration for a bucket's hierarchical namespace feature.
                * 
            * * Protobuf type {@code google.storage.control.v2.StorageLayout.HierarchicalNamespace} */ - public static final class HierarchicalNamespace extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class HierarchicalNamespace extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.control.v2.StorageLayout.HierarchicalNamespace) HierarchicalNamespaceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use HierarchicalNamespace.newBuilder() to construct. private HierarchicalNamespace(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private HierarchicalNamespace() { - } + + private HierarchicalNamespace() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new HierarchicalNamespace(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.class, com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder.class); + com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.class, + com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder.class); } public static final int ENABLED_FIELD_NUMBER = 1; private boolean enabled_ = false; /** + * + * *
                  * Enables the hierarchical namespace feature.
                  * 
            * * bool enabled = 1; + * * @return The enabled. */ @java.lang.Override @@ -813,6 +922,7 @@ public boolean getEnabled() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -824,8 +934,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_); } @@ -839,8 +948,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; @@ -850,15 +958,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.control.v2.StorageLayout.HierarchicalNamespace)) { return super.equals(obj); } - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace other = (com.google.storage.control.v2.StorageLayout.HierarchicalNamespace) obj; + com.google.storage.control.v2.StorageLayout.HierarchicalNamespace other = + (com.google.storage.control.v2.StorageLayout.HierarchicalNamespace) obj; - if (getEnabled() - != other.getEnabled()) return false; + if (getEnabled() != other.getEnabled()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -871,97 +979,102 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.storage.control.v2.StorageLayout.HierarchicalNamespace prototype) { + + public static Builder newBuilder( + com.google.storage.control.v2.StorageLayout.HierarchicalNamespace prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -971,39 +1084,42 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
                  * Configuration for a bucket's hierarchical namespace feature.
                  * 
            * * Protobuf type {@code google.storage.control.v2.StorageLayout.HierarchicalNamespace} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.storage.control.v2.StorageLayout.HierarchicalNamespace) com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.class, com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder.class); + com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.class, + com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder.class); } - // Construct using com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.newBuilder() - private Builder() { + // Construct using + // com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1013,14 +1129,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_StorageLayout_HierarchicalNamespace_descriptor; } @java.lang.Override - public com.google.storage.control.v2.StorageLayout.HierarchicalNamespace getDefaultInstanceForType() { - return com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.getDefaultInstance(); + public com.google.storage.control.v2.StorageLayout.HierarchicalNamespace + getDefaultInstanceForType() { + return com.google.storage.control.v2.StorageLayout.HierarchicalNamespace + .getDefaultInstance(); } @java.lang.Override @@ -1034,13 +1152,17 @@ public com.google.storage.control.v2.StorageLayout.HierarchicalNamespace build() @java.lang.Override public com.google.storage.control.v2.StorageLayout.HierarchicalNamespace buildPartial() { - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace result = new com.google.storage.control.v2.StorageLayout.HierarchicalNamespace(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.storage.control.v2.StorageLayout.HierarchicalNamespace result = + new com.google.storage.control.v2.StorageLayout.HierarchicalNamespace(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.storage.control.v2.StorageLayout.HierarchicalNamespace result) { + private void buildPartial0( + com.google.storage.control.v2.StorageLayout.HierarchicalNamespace result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.enabled_ = enabled_; @@ -1051,46 +1173,53 @@ private void buildPartial0(com.google.storage.control.v2.StorageLayout.Hierarchi public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.control.v2.StorageLayout.HierarchicalNamespace) { - return mergeFrom((com.google.storage.control.v2.StorageLayout.HierarchicalNamespace)other); + return mergeFrom( + (com.google.storage.control.v2.StorageLayout.HierarchicalNamespace) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.storage.control.v2.StorageLayout.HierarchicalNamespace other) { - if (other == com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.storage.control.v2.StorageLayout.HierarchicalNamespace other) { + if (other + == com.google.storage.control.v2.StorageLayout.HierarchicalNamespace + .getDefaultInstance()) return this; if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } @@ -1120,17 +1249,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) { @@ -1140,15 +1271,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private boolean enabled_ ; + private boolean enabled_; /** + * + * *
                    * Enables the hierarchical namespace feature.
                    * 
            * * bool enabled = 1; + * * @return The enabled. */ @java.lang.Override @@ -1156,11 +1291,14 @@ public boolean getEnabled() { return enabled_; } /** + * + * *
                    * Enables the hierarchical namespace feature.
                    * 
            * * bool enabled = 1; + * * @param value The enabled to set. * @return This builder for chaining. */ @@ -1172,11 +1310,14 @@ public Builder setEnabled(boolean value) { return this; } /** + * + * *
                    * Enables the hierarchical namespace feature.
                    * 
            * * bool enabled = 1; + * * @return This builder for chaining. */ public Builder clearEnabled() { @@ -1185,6 +1326,7 @@ public Builder clearEnabled() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1197,41 +1339,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.storage.control.v2.StorageLayout.HierarchicalNamespace) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.StorageLayout.HierarchicalNamespace) - private static final com.google.storage.control.v2.StorageLayout.HierarchicalNamespace DEFAULT_INSTANCE; + private static final com.google.storage.control.v2.StorageLayout.HierarchicalNamespace + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.storage.control.v2.StorageLayout.HierarchicalNamespace(); } - public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace getDefaultInstance() { + public static com.google.storage.control.v2.StorageLayout.HierarchicalNamespace + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HierarchicalNamespace parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HierarchicalNamespace parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1243,23 +1388,27 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.storage.control.v2.StorageLayout.HierarchicalNamespace getDefaultInstanceForType() { + public com.google.storage.control.v2.StorageLayout.HierarchicalNamespace + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
                * Output only. The name of the StorageLayout resource.
                * Format: `projects/{project}/buckets/{bucket}/storageLayout`
                * 
            * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -1268,30 +1417,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
                * Output only. The name of the StorageLayout resource.
                * Format: `projects/{project}/buckets/{bucket}/storageLayout`
                * 
            * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1300,14 +1449,18 @@ public java.lang.String getName() { } public static final int LOCATION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object location_ = ""; /** + * + * *
                * Output only. The location of the bucket.
                * 
            * * string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The location. */ @java.lang.Override @@ -1316,29 +1469,29 @@ public java.lang.String getLocation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } } /** + * + * *
                * Output only. The location of the bucket.
                * 
            * * string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for location. */ @java.lang.Override - public com.google.protobuf.ByteString - getLocationBytes() { + public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { @@ -1347,15 +1500,19 @@ public java.lang.String getLocation() { } public static final int LOCATION_TYPE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object locationType_ = ""; /** + * + * *
                * Output only. The location type of the bucket (region, dual-region,
                * multi-region, etc).
                * 
            * * string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The locationType. */ @java.lang.Override @@ -1364,30 +1521,30 @@ public java.lang.String getLocationType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locationType_ = s; return s; } } /** + * + * *
                * Output only. The location type of the bucket (region, dual-region,
                * multi-region, etc).
                * 
            * * string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for locationType. */ @java.lang.Override - public com.google.protobuf.ByteString - getLocationTypeBytes() { + public com.google.protobuf.ByteString getLocationTypeBytes() { java.lang.Object ref = locationType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); locationType_ = b; return b; } else { @@ -1398,12 +1555,17 @@ public java.lang.String getLocationType() { public static final int CUSTOM_PLACEMENT_CONFIG_FIELD_NUMBER = 4; private com.google.storage.control.v2.StorageLayout.CustomPlacementConfig customPlacementConfig_; /** + * + * *
                * Output only. The data placement configuration for custom dual region. If
                * there is no configuration, this is not a custom dual region bucket.
                * 
            * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the customPlacementConfig field is set. */ @java.lang.Override @@ -1411,40 +1573,60 @@ public boolean hasCustomPlacementConfig() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * Output only. The data placement configuration for custom dual region. If
                * there is no configuration, this is not a custom dual region bucket.
                * 
            * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The customPlacementConfig. */ @java.lang.Override - public com.google.storage.control.v2.StorageLayout.CustomPlacementConfig getCustomPlacementConfig() { - return customPlacementConfig_ == null ? com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.getDefaultInstance() : customPlacementConfig_; + public com.google.storage.control.v2.StorageLayout.CustomPlacementConfig + getCustomPlacementConfig() { + return customPlacementConfig_ == null + ? com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.getDefaultInstance() + : customPlacementConfig_; } /** + * + * *
                * Output only. The data placement configuration for custom dual region. If
                * there is no configuration, this is not a custom dual region bucket.
                * 
            * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder getCustomPlacementConfigOrBuilder() { - return customPlacementConfig_ == null ? com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.getDefaultInstance() : customPlacementConfig_; + public com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder + getCustomPlacementConfigOrBuilder() { + return customPlacementConfig_ == null + ? com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.getDefaultInstance() + : customPlacementConfig_; } public static final int HIERARCHICAL_NAMESPACE_FIELD_NUMBER = 5; private com.google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchicalNamespace_; /** + * + * *
                * Output only. The bucket's hierarchical namespace configuration. If there is
                * no configuration, the hierarchical namespace is disabled.
                * 
            * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the hierarchicalNamespace field is set. */ @java.lang.Override @@ -1452,32 +1634,48 @@ public boolean hasHierarchicalNamespace() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
                * Output only. The bucket's hierarchical namespace configuration. If there is
                * no configuration, the hierarchical namespace is disabled.
                * 
            * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The hierarchicalNamespace. */ @java.lang.Override - public com.google.storage.control.v2.StorageLayout.HierarchicalNamespace getHierarchicalNamespace() { - return hierarchicalNamespace_ == null ? com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.getDefaultInstance() : hierarchicalNamespace_; + public com.google.storage.control.v2.StorageLayout.HierarchicalNamespace + getHierarchicalNamespace() { + return hierarchicalNamespace_ == null + ? com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.getDefaultInstance() + : hierarchicalNamespace_; } /** + * + * *
                * Output only. The bucket's hierarchical namespace configuration. If there is
                * no configuration, the hierarchical namespace is disabled.
                * 
            * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder getHierarchicalNamespaceOrBuilder() { - return hierarchicalNamespace_ == null ? com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.getDefaultInstance() : hierarchicalNamespace_; + public com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder + getHierarchicalNamespaceOrBuilder() { + return hierarchicalNamespace_ == null + ? com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.getDefaultInstance() + : hierarchicalNamespace_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1489,8 +1687,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_); } @@ -1525,12 +1722,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, locationType_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCustomPlacementConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCustomPlacementConfig()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getHierarchicalNamespace()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getHierarchicalNamespace()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1540,28 +1737,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.control.v2.StorageLayout)) { return super.equals(obj); } - com.google.storage.control.v2.StorageLayout other = (com.google.storage.control.v2.StorageLayout) obj; + com.google.storage.control.v2.StorageLayout other = + (com.google.storage.control.v2.StorageLayout) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getLocation() - .equals(other.getLocation())) return false; - if (!getLocationType() - .equals(other.getLocationType())) return false; + if (!getName().equals(other.getName())) return false; + if (!getLocation().equals(other.getLocation())) return false; + if (!getLocationType().equals(other.getLocationType())) return false; if (hasCustomPlacementConfig() != other.hasCustomPlacementConfig()) return false; if (hasCustomPlacementConfig()) { - if (!getCustomPlacementConfig() - .equals(other.getCustomPlacementConfig())) return false; + if (!getCustomPlacementConfig().equals(other.getCustomPlacementConfig())) return false; } if (hasHierarchicalNamespace() != other.hasHierarchicalNamespace()) return false; if (hasHierarchicalNamespace()) { - if (!getHierarchicalNamespace() - .equals(other.getHierarchicalNamespace())) return false; + if (!getHierarchicalNamespace().equals(other.getHierarchicalNamespace())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1593,120 +1786,127 @@ public int hashCode() { return hash; } - public static com.google.storage.control.v2.StorageLayout parseFrom( - java.nio.ByteBuffer data) + public static com.google.storage.control.v2.StorageLayout parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.StorageLayout parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.StorageLayout parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.StorageLayout parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.StorageLayout parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.control.v2.StorageLayout parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.control.v2.StorageLayout parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.StorageLayout parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.storage.control.v2.StorageLayout parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.control.v2.StorageLayout parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.control.v2.StorageLayout parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.storage.control.v2.StorageLayout parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.control.v2.StorageLayout parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.storage.control.v2.StorageLayout prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                * The storage layout configuration of a bucket.
                * 
            * * Protobuf type {@code google.storage.control.v2.StorageLayout} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.storage.control.v2.StorageLayout) com.google.storage.control.v2.StorageLayoutOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_StorageLayout_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_fieldAccessorTable + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_StorageLayout_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.control.v2.StorageLayout.class, com.google.storage.control.v2.StorageLayout.Builder.class); + com.google.storage.control.v2.StorageLayout.class, + com.google.storage.control.v2.StorageLayout.Builder.class); } // Construct using com.google.storage.control.v2.StorageLayout.newBuilder() @@ -1714,18 +1914,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) { getCustomPlacementConfigFieldBuilder(); getHierarchicalNamespaceFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1747,9 +1947,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.storage.control.v2.StorageControlProto.internal_static_google_storage_control_v2_StorageLayout_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.storage.control.v2.StorageControlProto + .internal_static_google_storage_control_v2_StorageLayout_descriptor; } @java.lang.Override @@ -1768,8 +1968,11 @@ public com.google.storage.control.v2.StorageLayout build() { @java.lang.Override public com.google.storage.control.v2.StorageLayout buildPartial() { - com.google.storage.control.v2.StorageLayout result = new com.google.storage.control.v2.StorageLayout(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.storage.control.v2.StorageLayout result = + new com.google.storage.control.v2.StorageLayout(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1787,15 +1990,17 @@ private void buildPartial0(com.google.storage.control.v2.StorageLayout result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { - result.customPlacementConfig_ = customPlacementConfigBuilder_ == null - ? customPlacementConfig_ - : customPlacementConfigBuilder_.build(); + result.customPlacementConfig_ = + customPlacementConfigBuilder_ == null + ? customPlacementConfig_ + : customPlacementConfigBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.hierarchicalNamespace_ = hierarchicalNamespaceBuilder_ == null - ? hierarchicalNamespace_ - : hierarchicalNamespaceBuilder_.build(); + result.hierarchicalNamespace_ = + hierarchicalNamespaceBuilder_ == null + ? hierarchicalNamespace_ + : hierarchicalNamespaceBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -1805,38 +2010,39 @@ private void buildPartial0(com.google.storage.control.v2.StorageLayout result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.control.v2.StorageLayout) { - return mergeFrom((com.google.storage.control.v2.StorageLayout)other); + return mergeFrom((com.google.storage.control.v2.StorageLayout) other); } else { super.mergeFrom(other); return this; @@ -1892,41 +2098,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - location_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - locationType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getCustomPlacementConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - input.readMessage( - getHierarchicalNamespaceFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + locationType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getCustomPlacementConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + getHierarchicalNamespaceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1936,23 +2146,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
                  * Output only. The name of the StorageLayout resource.
                  * Format: `projects/{project}/buckets/{bucket}/storageLayout`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1961,21 +2174,22 @@ public java.lang.String getName() { } } /** + * + * *
                  * Output only. The name of the StorageLayout resource.
                  * Format: `projects/{project}/buckets/{bucket}/storageLayout`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1983,30 +2197,37 @@ public java.lang.String getName() { } } /** + * + * *
                  * Output only. The name of the StorageLayout resource.
                  * Format: `projects/{project}/buckets/{bucket}/storageLayout`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
                  * Output only. The name of the StorageLayout resource.
                  * Format: `projects/{project}/buckets/{bucket}/storageLayout`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -2016,18 +2237,22 @@ public Builder clearName() { return this; } /** + * + * *
                  * Output only. The name of the StorageLayout resource.
                  * Format: `projects/{project}/buckets/{bucket}/storageLayout`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -2037,18 +2262,20 @@ public Builder setNameBytes( private java.lang.Object location_ = ""; /** + * + * *
                  * Output only. The location of the bucket.
                  * 
            * * string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; @@ -2057,20 +2284,21 @@ public java.lang.String getLocation() { } } /** + * + * *
                  * Output only. The location of the bucket.
                  * 
            * * string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for location. */ - public com.google.protobuf.ByteString - getLocationBytes() { + public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { @@ -2078,28 +2306,35 @@ public java.lang.String getLocation() { } } /** + * + * *
                  * Output only. The location of the bucket.
                  * 
            * * string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } location_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
                  * Output only. The location of the bucket.
                  * 
            * * string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearLocation() { @@ -2109,17 +2344,21 @@ public Builder clearLocation() { return this; } /** + * + * *
                  * Output only. The location of the bucket.
                  * 
            * * string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for location to set. * @return This builder for chaining. */ - public Builder setLocationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); location_ = value; bitField0_ |= 0x00000002; @@ -2129,19 +2368,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 = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The locationType. */ public java.lang.String getLocationType() { java.lang.Object ref = locationType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locationType_ = s; return s; @@ -2150,21 +2391,22 @@ public java.lang.String getLocationType() { } } /** + * + * *
                  * Output only. The location type of the bucket (region, dual-region,
                  * multi-region, etc).
                  * 
            * * string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for locationType. */ - public com.google.protobuf.ByteString - getLocationTypeBytes() { + public com.google.protobuf.ByteString getLocationTypeBytes() { java.lang.Object ref = locationType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); locationType_ = b; return b; } else { @@ -2172,30 +2414,37 @@ public java.lang.String getLocationType() { } } /** + * + * *
                  * Output only. The location type of the bucket (region, dual-region,
                  * multi-region, etc).
                  * 
            * * string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The locationType to set. * @return This builder for chaining. */ - public Builder setLocationType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLocationType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } locationType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
                  * Output only. The location type of the bucket (region, dual-region,
                  * multi-region, etc).
                  * 
            * * string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearLocationType() { @@ -2205,18 +2454,22 @@ public Builder clearLocationType() { return this; } /** + * + * *
                  * Output only. The location type of the bucket (region, dual-region,
                  * multi-region, etc).
                  * 
            * * string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for locationType to set. * @return This builder for chaining. */ - public Builder setLocationTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLocationTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); locationType_ = value; bitField0_ |= 0x00000004; @@ -2224,46 +2477,68 @@ public Builder setLocationTypeBytes( return this; } - private com.google.storage.control.v2.StorageLayout.CustomPlacementConfig customPlacementConfig_; + private com.google.storage.control.v2.StorageLayout.CustomPlacementConfig + customPlacementConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.StorageLayout.CustomPlacementConfig, com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder, com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder> customPlacementConfigBuilder_; + com.google.storage.control.v2.StorageLayout.CustomPlacementConfig, + com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder, + com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder> + customPlacementConfigBuilder_; /** + * + * *
                  * Output only. The data placement configuration for custom dual region. If
                  * there is no configuration, this is not a custom dual region bucket.
                  * 
            * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the customPlacementConfig field is set. */ public boolean hasCustomPlacementConfig() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
                  * Output only. The data placement configuration for custom dual region. If
                  * there is no configuration, this is not a custom dual region bucket.
                  * 
            * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The customPlacementConfig. */ - public com.google.storage.control.v2.StorageLayout.CustomPlacementConfig getCustomPlacementConfig() { + public com.google.storage.control.v2.StorageLayout.CustomPlacementConfig + getCustomPlacementConfig() { if (customPlacementConfigBuilder_ == null) { - return customPlacementConfig_ == null ? com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.getDefaultInstance() : customPlacementConfig_; + return customPlacementConfig_ == null + ? com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.getDefaultInstance() + : customPlacementConfig_; } else { return customPlacementConfigBuilder_.getMessage(); } } /** + * + * *
                  * Output only. The data placement configuration for custom dual region. If
                  * there is no configuration, this is not a custom dual region bucket.
                  * 
            * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCustomPlacementConfig(com.google.storage.control.v2.StorageLayout.CustomPlacementConfig value) { + public Builder setCustomPlacementConfig( + com.google.storage.control.v2.StorageLayout.CustomPlacementConfig value) { if (customPlacementConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2277,12 +2552,16 @@ public Builder setCustomPlacementConfig(com.google.storage.control.v2.StorageLay return this; } /** + * + * *
                  * Output only. The data placement configuration for custom dual region. If
                  * there is no configuration, this is not a custom dual region bucket.
                  * 
            * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCustomPlacementConfig( com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder builderForValue) { @@ -2296,18 +2575,25 @@ public Builder setCustomPlacementConfig( return this; } /** + * + * *
                  * Output only. The data placement configuration for custom dual region. If
                  * there is no configuration, this is not a custom dual region bucket.
                  * 
            * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeCustomPlacementConfig(com.google.storage.control.v2.StorageLayout.CustomPlacementConfig value) { + public Builder mergeCustomPlacementConfig( + com.google.storage.control.v2.StorageLayout.CustomPlacementConfig value) { if (customPlacementConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - customPlacementConfig_ != null && - customPlacementConfig_ != com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && customPlacementConfig_ != null + && customPlacementConfig_ + != com.google.storage.control.v2.StorageLayout.CustomPlacementConfig + .getDefaultInstance()) { getCustomPlacementConfigBuilder().mergeFrom(value); } else { customPlacementConfig_ = value; @@ -2322,12 +2608,16 @@ public Builder mergeCustomPlacementConfig(com.google.storage.control.v2.StorageL return this; } /** + * + * *
                  * Output only. The data placement configuration for custom dual region. If
                  * there is no configuration, this is not a custom dual region bucket.
                  * 
            * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCustomPlacementConfig() { bitField0_ = (bitField0_ & ~0x00000008); @@ -2340,96 +2630,136 @@ public Builder clearCustomPlacementConfig() { return this; } /** + * + * *
                  * Output only. The data placement configuration for custom dual region. If
                  * there is no configuration, this is not a custom dual region bucket.
                  * 
            * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder getCustomPlacementConfigBuilder() { + public com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder + getCustomPlacementConfigBuilder() { bitField0_ |= 0x00000008; onChanged(); return getCustomPlacementConfigFieldBuilder().getBuilder(); } /** + * + * *
                  * Output only. The data placement configuration for custom dual region. If
                  * there is no configuration, this is not a custom dual region bucket.
                  * 
            * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder getCustomPlacementConfigOrBuilder() { + public com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder + getCustomPlacementConfigOrBuilder() { if (customPlacementConfigBuilder_ != null) { return customPlacementConfigBuilder_.getMessageOrBuilder(); } else { - return customPlacementConfig_ == null ? - com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.getDefaultInstance() : customPlacementConfig_; + return customPlacementConfig_ == null + ? com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.getDefaultInstance() + : customPlacementConfig_; } } /** + * + * *
                  * Output only. The data placement configuration for custom dual region. If
                  * there is no configuration, this is not a custom dual region bucket.
                  * 
            * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.StorageLayout.CustomPlacementConfig, com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder, com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder> + com.google.storage.control.v2.StorageLayout.CustomPlacementConfig, + com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder, + com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder> getCustomPlacementConfigFieldBuilder() { if (customPlacementConfigBuilder_ == null) { - customPlacementConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.StorageLayout.CustomPlacementConfig, com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder, com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder>( - getCustomPlacementConfig(), - getParentForChildren(), - isClean()); + customPlacementConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.control.v2.StorageLayout.CustomPlacementConfig, + com.google.storage.control.v2.StorageLayout.CustomPlacementConfig.Builder, + com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder>( + getCustomPlacementConfig(), getParentForChildren(), isClean()); customPlacementConfig_ = null; } return customPlacementConfigBuilder_; } - private com.google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchicalNamespace_; + private com.google.storage.control.v2.StorageLayout.HierarchicalNamespace + hierarchicalNamespace_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace, com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder, com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder> hierarchicalNamespaceBuilder_; + com.google.storage.control.v2.StorageLayout.HierarchicalNamespace, + com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder, + com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder> + hierarchicalNamespaceBuilder_; /** + * + * *
                  * Output only. The bucket's hierarchical namespace configuration. If there is
                  * no configuration, the hierarchical namespace is disabled.
                  * 
            * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the hierarchicalNamespace field is set. */ public boolean hasHierarchicalNamespace() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
                  * Output only. The bucket's hierarchical namespace configuration. If there is
                  * no configuration, the hierarchical namespace is disabled.
                  * 
            * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The hierarchicalNamespace. */ - public com.google.storage.control.v2.StorageLayout.HierarchicalNamespace getHierarchicalNamespace() { + public com.google.storage.control.v2.StorageLayout.HierarchicalNamespace + getHierarchicalNamespace() { if (hierarchicalNamespaceBuilder_ == null) { - return hierarchicalNamespace_ == null ? com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.getDefaultInstance() : hierarchicalNamespace_; + return hierarchicalNamespace_ == null + ? com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.getDefaultInstance() + : hierarchicalNamespace_; } else { return hierarchicalNamespaceBuilder_.getMessage(); } } /** + * + * *
                  * Output only. The bucket's hierarchical namespace configuration. If there is
                  * no configuration, the hierarchical namespace is disabled.
                  * 
            * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setHierarchicalNamespace(com.google.storage.control.v2.StorageLayout.HierarchicalNamespace value) { + public Builder setHierarchicalNamespace( + com.google.storage.control.v2.StorageLayout.HierarchicalNamespace value) { if (hierarchicalNamespaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2443,12 +2773,16 @@ public Builder setHierarchicalNamespace(com.google.storage.control.v2.StorageLay return this; } /** + * + * *
                  * Output only. The bucket's hierarchical namespace configuration. If there is
                  * no configuration, the hierarchical namespace is disabled.
                  * 
            * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setHierarchicalNamespace( com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder builderForValue) { @@ -2462,18 +2796,25 @@ public Builder setHierarchicalNamespace( return this; } /** + * + * *
                  * Output only. The bucket's hierarchical namespace configuration. If there is
                  * no configuration, the hierarchical namespace is disabled.
                  * 
            * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeHierarchicalNamespace(com.google.storage.control.v2.StorageLayout.HierarchicalNamespace value) { + public Builder mergeHierarchicalNamespace( + com.google.storage.control.v2.StorageLayout.HierarchicalNamespace value) { if (hierarchicalNamespaceBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - hierarchicalNamespace_ != null && - hierarchicalNamespace_ != com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && hierarchicalNamespace_ != null + && hierarchicalNamespace_ + != com.google.storage.control.v2.StorageLayout.HierarchicalNamespace + .getDefaultInstance()) { getHierarchicalNamespaceBuilder().mergeFrom(value); } else { hierarchicalNamespace_ = value; @@ -2488,12 +2829,16 @@ public Builder mergeHierarchicalNamespace(com.google.storage.control.v2.StorageL return this; } /** + * + * *
                  * Output only. The bucket's hierarchical namespace configuration. If there is
                  * no configuration, the hierarchical namespace is disabled.
                  * 
            * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearHierarchicalNamespace() { bitField0_ = (bitField0_ & ~0x00000010); @@ -2506,58 +2851,76 @@ public Builder clearHierarchicalNamespace() { return this; } /** + * + * *
                  * Output only. The bucket's hierarchical namespace configuration. If there is
                  * no configuration, the hierarchical namespace is disabled.
                  * 
            * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder getHierarchicalNamespaceBuilder() { + public com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder + getHierarchicalNamespaceBuilder() { bitField0_ |= 0x00000010; onChanged(); return getHierarchicalNamespaceFieldBuilder().getBuilder(); } /** + * + * *
                  * Output only. The bucket's hierarchical namespace configuration. If there is
                  * no configuration, the hierarchical namespace is disabled.
                  * 
            * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder getHierarchicalNamespaceOrBuilder() { + public com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder + getHierarchicalNamespaceOrBuilder() { if (hierarchicalNamespaceBuilder_ != null) { return hierarchicalNamespaceBuilder_.getMessageOrBuilder(); } else { - return hierarchicalNamespace_ == null ? - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.getDefaultInstance() : hierarchicalNamespace_; + return hierarchicalNamespace_ == null + ? com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.getDefaultInstance() + : hierarchicalNamespace_; } } /** + * + * *
                  * Output only. The bucket's hierarchical namespace configuration. If there is
                  * no configuration, the hierarchical namespace is disabled.
                  * 
            * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace, com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder, com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder> + com.google.storage.control.v2.StorageLayout.HierarchicalNamespace, + com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder, + com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder> getHierarchicalNamespaceFieldBuilder() { if (hierarchicalNamespaceBuilder_ == null) { - hierarchicalNamespaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.control.v2.StorageLayout.HierarchicalNamespace, com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder, com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder>( - getHierarchicalNamespace(), - getParentForChildren(), - isClean()); + hierarchicalNamespaceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.control.v2.StorageLayout.HierarchicalNamespace, + com.google.storage.control.v2.StorageLayout.HierarchicalNamespace.Builder, + com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder>( + getHierarchicalNamespace(), getParentForChildren(), isClean()); hierarchicalNamespace_ = null; } return hierarchicalNamespaceBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2567,12 +2930,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.storage.control.v2.StorageLayout) } // @@protoc_insertion_point(class_scope:google.storage.control.v2.StorageLayout) private static final com.google.storage.control.v2.StorageLayout DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.storage.control.v2.StorageLayout(); } @@ -2581,27 +2944,27 @@ public static com.google.storage.control.v2.StorageLayout getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StorageLayout parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StorageLayout parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2616,6 +2979,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.control.v2.StorageLayout getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayoutName.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayoutName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayoutName.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayoutName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayoutOrBuilder.java b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayoutOrBuilder.java similarity index 63% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayoutOrBuilder.java rename to proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayoutOrBuilder.java index 80e02a9874..cc07785db2 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayoutOrBuilder.java +++ b/proto-google-cloud-storage-control-v2/src/main/java/com/google/storage/control/v2/StorageLayoutOrBuilder.java @@ -1,134 +1,195 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/control/v2/storage_control.proto // Protobuf Java Version: 3.25.3 package com.google.storage.control.v2; -public interface StorageLayoutOrBuilder extends +public interface StorageLayoutOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.storage.control.v2.StorageLayout) com.google.protobuf.MessageOrBuilder { /** + * + * *
                * Output only. The name of the StorageLayout resource.
                * Format: `projects/{project}/buckets/{bucket}/storageLayout`
                * 
            * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
                * Output only. The name of the StorageLayout resource.
                * Format: `projects/{project}/buckets/{bucket}/storageLayout`
                * 
            * * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
                * Output only. The location of the bucket.
                * 
            * * string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The location. */ java.lang.String getLocation(); /** + * + * *
                * Output only. The location of the bucket.
                * 
            * * string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for location. */ - com.google.protobuf.ByteString - getLocationBytes(); + com.google.protobuf.ByteString getLocationBytes(); /** + * + * *
                * Output only. The location type of the bucket (region, dual-region,
                * multi-region, etc).
                * 
            * * string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The locationType. */ java.lang.String getLocationType(); /** + * + * *
                * Output only. The location type of the bucket (region, dual-region,
                * multi-region, etc).
                * 
            * * string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for locationType. */ - com.google.protobuf.ByteString - getLocationTypeBytes(); + com.google.protobuf.ByteString getLocationTypeBytes(); /** + * + * *
                * Output only. The data placement configuration for custom dual region. If
                * there is no configuration, this is not a custom dual region bucket.
                * 
            * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the customPlacementConfig field is set. */ boolean hasCustomPlacementConfig(); /** + * + * *
                * Output only. The data placement configuration for custom dual region. If
                * there is no configuration, this is not a custom dual region bucket.
                * 
            * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The customPlacementConfig. */ com.google.storage.control.v2.StorageLayout.CustomPlacementConfig getCustomPlacementConfig(); /** + * + * *
                * Output only. The data placement configuration for custom dual region. If
                * there is no configuration, this is not a custom dual region bucket.
                * 
            * - * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder getCustomPlacementConfigOrBuilder(); + com.google.storage.control.v2.StorageLayout.CustomPlacementConfigOrBuilder + getCustomPlacementConfigOrBuilder(); /** + * + * *
                * Output only. The bucket's hierarchical namespace configuration. If there is
                * no configuration, the hierarchical namespace is disabled.
                * 
            * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the hierarchicalNamespace field is set. */ boolean hasHierarchicalNamespace(); /** + * + * *
                * Output only. The bucket's hierarchical namespace configuration. If there is
                * no configuration, the hierarchical namespace is disabled.
                * 
            * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The hierarchicalNamespace. */ com.google.storage.control.v2.StorageLayout.HierarchicalNamespace getHierarchicalNamespace(); /** + * + * *
                * Output only. The bucket's hierarchical namespace configuration. If there is
                * no configuration, the hierarchical namespace is disabled.
                * 
            * - * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder getHierarchicalNamespaceOrBuilder(); + com.google.storage.control.v2.StorageLayout.HierarchicalNamespaceOrBuilder + getHierarchicalNamespaceOrBuilder(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/proto/google/storage/control/v2/storage_control.proto b/proto-google-cloud-storage-control-v2/src/main/proto/google/storage/control/v2/storage_control.proto similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-storage-control-v2/src/main/proto/google/storage/control/v2/storage_control.proto rename to proto-google-cloud-storage-control-v2/src/main/proto/google/storage/control/v2/storage_control.proto diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequest.java similarity index 76% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequest.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequest.java index 30df420de5..910d25b01d 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequest.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequest.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,55 +20,62 @@ package com.google.storage.v2; /** + * + * *
              * Request message for BidiWriteObject.
              * 
            * * Protobuf type {@code google.storage.v2.BidiWriteObjectRequest} */ -public final class BidiWriteObjectRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BidiWriteObjectRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.v2.BidiWriteObjectRequest) BidiWriteObjectRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BidiWriteObjectRequest.newBuilder() to construct. private BidiWriteObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BidiWriteObjectRequest() { - } + + private BidiWriteObjectRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BidiWriteObjectRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BidiWriteObjectRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_BidiWriteObjectRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BidiWriteObjectRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_BidiWriteObjectRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.BidiWriteObjectRequest.class, com.google.storage.v2.BidiWriteObjectRequest.Builder.class); + com.google.storage.v2.BidiWriteObjectRequest.class, + com.google.storage.v2.BidiWriteObjectRequest.Builder.class); } private int bitField0_; private int firstMessageCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object firstMessage_; + public enum FirstMessageCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { UPLOAD_ID(1), WRITE_OBJECT_SPEC(2), FIRSTMESSAGE_NOT_SET(0); private final int value; + private FirstMessageCase(int value) { this.value = value; } @@ -69,32 +91,39 @@ public static FirstMessageCase valueOf(int value) { public static FirstMessageCase forNumber(int value) { switch (value) { - case 1: return UPLOAD_ID; - case 2: return WRITE_OBJECT_SPEC; - case 0: return FIRSTMESSAGE_NOT_SET; - default: return null; + case 1: + return UPLOAD_ID; + case 2: + return WRITE_OBJECT_SPEC; + case 0: + return FIRSTMESSAGE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public FirstMessageCase - getFirstMessageCase() { - return FirstMessageCase.forNumber( - firstMessageCase_); + public FirstMessageCase getFirstMessageCase() { + return FirstMessageCase.forNumber(firstMessageCase_); } private int dataCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object data_; + public enum DataCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CHECKSUMMED_DATA(4), DATA_NOT_SET(0); private final int value; + private DataCase(int value) { this.value = value; } @@ -110,42 +139,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() { @@ -156,8 +193,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; @@ -166,24 +202,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; } @@ -195,12 +232,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 @@ -208,22 +248,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.
            @@ -234,7 +279,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();
               }
            @@ -242,6 +287,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.
            @@ -259,6 +306,7 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde
                * 
            * * int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The writeOffset. */ @java.lang.Override @@ -268,12 +316,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 @@ -281,22 +332,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.
            @@ -307,7 +363,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();
               }
            @@ -315,6 +371,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 specified checksums the call will fail. May only be
            @@ -323,6 +381,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 @@ -330,6 +389,8 @@ public boolean hasObjectChecksums() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * Checksums for the complete object. If the checksums computed by the service
                * don't match the specified checksums the call will fail. May only be
            @@ -338,13 +399,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 specified checksums the call will fail. May only be
            @@ -356,12 +422,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 STATE_LOOKUP_FIELD_NUMBER = 7;
               private boolean stateLookup_ = false;
               /**
            +   *
            +   *
                * 
                * For each BidiWriteObjectRequest where state_lookup is `true` or the client
                * closes the stream, the service will send a BidiWriteObjectResponse
            @@ -374,6 +444,7 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
                * 
            * * bool state_lookup = 7; + * * @return The stateLookup. */ @java.lang.Override @@ -384,6 +455,8 @@ public boolean getStateLookup() { public static final int FLUSH_FIELD_NUMBER = 8; private boolean flush_ = false; /** + * + * *
                * Persists data written on the stream, up to and including the current
                * message, to permanent storage. This option should be used sparingly as it
            @@ -394,6 +467,7 @@ public boolean getStateLookup() {
                * 
            * * bool flush = 8; + * * @return The flush. */ @java.lang.Override @@ -404,6 +478,8 @@ public boolean getFlush() { public static final int FINISH_WRITE_FIELD_NUMBER = 9; private boolean finishWrite_ = false; /** + * + * *
                * If `true`, this indicates that the write is complete. Sending any
                * `WriteObjectRequest`s subsequent to one in which `finish_write` is `true`
            @@ -414,6 +490,7 @@ public boolean getFlush() {
                * 
            * * bool finish_write = 9; + * * @return The finishWrite. */ @java.lang.Override @@ -424,11 +501,14 @@ public boolean getFinishWrite() { public static final int COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER = 10; private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; /** + * + * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; + * * @return Whether the commonObjectRequestParams field is set. */ @java.lang.Override @@ -436,18 +516,25 @@ 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 = 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.
                * 
            @@ -455,11 +542,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; @@ -471,8 +562,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_); } @@ -513,36 +603,34 @@ 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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getObjectChecksums()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getObjectChecksums()); } if (stateLookup_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, stateLookup_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, stateLookup_); } if (flush_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, flush_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, flush_); } if (finishWrite_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(9, finishWrite_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, finishWrite_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getCommonObjectRequestParams()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, getCommonObjectRequestParams()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -552,40 +640,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.BidiWriteObjectRequest)) { return super.equals(obj); } - com.google.storage.v2.BidiWriteObjectRequest other = (com.google.storage.v2.BidiWriteObjectRequest) obj; + com.google.storage.v2.BidiWriteObjectRequest other = + (com.google.storage.v2.BidiWriteObjectRequest) obj; - if (getWriteOffset() - != other.getWriteOffset()) return false; + if (getWriteOffset() != other.getWriteOffset()) return false; if (hasObjectChecksums() != other.hasObjectChecksums()) return false; if (hasObjectChecksums()) { - if (!getObjectChecksums() - .equals(other.getObjectChecksums())) return false; - } - if (getStateLookup() - != other.getStateLookup()) return false; - if (getFlush() - != other.getFlush()) return false; - if (getFinishWrite() - != other.getFinishWrite()) return false; + if (!getObjectChecksums().equals(other.getObjectChecksums())) return false; + } + if (getStateLookup() != other.getStateLookup()) return false; + if (getFlush() != other.getFlush()) return false; + if (getFinishWrite() != other.getFinishWrite()) return false; if (hasCommonObjectRequestParams() != other.hasCommonObjectRequestParams()) return false; if (hasCommonObjectRequestParams()) { - if (!getCommonObjectRequestParams() - .equals(other.getCommonObjectRequestParams())) return false; + if (!getCommonObjectRequestParams().equals(other.getCommonObjectRequestParams())) + return false; } if (!getFirstMessageCase().equals(other.getFirstMessageCase())) return false; switch (firstMessageCase_) { case 1: - if (!getUploadId() - .equals(other.getUploadId())) return false; + if (!getUploadId().equals(other.getUploadId())) return false; break; case 2: - if (!getWriteObjectSpec() - .equals(other.getWriteObjectSpec())) return false; + if (!getWriteObjectSpec().equals(other.getWriteObjectSpec())) return false; break; case 0: default: @@ -593,8 +675,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: @@ -611,21 +692,17 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + WRITE_OFFSET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getWriteOffset()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getWriteOffset()); if (hasObjectChecksums()) { hash = (37 * hash) + OBJECT_CHECKSUMS_FIELD_NUMBER; hash = (53 * hash) + getObjectChecksums().hashCode(); } hash = (37 * hash) + STATE_LOOKUP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getStateLookup()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStateLookup()); hash = (37 * hash) + FLUSH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getFlush()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFlush()); hash = (37 * hash) + FINISH_WRITE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getFinishWrite()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFinishWrite()); if (hasCommonObjectRequestParams()) { hash = (37 * hash) + COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER; hash = (53 * hash) + getCommonObjectRequestParams().hashCode(); @@ -655,120 +732,127 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.BidiWriteObjectRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.storage.v2.BidiWriteObjectRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.v2.BidiWriteObjectRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.v2.BidiWriteObjectRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.v2.BidiWriteObjectRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.v2.BidiWriteObjectRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.v2.BidiWriteObjectRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.v2.BidiWriteObjectRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.v2.BidiWriteObjectRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.storage.v2.BidiWriteObjectRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.BidiWriteObjectRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.BidiWriteObjectRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.storage.v2.BidiWriteObjectRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.v2.BidiWriteObjectRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.storage.v2.BidiWriteObjectRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                * Request message for BidiWriteObject.
                * 
            * * Protobuf type {@code google.storage.v2.BidiWriteObjectRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.storage.v2.BidiWriteObjectRequest) com.google.storage.v2.BidiWriteObjectRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BidiWriteObjectRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_BidiWriteObjectRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BidiWriteObjectRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_BidiWriteObjectRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.BidiWriteObjectRequest.class, com.google.storage.v2.BidiWriteObjectRequest.Builder.class); + com.google.storage.v2.BidiWriteObjectRequest.class, + com.google.storage.v2.BidiWriteObjectRequest.Builder.class); } // Construct using com.google.storage.v2.BidiWriteObjectRequest.newBuilder() @@ -776,18 +860,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) { getObjectChecksumsFieldBuilder(); getCommonObjectRequestParamsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -820,9 +904,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BidiWriteObjectRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_BidiWriteObjectRequest_descriptor; } @java.lang.Override @@ -841,8 +925,11 @@ public com.google.storage.v2.BidiWriteObjectRequest build() { @java.lang.Override public com.google.storage.v2.BidiWriteObjectRequest buildPartial() { - com.google.storage.v2.BidiWriteObjectRequest result = new com.google.storage.v2.BidiWriteObjectRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.storage.v2.BidiWriteObjectRequest result = + new com.google.storage.v2.BidiWriteObjectRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -855,9 +942,8 @@ private void buildPartial0(com.google.storage.v2.BidiWriteObjectRequest result) } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { - result.objectChecksums_ = objectChecksumsBuilder_ == null - ? objectChecksums_ - : objectChecksumsBuilder_.build(); + result.objectChecksums_ = + objectChecksumsBuilder_ == null ? objectChecksums_ : objectChecksumsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000020) != 0)) { @@ -870,9 +956,10 @@ private void buildPartial0(com.google.storage.v2.BidiWriteObjectRequest result) result.finishWrite_ = finishWrite_; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null - ? commonObjectRequestParams_ - : commonObjectRequestParamsBuilder_.build(); + result.commonObjectRequestParams_ = + commonObjectRequestParamsBuilder_ == null + ? commonObjectRequestParams_ + : commonObjectRequestParamsBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -881,14 +968,12 @@ private void buildPartial0(com.google.storage.v2.BidiWriteObjectRequest result) private void buildPartialOneofs(com.google.storage.v2.BidiWriteObjectRequest result) { result.firstMessageCase_ = firstMessageCase_; result.firstMessage_ = this.firstMessage_; - if (firstMessageCase_ == 2 && - writeObjectSpecBuilder_ != null) { + if (firstMessageCase_ == 2 && writeObjectSpecBuilder_ != null) { result.firstMessage_ = writeObjectSpecBuilder_.build(); } result.dataCase_ = dataCase_; result.data_ = this.data_; - if (dataCase_ == 4 && - checksummedDataBuilder_ != null) { + if (dataCase_ == 4 && checksummedDataBuilder_ != null) { result.data_ = checksummedDataBuilder_.build(); } } @@ -897,38 +982,39 @@ private void buildPartialOneofs(com.google.storage.v2.BidiWriteObjectRequest res public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.BidiWriteObjectRequest) { - return mergeFrom((com.google.storage.v2.BidiWriteObjectRequest)other); + return mergeFrom((com.google.storage.v2.BidiWriteObjectRequest) other); } else { super.mergeFrom(other); return this; @@ -956,28 +1042,33 @@ public Builder mergeFrom(com.google.storage.v2.BidiWriteObjectRequest other) { mergeCommonObjectRequestParams(other.getCommonObjectRequestParams()); } switch (other.getFirstMessageCase()) { - case UPLOAD_ID: { - firstMessageCase_ = 1; - firstMessage_ = other.firstMessage_; - onChanged(); - break; - } - case WRITE_OBJECT_SPEC: { - mergeWriteObjectSpec(other.getWriteObjectSpec()); - break; - } - case FIRSTMESSAGE_NOT_SET: { - break; - } + case UPLOAD_ID: + { + firstMessageCase_ = 1; + firstMessage_ = other.firstMessage_; + onChanged(); + break; + } + case WRITE_OBJECT_SPEC: + { + mergeWriteObjectSpec(other.getWriteObjectSpec()); + break; + } + case FIRSTMESSAGE_NOT_SET: + { + break; + } } switch (other.getDataCase()) { - case CHECKSUMMED_DATA: { - mergeChecksummedData(other.getChecksummedData()); - break; - } - case DATA_NOT_SET: { - break; - } + case CHECKSUMMED_DATA: + { + mergeChecksummedData(other.getChecksummedData()); + break; + } + case DATA_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1005,66 +1096,69 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - firstMessageCase_ = 1; - firstMessage_ = s; - break; - } // case 10 - case 18: { - input.readMessage( - getWriteObjectSpecFieldBuilder().getBuilder(), - extensionRegistry); - firstMessageCase_ = 2; - break; - } // case 18 - case 24: { - writeOffset_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - input.readMessage( - getChecksummedDataFieldBuilder().getBuilder(), - extensionRegistry); - dataCase_ = 4; - break; - } // case 34 - case 50: { - input.readMessage( - getObjectChecksumsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 50 - case 56: { - stateLookup_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 56 - case 64: { - flush_ = input.readBool(); - bitField0_ |= 0x00000040; - break; - } // case 64 - case 72: { - finishWrite_ = input.readBool(); - bitField0_ |= 0x00000080; - break; - } // case 72 - case 82: { - input.readMessage( - getCommonObjectRequestParamsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 82 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + firstMessageCase_ = 1; + firstMessage_ = s; + break; + } // case 10 + case 18: + { + input.readMessage(getWriteObjectSpecFieldBuilder().getBuilder(), extensionRegistry); + firstMessageCase_ = 2; + break; + } // case 18 + case 24: + { + writeOffset_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage(getChecksummedDataFieldBuilder().getBuilder(), extensionRegistry); + dataCase_ = 4; + break; + } // case 34 + case 50: + { + input.readMessage(getObjectChecksumsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 56: + { + stateLookup_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 56 + case 64: + { + flush_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 64 + case 72: + { + finishWrite_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 72 + case 82: + { + input.readMessage( + getCommonObjectRequestParamsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1074,12 +1168,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() { @@ -1091,10 +1185,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() { @@ -1107,12 +1200,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 @@ -1120,12 +1216,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 @@ -1135,8 +1234,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; @@ -1147,25 +1245,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; } @@ -1175,30 +1274,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() { @@ -1210,18 +1316,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; @@ -1230,14 +1340,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 @@ -1245,12 +1361,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 @@ -1268,6 +1387,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.
            @@ -1289,6 +1410,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.
            @@ -1308,6 +1431,8 @@ public Builder setWriteObjectSpec(
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * For non-resumable uploads. Describes the overall upload, including the
                  * destination bucket and object name, preconditions, etc.
            @@ -1317,10 +1442,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;
                     }
            @@ -1336,6 +1464,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.
            @@ -1360,6 +1490,8 @@ public Builder clearWriteObjectSpec() {
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * For non-resumable uploads. Describes the overall upload, including the
                  * destination bucket and object name, preconditions, etc.
            @@ -1371,6 +1503,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.
            @@ -1390,6 +1524,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.
            @@ -1398,14 +1534,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());
            @@ -1416,8 +1557,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.
            @@ -1435,6 +1578,7 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde
                  * 
            * * int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The writeOffset. */ @java.lang.Override @@ -1442,6 +1586,8 @@ public long getWriteOffset() { return writeOffset_; } /** + * + * *
                  * Required. The offset from the beginning of the object at which the data
                  * should be written.
            @@ -1459,6 +1605,7 @@ public long getWriteOffset() {
                  * 
            * * int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The writeOffset to set. * @return This builder for chaining. */ @@ -1470,6 +1617,8 @@ public Builder setWriteOffset(long value) { return this; } /** + * + * *
                  * Required. The offset from the beginning of the object at which the data
                  * should be written.
            @@ -1487,6 +1636,7 @@ public Builder setWriteOffset(long value) {
                  * 
            * * int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearWriteOffset() { @@ -1497,14 +1647,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 @@ -1512,12 +1668,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 @@ -1535,6 +1694,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.
            @@ -1556,6 +1717,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.
            @@ -1575,6 +1738,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.
            @@ -1584,10 +1749,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;
                     }
            @@ -1603,6 +1770,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.
            @@ -1627,6 +1796,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.
            @@ -1638,6 +1809,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.
            @@ -1657,6 +1830,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.
            @@ -1665,17 +1840,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;
            @@ -1685,8 +1863,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 specified checksums the call will fail. May only be
            @@ -1695,12 +1878,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 specified checksums the call will fail. May only be
            @@ -1709,16 +1895,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 specified checksums the call will fail. May only be
            @@ -1742,6 +1933,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 specified checksums the call will fail. May only be
            @@ -1763,6 +1956,8 @@ public Builder setObjectChecksums(
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * Checksums for the complete object. If the checksums computed by the service
                  * don't match the specified checksums the call will fail. May only be
            @@ -1774,9 +1969,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;
            @@ -1791,6 +1986,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 specified checksums the call will fail. May only be
            @@ -1811,6 +2008,8 @@ public Builder clearObjectChecksums() {
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * Checksums for the complete object. If the checksums computed by the service
                  * don't match the specified checksums the call will fail. May only be
            @@ -1826,6 +2025,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 specified checksums the call will fail. May only be
            @@ -1839,11 +2040,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 specified checksums the call will fail. May only be
            @@ -1854,21 +2058,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 stateLookup_ ;
            +    private boolean stateLookup_;
                 /**
            +     *
            +     *
                  * 
                  * For each BidiWriteObjectRequest where state_lookup is `true` or the client
                  * closes the stream, the service will send a BidiWriteObjectResponse
            @@ -1881,6 +2090,7 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
                  * 
            * * bool state_lookup = 7; + * * @return The stateLookup. */ @java.lang.Override @@ -1888,6 +2098,8 @@ public boolean getStateLookup() { return stateLookup_; } /** + * + * *
                  * For each BidiWriteObjectRequest where state_lookup is `true` or the client
                  * closes the stream, the service will send a BidiWriteObjectResponse
            @@ -1900,6 +2112,7 @@ public boolean getStateLookup() {
                  * 
            * * bool state_lookup = 7; + * * @param value The stateLookup to set. * @return This builder for chaining. */ @@ -1911,6 +2124,8 @@ public Builder setStateLookup(boolean value) { return this; } /** + * + * *
                  * For each BidiWriteObjectRequest where state_lookup is `true` or the client
                  * closes the stream, the service will send a BidiWriteObjectResponse
            @@ -1923,6 +2138,7 @@ public Builder setStateLookup(boolean value) {
                  * 
            * * bool state_lookup = 7; + * * @return This builder for chaining. */ public Builder clearStateLookup() { @@ -1932,8 +2148,10 @@ public Builder clearStateLookup() { return this; } - private boolean flush_ ; + private boolean flush_; /** + * + * *
                  * Persists data written on the stream, up to and including the current
                  * message, to permanent storage. This option should be used sparingly as it
            @@ -1944,6 +2162,7 @@ public Builder clearStateLookup() {
                  * 
            * * bool flush = 8; + * * @return The flush. */ @java.lang.Override @@ -1951,6 +2170,8 @@ public boolean getFlush() { return flush_; } /** + * + * *
                  * Persists data written on the stream, up to and including the current
                  * message, to permanent storage. This option should be used sparingly as it
            @@ -1961,6 +2182,7 @@ public boolean getFlush() {
                  * 
            * * bool flush = 8; + * * @param value The flush to set. * @return This builder for chaining. */ @@ -1972,6 +2194,8 @@ public Builder setFlush(boolean value) { return this; } /** + * + * *
                  * Persists data written on the stream, up to and including the current
                  * message, to permanent storage. This option should be used sparingly as it
            @@ -1982,6 +2206,7 @@ public Builder setFlush(boolean value) {
                  * 
            * * bool flush = 8; + * * @return This builder for chaining. */ public Builder clearFlush() { @@ -1991,8 +2216,10 @@ public Builder clearFlush() { return this; } - private boolean finishWrite_ ; + private boolean finishWrite_; /** + * + * *
                  * If `true`, this indicates that the write is complete. Sending any
                  * `WriteObjectRequest`s subsequent to one in which `finish_write` is `true`
            @@ -2003,6 +2230,7 @@ public Builder clearFlush() {
                  * 
            * * bool finish_write = 9; + * * @return The finishWrite. */ @java.lang.Override @@ -2010,6 +2238,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`
            @@ -2020,6 +2250,7 @@ public boolean getFinishWrite() {
                  * 
            * * bool finish_write = 9; + * * @param value The finishWrite to set. * @return This builder for chaining. */ @@ -2031,6 +2262,8 @@ public Builder setFinishWrite(boolean value) { return this; } /** + * + * *
                  * If `true`, this indicates that the write is complete. Sending any
                  * `WriteObjectRequest`s subsequent to one in which `finish_write` is `true`
            @@ -2041,6 +2274,7 @@ public Builder setFinishWrite(boolean value) {
                  * 
            * * bool finish_write = 9; + * * @return This builder for chaining. */ public Builder clearFinishWrite() { @@ -2052,41 +2286,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 = 10; + * * @return Whether the commonObjectRequestParams field is set. */ public boolean hasCommonObjectRequestParams() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; + * * @return The commonObjectRequestParams. */ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { if (commonObjectRequestParamsBuilder_ == null) { - return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; + return commonObjectRequestParams_ == null + ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() + : commonObjectRequestParams_; } else { return commonObjectRequestParamsBuilder_.getMessage(); } } /** + * + * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ - public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { + public Builder setCommonObjectRequestParams( + com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2100,6 +2348,8 @@ public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRe return this; } /** + * + * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -2118,17 +2368,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_ & 0x00000100) != 0) && - commonObjectRequestParams_ != null && - commonObjectRequestParams_ != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && commonObjectRequestParams_ != null + && commonObjectRequestParams_ + != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { getCommonObjectRequestParamsBuilder().mergeFrom(value); } else { commonObjectRequestParams_ = value; @@ -2143,6 +2397,8 @@ public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObject return this; } /** + * + * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -2160,33 +2416,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_ |= 0x00000100; onChanged(); return getCommonObjectRequestParamsFieldBuilder().getBuilder(); } /** + * + * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; */ - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder + getCommonObjectRequestParamsOrBuilder() { if (commonObjectRequestParamsBuilder_ != null) { return commonObjectRequestParamsBuilder_.getMessageOrBuilder(); } else { - return commonObjectRequestParams_ == null ? - com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; + return commonObjectRequestParams_ == null + ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() + : commonObjectRequestParams_; } } /** + * + * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -2194,21 +2459,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); } @@ -2218,12 +2486,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.storage.v2.BidiWriteObjectRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.BidiWriteObjectRequest) private static final com.google.storage.v2.BidiWriteObjectRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.storage.v2.BidiWriteObjectRequest(); } @@ -2232,27 +2500,27 @@ public static com.google.storage.v2.BidiWriteObjectRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BidiWriteObjectRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BidiWriteObjectRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2267,6 +2535,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.BidiWriteObjectRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequestOrBuilder.java similarity index 89% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequestOrBuilder.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequestOrBuilder.java index c5bc0af516..0277e95f72 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequestOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectRequestOrBuilder.java @@ -1,66 +1,98 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 package com.google.storage.v2; -public interface BidiWriteObjectRequestOrBuilder extends +public interface BidiWriteObjectRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.storage.v2.BidiWriteObjectRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
                * For resumable uploads. This should be the `upload_id` returned from a
                * call to `StartResumableWriteResponse`.
                * 
            * * string upload_id = 1; + * * @return Whether the uploadId field is set. */ boolean hasUploadId(); /** + * + * *
                * For resumable uploads. This should be the `upload_id` returned from a
                * call to `StartResumableWriteResponse`.
                * 
            * * string upload_id = 1; + * * @return The uploadId. */ java.lang.String getUploadId(); /** + * + * *
                * For resumable uploads. This should be the `upload_id` returned from a
                * call to `StartResumableWriteResponse`.
                * 
            * * string upload_id = 1; + * * @return The bytes for uploadId. */ - com.google.protobuf.ByteString - getUploadIdBytes(); + com.google.protobuf.ByteString getUploadIdBytes(); /** + * + * *
                * For non-resumable uploads. Describes the overall upload, including the
                * destination bucket and object name, preconditions, etc.
                * 
            * * .google.storage.v2.WriteObjectSpec write_object_spec = 2; + * * @return Whether the writeObjectSpec field is set. */ boolean hasWriteObjectSpec(); /** + * + * *
                * For non-resumable uploads. Describes the overall upload, including the
                * destination bucket and object name, preconditions, etc.
                * 
            * * .google.storage.v2.WriteObjectSpec write_object_spec = 2; + * * @return The writeObjectSpec. */ com.google.storage.v2.WriteObjectSpec getWriteObjectSpec(); /** + * + * *
                * For non-resumable uploads. Describes the overall upload, including the
                * destination bucket and object name, preconditions, etc.
            @@ -71,6 +103,8 @@ public interface BidiWriteObjectRequestOrBuilder extends
               com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilder();
             
               /**
            +   *
            +   *
                * 
                * Required. The offset from the beginning of the object at which the data
                * should be written.
            @@ -88,31 +122,40 @@ public interface BidiWriteObjectRequestOrBuilder 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.
            @@ -123,6 +166,8 @@ public interface BidiWriteObjectRequestOrBuilder extends
               com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilder();
             
               /**
            +   *
            +   *
                * 
                * Checksums for the complete object. If the checksums computed by the service
                * don't match the specified checksums the call will fail. May only be
            @@ -131,10 +176,13 @@ public interface BidiWriteObjectRequestOrBuilder 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 specified checksums the call will fail. May only be
            @@ -143,10 +191,13 @@ public interface BidiWriteObjectRequestOrBuilder 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 specified checksums the call will fail. May only be
            @@ -159,6 +210,8 @@ public interface BidiWriteObjectRequestOrBuilder extends
               com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilder();
             
               /**
            +   *
            +   *
                * 
                * For each BidiWriteObjectRequest where state_lookup is `true` or the client
                * closes the stream, the service will send a BidiWriteObjectResponse
            @@ -171,11 +224,14 @@ public interface BidiWriteObjectRequestOrBuilder extends
                * 
            * * bool state_lookup = 7; + * * @return The stateLookup. */ boolean getStateLookup(); /** + * + * *
                * Persists data written on the stream, up to and including the current
                * message, to permanent storage. This option should be used sparingly as it
            @@ -186,11 +242,14 @@ public interface BidiWriteObjectRequestOrBuilder extends
                * 
            * * bool flush = 8; + * * @return The flush. */ boolean getFlush(); /** + * + * *
                * If `true`, this indicates that the write is complete. Sending any
                * `WriteObjectRequest`s subsequent to one in which `finish_write` is `true`
            @@ -201,29 +260,38 @@ public interface BidiWriteObjectRequestOrBuilder extends
                * 
            * * bool finish_write = 9; + * * @return The finishWrite. */ boolean getFinishWrite(); /** + * + * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; + * * @return Whether the commonObjectRequestParams field is set. */ boolean hasCommonObjectRequestParams(); /** + * + * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; + * * @return The commonObjectRequestParams. */ com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams(); /** + * + * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponse.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponse.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponse.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponse.java index 6a5a029f56..c101557ed6 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponse.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponse.java @@ -1,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,54 +20,61 @@ package com.google.storage.v2; /** + * + * *
              * Response message for BidiWriteObject.
              * 
            * * Protobuf type {@code google.storage.v2.BidiWriteObjectResponse} */ -public final class BidiWriteObjectResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BidiWriteObjectResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.v2.BidiWriteObjectResponse) BidiWriteObjectResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BidiWriteObjectResponse.newBuilder() to construct. private BidiWriteObjectResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BidiWriteObjectResponse() { - } + + private BidiWriteObjectResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BidiWriteObjectResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BidiWriteObjectResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_BidiWriteObjectResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BidiWriteObjectResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_BidiWriteObjectResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.BidiWriteObjectResponse.class, com.google.storage.v2.BidiWriteObjectResponse.Builder.class); + com.google.storage.v2.BidiWriteObjectResponse.class, + com.google.storage.v2.BidiWriteObjectResponse.Builder.class); } private int writeStatusCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object writeStatus_; + public enum WriteStatusCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PERSISTED_SIZE(1), RESOURCE(2), WRITESTATUS_NOT_SET(0); private final int value; + private WriteStatusCase(int value) { this.value = value; } @@ -68,31 +90,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 @@ -100,12 +128,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 @@ -118,12 +149,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 @@ -131,22 +165,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.
            @@ -157,12 +196,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;
            @@ -174,11 +214,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_);
            @@ -193,13 +231,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;
            @@ -209,22 +248,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.BidiWriteObjectResponse)) {
                   return super.equals(obj);
                 }
            -    com.google.storage.v2.BidiWriteObjectResponse other = (com.google.storage.v2.BidiWriteObjectResponse) obj;
            +    com.google.storage.v2.BidiWriteObjectResponse other =
            +        (com.google.storage.v2.BidiWriteObjectResponse) obj;
             
                 if (!getWriteStatusCase().equals(other.getWriteStatusCase())) return false;
                 switch (writeStatusCase_) {
                   case 1:
            -        if (getPersistedSize()
            -            != other.getPersistedSize()) return false;
            +        if (getPersistedSize() != other.getPersistedSize()) return false;
                     break;
                   case 2:
            -        if (!getResource()
            -            .equals(other.getResource())) return false;
            +        if (!getResource().equals(other.getResource())) return false;
                     break;
                   case 0:
                   default:
            @@ -243,8 +281,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;
            @@ -258,132 +295,136 @@ public int hashCode() {
                 return hash;
               }
             
            -  public static com.google.storage.v2.BidiWriteObjectResponse parseFrom(
            -      java.nio.ByteBuffer data)
            +  public static com.google.storage.v2.BidiWriteObjectResponse parseFrom(java.nio.ByteBuffer data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
            +
               public static com.google.storage.v2.BidiWriteObjectResponse parseFrom(
            -      java.nio.ByteBuffer data,
            -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
            +
               public static com.google.storage.v2.BidiWriteObjectResponse parseFrom(
                   com.google.protobuf.ByteString data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
            +
               public static com.google.storage.v2.BidiWriteObjectResponse parseFrom(
                   com.google.protobuf.ByteString data,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
            +
               public static com.google.storage.v2.BidiWriteObjectResponse parseFrom(byte[] data)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data);
               }
            +
               public static com.google.storage.v2.BidiWriteObjectResponse parseFrom(
            -      byte[] data,
            -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws com.google.protobuf.InvalidProtocolBufferException {
                 return PARSER.parseFrom(data, extensionRegistry);
               }
            +
               public static com.google.storage.v2.BidiWriteObjectResponse parseFrom(java.io.InputStream input)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3
            -        .parseWithIOException(PARSER, input);
            +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
               }
            +
               public static com.google.storage.v2.BidiWriteObjectResponse parseFrom(
            -      java.io.InputStream input,
            -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3
            -        .parseWithIOException(PARSER, input, extensionRegistry);
            +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            +        PARSER, input, extensionRegistry);
               }
             
            -  public static com.google.storage.v2.BidiWriteObjectResponse parseDelimitedFrom(java.io.InputStream input)
            -      throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3
            -        .parseDelimitedWithIOException(PARSER, input);
            +  public static com.google.storage.v2.BidiWriteObjectResponse parseDelimitedFrom(
            +      java.io.InputStream input) throws java.io.IOException {
            +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
               }
             
               public static com.google.storage.v2.BidiWriteObjectResponse parseDelimitedFrom(
            -      java.io.InputStream input,
            -      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3
            -        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
            +    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
            +        PARSER, input, extensionRegistry);
               }
            +
               public static com.google.storage.v2.BidiWriteObjectResponse parseFrom(
            -      com.google.protobuf.CodedInputStream input)
            -      throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3
            -        .parseWithIOException(PARSER, input);
            +      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
            +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
               }
            +
               public static com.google.storage.v2.BidiWriteObjectResponse parseFrom(
                   com.google.protobuf.CodedInputStream input,
                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                   throws java.io.IOException {
            -    return com.google.protobuf.GeneratedMessageV3
            -        .parseWithIOException(PARSER, input, extensionRegistry);
            +    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
            +        PARSER, input, extensionRegistry);
               }
             
               @java.lang.Override
            -  public Builder newBuilderForType() { return newBuilder(); }
            +  public Builder newBuilderForType() {
            +    return newBuilder();
            +  }
            +
               public static Builder newBuilder() {
                 return DEFAULT_INSTANCE.toBuilder();
               }
            +
               public static Builder newBuilder(com.google.storage.v2.BidiWriteObjectResponse prototype) {
                 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
               }
            +
               @java.lang.Override
               public Builder toBuilder() {
            -    return this == DEFAULT_INSTANCE
            -        ? new Builder() : new Builder().mergeFrom(this);
            +    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
               }
             
               @java.lang.Override
            -  protected Builder newBuilderForType(
            -      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            +  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                 Builder builder = new Builder(parent);
                 return builder;
               }
               /**
            +   *
            +   *
                * 
                * Response message for BidiWriteObject.
                * 
            * * Protobuf type {@code google.storage.v2.BidiWriteObjectResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.storage.v2.BidiWriteObjectResponse) com.google.storage.v2.BidiWriteObjectResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BidiWriteObjectResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_BidiWriteObjectResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BidiWriteObjectResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_BidiWriteObjectResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.BidiWriteObjectResponse.class, com.google.storage.v2.BidiWriteObjectResponse.Builder.class); + com.google.storage.v2.BidiWriteObjectResponse.class, + com.google.storage.v2.BidiWriteObjectResponse.Builder.class); } // Construct using com.google.storage.v2.BidiWriteObjectResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -397,9 +438,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BidiWriteObjectResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_BidiWriteObjectResponse_descriptor; } @java.lang.Override @@ -418,8 +459,11 @@ public com.google.storage.v2.BidiWriteObjectResponse build() { @java.lang.Override public com.google.storage.v2.BidiWriteObjectResponse buildPartial() { - com.google.storage.v2.BidiWriteObjectResponse result = new com.google.storage.v2.BidiWriteObjectResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.storage.v2.BidiWriteObjectResponse result = + new com.google.storage.v2.BidiWriteObjectResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -432,8 +476,7 @@ private void buildPartial0(com.google.storage.v2.BidiWriteObjectResponse result) private void buildPartialOneofs(com.google.storage.v2.BidiWriteObjectResponse result) { result.writeStatusCase_ = writeStatusCase_; result.writeStatus_ = this.writeStatus_; - if (writeStatusCase_ == 2 && - resourceBuilder_ != null) { + if (writeStatusCase_ == 2 && resourceBuilder_ != null) { result.writeStatus_ = resourceBuilder_.build(); } } @@ -442,38 +485,39 @@ private void buildPartialOneofs(com.google.storage.v2.BidiWriteObjectResponse re public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.BidiWriteObjectResponse) { - return mergeFrom((com.google.storage.v2.BidiWriteObjectResponse)other); + return mergeFrom((com.google.storage.v2.BidiWriteObjectResponse) other); } else { super.mergeFrom(other); return this; @@ -483,17 +527,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.storage.v2.BidiWriteObjectResponse other) { if (other == com.google.storage.v2.BidiWriteObjectResponse.getDefaultInstance()) return this; switch (other.getWriteStatusCase()) { - case PERSISTED_SIZE: { - setPersistedSize(other.getPersistedSize()); - break; - } - case RESOURCE: { - mergeResource(other.getResource()); - break; - } - case WRITESTATUS_NOT_SET: { - break; - } + case PERSISTED_SIZE: + { + setPersistedSize(other.getPersistedSize()); + break; + } + case RESOURCE: + { + mergeResource(other.getResource()); + break; + } + case WRITESTATUS_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -521,24 +568,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) { @@ -548,12 +596,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() { @@ -566,24 +614,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() { @@ -593,12 +647,15 @@ 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. */ @@ -610,12 +667,15 @@ public Builder setPersistedSize(long value) { return this; } /** + * + * *
                  * The total number of bytes that have been processed for the given object
                  * from all `WriteObject` calls. Only set if the upload has not finalized.
                  * 
            * * int64 persisted_size = 1; + * * @return This builder for chaining. */ public Builder clearPersistedSize() { @@ -628,14 +688,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 @@ -643,12 +709,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 @@ -666,6 +735,8 @@ public com.google.storage.v2.Object getResource() { } } /** + * + * *
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
            @@ -687,6 +758,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.
            @@ -694,8 +767,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();
            @@ -706,6 +778,8 @@ public Builder setResource(
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
            @@ -715,10 +789,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;
                     }
            @@ -734,6 +810,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.
            @@ -758,6 +836,8 @@ public Builder clearResource() {
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
            @@ -769,6 +849,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.
            @@ -788,6 +870,8 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
                   }
                 }
                 /**
            +     *
            +     *
                  * 
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
            @@ -796,26 +880,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);
                 }
             
            @@ -825,12 +912,12 @@ public final Builder mergeUnknownFields(
                   return super.mergeUnknownFields(unknownFields);
                 }
             
            -
                 // @@protoc_insertion_point(builder_scope:google.storage.v2.BidiWriteObjectResponse)
               }
             
               // @@protoc_insertion_point(class_scope:google.storage.v2.BidiWriteObjectResponse)
               private static final com.google.storage.v2.BidiWriteObjectResponse DEFAULT_INSTANCE;
            +
               static {
                 DEFAULT_INSTANCE = new com.google.storage.v2.BidiWriteObjectResponse();
               }
            @@ -839,27 +926,27 @@ public static com.google.storage.v2.BidiWriteObjectResponse getDefaultInstance()
                 return DEFAULT_INSTANCE;
               }
             
            -  private static final com.google.protobuf.Parser
            -      PARSER = new com.google.protobuf.AbstractParser() {
            -    @java.lang.Override
            -    public BidiWriteObjectResponse parsePartialFrom(
            -        com.google.protobuf.CodedInputStream input,
            -        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            -        throws com.google.protobuf.InvalidProtocolBufferException {
            -      Builder builder = newBuilder();
            -      try {
            -        builder.mergeFrom(input, extensionRegistry);
            -      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            -        throw e.setUnfinishedMessage(builder.buildPartial());
            -      } catch (com.google.protobuf.UninitializedMessageException e) {
            -        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
            -      } catch (java.io.IOException e) {
            -        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            -            .setUnfinishedMessage(builder.buildPartial());
            -      }
            -      return builder.buildPartial();
            -    }
            -  };
            +  private static final com.google.protobuf.Parser PARSER =
            +      new com.google.protobuf.AbstractParser() {
            +        @java.lang.Override
            +        public BidiWriteObjectResponse parsePartialFrom(
            +            com.google.protobuf.CodedInputStream input,
            +            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            +            throws com.google.protobuf.InvalidProtocolBufferException {
            +          Builder builder = newBuilder();
            +          try {
            +            builder.mergeFrom(input, extensionRegistry);
            +          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            +            throw e.setUnfinishedMessage(builder.buildPartial());
            +          } catch (com.google.protobuf.UninitializedMessageException e) {
            +            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
            +          } catch (java.io.IOException e) {
            +            throw new com.google.protobuf.InvalidProtocolBufferException(e)
            +                .setUnfinishedMessage(builder.buildPartial());
            +          }
            +          return builder.buildPartial();
            +        }
            +      };
             
               public static com.google.protobuf.Parser parser() {
                 return PARSER;
            @@ -874,6 +961,4 @@ public com.google.protobuf.Parser getParserForType() {
               public com.google.storage.v2.BidiWriteObjectResponse getDefaultInstanceForType() {
                 return DEFAULT_INSTANCE;
               }
            -
             }
            -
            diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponseOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponseOrBuilder.java
            similarity index 71%
            rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponseOrBuilder.java
            rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponseOrBuilder.java
            index 08d60780a9..528a442896 100644
            --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponseOrBuilder.java
            +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/BidiWriteObjectResponseOrBuilder.java
            @@ -1,55 +1,85 @@
            +/*
            + * Copyright 2024 Google LLC
            + *
            + * Licensed under the Apache License, Version 2.0 (the "License");
            + * you may not use this file except in compliance with the License.
            + * You may obtain a copy of the License at
            + *
            + *     https://www.apache.org/licenses/LICENSE-2.0
            + *
            + * Unless required by applicable law or agreed to in writing, software
            + * distributed under the License is distributed on an "AS IS" BASIS,
            + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            + * See the License for the specific language governing permissions and
            + * limitations under the License.
            + */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
             // Protobuf Java Version: 3.25.3
             package com.google.storage.v2;
             
            -public interface BidiWriteObjectResponseOrBuilder extends
            +public interface BidiWriteObjectResponseOrBuilder
            +    extends
                 // @@protoc_insertion_point(interface_extends:google.storage.v2.BidiWriteObjectResponse)
                 com.google.protobuf.MessageOrBuilder {
             
               /**
            +   *
            +   *
                * 
                * The total number of bytes that have been processed for the given object
                * from all `WriteObject` calls. Only set if the upload has not finalized.
                * 
            * * int64 persisted_size = 1; + * * @return Whether the persistedSize field is set. */ boolean hasPersistedSize(); /** + * + * *
                * The total number of bytes that have been processed for the given object
                * from all `WriteObject` calls. Only set if the upload has not finalized.
                * 
            * * int64 persisted_size = 1; + * * @return The persistedSize. */ long getPersistedSize(); /** + * + * *
                * A resource containing the metadata for the uploaded object. Only set if
                * the upload has finalized.
                * 
            * * .google.storage.v2.Object resource = 2; + * * @return Whether the resource field is set. */ boolean hasResource(); /** + * + * *
                * A resource containing the metadata for the uploaded object. Only set if
                * the upload has finalized.
                * 
            * * .google.storage.v2.Object resource = 2; + * * @return The resource. */ com.google.storage.v2.Object getResource(); /** + * + * *
                * A resource containing the metadata for the uploaded object. Only set if
                * the upload has finalized.
            diff --git a/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 75%
            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 d5c5e4458b..67a5df95bd 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,3 +1,18 @@
            +/*
            + * Copyright 2024 Google LLC
            + *
            + * Licensed under the Apache License, Version 2.0 (the "License");
            + * you may not use this file except in compliance with the License.
            + * You may obtain a copy of the License at
            + *
            + *     https://www.apache.org/licenses/LICENSE-2.0
            + *
            + * Unless required by applicable law or agreed to in writing, software
            + * distributed under the License is distributed on an "AS IS" BASIS,
            + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            + * See the License for the specific language governing permissions and
            + * limitations under the License.
            + */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
            @@ -5,21 +20,24 @@
             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_ = ""; @@ -36,13 +54,11 @@ private Bucket() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Bucket(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_descriptor; } @@ -54,79 +70,90 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl case 15: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_Bucket_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.storage.v2.Bucket.class, com.google.storage.v2.Bucket.Builder.class); } - public interface BillingOrBuilder extends + public interface BillingOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.Billing) com.google.protobuf.MessageOrBuilder { /** + * + * *
                  * When set to true, Requester Pays is enabled for this bucket.
                  * 
            * * bool requester_pays = 1; + * * @return The requesterPays. */ boolean getRequesterPays(); } /** + * + * *
                * Billing properties of a bucket.
                * 
            * * Protobuf type {@code google.storage.v2.Bucket.Billing} */ - public static final class Billing extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Billing extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.Billing) BillingOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Billing.newBuilder() to construct. private Billing(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Billing() { - } + + private Billing() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Billing(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Billing_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_Bucket_Billing_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Billing_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_Bucket_Billing_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.Billing.class, com.google.storage.v2.Bucket.Billing.Builder.class); + com.google.storage.v2.Bucket.Billing.class, + com.google.storage.v2.Bucket.Billing.Builder.class); } public static final int REQUESTER_PAYS_FIELD_NUMBER = 1; private boolean requesterPays_ = false; /** + * + * *
                  * When set to true, Requester Pays is enabled for this bucket.
                  * 
            * * bool requester_pays = 1; + * * @return The requesterPays. */ @java.lang.Override @@ -135,6 +162,7 @@ public boolean getRequesterPays() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -146,8 +174,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (requesterPays_ != false) { output.writeBool(1, requesterPays_); } @@ -161,8 +188,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; @@ -172,15 +198,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; } @@ -193,97 +218,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 @@ -293,39 +321,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(); @@ -335,9 +365,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 @@ -356,8 +386,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; } @@ -373,38 +406,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; @@ -442,17 +478,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) { @@ -462,15 +500,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 @@ -478,11 +520,14 @@ 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. */ @@ -494,11 +539,14 @@ public Builder setRequesterPays(boolean value) { return this; } /** + * + * *
                    * When set to true, Requester Pays is enabled for this bucket.
                    * 
            * * bool requester_pays = 1; + * * @return This builder for chaining. */ public Builder clearRequesterPays() { @@ -507,6 +555,7 @@ public Builder clearRequesterPays() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -519,12 +568,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(); } @@ -533,27 +582,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; @@ -568,14 +618,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.
            @@ -583,11 +635,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.
            @@ -595,10 +649,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.
            @@ -606,11 +663,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.
            @@ -618,13 +678,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
            @@ -632,11 +694,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
            @@ -644,10 +708,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
            @@ -655,11 +722,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
            @@ -667,13 +737,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
            @@ -681,11 +753,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
            @@ -693,10 +767,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
            @@ -704,11 +781,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
            @@ -716,13 +796,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
            @@ -730,11 +812,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
            @@ -744,49 +829,51 @@ 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.emptyList();
            -      method_ =
            -          com.google.protobuf.LazyStringArrayList.emptyList();
            -      responseHeader_ =
            -          com.google.protobuf.LazyStringArrayList.emptyList();
            +      origin_ = com.google.protobuf.LazyStringArrayList.emptyList();
            +      method_ = com.google.protobuf.LazyStringArrayList.emptyList();
            +      responseHeader_ = com.google.protobuf.LazyStringArrayList.emptyList();
                 }
             
                 @java.lang.Override
                 @SuppressWarnings({"unused"})
            -    protected java.lang.Object newInstance(
            -        UnusedPrivateParameter unused) {
            +    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                   return new Cors();
                 }
             
            -    public static final com.google.protobuf.Descriptors.Descriptor
            -        getDescriptor() {
            -      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Cors_descriptor;
            +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            +      return com.google.storage.v2.StorageProto
            +          .internal_static_google_storage_v2_Bucket_Cors_descriptor;
                 }
             
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
            -      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Cors_fieldAccessorTable
            +      return com.google.storage.v2.StorageProto
            +          .internal_static_google_storage_v2_Bucket_Cors_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
            -              com.google.storage.v2.Bucket.Cors.class, com.google.storage.v2.Bucket.Cors.Builder.class);
            +              com.google.storage.v2.Bucket.Cors.class,
            +              com.google.storage.v2.Bucket.Cors.Builder.class);
                 }
             
                 public static final int ORIGIN_FIELD_NUMBER = 1;
            +
                 @SuppressWarnings("serial")
                 private com.google.protobuf.LazyStringArrayList origin_ =
                     com.google.protobuf.LazyStringArrayList.emptyList();
                 /**
            +     *
            +     *
                  * 
                  * The list of Origins eligible to receive CORS response headers. See
                  * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
            @@ -794,13 +881,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.
            @@ -808,12 +897,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.
            @@ -821,6 +913,7 @@ public int getOriginCount() {
                  * 
            * * repeated string origin = 1; + * * @param index The index of the element to return. * @return The origin at the given index. */ @@ -828,6 +921,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.
            @@ -835,19 +930,22 @@ public java.lang.String getOrigin(int index) {
                  * 
            * * repeated string origin = 1; + * * @param index The index of the value to return. * @return The bytes of the origin at the given index. */ - public com.google.protobuf.ByteString - getOriginBytes(int index) { + public com.google.protobuf.ByteString getOriginBytes(int index) { return origin_.getByteString(index); } public static final int METHOD_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList method_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
                  * The list of HTTP methods on which to include CORS response headers,
                  * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
            @@ -855,13 +953,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
            @@ -869,12 +969,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
            @@ -882,6 +985,7 @@ public int getMethodCount() {
                  * 
            * * repeated string method = 2; + * * @param index The index of the element to return. * @return The method at the given index. */ @@ -889,6 +993,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
            @@ -896,19 +1002,22 @@ public java.lang.String getMethod(int index) {
                  * 
            * * repeated string method = 2; + * * @param index The index of the value to return. * @return The bytes of the method at the given index. */ - public com.google.protobuf.ByteString - getMethodBytes(int index) { + public com.google.protobuf.ByteString getMethodBytes(int index) { return method_.getByteString(index); } public static final int RESPONSE_HEADER_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList responseHeader_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
                  * The list of HTTP headers other than the
                  * [https://www.w3.org/TR/cors/#simple-response-header][simple response
            @@ -916,13 +1025,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
            @@ -930,12 +1041,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
            @@ -943,6 +1057,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. */ @@ -950,6 +1065,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
            @@ -957,17 +1074,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
            @@ -975,6 +1094,7 @@ public java.lang.String getResponseHeader(int index) {
                  * 
            * * int32 max_age_seconds = 4; + * * @return The maxAgeSeconds. */ @java.lang.Override @@ -983,6 +1103,7 @@ public int getMaxAgeSeconds() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -994,8 +1115,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)); } @@ -1042,8 +1162,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; @@ -1053,21 +1172,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; } @@ -1098,90 +1213,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 @@ -1191,6 +1309,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
                  * Cross-Origin Response sharing (CORS) properties for a bucket.
                  * For more on Cloud Storage and CORS, see
            @@ -1200,51 +1320,48 @@ 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();
                     bitField0_ = 0;
            -        origin_ =
            -            com.google.protobuf.LazyStringArrayList.emptyList();
            -        method_ =
            -            com.google.protobuf.LazyStringArrayList.emptyList();
            -        responseHeader_ =
            -            com.google.protobuf.LazyStringArrayList.emptyList();
            +        origin_ = com.google.protobuf.LazyStringArrayList.emptyList();
            +        method_ = com.google.protobuf.LazyStringArrayList.emptyList();
            +        responseHeader_ = com.google.protobuf.LazyStringArrayList.emptyList();
                     maxAgeSeconds_ = 0;
                     return this;
                   }
             
                   @java.lang.Override
            -      public com.google.protobuf.Descriptors.Descriptor
            -          getDescriptorForType() {
            -        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Cors_descriptor;
            +      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            +        return com.google.storage.v2.StorageProto
            +            .internal_static_google_storage_v2_Bucket_Cors_descriptor;
                   }
             
                   @java.lang.Override
            @@ -1264,7 +1381,9 @@ public com.google.storage.v2.Bucket.Cors build() {
                   @java.lang.Override
                   public com.google.storage.v2.Bucket.Cors buildPartial() {
                     com.google.storage.v2.Bucket.Cors result = new com.google.storage.v2.Bucket.Cors(this);
            -        if (bitField0_ != 0) { buildPartial0(result); }
            +        if (bitField0_ != 0) {
            +          buildPartial0(result);
            +        }
                     onBuilt();
                     return result;
                   }
            @@ -1292,38 +1411,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;
            @@ -1391,35 +1513,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) {
            @@ -1429,10 +1556,12 @@ public Builder mergeFrom(
                     } // finally
                     return this;
                   }
            +
                   private int bitField0_;
             
                   private com.google.protobuf.LazyStringArrayList origin_ =
                       com.google.protobuf.LazyStringArrayList.emptyList();
            +
                   private void ensureOriginIsMutable() {
                     if (!origin_.isModifiable()) {
                       origin_ = new com.google.protobuf.LazyStringArrayList(origin_);
            @@ -1440,6 +1569,8 @@ private void ensureOriginIsMutable() {
                     bitField0_ |= 0x00000001;
                   }
                   /**
            +       *
            +       *
                    * 
                    * The list of Origins eligible to receive CORS response headers. See
                    * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
            @@ -1447,14 +1578,16 @@ private void ensureOriginIsMutable() {
                    * 
            * * repeated string origin = 1; + * * @return A list containing the origin. */ - public com.google.protobuf.ProtocolStringList - getOriginList() { + public com.google.protobuf.ProtocolStringList getOriginList() { origin_.makeImmutable(); return origin_; } /** + * + * *
                    * The list of Origins eligible to receive CORS response headers. See
                    * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
            @@ -1462,12 +1595,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.
            @@ -1475,6 +1611,7 @@ public int getOriginCount() {
                    * 
            * * repeated string origin = 1; + * * @param index The index of the element to return. * @return The origin at the given index. */ @@ -1482,6 +1619,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.
            @@ -1489,14 +1628,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.
            @@ -1504,13 +1645,15 @@ 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); bitField0_ |= 0x00000001; @@ -1518,6 +1661,8 @@ public Builder setOrigin( 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.
            @@ -1525,12 +1670,14 @@ 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); bitField0_ |= 0x00000001; @@ -1538,6 +1685,8 @@ public Builder addOrigin( 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.
            @@ -1545,19 +1694,20 @@ 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_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
                    * The list of Origins eligible to receive CORS response headers. See
                    * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
            @@ -1565,16 +1715,19 @@ public Builder addAllOrigin(
                    * 
            * * repeated string origin = 1; + * * @return This builder for chaining. */ public Builder clearOrigin() { - origin_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + origin_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
                    * The list of Origins eligible to receive CORS response headers. See
                    * [https://tools.ietf.org/html/rfc6454][RFC 6454] for more on origins.
            @@ -1582,12 +1735,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); @@ -1598,6 +1753,7 @@ public Builder addOriginBytes( private com.google.protobuf.LazyStringArrayList method_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureMethodIsMutable() { if (!method_.isModifiable()) { method_ = new com.google.protobuf.LazyStringArrayList(method_); @@ -1605,6 +1761,8 @@ private void ensureMethodIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
                    * The list of HTTP methods on which to include CORS response headers,
                    * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
            @@ -1612,14 +1770,16 @@ private void ensureMethodIsMutable() {
                    * 
            * * repeated string method = 2; + * * @return A list containing the method. */ - public com.google.protobuf.ProtocolStringList - getMethodList() { + public com.google.protobuf.ProtocolStringList getMethodList() { method_.makeImmutable(); return method_; } /** + * + * *
                    * The list of HTTP methods on which to include CORS response headers,
                    * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
            @@ -1627,12 +1787,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
            @@ -1640,6 +1803,7 @@ public int getMethodCount() {
                    * 
            * * repeated string method = 2; + * * @param index The index of the element to return. * @return The method at the given index. */ @@ -1647,6 +1811,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
            @@ -1654,14 +1820,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
            @@ -1669,13 +1837,15 @@ 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); bitField0_ |= 0x00000002; @@ -1683,6 +1853,8 @@ public Builder setMethod( 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
            @@ -1690,12 +1862,14 @@ 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); bitField0_ |= 0x00000002; @@ -1703,6 +1877,8 @@ public Builder addMethod( 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,19 +1886,20 @@ 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_); bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
                    * The list of HTTP methods on which to include CORS response headers,
                    * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
            @@ -1730,16 +1907,19 @@ public Builder addAllMethod(
                    * 
            * * repeated string method = 2; + * * @return This builder for chaining. */ public Builder clearMethod() { - method_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + method_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } /** + * + * *
                    * The list of HTTP methods on which to include CORS response headers,
                    * (`GET`, `OPTIONS`, `POST`, etc) Note: "*" is permitted in the list of
            @@ -1747,12 +1927,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); @@ -1763,6 +1945,7 @@ public Builder addMethodBytes( private com.google.protobuf.LazyStringArrayList responseHeader_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureResponseHeaderIsMutable() { if (!responseHeader_.isModifiable()) { responseHeader_ = new com.google.protobuf.LazyStringArrayList(responseHeader_); @@ -1770,6 +1953,8 @@ private void ensureResponseHeaderIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
                    * The list of HTTP headers other than the
                    * [https://www.w3.org/TR/cors/#simple-response-header][simple response
            @@ -1777,14 +1962,16 @@ private void ensureResponseHeaderIsMutable() {
                    * 
            * * repeated string response_header = 3; + * * @return A list containing the responseHeader. */ - public com.google.protobuf.ProtocolStringList - getResponseHeaderList() { + public com.google.protobuf.ProtocolStringList getResponseHeaderList() { responseHeader_.makeImmutable(); return responseHeader_; } /** + * + * *
                    * The list of HTTP headers other than the
                    * [https://www.w3.org/TR/cors/#simple-response-header][simple response
            @@ -1792,12 +1979,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
            @@ -1805,6 +1995,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. */ @@ -1812,6 +2003,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
            @@ -1819,14 +2012,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
            @@ -1834,13 +2029,15 @@ 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); bitField0_ |= 0x00000004; @@ -1848,6 +2045,8 @@ public Builder setResponseHeader( return this; } /** + * + * *
                    * The list of HTTP headers other than the
                    * [https://www.w3.org/TR/cors/#simple-response-header][simple response
            @@ -1855,12 +2054,14 @@ 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); bitField0_ |= 0x00000004; @@ -1868,6 +2069,8 @@ public Builder addResponseHeader( return this; } /** + * + * *
                    * The list of HTTP headers other than the
                    * [https://www.w3.org/TR/cors/#simple-response-header][simple response
            @@ -1875,19 +2078,20 @@ 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_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
                    * The list of HTTP headers other than the
                    * [https://www.w3.org/TR/cors/#simple-response-header][simple response
            @@ -1895,16 +2099,19 @@ public Builder addAllResponseHeader(
                    * 
            * * repeated string response_header = 3; + * * @return This builder for chaining. */ public Builder clearResponseHeader() { - responseHeader_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + responseHeader_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
                    * The list of HTTP headers other than the
                    * [https://www.w3.org/TR/cors/#simple-response-header][simple response
            @@ -1912,12 +2119,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); @@ -1926,8 +2135,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
            @@ -1935,6 +2146,7 @@ public Builder addResponseHeaderBytes(
                    * 
            * * int32 max_age_seconds = 4; + * * @return The maxAgeSeconds. */ @java.lang.Override @@ -1942,6 +2154,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
            @@ -1949,6 +2163,7 @@ public int getMaxAgeSeconds() {
                    * 
            * * int32 max_age_seconds = 4; + * * @param value The maxAgeSeconds to set. * @return This builder for chaining. */ @@ -1960,6 +2175,8 @@ public Builder setMaxAgeSeconds(int value) { return this; } /** + * + * *
                    * The value, in seconds, to return in the
                    * [https://www.w3.org/TR/cors/#access-control-max-age-response-header][Access-Control-Max-Age
            @@ -1967,6 +2184,7 @@ public Builder setMaxAgeSeconds(int value) {
                    * 
            * * int32 max_age_seconds = 4; + * * @return This builder for chaining. */ public Builder clearMaxAgeSeconds() { @@ -1975,6 +2193,7 @@ public Builder clearMaxAgeSeconds() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1987,12 +2206,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(); } @@ -2001,27 +2220,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; @@ -2036,85 +2256,98 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.Cors getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface EncryptionOrBuilder extends + public interface EncryptionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.Encryption) com.google.protobuf.MessageOrBuilder { /** + * + * *
                  * The name of the Cloud KMS key that will be used to encrypt objects
                  * inserted into this bucket, if no encryption method is specified.
                  * 
            * * string default_kms_key = 1 [(.google.api.resource_reference) = { ... } + * * @return The defaultKmsKey. */ java.lang.String getDefaultKmsKey(); /** + * + * *
                  * The name of the Cloud KMS key that will be used to encrypt objects
                  * inserted into this bucket, if no encryption method is specified.
                  * 
            * * string default_kms_key = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for defaultKmsKey. */ - com.google.protobuf.ByteString - getDefaultKmsKeyBytes(); + com.google.protobuf.ByteString getDefaultKmsKeyBytes(); } /** + * + * *
                * Encryption properties of a bucket.
                * 
            * * Protobuf type {@code google.storage.v2.Bucket.Encryption} */ - public static final class Encryption extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Encryption extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.Encryption) EncryptionOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Encryption.newBuilder() to construct. private Encryption(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Encryption() { defaultKmsKey_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Encryption(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Encryption_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_Bucket_Encryption_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Encryption_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_Bucket_Encryption_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.Encryption.class, com.google.storage.v2.Bucket.Encryption.Builder.class); + com.google.storage.v2.Bucket.Encryption.class, + com.google.storage.v2.Bucket.Encryption.Builder.class); } public static final int DEFAULT_KMS_KEY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object defaultKmsKey_ = ""; /** + * + * *
                  * The name of the Cloud KMS key that will be used to encrypt objects
                  * inserted into this bucket, if no encryption method is specified.
                  * 
            * * string default_kms_key = 1 [(.google.api.resource_reference) = { ... } + * * @return The defaultKmsKey. */ @java.lang.Override @@ -2123,30 +2356,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 { @@ -2155,6 +2388,7 @@ public java.lang.String getDefaultKmsKey() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2166,8 +2400,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_); } @@ -2191,15 +2424,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; } @@ -2218,90 +2450,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 @@ -2311,39 +2547,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(); @@ -2353,9 +2591,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 @@ -2374,8 +2612,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; } @@ -2391,38 +2632,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; @@ -2462,17 +2706,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) { @@ -2482,23 +2728,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; @@ -2507,21 +2756,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 { @@ -2529,30 +2779,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() { @@ -2562,24 +2819,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) { @@ -2592,12 +2854,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(); } @@ -2606,27 +2868,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; @@ -2641,117 +2904,147 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.Encryption getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface IamConfigOrBuilder extends + public interface IamConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.IamConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
                  * Bucket restriction options currently enforced on the bucket.
                  * 
            * - * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; + * + * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; + * + * * @return Whether the uniformBucketLevelAccess field is set. */ boolean hasUniformBucketLevelAccess(); /** + * + * *
                  * Bucket restriction options currently enforced on the bucket.
                  * 
            * - * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; + * + * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; + * + * * @return The uniformBucketLevelAccess. */ com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess getUniformBucketLevelAccess(); /** + * + * *
                  * Bucket restriction options currently enforced on the bucket.
                  * 
            * - * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; + * + * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; + * */ - com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccessOrBuilder getUniformBucketLevelAccessOrBuilder(); + com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccessOrBuilder + getUniformBucketLevelAccessOrBuilder(); /** + * + * *
                  * Whether IAM will enforce public access prevention. Valid values are
                  * "enforced" or "inherited".
                  * 
            * * string public_access_prevention = 3; + * * @return The publicAccessPrevention. */ java.lang.String getPublicAccessPrevention(); /** + * + * *
                  * Whether IAM will enforce public access prevention. Valid values are
                  * "enforced" or "inherited".
                  * 
            * * string public_access_prevention = 3; + * * @return The bytes for publicAccessPrevention. */ - com.google.protobuf.ByteString - getPublicAccessPreventionBytes(); + com.google.protobuf.ByteString getPublicAccessPreventionBytes(); } /** + * + * *
                * Bucket restriction options.
                * 
            * * Protobuf type {@code google.storage.v2.Bucket.IamConfig} */ - public static final class IamConfig extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class IamConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.IamConfig) IamConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IamConfig.newBuilder() to construct. private IamConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private IamConfig() { publicAccessPrevention_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new IamConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_IamConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_Bucket_IamConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_IamConfig_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_Bucket_IamConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.IamConfig.class, com.google.storage.v2.Bucket.IamConfig.Builder.class); + com.google.storage.v2.Bucket.IamConfig.class, + com.google.storage.v2.Bucket.IamConfig.Builder.class); } - public interface UniformBucketLevelAccessOrBuilder extends + public interface UniformBucketLevelAccessOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess) com.google.protobuf.MessageOrBuilder { /** + * + * *
                    * If set, access checks only use bucket-level IAM policies or above.
                    * 
            * * bool enabled = 1; + * * @return The enabled. */ boolean getEnabled(); /** + * + * *
                    * The deadline time for changing
                    * `iam_config.uniform_bucket_level_access.enabled` from `true` to
            @@ -2760,10 +3053,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
            @@ -2772,10 +3068,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
            @@ -2788,6 +3087,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.
            @@ -2795,47 +3096,52 @@ 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();
                   }
             
            -      public static final com.google.protobuf.Descriptors.Descriptor
            -          getDescriptor() {
            -        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_descriptor;
            +      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            +        return com.google.storage.v2.StorageProto
            +            .internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_descriptor;
                   }
             
                   @java.lang.Override
                   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                       internalGetFieldAccessorTable() {
            -        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_fieldAccessorTable
            +        return com.google.storage.v2.StorageProto
            +            .internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_fieldAccessorTable
                         .ensureFieldAccessorsInitialized(
            -                com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.class, com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.Builder.class);
            +                com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.class,
            +                com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.Builder.class);
                   }
             
                   private int bitField0_;
                   public static final int ENABLED_FIELD_NUMBER = 1;
                   private boolean enabled_ = false;
                   /**
            +       *
            +       *
                    * 
                    * If set, access checks only use bucket-level IAM policies or above.
                    * 
            * * bool enabled = 1; + * * @return The enabled. */ @java.lang.Override @@ -2846,6 +3152,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
            @@ -2854,6 +3162,7 @@ public boolean getEnabled() {
                    * 
            * * .google.protobuf.Timestamp lock_time = 2; + * * @return Whether the lockTime field is set. */ @java.lang.Override @@ -2861,6 +3170,8 @@ public boolean hasLockTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                    * The deadline time for changing
                    * `iam_config.uniform_bucket_level_access.enabled` from `true` to
            @@ -2869,6 +3180,7 @@ public boolean hasLockTime() {
                    * 
            * * .google.protobuf.Timestamp lock_time = 2; + * * @return The lockTime. */ @java.lang.Override @@ -2876,6 +3188,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
            @@ -2891,6 +3205,7 @@ public com.google.protobuf.TimestampOrBuilder getLockTimeOrBuilder() {
                   }
             
                   private byte memoizedIsInitialized = -1;
            +
                   @java.lang.Override
                   public final boolean isInitialized() {
                     byte isInitialized = memoizedIsInitialized;
            @@ -2902,8 +3217,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_);
                     }
            @@ -2920,12 +3234,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 (((bitField0_ & 0x00000001) != 0)) {
            -          size += com.google.protobuf.CodedOutputStream
            -            .computeMessageSize(2, getLockTime());
            +          size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLockTime());
                     }
                     size += getUnknownFields().getSerializedSize();
                     memoizedSize = size;
            @@ -2935,19 +3247,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;
            @@ -2961,8 +3272,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();
            @@ -2973,89 +3283,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 +3382,8 @@ protected Builder newBuilderForType(
                     return builder;
                   }
                   /**
            +       *
            +       *
                    * 
                    * Settings for Uniform Bucket level access.
                    * See https://cloud.google.com/storage/docs/uniform-bucket-level-access.
            @@ -3072,39 +3391,43 @@ 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()
            +        // Construct using
            +        // com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess.newBuilder()
                     private Builder() {
                       maybeForceBuilderInitialization();
                     }
             
            -        private Builder(
            -            com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            +        private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                       super(parent);
                       maybeForceBuilderInitialization();
                     }
            +
                     private void maybeForceBuilderInitialization() {
            -          if (com.google.protobuf.GeneratedMessageV3
            -                  .alwaysUseFieldBuilders) {
            +          if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
                         getLockTimeFieldBuilder();
                       }
                     }
            +
                     @java.lang.Override
                     public Builder clear() {
                       super.clear();
            @@ -3119,14 +3442,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
            @@ -3140,22 +3465,24 @@ public com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess build() {
             
                     @java.lang.Override
                     public com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess buildPartial() {
            -          com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess result = new com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess(this);
            -          if (bitField0_ != 0) { buildPartial0(result); }
            +          com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess result =
            +              new com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess(this);
            +          if (bitField0_ != 0) {
            +            buildPartial0(result);
            +          }
                       onBuilt();
                       return result;
                     }
             
            -        private void buildPartial0(com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess result) {
            +        private void buildPartial0(
            +            com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess result) {
                       int from_bitField0_ = bitField0_;
                       if (((from_bitField0_ & 0x00000001) != 0)) {
                         result.enabled_ = enabled_;
                       }
                       int to_bitField0_ = 0;
                       if (((from_bitField0_ & 0x00000002) != 0)) {
            -            result.lockTime_ = lockTimeBuilder_ == null
            -                ? lockTime_
            -                : lockTimeBuilder_.build();
            +            result.lockTime_ = lockTimeBuilder_ == null ? lockTime_ : lockTimeBuilder_.build();
                         to_bitField0_ |= 0x00000001;
                       }
                       result.bitField0_ |= to_bitField0_;
            @@ -3165,46 +3492,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());
                       }
            @@ -3237,24 +3571,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) {
            @@ -3264,15 +3599,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 @@ -3280,11 +3619,14 @@ 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. */ @@ -3296,11 +3638,14 @@ public Builder setEnabled(boolean value) { return this; } /** + * + * *
                      * If set, access checks only use bucket-level IAM policies or above.
                      * 
            * * bool enabled = 1; + * * @return This builder for chaining. */ public Builder clearEnabled() { @@ -3312,8 +3657,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
            @@ -3322,12 +3672,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
            @@ -3336,16 +3689,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
            @@ -3369,6 +3727,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
            @@ -3378,8 +3738,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 {
            @@ -3390,6 +3749,8 @@ public Builder setLockTime(
                       return this;
                     }
                     /**
            +         *
            +         *
                      * 
                      * The deadline time for changing
                      * `iam_config.uniform_bucket_level_access.enabled` from `true` to
            @@ -3401,9 +3762,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;
            @@ -3418,6 +3779,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
            @@ -3438,6 +3801,8 @@ public Builder clearLockTime() {
                       return this;
                     }
                     /**
            +         *
            +         *
                      * 
                      * The deadline time for changing
                      * `iam_config.uniform_bucket_level_access.enabled` from `true` to
            @@ -3453,6 +3818,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
            @@ -3466,11 +3833,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
            @@ -3481,18 +3851,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) {
            @@ -3505,41 +3879,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;
            @@ -3551,21 +3928,27 @@ public com.google.protobuf.Parser getParserForType() {
                   }
             
                   @java.lang.Override
            -      public com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess getDefaultInstanceForType() {
            +      public com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess
            +          getDefaultInstanceForType() {
                     return DEFAULT_INSTANCE;
                   }
            -
                 }
             
                 private int bitField0_;
                 public static final int UNIFORM_BUCKET_LEVEL_ACCESS_FIELD_NUMBER = 1;
            -    private com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniformBucketLevelAccess_;
            +    private com.google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess
            +        uniformBucketLevelAccess_;
                 /**
            +     *
            +     *
                  * 
                  * Bucket restriction options currently enforced on the bucket.
                  * 
            * - * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; + * + * .google.storage.v2.Bucket.IamConfig.UniformBucketLevelAccess uniform_bucket_level_access = 1; + * + * * @return Whether the uniformBucketLevelAccess field is set. */ @java.lang.Override @@ -3573,39 +3956,58 @@ 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. */ @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 @@ -3614,30 +4016,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 { @@ -3646,6 +4048,7 @@ public java.lang.String getPublicAccessPrevention() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3657,8 +4060,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.writeMessage(1, getUniformBucketLevelAccess()); } @@ -3675,11 +4077,13 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - 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; @@ -3689,7 +4093,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); @@ -3698,11 +4102,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; } @@ -3725,90 +4128,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 @@ -3818,27 +4225,32 @@ 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() @@ -3846,17 +4258,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) { getUniformBucketLevelAccessFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -3871,9 +4283,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 @@ -3892,8 +4304,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; } @@ -3902,9 +4317,10 @@ private void buildPartial0(com.google.storage.v2.Bucket.IamConfig result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.uniformBucketLevelAccess_ = uniformBucketLevelAccessBuilder_ == null - ? uniformBucketLevelAccess_ - : uniformBucketLevelAccessBuilder_.build(); + result.uniformBucketLevelAccess_ = + uniformBucketLevelAccessBuilder_ == null + ? uniformBucketLevelAccess_ + : uniformBucketLevelAccessBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { @@ -3917,38 +4333,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; @@ -3991,24 +4410,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) { @@ -4018,45 +4439,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(); @@ -4070,11 +4514,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) { @@ -4088,17 +4536,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; @@ -4113,11 +4568,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); @@ -4130,48 +4589,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_; @@ -4179,19 +4656,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; @@ -4200,21 +4679,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 { @@ -4222,30 +4702,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() { @@ -4255,24 +4742,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) { @@ -4285,12 +4777,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(); } @@ -4299,27 +4791,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; @@ -4334,14 +4827,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.
            @@ -4349,9 +4844,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.
            @@ -4361,6 +4857,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.
            @@ -4370,6 +4868,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.
            @@ -4377,9 +4877,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.
            @@ -4387,10 +4889,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.
            @@ -4398,62 +4901,73 @@ 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();
                 }
             
            -    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.
                    * 
            @@ -4463,24 +4977,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.
                    * 
            @@ -4490,6 +5012,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.
            @@ -4497,102 +5021,117 @@ 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();
                   }
             
            -      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_ = ""; @@ -4600,34 +5139,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(); } - 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 @@ -4636,30 +5180,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 { @@ -4668,15 +5212,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 @@ -4685,30 +5233,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 { @@ -4717,6 +5265,7 @@ public java.lang.String getStorageClass() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4729,7 +5278,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_); } @@ -4759,17 +5308,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; } @@ -4791,89 +5339,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 @@ -4883,39 +5437,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(); @@ -4926,9 +5482,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 @@ -4947,8 +5503,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; } @@ -4967,38 +5526,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; @@ -5006,7 +5568,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; @@ -5043,22 +5606,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) { @@ -5068,23 +5634,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; @@ -5093,21 +5662,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 { @@ -5115,30 +5685,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() { @@ -5148,18 +5725,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; @@ -5169,19 +5750,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; @@ -5190,21 +5773,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 { @@ -5212,30 +5796,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() { @@ -5245,24 +5836,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) { @@ -5275,12 +5871,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(); } @@ -5289,27 +5885,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; @@ -5324,14 +5921,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.
            @@ -5340,10 +5939,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.
            @@ -5352,31 +5954,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.
            @@ -5387,6 +5998,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
            @@ -5394,10 +6007,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
            @@ -5405,11 +6021,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
            @@ -5417,10 +6036,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
            @@ -5428,11 +6050,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`,
            @@ -5441,11 +6066,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`,
            @@ -5454,10 +6081,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`,
            @@ -5466,11 +6096,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`,
            @@ -5479,13 +6112,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.
            @@ -5493,10 +6128,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.
            @@ -5504,31 +6142,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.
            @@ -5539,6 +6186,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
            @@ -5548,10 +6197,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
            @@ -5561,11 +6213,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
            @@ -5573,10 +6228,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
            @@ -5584,10 +6242,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
            @@ -5599,144 +6260,167 @@ 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.emptyList(); - matchesPrefix_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - matchesSuffix_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + matchesStorageClass_ = com.google.protobuf.LazyStringArrayList.emptyList(); + matchesPrefix_ = com.google.protobuf.LazyStringArrayList.emptyList(); + matchesSuffix_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Condition(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.class, com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.Builder.class); + com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.class, + com.google.storage.v2.Bucket.Lifecycle.Rule.Condition.Builder.class); } private int bitField0_; public static final int AGE_DAYS_FIELD_NUMBER = 1; private int ageDays_ = 0; /** + * + * *
                      * Age of an object (in days). This condition is satisfied when an
                      * object reaches the specified age.
            @@ -5745,6 +6429,7 @@ protected java.lang.Object newInstance(
                      * 
            * * optional int32 age_days = 1; + * * @return Whether the ageDays field is set. */ @java.lang.Override @@ -5752,6 +6437,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.
            @@ -5760,6 +6447,7 @@ public boolean hasAgeDays() {
                      * 
            * * optional int32 age_days = 1; + * * @return The ageDays. */ @java.lang.Override @@ -5770,12 +6458,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 @@ -5783,19 +6474,26 @@ 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. */ @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.
            @@ -5805,12 +6503,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
            @@ -5818,6 +6520,7 @@ public com.google.type.DateOrBuilder getCreatedBeforeOrBuilder() {
                      * 
            * * optional bool is_live = 3; + * * @return Whether the isLive field is set. */ @java.lang.Override @@ -5825,6 +6528,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
            @@ -5832,6 +6537,7 @@ public boolean hasIsLive() {
                      * 
            * * optional bool is_live = 3; + * * @return The isLive. */ @java.lang.Override @@ -5842,6 +6548,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
            @@ -5849,6 +6557,7 @@ public boolean getIsLive() {
                      * 
            * * optional int32 num_newer_versions = 4; + * * @return Whether the numNewerVersions field is set. */ @java.lang.Override @@ -5856,6 +6565,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
            @@ -5863,6 +6574,7 @@ public boolean hasNumNewerVersions() {
                      * 
            * * optional int32 num_newer_versions = 4; + * * @return The numNewerVersions. */ @java.lang.Override @@ -5871,10 +6583,13 @@ public int getNumNewerVersions() { } public static final int MATCHES_STORAGE_CLASS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList matchesStorageClass_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
                      * Objects having any of the storage classes specified by this condition
                      * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
            @@ -5883,13 +6598,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`,
            @@ -5898,12 +6615,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`,
            @@ -5912,6 +6632,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. */ @@ -5919,6 +6640,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`,
            @@ -5927,17 +6650,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.
            @@ -5945,6 +6670,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 @@ -5952,6 +6678,8 @@ public boolean hasDaysSinceCustomTime() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
                      * Number of days that have elapsed since the custom timestamp set on an
                      * object.
            @@ -5959,6 +6687,7 @@ public boolean hasDaysSinceCustomTime() {
                      * 
            * * optional int32 days_since_custom_time = 7; + * * @return The daysSinceCustomTime. */ @java.lang.Override @@ -5969,12 +6698,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 @@ -5982,19 +6714,26 @@ public boolean hasCustomTimeBefore() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
                      * An object matches this condition if the custom timestamp set on the
                      * object is before the specified date in UTC.
                      * 
            * * .google.type.Date custom_time_before = 8; + * * @return The customTimeBefore. */ @java.lang.Override public com.google.type.Date getCustomTimeBefore() { - return customTimeBefore_ == null ? com.google.type.Date.getDefaultInstance() : customTimeBefore_; + return customTimeBefore_ == null + ? com.google.type.Date.getDefaultInstance() + : customTimeBefore_; } /** + * + * *
                      * An object matches this condition if the custom timestamp set on the
                      * object is before the specified date in UTC.
            @@ -6004,12 +6743,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
            @@ -6019,6 +6762,7 @@ public com.google.type.DateOrBuilder getCustomTimeBeforeOrBuilder() {
                      * 
            * * optional int32 days_since_noncurrent_time = 9; + * * @return Whether the daysSinceNoncurrentTime field is set. */ @java.lang.Override @@ -6026,6 +6770,8 @@ public boolean hasDaysSinceNoncurrentTime() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
                      * This condition is relevant only for versioned objects. An object
                      * version satisfies this condition only if these many days have been
            @@ -6035,6 +6781,7 @@ public boolean hasDaysSinceNoncurrentTime() {
                      * 
            * * optional int32 days_since_noncurrent_time = 9; + * * @return The daysSinceNoncurrentTime. */ @java.lang.Override @@ -6045,6 +6792,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
            @@ -6052,6 +6801,7 @@ public int getDaysSinceNoncurrentTime() {
                      * 
            * * .google.type.Date noncurrent_time_before = 10; + * * @return Whether the noncurrentTimeBefore field is set. */ @java.lang.Override @@ -6059,6 +6809,8 @@ public boolean hasNoncurrentTimeBefore() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
                      * This condition is relevant only for versioned objects. An object
                      * version satisfies this condition only if it became noncurrent before
            @@ -6066,13 +6818,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
            @@ -6083,45 +6840,56 @@ public com.google.type.Date getNoncurrentTimeBefore() {
                      */
                     @java.lang.Override
                     public com.google.type.DateOrBuilder getNoncurrentTimeBeforeOrBuilder() {
            -          return noncurrentTimeBefore_ == null ? com.google.type.Date.getDefaultInstance() : noncurrentTimeBefore_;
            +          return noncurrentTimeBefore_ == null
            +              ? com.google.type.Date.getDefaultInstance()
            +              : noncurrentTimeBefore_;
                     }
             
                     public static final int MATCHES_PREFIX_FIELD_NUMBER = 11;
            +
                     @SuppressWarnings("serial")
                     private com.google.protobuf.LazyStringArrayList matchesPrefix_ =
                         com.google.protobuf.LazyStringArrayList.emptyList();
                     /**
            +         *
            +         *
                      * 
                      * List of object name prefixes. If any prefix exactly matches the
                      * beginning of the object name, the condition evaluates to true.
                      * 
            * * repeated string matches_prefix = 11; + * * @return A list containing the matchesPrefix. */ - public com.google.protobuf.ProtocolStringList - getMatchesPrefixList() { + public com.google.protobuf.ProtocolStringList getMatchesPrefixList() { return matchesPrefix_; } /** + * + * *
                      * List of object name prefixes. If any prefix exactly matches the
                      * beginning of the object name, the condition evaluates to true.
                      * 
            * * repeated string matches_prefix = 11; + * * @return The count of matchesPrefix. */ public int getMatchesPrefixCount() { return matchesPrefix_.size(); } /** + * + * *
                      * List of object name prefixes. If any prefix exactly matches the
                      * beginning of the object name, the condition evaluates to true.
                      * 
            * * repeated string matches_prefix = 11; + * * @param index The index of the element to return. * @return The matchesPrefix at the given index. */ @@ -6129,56 +6897,67 @@ public java.lang.String getMatchesPrefix(int index) { return matchesPrefix_.get(index); } /** + * + * *
                      * List of object name prefixes. If any prefix exactly matches the
                      * beginning of the object name, the condition evaluates to true.
                      * 
            * * repeated string matches_prefix = 11; + * * @param index The index of the value to return. * @return The bytes of the matchesPrefix at the given index. */ - public com.google.protobuf.ByteString - getMatchesPrefixBytes(int index) { + public com.google.protobuf.ByteString getMatchesPrefixBytes(int index) { return matchesPrefix_.getByteString(index); } public static final int MATCHES_SUFFIX_FIELD_NUMBER = 12; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList matchesSuffix_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
                      * List of object name suffixes. If any suffix exactly matches the
                      * end of the object name, the condition evaluates to true.
                      * 
            * * repeated string matches_suffix = 12; + * * @return A list containing the matchesSuffix. */ - public com.google.protobuf.ProtocolStringList - getMatchesSuffixList() { + public com.google.protobuf.ProtocolStringList getMatchesSuffixList() { return matchesSuffix_; } /** + * + * *
                      * List of object name suffixes. If any suffix exactly matches the
                      * end of the object name, the condition evaluates to true.
                      * 
            * * repeated string matches_suffix = 12; + * * @return The count of matchesSuffix. */ public int getMatchesSuffixCount() { return matchesSuffix_.size(); } /** + * + * *
                      * List of object name suffixes. If any suffix exactly matches the
                      * end of the object name, the condition evaluates to true.
                      * 
            * * repeated string matches_suffix = 12; + * * @param index The index of the element to return. * @return The matchesSuffix at the given index. */ @@ -6186,21 +6965,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; @@ -6213,7 +6995,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_); } @@ -6227,7 +7009,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_ & 0x00000010) != 0)) { output.writeInt32(7, daysSinceCustomTime_); @@ -6242,10 +7025,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); } @@ -6257,20 +7042,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 (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreatedBefore()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreatedBefore()); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, isLive_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, isLive_); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, numNewerVersions_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, numNewerVersions_); } { int dataSize = 0; @@ -6281,20 +7062,20 @@ public int getSerializedSize() { size += 1 * getMatchesStorageClassList().size(); } if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, daysSinceCustomTime_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, daysSinceCustomTime_); } if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getCustomTimeBefore()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCustomTimeBefore()); } if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(9, daysSinceNoncurrentTime_); + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(9, daysSinceNoncurrentTime_); } if (((bitField0_ & 0x00000080) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getNoncurrentTimeBefore()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, getNoncurrentTimeBefore()); } { int dataSize = 0; @@ -6320,59 +7101,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; } @@ -6394,8 +7166,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; @@ -6435,89 +7206,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 @@ -6527,27 +7304,32 @@ 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() @@ -6555,19 +7337,19 @@ 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) { getCreatedBeforeFieldBuilder(); getCustomTimeBeforeFieldBuilder(); getNoncurrentTimeBeforeFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -6580,8 +7362,7 @@ public Builder clear() { } isLive_ = false; numNewerVersions_ = 0; - matchesStorageClass_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + matchesStorageClass_ = com.google.protobuf.LazyStringArrayList.emptyList(); daysSinceCustomTime_ = 0; customTimeBefore_ = null; if (customTimeBeforeBuilder_ != null) { @@ -6594,17 +7375,15 @@ public Builder clear() { noncurrentTimeBeforeBuilder_.dispose(); noncurrentTimeBeforeBuilder_ = null; } - matchesPrefix_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - matchesSuffix_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + matchesPrefix_ = com.google.protobuf.LazyStringArrayList.emptyList(); + matchesSuffix_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_descriptor; } @java.lang.Override @@ -6623,8 +7402,11 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule.Condition build() { @java.lang.Override public com.google.storage.v2.Bucket.Lifecycle.Rule.Condition buildPartial() { - com.google.storage.v2.Bucket.Lifecycle.Rule.Condition result = new com.google.storage.v2.Bucket.Lifecycle.Rule.Condition(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.storage.v2.Bucket.Lifecycle.Rule.Condition result = + new com.google.storage.v2.Bucket.Lifecycle.Rule.Condition(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -6637,9 +7419,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(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -6659,9 +7440,10 @@ private void buildPartial0(com.google.storage.v2.Bucket.Lifecycle.Rule.Condition to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.customTimeBefore_ = customTimeBeforeBuilder_ == null - ? customTimeBefore_ - : customTimeBeforeBuilder_.build(); + result.customTimeBefore_ = + customTimeBeforeBuilder_ == null + ? customTimeBefore_ + : customTimeBeforeBuilder_.build(); to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000080) != 0)) { @@ -6669,9 +7451,10 @@ private void buildPartial0(com.google.storage.v2.Bucket.Lifecycle.Rule.Condition to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.noncurrentTimeBefore_ = noncurrentTimeBeforeBuilder_ == null - ? noncurrentTimeBefore_ - : noncurrentTimeBeforeBuilder_.build(); + result.noncurrentTimeBefore_ = + noncurrentTimeBeforeBuilder_ == null + ? noncurrentTimeBefore_ + : noncurrentTimeBeforeBuilder_.build(); to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000200) != 0)) { @@ -6689,38 +7472,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; @@ -6728,7 +7514,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()); } @@ -6809,76 +7596,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) { @@ -6888,10 +7684,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.
            @@ -6900,6 +7699,7 @@ public Builder mergeFrom(
                        * 
            * * optional int32 age_days = 1; + * * @return Whether the ageDays field is set. */ @java.lang.Override @@ -6907,6 +7707,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.
            @@ -6915,6 +7717,7 @@ public boolean hasAgeDays() {
                        * 
            * * optional int32 age_days = 1; + * * @return The ageDays. */ @java.lang.Override @@ -6922,6 +7725,8 @@ public int getAgeDays() { return ageDays_; } /** + * + * *
                        * Age of an object (in days). This condition is satisfied when an
                        * object reaches the specified age.
            @@ -6930,6 +7735,7 @@ public int getAgeDays() {
                        * 
            * * optional int32 age_days = 1; + * * @param value The ageDays to set. * @return This builder for chaining. */ @@ -6941,6 +7747,8 @@ public Builder setAgeDays(int value) { return this; } /** + * + * *
                        * Age of an object (in days). This condition is satisfied when an
                        * object reaches the specified age.
            @@ -6949,6 +7757,7 @@ public Builder setAgeDays(int value) {
                        * 
            * * optional int32 age_days = 1; + * * @return This builder for chaining. */ public Builder clearAgeDays() { @@ -6960,36 +7769,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.
            @@ -7011,6 +7831,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.
            @@ -7018,8 +7840,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 {
            @@ -7030,6 +7851,8 @@ public Builder setCreatedBefore(
                         return this;
                       }
                       /**
            +           *
            +           *
                        * 
                        * This condition is satisfied when an object is created before midnight
                        * of the specified date in UTC.
            @@ -7039,9 +7862,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;
            @@ -7056,6 +7879,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.
            @@ -7074,6 +7899,8 @@ public Builder clearCreatedBefore() {
                         return this;
                       }
                       /**
            +           *
            +           *
                        * 
                        * This condition is satisfied when an object is created before midnight
                        * of the specified date in UTC.
            @@ -7087,6 +7914,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.
            @@ -7098,11 +7927,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.
            @@ -7111,21 +7943,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
            @@ -7133,6 +7968,7 @@ public com.google.type.DateOrBuilder getCreatedBeforeOrBuilder() {
                        * 
            * * optional bool is_live = 3; + * * @return Whether the isLive field is set. */ @java.lang.Override @@ -7140,6 +7976,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
            @@ -7147,6 +7985,7 @@ public boolean hasIsLive() {
                        * 
            * * optional bool is_live = 3; + * * @return The isLive. */ @java.lang.Override @@ -7154,6 +7993,8 @@ public boolean getIsLive() { return isLive_; } /** + * + * *
                        * Relevant only for versioned objects. If the value is
                        * `true`, this condition matches live objects; if the value
            @@ -7161,6 +8002,7 @@ public boolean getIsLive() {
                        * 
            * * optional bool is_live = 3; + * * @param value The isLive to set. * @return This builder for chaining. */ @@ -7172,6 +8014,8 @@ public Builder setIsLive(boolean value) { return this; } /** + * + * *
                        * Relevant only for versioned objects. If the value is
                        * `true`, this condition matches live objects; if the value
            @@ -7179,6 +8023,7 @@ public Builder setIsLive(boolean value) {
                        * 
            * * optional bool is_live = 3; + * * @return This builder for chaining. */ public Builder clearIsLive() { @@ -7188,8 +8033,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
            @@ -7197,6 +8044,7 @@ public Builder clearIsLive() {
                        * 
            * * optional int32 num_newer_versions = 4; + * * @return Whether the numNewerVersions field is set. */ @java.lang.Override @@ -7204,6 +8052,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
            @@ -7211,6 +8061,7 @@ public boolean hasNumNewerVersions() {
                        * 
            * * optional int32 num_newer_versions = 4; + * * @return The numNewerVersions. */ @java.lang.Override @@ -7218,6 +8069,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
            @@ -7225,6 +8078,7 @@ public int getNumNewerVersions() {
                        * 
            * * optional int32 num_newer_versions = 4; + * * @param value The numNewerVersions to set. * @return This builder for chaining. */ @@ -7236,6 +8090,8 @@ public Builder setNumNewerVersions(int value) { return this; } /** + * + * *
                        * Relevant only for versioned objects. If the value is N, this
                        * condition is satisfied when there are at least N versions (including
            @@ -7243,6 +8099,7 @@ public Builder setNumNewerVersions(int value) {
                        * 
            * * optional int32 num_newer_versions = 4; + * * @return This builder for chaining. */ public Builder clearNumNewerVersions() { @@ -7254,13 +8111,17 @@ public Builder clearNumNewerVersions() { private com.google.protobuf.LazyStringArrayList matchesStorageClass_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureMatchesStorageClassIsMutable() { if (!matchesStorageClass_.isModifiable()) { - matchesStorageClass_ = new com.google.protobuf.LazyStringArrayList(matchesStorageClass_); + matchesStorageClass_ = + new com.google.protobuf.LazyStringArrayList(matchesStorageClass_); } bitField0_ |= 0x00000010; } /** + * + * *
                        * Objects having any of the storage classes specified by this condition
                        * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
            @@ -7269,14 +8130,16 @@ private void ensureMatchesStorageClassIsMutable() {
                        * 
            * * repeated string matches_storage_class = 5; + * * @return A list containing the matchesStorageClass. */ - public com.google.protobuf.ProtocolStringList - getMatchesStorageClassList() { + public com.google.protobuf.ProtocolStringList getMatchesStorageClassList() { matchesStorageClass_.makeImmutable(); return matchesStorageClass_; } /** + * + * *
                        * Objects having any of the storage classes specified by this condition
                        * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
            @@ -7285,12 +8148,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`,
            @@ -7299,6 +8165,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. */ @@ -7306,6 +8173,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`,
            @@ -7314,14 +8183,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`,
            @@ -7330,13 +8201,15 @@ 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); bitField0_ |= 0x00000010; @@ -7344,6 +8217,8 @@ public Builder setMatchesStorageClass( return this; } /** + * + * *
                        * Objects having any of the storage classes specified by this condition
                        * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
            @@ -7352,12 +8227,14 @@ 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); bitField0_ |= 0x00000010; @@ -7365,6 +8242,8 @@ public Builder addMatchesStorageClass( return this; } /** + * + * *
                        * Objects having any of the storage classes specified by this condition
                        * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
            @@ -7373,19 +8252,20 @@ 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_); bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
                        * Objects having any of the storage classes specified by this condition
                        * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
            @@ -7394,16 +8274,19 @@ public Builder addAllMatchesStorageClass(
                        * 
            * * repeated string matches_storage_class = 5; + * * @return This builder for chaining. */ public Builder clearMatchesStorageClass() { - matchesStorageClass_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010);; + matchesStorageClass_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; onChanged(); return this; } /** + * + * *
                        * Objects having any of the storage classes specified by this condition
                        * will be matched. Values include `MULTI_REGIONAL`, `REGIONAL`,
            @@ -7412,12 +8295,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); @@ -7426,8 +8311,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.
            @@ -7435,6 +8322,7 @@ public Builder addMatchesStorageClassBytes(
                        * 
            * * optional int32 days_since_custom_time = 7; + * * @return Whether the daysSinceCustomTime field is set. */ @java.lang.Override @@ -7442,6 +8330,8 @@ public boolean hasDaysSinceCustomTime() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
                        * Number of days that have elapsed since the custom timestamp set on an
                        * object.
            @@ -7449,6 +8339,7 @@ public boolean hasDaysSinceCustomTime() {
                        * 
            * * optional int32 days_since_custom_time = 7; + * * @return The daysSinceCustomTime. */ @java.lang.Override @@ -7456,6 +8347,8 @@ public int getDaysSinceCustomTime() { return daysSinceCustomTime_; } /** + * + * *
                        * Number of days that have elapsed since the custom timestamp set on an
                        * object.
            @@ -7463,6 +8356,7 @@ public int getDaysSinceCustomTime() {
                        * 
            * * optional int32 days_since_custom_time = 7; + * * @param value The daysSinceCustomTime to set. * @return This builder for chaining. */ @@ -7474,6 +8368,8 @@ public Builder setDaysSinceCustomTime(int value) { return this; } /** + * + * *
                        * Number of days that have elapsed since the custom timestamp set on an
                        * object.
            @@ -7481,6 +8377,7 @@ public Builder setDaysSinceCustomTime(int value) {
                        * 
            * * optional int32 days_since_custom_time = 7; + * * @return This builder for chaining. */ public Builder clearDaysSinceCustomTime() { @@ -7492,36 +8389,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.
            @@ -7543,6 +8451,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.
            @@ -7550,8 +8460,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 {
            @@ -7562,6 +8471,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.
            @@ -7571,9 +8482,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;
            @@ -7588,6 +8499,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.
            @@ -7606,6 +8519,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.
            @@ -7619,6 +8534,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.
            @@ -7630,11 +8547,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.
            @@ -7643,21 +8563,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
            @@ -7667,6 +8590,7 @@ public com.google.type.DateOrBuilder getCustomTimeBeforeOrBuilder() {
                        * 
            * * optional int32 days_since_noncurrent_time = 9; + * * @return Whether the daysSinceNoncurrentTime field is set. */ @java.lang.Override @@ -7674,6 +8598,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
            @@ -7683,6 +8609,7 @@ public boolean hasDaysSinceNoncurrentTime() {
                        * 
            * * optional int32 days_since_noncurrent_time = 9; + * * @return The daysSinceNoncurrentTime. */ @java.lang.Override @@ -7690,6 +8617,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
            @@ -7699,6 +8628,7 @@ public int getDaysSinceNoncurrentTime() {
                        * 
            * * optional int32 days_since_noncurrent_time = 9; + * * @param value The daysSinceNoncurrentTime to set. * @return This builder for chaining. */ @@ -7710,6 +8640,8 @@ public Builder setDaysSinceNoncurrentTime(int value) { return this; } /** + * + * *
                        * This condition is relevant only for versioned objects. An object
                        * version satisfies this condition only if these many days have been
            @@ -7719,6 +8651,7 @@ public Builder setDaysSinceNoncurrentTime(int value) {
                        * 
            * * optional int32 days_since_noncurrent_time = 9; + * * @return This builder for chaining. */ public Builder clearDaysSinceNoncurrentTime() { @@ -7730,8 +8663,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
            @@ -7739,12 +8675,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
            @@ -7752,16 +8691,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
            @@ -7784,6 +8728,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
            @@ -7792,8 +8738,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 {
            @@ -7804,6 +8749,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
            @@ -7814,9 +8761,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;
            @@ -7831,6 +8778,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
            @@ -7850,6 +8799,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
            @@ -7864,6 +8815,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
            @@ -7876,11 +8829,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
            @@ -7890,14 +8846,15 @@ 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_;
            @@ -7905,6 +8862,7 @@ public com.google.type.DateOrBuilder getNoncurrentTimeBeforeOrBuilder() {
             
                       private com.google.protobuf.LazyStringArrayList matchesPrefix_ =
                           com.google.protobuf.LazyStringArrayList.emptyList();
            +
                       private void ensureMatchesPrefixIsMutable() {
                         if (!matchesPrefix_.isModifiable()) {
                           matchesPrefix_ = new com.google.protobuf.LazyStringArrayList(matchesPrefix_);
            @@ -7912,38 +8870,46 @@ private void ensureMatchesPrefixIsMutable() {
                         bitField0_ |= 0x00000200;
                       }
                       /**
            +           *
            +           *
                        * 
                        * List of object name prefixes. If any prefix exactly matches the
                        * beginning of the object name, the condition evaluates to true.
                        * 
            * * repeated string matches_prefix = 11; + * * @return A list containing the matchesPrefix. */ - public com.google.protobuf.ProtocolStringList - getMatchesPrefixList() { + public com.google.protobuf.ProtocolStringList getMatchesPrefixList() { matchesPrefix_.makeImmutable(); return matchesPrefix_; } /** + * + * *
                        * List of object name prefixes. If any prefix exactly matches the
                        * beginning of the object name, the condition evaluates to true.
                        * 
            * * repeated string matches_prefix = 11; + * * @return The count of matchesPrefix. */ public int getMatchesPrefixCount() { return matchesPrefix_.size(); } /** + * + * *
                        * List of object name prefixes. If any prefix exactly matches the
                        * beginning of the object name, the condition evaluates to true.
                        * 
            * * repeated string matches_prefix = 11; + * * @param index The index of the element to return. * @return The matchesPrefix at the given index. */ @@ -7951,33 +8917,39 @@ public java.lang.String getMatchesPrefix(int index) { return matchesPrefix_.get(index); } /** + * + * *
                        * List of object name prefixes. If any prefix exactly matches the
                        * beginning of the object name, the condition evaluates to true.
                        * 
            * * repeated string matches_prefix = 11; + * * @param index The index of the value to return. * @return The bytes of the matchesPrefix at the given index. */ - public com.google.protobuf.ByteString - getMatchesPrefixBytes(int index) { + public com.google.protobuf.ByteString getMatchesPrefixBytes(int index) { return matchesPrefix_.getByteString(index); } /** + * + * *
                        * List of object name prefixes. If any prefix exactly matches the
                        * beginning of the object name, the condition evaluates to true.
                        * 
            * * repeated string matches_prefix = 11; + * * @param index The index to set the value at. * @param value The matchesPrefix to set. * @return This builder for chaining. */ - public Builder setMatchesPrefix( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMatchesPrefix(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureMatchesPrefixIsMutable(); matchesPrefix_.set(index, value); bitField0_ |= 0x00000200; @@ -7985,18 +8957,22 @@ public Builder setMatchesPrefix( return this; } /** + * + * *
                        * List of object name prefixes. If any prefix exactly matches the
                        * beginning of the object name, the condition evaluates to true.
                        * 
            * * repeated string matches_prefix = 11; + * * @param value The matchesPrefix to add. * @return This builder for chaining. */ - public Builder addMatchesPrefix( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addMatchesPrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureMatchesPrefixIsMutable(); matchesPrefix_.add(value); bitField0_ |= 0x00000200; @@ -8004,53 +8980,61 @@ public Builder addMatchesPrefix( return this; } /** + * + * *
                        * List of object name prefixes. If any prefix exactly matches the
                        * beginning of the object name, the condition evaluates to true.
                        * 
            * * repeated string matches_prefix = 11; + * * @param values The matchesPrefix to add. * @return This builder for chaining. */ - public Builder addAllMatchesPrefix( - java.lang.Iterable values) { + public Builder addAllMatchesPrefix(java.lang.Iterable values) { ensureMatchesPrefixIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, matchesPrefix_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, matchesPrefix_); bitField0_ |= 0x00000200; onChanged(); return this; } /** + * + * *
                        * List of object name prefixes. If any prefix exactly matches the
                        * beginning of the object name, the condition evaluates to true.
                        * 
            * * repeated string matches_prefix = 11; + * * @return This builder for chaining. */ public Builder clearMatchesPrefix() { - matchesPrefix_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200);; + matchesPrefix_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + ; onChanged(); return this; } /** + * + * *
                        * List of object name prefixes. If any prefix exactly matches the
                        * beginning of the object name, the condition evaluates to true.
                        * 
            * * repeated string matches_prefix = 11; + * * @param value The bytes of the matchesPrefix to add. * @return This builder for chaining. */ - public Builder addMatchesPrefixBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addMatchesPrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureMatchesPrefixIsMutable(); matchesPrefix_.add(value); @@ -8061,6 +9045,7 @@ public Builder addMatchesPrefixBytes( private com.google.protobuf.LazyStringArrayList matchesSuffix_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureMatchesSuffixIsMutable() { if (!matchesSuffix_.isModifiable()) { matchesSuffix_ = new com.google.protobuf.LazyStringArrayList(matchesSuffix_); @@ -8068,38 +9053,46 @@ private void ensureMatchesSuffixIsMutable() { bitField0_ |= 0x00000400; } /** + * + * *
                        * List of object name suffixes. If any suffix exactly matches the
                        * end of the object name, the condition evaluates to true.
                        * 
            * * repeated string matches_suffix = 12; + * * @return A list containing the matchesSuffix. */ - public com.google.protobuf.ProtocolStringList - getMatchesSuffixList() { + public com.google.protobuf.ProtocolStringList getMatchesSuffixList() { matchesSuffix_.makeImmutable(); return matchesSuffix_; } /** + * + * *
                        * List of object name suffixes. If any suffix exactly matches the
                        * end of the object name, the condition evaluates to true.
                        * 
            * * repeated string matches_suffix = 12; + * * @return The count of matchesSuffix. */ public int getMatchesSuffixCount() { return matchesSuffix_.size(); } /** + * + * *
                        * List of object name suffixes. If any suffix exactly matches the
                        * end of the object name, the condition evaluates to true.
                        * 
            * * repeated string matches_suffix = 12; + * * @param index The index of the element to return. * @return The matchesSuffix at the given index. */ @@ -8107,33 +9100,39 @@ public java.lang.String getMatchesSuffix(int index) { return matchesSuffix_.get(index); } /** + * + * *
                        * List of object name suffixes. If any suffix exactly matches the
                        * end of the object name, the condition evaluates to true.
                        * 
            * * repeated string matches_suffix = 12; + * * @param index The index of the value to return. * @return The bytes of the matchesSuffix at the given index. */ - public com.google.protobuf.ByteString - getMatchesSuffixBytes(int index) { + public com.google.protobuf.ByteString getMatchesSuffixBytes(int index) { return matchesSuffix_.getByteString(index); } /** + * + * *
                        * List of object name suffixes. If any suffix exactly matches the
                        * end of the object name, the condition evaluates to true.
                        * 
            * * repeated string matches_suffix = 12; + * * @param index The index to set the value at. * @param value The matchesSuffix to set. * @return This builder for chaining. */ - public Builder setMatchesSuffix( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMatchesSuffix(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureMatchesSuffixIsMutable(); matchesSuffix_.set(index, value); bitField0_ |= 0x00000400; @@ -8141,18 +9140,22 @@ public Builder setMatchesSuffix( return this; } /** + * + * *
                        * List of object name suffixes. If any suffix exactly matches the
                        * end of the object name, the condition evaluates to true.
                        * 
            * * repeated string matches_suffix = 12; + * * @param value The matchesSuffix to add. * @return This builder for chaining. */ - public Builder addMatchesSuffix( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addMatchesSuffix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureMatchesSuffixIsMutable(); matchesSuffix_.add(value); bitField0_ |= 0x00000400; @@ -8160,53 +9163,61 @@ public Builder addMatchesSuffix( return this; } /** + * + * *
                        * List of object name suffixes. If any suffix exactly matches the
                        * end of the object name, the condition evaluates to true.
                        * 
            * * repeated string matches_suffix = 12; + * * @param values The matchesSuffix to add. * @return This builder for chaining. */ - public Builder addAllMatchesSuffix( - java.lang.Iterable values) { + public Builder addAllMatchesSuffix(java.lang.Iterable values) { ensureMatchesSuffixIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, matchesSuffix_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, matchesSuffix_); bitField0_ |= 0x00000400; onChanged(); return this; } /** + * + * *
                        * List of object name suffixes. If any suffix exactly matches the
                        * end of the object name, the condition evaluates to true.
                        * 
            * * repeated string matches_suffix = 12; + * * @return This builder for chaining. */ public Builder clearMatchesSuffix() { - matchesSuffix_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400);; + matchesSuffix_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + ; onChanged(); return this; } /** + * + * *
                        * List of object name suffixes. If any suffix exactly matches the
                        * end of the object name, the condition evaluates to true.
                        * 
            * * repeated string matches_suffix = 12; + * * @param value The bytes of the matchesSuffix to add. * @return This builder for chaining. */ - public Builder addMatchesSuffixBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addMatchesSuffixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureMatchesSuffixIsMutable(); matchesSuffix_.add(value); @@ -8214,6 +9225,7 @@ public Builder addMatchesSuffixBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8226,12 +9238,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.storage.v2.Bucket.Lifecycle.Rule.Condition) } // @@protoc_insertion_point(class_scope:google.storage.v2.Bucket.Lifecycle.Rule.Condition) private static final com.google.storage.v2.Bucket.Lifecycle.Rule.Condition DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.storage.v2.Bucket.Lifecycle.Rule.Condition(); } @@ -8240,27 +9252,28 @@ public static com.google.storage.v2.Bucket.Lifecycle.Rule.Condition getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Condition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Condition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8275,18 +9288,20 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.Lifecycle.Rule.Condition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int bitField0_; public static final int ACTION_FIELD_NUMBER = 1; private com.google.storage.v2.Bucket.Lifecycle.Rule.Action action_; /** + * + * *
                    * The action to take.
                    * 
            * * .google.storage.v2.Bucket.Lifecycle.Rule.Action action = 1; + * * @return Whether the action field is set. */ @java.lang.Override @@ -8294,18 +9309,25 @@ public boolean hasAction() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                    * The action to take.
                    * 
            * * .google.storage.v2.Bucket.Lifecycle.Rule.Action action = 1; + * * @return The action. */ @java.lang.Override public com.google.storage.v2.Bucket.Lifecycle.Rule.Action getAction() { - return action_ == null ? com.google.storage.v2.Bucket.Lifecycle.Rule.Action.getDefaultInstance() : action_; + return action_ == null + ? com.google.storage.v2.Bucket.Lifecycle.Rule.Action.getDefaultInstance() + : action_; } /** + * + * *
                    * The action to take.
                    * 
            @@ -8314,17 +9336,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 @@ -8332,18 +9359,25 @@ 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. */ @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.
                    * 
            @@ -8351,11 +9385,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; @@ -8367,8 +9405,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.writeMessage(1, getAction()); } @@ -8385,12 +9422,10 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAction()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAction()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCondition()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCondition()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -8400,22 +9435,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; @@ -8441,90 +9475,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 @@ -8534,6 +9572,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.
            @@ -8541,21 +9581,24 @@ 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()
            @@ -8563,18 +9606,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) {
                         getActionFieldBuilder();
                         getConditionFieldBuilder();
                       }
                     }
            +
                     @java.lang.Override
                     public Builder clear() {
                       super.clear();
            @@ -8593,9 +9636,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
            @@ -8614,8 +9657,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;
                     }
            @@ -8624,15 +9670,11 @@ private void buildPartial0(com.google.storage.v2.Bucket.Lifecycle.Rule result) {
                       int from_bitField0_ = bitField0_;
                       int to_bitField0_ = 0;
                       if (((from_bitField0_ & 0x00000001) != 0)) {
            -            result.action_ = actionBuilder_ == null
            -                ? action_
            -                : actionBuilder_.build();
            +            result.action_ = actionBuilder_ == null ? action_ : actionBuilder_.build();
                         to_bitField0_ |= 0x00000001;
                       }
                       if (((from_bitField0_ & 0x00000002) != 0)) {
            -            result.condition_ = conditionBuilder_ == null
            -                ? condition_
            -                : conditionBuilder_.build();
            +            result.condition_ = conditionBuilder_ == null ? condition_ : conditionBuilder_.build();
                         to_bitField0_ |= 0x00000002;
                       }
                       result.bitField0_ |= to_bitField0_;
            @@ -8642,38 +9684,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;
            @@ -8681,7 +9726,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());
                       }
            @@ -8714,26 +9760,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) {
            @@ -8743,38 +9788,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.
                      * 
            @@ -8795,6 +9854,8 @@ public Builder setAction(com.google.storage.v2.Bucket.Lifecycle.Rule.Action valu return this; } /** + * + * *
                      * The action to take.
                      * 
            @@ -8813,6 +9874,8 @@ public Builder setAction( return this; } /** + * + * *
                      * The action to take.
                      * 
            @@ -8821,9 +9884,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; @@ -8838,6 +9902,8 @@ public Builder mergeAction(com.google.storage.v2.Bucket.Lifecycle.Rule.Action va return this; } /** + * + * *
                      * The action to take.
                      * 
            @@ -8855,6 +9921,8 @@ public Builder clearAction() { return this; } /** + * + * *
                      * The action to take.
                      * 
            @@ -8867,6 +9935,8 @@ public com.google.storage.v2.Bucket.Lifecycle.Rule.Action.Builder getActionBuild return getActionFieldBuilder().getBuilder(); } /** + * + * *
                      * The action to take.
                      * 
            @@ -8877,11 +9947,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.
                      * 
            @@ -8889,14 +9962,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_; @@ -8904,34 +9980,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.
                      * 
            @@ -8952,6 +10041,8 @@ public Builder setCondition(com.google.storage.v2.Bucket.Lifecycle.Rule.Conditio return this; } /** + * + * *
                      * The condition(s) under which the action will be taken.
                      * 
            @@ -8970,6 +10061,8 @@ public Builder setCondition( return this; } /** + * + * *
                      * The condition(s) under which the action will be taken.
                      * 
            @@ -8978,9 +10071,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; @@ -8995,6 +10089,8 @@ public Builder mergeCondition(com.google.storage.v2.Bucket.Lifecycle.Rule.Condit return this; } /** + * + * *
                      * The condition(s) under which the action will be taken.
                      * 
            @@ -9012,6 +10108,8 @@ public Builder clearCondition() { return this; } /** + * + * *
                      * The condition(s) under which the action will be taken.
                      * 
            @@ -9024,21 +10122,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.
                      * 
            @@ -9046,18 +10150,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) { @@ -9070,12 +10178,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(); } @@ -9084,27 +10192,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; @@ -9119,13 +10228,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.
            @@ -9138,6 +10249,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.
            @@ -9146,11 +10259,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.
            @@ -9163,6 +10278,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.
            @@ -9175,6 +10292,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.
            @@ -9183,12 +10302,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;
            @@ -9200,8 +10319,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));
                   }
            @@ -9215,8 +10333,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;
            @@ -9226,15 +10343,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;
                 }
            @@ -9255,90 +10371,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
            @@ -9348,6 +10468,8 @@ protected Builder newBuilderForType(
                   return builder;
                 }
                 /**
            +     *
            +     *
                  * 
                  * Lifecycle properties of a bucket.
                  * For more information, see https://cloud.google.com/storage/docs/lifecycle.
            @@ -9355,33 +10477,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();
            @@ -9397,9 +10519,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
            @@ -9418,9 +10540,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;
                   }
            @@ -9445,38 +10570,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;
            @@ -9503,9 +10631,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_);
                         }
            @@ -9537,25 +10666,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) {
            @@ -9565,21 +10695,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.
            @@ -9595,6 +10732,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.
            @@ -9610,6 +10749,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.
            @@ -9625,6 +10766,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.
            @@ -9632,8 +10775,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();
            @@ -9647,6 +10789,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.
            @@ -9666,6 +10810,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.
            @@ -9687,6 +10833,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.
            @@ -9694,8 +10842,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();
            @@ -9709,6 +10856,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.
            @@ -9716,8 +10865,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());
            @@ -9728,6 +10876,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.
            @@ -9747,6 +10897,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.
            @@ -9758,8 +10910,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);
            @@ -9767,6 +10918,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.
            @@ -9785,6 +10938,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.
            @@ -9803,6 +10958,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.
            @@ -9810,11 +10967,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.
            @@ -9822,14 +10980,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.
            @@ -9837,8 +10997,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 {
            @@ -9846,6 +11006,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.
            @@ -9854,10 +11016,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.
            @@ -9865,12 +11029,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.
            @@ -9878,24 +11043,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) {
            @@ -9908,12 +11077,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();
                 }
            @@ -9922,27 +11091,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;
            @@ -9957,71 +11127,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_ = ""; @@ -10029,34 +11212,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(); } - 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 @@ -10065,30 +11253,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 { @@ -10097,14 +11285,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 @@ -10113,29 +11305,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 { @@ -10144,6 +11336,7 @@ public java.lang.String getLogObjectPrefix() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -10155,8 +11348,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_); } @@ -10186,17 +11378,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; } @@ -10217,90 +11407,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 @@ -10310,39 +11504,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(); @@ -10353,9 +11549,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 @@ -10374,8 +11570,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; } @@ -10394,38 +11593,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; @@ -10470,22 +11672,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) { @@ -10495,23 +11700,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; @@ -10520,21 +11728,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 { @@ -10542,30 +11751,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() { @@ -10575,18 +11791,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; @@ -10596,18 +11816,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; @@ -10616,20 +11838,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 { @@ -10637,28 +11860,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() { @@ -10668,23 +11898,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) { @@ -10697,12 +11932,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(); } @@ -10711,27 +11946,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; @@ -10746,34 +11982,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.
            @@ -10784,16 +12028,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
            @@ -10803,10 +12052,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
            @@ -10816,10 +12068,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
            @@ -10833,54 +12088,60 @@ 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(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_RetentionPolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_Bucket_RetentionPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_RetentionPolicy_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_Bucket_RetentionPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.RetentionPolicy.class, com.google.storage.v2.Bucket.RetentionPolicy.Builder.class); + com.google.storage.v2.Bucket.RetentionPolicy.class, + com.google.storage.v2.Bucket.RetentionPolicy.Builder.class); } private int bitField0_; public static final int EFFECTIVE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp effectiveTime_; /** + * + * *
                  * Server-determined value that indicates the time from which policy was
                  * enforced and effective.
                  * 
            * * .google.protobuf.Timestamp effective_time = 1; + * * @return Whether the effectiveTime field is set. */ @java.lang.Override @@ -10888,19 +12149,26 @@ 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. */ @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.
            @@ -10910,17 +12178,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 @@ -10931,6 +12204,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
            @@ -10940,6 +12215,7 @@ public boolean getIsLocked() {
                  * 
            * * .google.protobuf.Duration retention_duration = 4; + * * @return Whether the retentionDuration field is set. */ @java.lang.Override @@ -10947,6 +12223,8 @@ public boolean hasRetentionDuration() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
                  * The duration that objects need to be retained. Retention duration must be
                  * greater than zero and less than 100 years. Note that enforcement of
            @@ -10956,13 +12234,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
            @@ -10975,10 +12258,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;
            @@ -10990,8 +12276,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.writeMessage(1, getEffectiveTime());
                   }
            @@ -11011,16 +12296,13 @@ public int getSerializedSize() {
             
                   size = 0;
                   if (((bitField0_ & 0x00000001) != 0)) {
            -        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 (((bitField0_ & 0x00000002) != 0)) {
            -        size += com.google.protobuf.CodedOutputStream
            -          .computeMessageSize(4, getRetentionDuration());
            +        size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getRetentionDuration());
                   }
                   size += getUnknownFields().getSerializedSize();
                   memoizedSize = size;
            @@ -11030,24 +12312,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;
            @@ -11065,8 +12345,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();
            @@ -11076,90 +12355,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
            @@ -11169,27 +12452,32 @@ 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() @@ -11197,18 +12485,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) { getEffectiveTimeFieldBuilder(); getRetentionDurationFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -11228,9 +12516,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 @@ -11249,8 +12537,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; } @@ -11259,18 +12550,18 @@ private void buildPartial0(com.google.storage.v2.Bucket.RetentionPolicy result) int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.effectiveTime_ = effectiveTimeBuilder_ == null - ? effectiveTime_ - : effectiveTimeBuilder_.build(); + result.effectiveTime_ = + effectiveTimeBuilder_ == null ? effectiveTime_ : effectiveTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.isLocked_ = isLocked_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.retentionDuration_ = retentionDurationBuilder_ == null - ? retentionDuration_ - : retentionDurationBuilder_.build(); + result.retentionDuration_ = + retentionDurationBuilder_ == null + ? retentionDuration_ + : retentionDurationBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -11280,38 +12571,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; @@ -11355,31 +12649,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) { @@ -11389,40 +12684,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.
            @@ -11444,6 +12753,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.
            @@ -11451,8 +12762,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 {
            @@ -11463,6 +12773,8 @@ public Builder setEffectiveTime(
                     return this;
                   }
                   /**
            +       *
            +       *
                    * 
                    * Server-determined value that indicates the time from which policy was
                    * enforced and effective.
            @@ -11472,9 +12784,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;
            @@ -11489,6 +12801,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.
            @@ -11507,6 +12821,8 @@ public Builder clearEffectiveTime() {
                     return this;
                   }
                   /**
            +       *
            +       *
                    * 
                    * Server-determined value that indicates the time from which policy was
                    * enforced and effective.
            @@ -11520,6 +12836,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.
            @@ -11531,11 +12849,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.
            @@ -11544,26 +12865,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 @@ -11571,11 +12898,14 @@ 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. */ @@ -11587,11 +12917,14 @@ public Builder setIsLocked(boolean value) { return this; } /** + * + * *
                    * Once locked, an object retention policy cannot be modified.
                    * 
            * * bool is_locked = 2; + * * @return This builder for chaining. */ public Builder clearIsLocked() { @@ -11603,8 +12936,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
            @@ -11614,12 +12952,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
            @@ -11629,16 +12970,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
            @@ -11663,6 +13009,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
            @@ -11673,8 +13021,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 {
            @@ -11685,6 +13032,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
            @@ -11697,9 +13046,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;
            @@ -11714,6 +13063,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
            @@ -11735,6 +13086,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
            @@ -11751,6 +13104,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
            @@ -11765,11 +13120,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
            @@ -11781,18 +13139,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) {
            @@ -11805,12 +13167,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();
                 }
            @@ -11819,27 +13181,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;
            @@ -11854,14 +13217,16 @@ public com.google.protobuf.Parser getParserForType() {
                 public com.google.storage.v2.Bucket.RetentionPolicy getDefaultInstanceForType() {
                   return DEFAULT_INSTANCE;
                 }
            -
               }
             
            -  public interface SoftDeletePolicyOrBuilder extends
            +  public interface SoftDeletePolicyOrBuilder
            +      extends
                   // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.SoftDeletePolicy)
                   com.google.protobuf.MessageOrBuilder {
             
                 /**
            +     *
            +     *
                  * 
                  * The period of time that soft-deleted objects in the bucket must be
                  * retained and cannot be permanently deleted. The duration must be greater
            @@ -11869,10 +13234,13 @@ public interface SoftDeletePolicyOrBuilder extends
                  * 
            * * optional .google.protobuf.Duration retention_duration = 1; + * * @return Whether the retentionDuration field is set. */ boolean hasRetentionDuration(); /** + * + * *
                  * The period of time that soft-deleted objects in the bucket must be
                  * retained and cannot be permanently deleted. The duration must be greater
            @@ -11880,10 +13248,13 @@ public interface SoftDeletePolicyOrBuilder extends
                  * 
            * * optional .google.protobuf.Duration retention_duration = 1; + * * @return The retentionDuration. */ com.google.protobuf.Duration getRetentionDuration(); /** + * + * *
                  * The period of time that soft-deleted objects in the bucket must be
                  * retained and cannot be permanently deleted. The duration must be greater
            @@ -11895,24 +13266,32 @@ public interface SoftDeletePolicyOrBuilder extends
                 com.google.protobuf.DurationOrBuilder getRetentionDurationOrBuilder();
             
                 /**
            +     *
            +     *
                  * 
                  * Time from which the policy was effective. This is service-provided.
                  * 
            * * optional .google.protobuf.Timestamp effective_time = 2; + * * @return Whether the effectiveTime field is set. */ boolean hasEffectiveTime(); /** + * + * *
                  * Time from which the policy was effective. This is service-provided.
                  * 
            * * optional .google.protobuf.Timestamp effective_time = 2; + * * @return The effectiveTime. */ com.google.protobuf.Timestamp getEffectiveTime(); /** + * + * *
                  * Time from which the policy was effective. This is service-provided.
                  * 
            @@ -11922,48 +13301,53 @@ public interface SoftDeletePolicyOrBuilder extends com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder(); } /** + * + * *
                * Soft delete policy properties of a bucket.
                * 
            * * Protobuf type {@code google.storage.v2.Bucket.SoftDeletePolicy} */ - public static final class SoftDeletePolicy extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class SoftDeletePolicy extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.SoftDeletePolicy) SoftDeletePolicyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SoftDeletePolicy.newBuilder() to construct. private SoftDeletePolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SoftDeletePolicy() { - } + + private SoftDeletePolicy() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SoftDeletePolicy(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_SoftDeletePolicy_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_Bucket_SoftDeletePolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.SoftDeletePolicy.class, com.google.storage.v2.Bucket.SoftDeletePolicy.Builder.class); + com.google.storage.v2.Bucket.SoftDeletePolicy.class, + com.google.storage.v2.Bucket.SoftDeletePolicy.Builder.class); } private int bitField0_; public static final int RETENTION_DURATION_FIELD_NUMBER = 1; private com.google.protobuf.Duration retentionDuration_; /** + * + * *
                  * The period of time that soft-deleted objects in the bucket must be
                  * retained and cannot be permanently deleted. The duration must be greater
            @@ -11971,6 +13355,7 @@ protected java.lang.Object newInstance(
                  * 
            * * optional .google.protobuf.Duration retention_duration = 1; + * * @return Whether the retentionDuration field is set. */ @java.lang.Override @@ -11978,6 +13363,8 @@ public boolean hasRetentionDuration() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                  * The period of time that soft-deleted objects in the bucket must be
                  * retained and cannot be permanently deleted. The duration must be greater
            @@ -11985,13 +13372,18 @@ public boolean hasRetentionDuration() {
                  * 
            * * optional .google.protobuf.Duration retention_duration = 1; + * * @return The retentionDuration. */ @java.lang.Override public com.google.protobuf.Duration getRetentionDuration() { - return retentionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retentionDuration_; + return retentionDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : retentionDuration_; } /** + * + * *
                  * The period of time that soft-deleted objects in the bucket must be
                  * retained and cannot be permanently deleted. The duration must be greater
            @@ -12002,17 +13394,22 @@ public com.google.protobuf.Duration getRetentionDuration() {
                  */
                 @java.lang.Override
                 public com.google.protobuf.DurationOrBuilder getRetentionDurationOrBuilder() {
            -      return retentionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retentionDuration_;
            +      return retentionDuration_ == null
            +          ? com.google.protobuf.Duration.getDefaultInstance()
            +          : retentionDuration_;
                 }
             
                 public static final int EFFECTIVE_TIME_FIELD_NUMBER = 2;
                 private com.google.protobuf.Timestamp effectiveTime_;
                 /**
            +     *
            +     *
                  * 
                  * Time from which the policy was effective. This is service-provided.
                  * 
            * * optional .google.protobuf.Timestamp effective_time = 2; + * * @return Whether the effectiveTime field is set. */ @java.lang.Override @@ -12020,18 +13417,25 @@ public boolean hasEffectiveTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
                  * Time from which the policy was effective. This is service-provided.
                  * 
            * * optional .google.protobuf.Timestamp effective_time = 2; + * * @return The effectiveTime. */ @java.lang.Override public com.google.protobuf.Timestamp getEffectiveTime() { - return effectiveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTime_; + return effectiveTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : effectiveTime_; } /** + * + * *
                  * Time from which the policy was effective. This is service-provided.
                  * 
            @@ -12040,10 +13444,13 @@ public com.google.protobuf.Timestamp getEffectiveTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder() { - return effectiveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTime_; + return effectiveTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : effectiveTime_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -12055,8 +13462,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.writeMessage(1, getRetentionDuration()); } @@ -12073,12 +13479,10 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getRetentionDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRetentionDuration()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEffectiveTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEffectiveTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -12088,22 +13492,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.SoftDeletePolicy)) { return super.equals(obj); } - com.google.storage.v2.Bucket.SoftDeletePolicy other = (com.google.storage.v2.Bucket.SoftDeletePolicy) obj; + com.google.storage.v2.Bucket.SoftDeletePolicy other = + (com.google.storage.v2.Bucket.SoftDeletePolicy) obj; if (hasRetentionDuration() != other.hasRetentionDuration()) return false; if (hasRetentionDuration()) { - if (!getRetentionDuration() - .equals(other.getRetentionDuration())) return false; + if (!getRetentionDuration().equals(other.getRetentionDuration())) return false; } if (hasEffectiveTime() != other.hasEffectiveTime()) return false; if (hasEffectiveTime()) { - if (!getEffectiveTime() - .equals(other.getEffectiveTime())) return false; + if (!getEffectiveTime().equals(other.getEffectiveTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -12129,90 +13532,94 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.Bucket.SoftDeletePolicy parseFrom( - java.nio.ByteBuffer data) + public static com.google.storage.v2.Bucket.SoftDeletePolicy parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.v2.Bucket.SoftDeletePolicy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.v2.Bucket.SoftDeletePolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.v2.Bucket.SoftDeletePolicy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.v2.Bucket.SoftDeletePolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.v2.Bucket.SoftDeletePolicy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.v2.Bucket.SoftDeletePolicy parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.v2.Bucket.SoftDeletePolicy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.storage.v2.Bucket.SoftDeletePolicy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.Bucket.SoftDeletePolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.Bucket.SoftDeletePolicy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.storage.v2.Bucket.SoftDeletePolicy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.v2.Bucket.SoftDeletePolicy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.storage.v2.Bucket.SoftDeletePolicy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -12222,27 +13629,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
                  * Soft delete policy properties of a bucket.
                  * 
            * * Protobuf type {@code google.storage.v2.Bucket.SoftDeletePolicy} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.storage.v2.Bucket.SoftDeletePolicy) com.google.storage.v2.Bucket.SoftDeletePolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_SoftDeletePolicy_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_Bucket_SoftDeletePolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.SoftDeletePolicy.class, com.google.storage.v2.Bucket.SoftDeletePolicy.Builder.class); + com.google.storage.v2.Bucket.SoftDeletePolicy.class, + com.google.storage.v2.Bucket.SoftDeletePolicy.Builder.class); } // Construct using com.google.storage.v2.Bucket.SoftDeletePolicy.newBuilder() @@ -12250,18 +13662,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRetentionDurationFieldBuilder(); getEffectiveTimeFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -12280,9 +13692,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor; } @java.lang.Override @@ -12301,8 +13713,11 @@ public com.google.storage.v2.Bucket.SoftDeletePolicy build() { @java.lang.Override public com.google.storage.v2.Bucket.SoftDeletePolicy buildPartial() { - com.google.storage.v2.Bucket.SoftDeletePolicy result = new com.google.storage.v2.Bucket.SoftDeletePolicy(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.storage.v2.Bucket.SoftDeletePolicy result = + new com.google.storage.v2.Bucket.SoftDeletePolicy(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -12311,15 +13726,15 @@ private void buildPartial0(com.google.storage.v2.Bucket.SoftDeletePolicy result) int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.retentionDuration_ = retentionDurationBuilder_ == null - ? retentionDuration_ - : retentionDurationBuilder_.build(); + result.retentionDuration_ = + retentionDurationBuilder_ == null + ? retentionDuration_ + : retentionDurationBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.effectiveTime_ = effectiveTimeBuilder_ == null - ? effectiveTime_ - : effectiveTimeBuilder_.build(); + result.effectiveTime_ = + effectiveTimeBuilder_ == null ? effectiveTime_ : effectiveTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -12329,38 +13744,41 @@ private void buildPartial0(com.google.storage.v2.Bucket.SoftDeletePolicy result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.storage.v2.Bucket.SoftDeletePolicy) { - return mergeFrom((com.google.storage.v2.Bucket.SoftDeletePolicy)other); + return mergeFrom((com.google.storage.v2.Bucket.SoftDeletePolicy) other); } else { super.mergeFrom(other); return this; @@ -12368,7 +13786,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.v2.Bucket.SoftDeletePolicy other) { - if (other == com.google.storage.v2.Bucket.SoftDeletePolicy.getDefaultInstance()) return this; + if (other == com.google.storage.v2.Bucket.SoftDeletePolicy.getDefaultInstance()) + return this; if (other.hasRetentionDuration()) { mergeRetentionDuration(other.getRetentionDuration()); } @@ -12401,26 +13820,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getRetentionDurationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getEffectiveTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage( + getRetentionDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEffectiveTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -12430,12 +13849,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Duration retentionDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> retentionDurationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + retentionDurationBuilder_; /** + * + * *
                    * The period of time that soft-deleted objects in the bucket must be
                    * retained and cannot be permanently deleted. The duration must be greater
            @@ -12443,12 +13868,15 @@ public Builder mergeFrom(
                    * 
            * * optional .google.protobuf.Duration retention_duration = 1; + * * @return Whether the retentionDuration field is set. */ public boolean hasRetentionDuration() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                    * The period of time that soft-deleted objects in the bucket must be
                    * retained and cannot be permanently deleted. The duration must be greater
            @@ -12456,16 +13884,21 @@ public boolean hasRetentionDuration() {
                    * 
            * * optional .google.protobuf.Duration retention_duration = 1; + * * @return The retentionDuration. */ public com.google.protobuf.Duration getRetentionDuration() { if (retentionDurationBuilder_ == null) { - return retentionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : retentionDuration_; + return retentionDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : retentionDuration_; } else { return retentionDurationBuilder_.getMessage(); } } /** + * + * *
                    * The period of time that soft-deleted objects in the bucket must be
                    * retained and cannot be permanently deleted. The duration must be greater
            @@ -12488,6 +13921,8 @@ public Builder setRetentionDuration(com.google.protobuf.Duration value) {
                     return this;
                   }
                   /**
            +       *
            +       *
                    * 
                    * The period of time that soft-deleted objects in the bucket must be
                    * retained and cannot be permanently deleted. The duration must be greater
            @@ -12496,8 +13931,7 @@ public Builder setRetentionDuration(com.google.protobuf.Duration value) {
                    *
                    * optional .google.protobuf.Duration retention_duration = 1;
                    */
            -      public Builder setRetentionDuration(
            -          com.google.protobuf.Duration.Builder builderForValue) {
            +      public Builder setRetentionDuration(com.google.protobuf.Duration.Builder builderForValue) {
                     if (retentionDurationBuilder_ == null) {
                       retentionDuration_ = builderForValue.build();
                     } else {
            @@ -12508,6 +13942,8 @@ public Builder setRetentionDuration(
                     return this;
                   }
                   /**
            +       *
            +       *
                    * 
                    * The period of time that soft-deleted objects in the bucket must be
                    * retained and cannot be permanently deleted. The duration must be greater
            @@ -12518,9 +13954,9 @@ public Builder setRetentionDuration(
                    */
                   public Builder mergeRetentionDuration(com.google.protobuf.Duration value) {
                     if (retentionDurationBuilder_ == null) {
            -          if (((bitField0_ & 0x00000001) != 0) &&
            -            retentionDuration_ != null &&
            -            retentionDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
            +          if (((bitField0_ & 0x00000001) != 0)
            +              && retentionDuration_ != null
            +              && retentionDuration_ != com.google.protobuf.Duration.getDefaultInstance()) {
                         getRetentionDurationBuilder().mergeFrom(value);
                       } else {
                         retentionDuration_ = value;
            @@ -12535,6 +13971,8 @@ public Builder mergeRetentionDuration(com.google.protobuf.Duration value) {
                     return this;
                   }
                   /**
            +       *
            +       *
                    * 
                    * The period of time that soft-deleted objects in the bucket must be
                    * retained and cannot be permanently deleted. The duration must be greater
            @@ -12554,6 +13992,8 @@ public Builder clearRetentionDuration() {
                     return this;
                   }
                   /**
            +       *
            +       *
                    * 
                    * The period of time that soft-deleted objects in the bucket must be
                    * retained and cannot be permanently deleted. The duration must be greater
            @@ -12568,6 +14008,8 @@ public com.google.protobuf.Duration.Builder getRetentionDurationBuilder() {
                     return getRetentionDurationFieldBuilder().getBuilder();
                   }
                   /**
            +       *
            +       *
                    * 
                    * The period of time that soft-deleted objects in the bucket must be
                    * retained and cannot be permanently deleted. The duration must be greater
            @@ -12580,11 +14022,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 period of time that soft-deleted objects in the bucket must be
                    * retained and cannot be permanently deleted. The duration must be greater
            @@ -12594,14 +14039,17 @@ public com.google.protobuf.DurationOrBuilder getRetentionDurationOrBuilder() {
                    * optional .google.protobuf.Duration retention_duration = 1;
                    */
                   private com.google.protobuf.SingleFieldBuilderV3<
            -          com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
            +              com.google.protobuf.Duration,
            +              com.google.protobuf.Duration.Builder,
            +              com.google.protobuf.DurationOrBuilder>
                       getRetentionDurationFieldBuilder() {
                     if (retentionDurationBuilder_ == null) {
            -          retentionDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            -              com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
            -                  getRetentionDuration(),
            -                  getParentForChildren(),
            -                  isClean());
            +          retentionDurationBuilder_ =
            +              new com.google.protobuf.SingleFieldBuilderV3<
            +                  com.google.protobuf.Duration,
            +                  com.google.protobuf.Duration.Builder,
            +                  com.google.protobuf.DurationOrBuilder>(
            +                  getRetentionDuration(), getParentForChildren(), isClean());
                       retentionDuration_ = null;
                     }
                     return retentionDurationBuilder_;
            @@ -12609,34 +14057,47 @@ public com.google.protobuf.DurationOrBuilder getRetentionDurationOrBuilder() {
             
                   private com.google.protobuf.Timestamp effectiveTime_;
                   private com.google.protobuf.SingleFieldBuilderV3<
            -          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> effectiveTimeBuilder_;
            +              com.google.protobuf.Timestamp,
            +              com.google.protobuf.Timestamp.Builder,
            +              com.google.protobuf.TimestampOrBuilder>
            +          effectiveTimeBuilder_;
                   /**
            +       *
            +       *
                    * 
                    * Time from which the policy was effective. This is service-provided.
                    * 
            * * optional .google.protobuf.Timestamp effective_time = 2; + * * @return Whether the effectiveTime field is set. */ public boolean hasEffectiveTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
                    * Time from which the policy was effective. This is service-provided.
                    * 
            * * optional .google.protobuf.Timestamp effective_time = 2; + * * @return The effectiveTime. */ public com.google.protobuf.Timestamp getEffectiveTime() { if (effectiveTimeBuilder_ == null) { - return effectiveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : effectiveTime_; + return effectiveTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : effectiveTime_; } else { return effectiveTimeBuilder_.getMessage(); } } /** + * + * *
                    * Time from which the policy was effective. This is service-provided.
                    * 
            @@ -12657,14 +14118,15 @@ public Builder setEffectiveTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                    * Time from which the policy was effective. This is service-provided.
                    * 
            * * optional .google.protobuf.Timestamp effective_time = 2; */ - public Builder setEffectiveTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEffectiveTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (effectiveTimeBuilder_ == null) { effectiveTime_ = builderForValue.build(); } else { @@ -12675,6 +14137,8 @@ public Builder setEffectiveTime( return this; } /** + * + * *
                    * Time from which the policy was effective. This is service-provided.
                    * 
            @@ -12683,9 +14147,9 @@ public Builder setEffectiveTime( */ public Builder mergeEffectiveTime(com.google.protobuf.Timestamp value) { if (effectiveTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - effectiveTime_ != null && - effectiveTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && effectiveTime_ != null + && effectiveTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEffectiveTimeBuilder().mergeFrom(value); } else { effectiveTime_ = value; @@ -12700,6 +14164,8 @@ public Builder mergeEffectiveTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                    * Time from which the policy was effective. This is service-provided.
                    * 
            @@ -12717,6 +14183,8 @@ public Builder clearEffectiveTime() { return this; } /** + * + * *
                    * Time from which the policy was effective. This is service-provided.
                    * 
            @@ -12729,6 +14197,8 @@ public com.google.protobuf.Timestamp.Builder getEffectiveTimeBuilder() { return getEffectiveTimeFieldBuilder().getBuilder(); } /** + * + * *
                    * Time from which the policy was effective. This is service-provided.
                    * 
            @@ -12739,11 +14209,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_; } } /** + * + * *
                    * Time from which the policy was effective. This is service-provided.
                    * 
            @@ -12751,18 +14224,22 @@ public com.google.protobuf.TimestampOrBuilder getEffectiveTimeOrBuilder() { * optional .google.protobuf.Timestamp effective_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEffectiveTimeFieldBuilder() { if (effectiveTimeBuilder_ == null) { - effectiveTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEffectiveTime(), - getParentForChildren(), - isClean()); + effectiveTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEffectiveTime(), getParentForChildren(), isClean()); effectiveTime_ = null; } return effectiveTimeBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -12775,12 +14252,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.storage.v2.Bucket.SoftDeletePolicy) } // @@protoc_insertion_point(class_scope:google.storage.v2.Bucket.SoftDeletePolicy) private static final com.google.storage.v2.Bucket.SoftDeletePolicy DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.storage.v2.Bucket.SoftDeletePolicy(); } @@ -12789,27 +14266,28 @@ public static com.google.storage.v2.Bucket.SoftDeletePolicy getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SoftDeletePolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SoftDeletePolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -12824,24 +14302,29 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.SoftDeletePolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface VersioningOrBuilder extends + public interface VersioningOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.Versioning) com.google.protobuf.MessageOrBuilder { /** + * + * *
                  * While set to true, versioning is fully enabled for this bucket.
                  * 
            * * bool enabled = 1; + * * @return The enabled. */ boolean getEnabled(); } /** + * + * *
                * Properties of a bucket related to versioning.
                * For more on Cloud Storage versioning, see
            @@ -12850,46 +14333,50 @@ 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();
                 }
             
            -    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 @@ -12898,6 +14385,7 @@ public boolean getEnabled() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -12909,8 +14397,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_); } @@ -12924,8 +14411,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; @@ -12935,15 +14421,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; } @@ -12956,97 +14441,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 @@ -13056,6 +14544,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
                  * Properties of a bucket related to versioning.
                  * For more on Cloud Storage versioning, see
            @@ -13064,33 +14554,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();
            @@ -13100,9 +14590,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
            @@ -13121,8 +14611,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;
                   }
            @@ -13138,38 +14631,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;
            @@ -13207,17 +14703,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) {
            @@ -13227,15 +14725,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 @@ -13243,11 +14745,14 @@ 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. */ @@ -13259,11 +14764,14 @@ public Builder setEnabled(boolean value) { return this; } /** + * + * *
                    * While set to true, versioning is fully enabled for this bucket.
                    * 
            * * bool enabled = 1; + * * @return This builder for chaining. */ public Builder clearEnabled() { @@ -13272,6 +14780,7 @@ public Builder clearEnabled() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -13284,12 +14793,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(); } @@ -13298,27 +14807,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; @@ -13333,14 +14843,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
            @@ -13349,10 +14861,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
            @@ -13361,12 +14876,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
            @@ -13376,10 +14893,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
            @@ -13389,12 +14909,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
            @@ -13403,15 +14925,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_ = "";
            @@ -13419,28 +14942,32 @@ private Website() {
             
                 @java.lang.Override
                 @SuppressWarnings({"unused"})
            -    protected java.lang.Object newInstance(
            -        UnusedPrivateParameter unused) {
            +    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                   return new Website();
                 }
             
            -    public static final com.google.protobuf.Descriptors.Descriptor
            -        getDescriptor() {
            -      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Website_descriptor;
            +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            +      return com.google.storage.v2.StorageProto
            +          .internal_static_google_storage_v2_Bucket_Website_descriptor;
                 }
             
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
            -      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Website_fieldAccessorTable
            +      return com.google.storage.v2.StorageProto
            +          .internal_static_google_storage_v2_Bucket_Website_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
            -              com.google.storage.v2.Bucket.Website.class, com.google.storage.v2.Bucket.Website.Builder.class);
            +              com.google.storage.v2.Bucket.Website.class,
            +              com.google.storage.v2.Bucket.Website.Builder.class);
                 }
             
                 public static final int MAIN_PAGE_SUFFIX_FIELD_NUMBER = 1;
            +
                 @SuppressWarnings("serial")
                 private volatile java.lang.Object mainPageSuffix_ = "";
                 /**
            +     *
            +     *
                  * 
                  * If the requested object path is missing, the service will ensure the path
                  * has a trailing '/', append this suffix, and attempt to retrieve the
            @@ -13449,6 +14976,7 @@ protected java.lang.Object newInstance(
                  * 
            * * string main_page_suffix = 1; + * * @return The mainPageSuffix. */ @java.lang.Override @@ -13457,14 +14985,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
            @@ -13473,16 +15002,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 { @@ -13491,9 +15019,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
            @@ -13503,6 +15034,7 @@ public java.lang.String getMainPageSuffix() {
                  * 
            * * string not_found_page = 2; + * * @return The notFoundPage. */ @java.lang.Override @@ -13511,14 +15043,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
            @@ -13528,16 +15061,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 { @@ -13546,6 +15078,7 @@ public java.lang.String getNotFoundPage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -13557,8 +15090,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_); } @@ -13588,17 +15120,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; } @@ -13619,90 +15149,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 @@ -13712,6 +15246,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
            @@ -13720,33 +15256,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();
            @@ -13757,9 +15293,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
            @@ -13778,8 +15314,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;
                   }
            @@ -13798,38 +15337,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;
            @@ -13874,22 +15416,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) {
            @@ -13899,10 +15444,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
            @@ -13911,13 +15459,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; @@ -13926,6 +15474,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
            @@ -13934,15 +15484,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 { @@ -13950,6 +15499,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
            @@ -13958,18 +15509,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
            @@ -13978,6 +15533,7 @@ public Builder setMainPageSuffix(
                    * 
            * * string main_page_suffix = 1; + * * @return This builder for chaining. */ public Builder clearMainPageSuffix() { @@ -13987,6 +15543,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
            @@ -13995,12 +15553,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; @@ -14010,6 +15570,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
            @@ -14019,13 +15581,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; @@ -14034,6 +15596,8 @@ public java.lang.String getNotFoundPage() { } } /** + * + * *
                    * If the requested object path is missing, and any
                    * `mainPageSuffix` object is missing, if applicable, the service
            @@ -14043,15 +15607,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 { @@ -14059,6 +15622,8 @@ public java.lang.String getNotFoundPage() { } } /** + * + * *
                    * If the requested object path is missing, and any
                    * `mainPageSuffix` object is missing, if applicable, the service
            @@ -14068,18 +15633,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
            @@ -14089,6 +15658,7 @@ public Builder setNotFoundPage(
                    * 
            * * string not_found_page = 2; + * * @return This builder for chaining. */ public Builder clearNotFoundPage() { @@ -14098,6 +15668,8 @@ public Builder clearNotFoundPage() { return this; } /** + * + * *
                    * If the requested object path is missing, and any
                    * `mainPageSuffix` object is missing, if applicable, the service
            @@ -14107,18 +15679,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) { @@ -14131,12 +15706,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(); } @@ -14145,27 +15720,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; @@ -14180,55 +15756,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
            @@ -14237,73 +15825,83 @@ 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.emptyList();
            +      dataLocations_ = com.google.protobuf.LazyStringArrayList.emptyList();
                 }
             
                 @java.lang.Override
                 @SuppressWarnings({"unused"})
            -    protected java.lang.Object newInstance(
            -        UnusedPrivateParameter unused) {
            +    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                   return new CustomPlacementConfig();
                 }
             
            -    public static final com.google.protobuf.Descriptors.Descriptor
            -        getDescriptor() {
            -      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_CustomPlacementConfig_descriptor;
            +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            +      return com.google.storage.v2.StorageProto
            +          .internal_static_google_storage_v2_Bucket_CustomPlacementConfig_descriptor;
                 }
             
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
            -      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_CustomPlacementConfig_fieldAccessorTable
            +      return com.google.storage.v2.StorageProto
            +          .internal_static_google_storage_v2_Bucket_CustomPlacementConfig_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
            -              com.google.storage.v2.Bucket.CustomPlacementConfig.class, com.google.storage.v2.Bucket.CustomPlacementConfig.Builder.class);
            +              com.google.storage.v2.Bucket.CustomPlacementConfig.class,
            +              com.google.storage.v2.Bucket.CustomPlacementConfig.Builder.class);
                 }
             
                 public static final int DATA_LOCATIONS_FIELD_NUMBER = 1;
            +
                 @SuppressWarnings("serial")
                 private com.google.protobuf.LazyStringArrayList dataLocations_ =
                     com.google.protobuf.LazyStringArrayList.emptyList();
                 /**
            +     *
            +     *
                  * 
                  * List of locations to use for data placement.
                  * 
            * * repeated string data_locations = 1; + * * @return A list containing the dataLocations. */ - public com.google.protobuf.ProtocolStringList - getDataLocationsList() { + public com.google.protobuf.ProtocolStringList getDataLocationsList() { return dataLocations_; } /** + * + * *
                  * List of locations to use for data placement.
                  * 
            * * repeated string data_locations = 1; + * * @return The count of dataLocations. */ public int getDataLocationsCount() { return dataLocations_.size(); } /** + * + * *
                  * List of locations to use for data placement.
                  * 
            * * repeated string data_locations = 1; + * * @param index The index of the element to return. * @return The dataLocations at the given index. */ @@ -14311,20 +15909,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; @@ -14336,8 +15937,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)); } @@ -14366,15 +15966,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; } @@ -14396,89 +15996,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 @@ -14488,6 +16092,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
            @@ -14496,46 +16102,45 @@ 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();
                     bitField0_ = 0;
            -        dataLocations_ =
            -            com.google.protobuf.LazyStringArrayList.emptyList();
            +        dataLocations_ = com.google.protobuf.LazyStringArrayList.emptyList();
                     return this;
                   }
             
                   @java.lang.Override
            -      public com.google.protobuf.Descriptors.Descriptor
            -          getDescriptorForType() {
            -        return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_CustomPlacementConfig_descriptor;
            +      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            +        return com.google.storage.v2.StorageProto
            +            .internal_static_google_storage_v2_Bucket_CustomPlacementConfig_descriptor;
                   }
             
                   @java.lang.Override
            @@ -14554,8 +16159,11 @@ public com.google.storage.v2.Bucket.CustomPlacementConfig build() {
             
                   @java.lang.Override
                   public com.google.storage.v2.Bucket.CustomPlacementConfig buildPartial() {
            -        com.google.storage.v2.Bucket.CustomPlacementConfig result = new com.google.storage.v2.Bucket.CustomPlacementConfig(this);
            -        if (bitField0_ != 0) { buildPartial0(result); }
            +        com.google.storage.v2.Bucket.CustomPlacementConfig result =
            +            new com.google.storage.v2.Bucket.CustomPlacementConfig(this);
            +        if (bitField0_ != 0) {
            +          buildPartial0(result);
            +        }
                     onBuilt();
                     return result;
                   }
            @@ -14572,38 +16180,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;
            @@ -14611,7 +16222,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_;
            @@ -14648,18 +16260,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) {
            @@ -14669,10 +16283,12 @@ public Builder mergeFrom(
                     } // finally
                     return this;
                   }
            +
                   private int bitField0_;
             
                   private com.google.protobuf.LazyStringArrayList dataLocations_ =
                       com.google.protobuf.LazyStringArrayList.emptyList();
            +
                   private void ensureDataLocationsIsMutable() {
                     if (!dataLocations_.isModifiable()) {
                       dataLocations_ = new com.google.protobuf.LazyStringArrayList(dataLocations_);
            @@ -14680,35 +16296,43 @@ private void ensureDataLocationsIsMutable() {
                     bitField0_ |= 0x00000001;
                   }
                   /**
            +       *
            +       *
                    * 
                    * List of locations to use for data placement.
                    * 
            * * repeated string data_locations = 1; + * * @return A list containing the dataLocations. */ - public com.google.protobuf.ProtocolStringList - getDataLocationsList() { + public com.google.protobuf.ProtocolStringList getDataLocationsList() { dataLocations_.makeImmutable(); return dataLocations_; } /** + * + * *
                    * List of locations to use for data placement.
                    * 
            * * repeated string data_locations = 1; + * * @return The count of dataLocations. */ public int getDataLocationsCount() { return dataLocations_.size(); } /** + * + * *
                    * List of locations to use for data placement.
                    * 
            * * repeated string data_locations = 1; + * * @param index The index of the element to return. * @return The dataLocations at the given index. */ @@ -14716,31 +16340,37 @@ public java.lang.String getDataLocations(int index) { return dataLocations_.get(index); } /** + * + * *
                    * List of locations to use for data placement.
                    * 
            * * repeated string data_locations = 1; + * * @param index The index of the value to return. * @return The bytes of the dataLocations at the given index. */ - public com.google.protobuf.ByteString - getDataLocationsBytes(int index) { + public com.google.protobuf.ByteString getDataLocationsBytes(int index) { return dataLocations_.getByteString(index); } /** + * + * *
                    * List of locations to use for data placement.
                    * 
            * * repeated string data_locations = 1; + * * @param index The index to set the value at. * @param value The dataLocations to set. * @return This builder for chaining. */ - public Builder setDataLocations( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDataLocations(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureDataLocationsIsMutable(); dataLocations_.set(index, value); bitField0_ |= 0x00000001; @@ -14748,17 +16378,21 @@ public Builder setDataLocations( return this; } /** + * + * *
                    * List of locations to use for data placement.
                    * 
            * * repeated string data_locations = 1; + * * @param value The dataLocations to add. * @return This builder for chaining. */ - public Builder addDataLocations( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addDataLocations(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureDataLocationsIsMutable(); dataLocations_.add(value); bitField0_ |= 0x00000001; @@ -14766,50 +16400,58 @@ public Builder addDataLocations( return this; } /** + * + * *
                    * List of locations to use for data placement.
                    * 
            * * repeated string data_locations = 1; + * * @param values The dataLocations to add. * @return This builder for chaining. */ - public Builder addAllDataLocations( - java.lang.Iterable values) { + public Builder addAllDataLocations(java.lang.Iterable values) { ensureDataLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dataLocations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataLocations_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
                    * List of locations to use for data placement.
                    * 
            * * repeated string data_locations = 1; + * * @return This builder for chaining. */ public Builder clearDataLocations() { - dataLocations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + dataLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
                    * List of locations to use for data placement.
                    * 
            * * repeated string data_locations = 1; + * * @param value The bytes of the dataLocations to add. * @return This builder for chaining. */ - public Builder addDataLocationsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addDataLocationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureDataLocationsIsMutable(); dataLocations_.add(value); @@ -14817,6 +16459,7 @@ public Builder addDataLocationsBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -14829,12 +16472,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(); } @@ -14843,27 +16486,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; @@ -14878,24 +16522,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
            @@ -14903,11 +16552,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
            @@ -14915,11 +16569,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
            @@ -14927,11 +16586,15 @@ 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(); /** + * + * *
                  * An object in an Autoclass bucket will eventually cool down to the
                  * terminal storage class if there is no access to the object.
            @@ -14939,10 +16602,13 @@ public interface AutoclassOrBuilder extends
                  * 
            * * optional string terminal_storage_class = 3; + * * @return Whether the terminalStorageClass field is set. */ boolean hasTerminalStorageClass(); /** + * + * *
                  * An object in an Autoclass bucket will eventually cool down to the
                  * terminal storage class if there is no access to the object.
            @@ -14950,10 +16616,13 @@ public interface AutoclassOrBuilder extends
                  * 
            * * optional string terminal_storage_class = 3; + * * @return The terminalStorageClass. */ java.lang.String getTerminalStorageClass(); /** + * + * *
                  * An object in an Autoclass bucket will eventually cool down to the
                  * terminal storage class if there is no access to the object.
            @@ -14961,90 +16630,111 @@ public interface AutoclassOrBuilder extends
                  * 
            * * optional string terminal_storage_class = 3; + * * @return The bytes for terminalStorageClass. */ - com.google.protobuf.ByteString - getTerminalStorageClassBytes(); + com.google.protobuf.ByteString getTerminalStorageClassBytes(); /** + * + * *
                  * Output only. Latest instant at which the autoclass terminal storage class
                  * was updated.
                  * 
            * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the terminalStorageClassUpdateTime field is set. */ boolean hasTerminalStorageClassUpdateTime(); /** + * + * *
                  * Output only. Latest instant at which the autoclass terminal storage class
                  * was updated.
                  * 
            * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The terminalStorageClassUpdateTime. */ com.google.protobuf.Timestamp getTerminalStorageClassUpdateTime(); /** + * + * *
                  * Output only. Latest instant at which the autoclass terminal storage class
                  * was updated.
                  * 
            * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getTerminalStorageClassUpdateTimeOrBuilder(); } /** + * + * *
                * Configuration for a bucket's Autoclass feature.
                * 
            * * Protobuf type {@code google.storage.v2.Bucket.Autoclass} */ - public static final class Autoclass extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Autoclass extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.Autoclass) AutoclassOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Autoclass.newBuilder() to construct. private Autoclass(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Autoclass() { terminalStorageClass_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Autoclass(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Autoclass_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_Bucket_Autoclass_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_Autoclass_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_Bucket_Autoclass_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.Autoclass.class, com.google.storage.v2.Bucket.Autoclass.Builder.class); + com.google.storage.v2.Bucket.Autoclass.class, + com.google.storage.v2.Bucket.Autoclass.Builder.class); } private int bitField0_; public static final int ENABLED_FIELD_NUMBER = 1; private boolean enabled_ = false; /** + * + * *
                  * Enables Autoclass.
                  * 
            * * bool enabled = 1; + * * @return The enabled. */ @java.lang.Override @@ -15055,6 +16745,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
            @@ -15062,7 +16754,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 @@ -15070,6 +16765,8 @@ public boolean hasToggleTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                  * Output only. Latest instant at which the `enabled` field was set to true
                  * after being disabled/unconfigured or set to false after being enabled. If
            @@ -15077,7 +16774,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 @@ -15085,6 +16785,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
            @@ -15092,7 +16794,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() { @@ -15100,9 +16804,12 @@ public com.google.protobuf.TimestampOrBuilder getToggleTimeOrBuilder() { } public static final int TERMINAL_STORAGE_CLASS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object terminalStorageClass_ = ""; /** + * + * *
                  * An object in an Autoclass bucket will eventually cool down to the
                  * terminal storage class if there is no access to the object.
            @@ -15110,6 +16817,7 @@ public com.google.protobuf.TimestampOrBuilder getToggleTimeOrBuilder() {
                  * 
            * * optional string terminal_storage_class = 3; + * * @return Whether the terminalStorageClass field is set. */ @java.lang.Override @@ -15117,6 +16825,8 @@ public boolean hasTerminalStorageClass() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
                  * An object in an Autoclass bucket will eventually cool down to the
                  * terminal storage class if there is no access to the object.
            @@ -15124,6 +16834,7 @@ public boolean hasTerminalStorageClass() {
                  * 
            * * optional string terminal_storage_class = 3; + * * @return The terminalStorageClass. */ @java.lang.Override @@ -15132,14 +16843,15 @@ public java.lang.String getTerminalStorageClass() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); terminalStorageClass_ = s; return s; } } /** + * + * *
                  * An object in an Autoclass bucket will eventually cool down to the
                  * terminal storage class if there is no access to the object.
            @@ -15147,16 +16859,15 @@ public java.lang.String getTerminalStorageClass() {
                  * 
            * * optional string terminal_storage_class = 3; + * * @return The bytes for terminalStorageClass. */ @java.lang.Override - public com.google.protobuf.ByteString - getTerminalStorageClassBytes() { + public com.google.protobuf.ByteString getTerminalStorageClassBytes() { java.lang.Object ref = terminalStorageClass_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); terminalStorageClass_ = b; return b; } else { @@ -15167,12 +16878,17 @@ public java.lang.String getTerminalStorageClass() { public static final int TERMINAL_STORAGE_CLASS_UPDATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp terminalStorageClassUpdateTime_; /** + * + * *
                  * Output only. Latest instant at which the autoclass terminal storage class
                  * was updated.
                  * 
            * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the terminalStorageClassUpdateTime field is set. */ @java.lang.Override @@ -15180,32 +16896,46 @@ public boolean hasTerminalStorageClassUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
                  * Output only. Latest instant at which the autoclass terminal storage class
                  * was updated.
                  * 
            * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The terminalStorageClassUpdateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getTerminalStorageClassUpdateTime() { - return terminalStorageClassUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : terminalStorageClassUpdateTime_; + return terminalStorageClassUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : terminalStorageClassUpdateTime_; } /** + * + * *
                  * Output only. Latest instant at which the autoclass terminal storage class
                  * was updated.
                  * 
            * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getTerminalStorageClassUpdateTimeOrBuilder() { - return terminalStorageClassUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : terminalStorageClassUpdateTime_; + return terminalStorageClassUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : terminalStorageClassUpdateTime_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -15217,8 +16947,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_); } @@ -15241,19 +16970,18 @@ 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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getToggleTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getToggleTime()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, terminalStorageClass_); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getTerminalStorageClassUpdateTime()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getTerminalStorageClassUpdateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -15263,29 +16991,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.Bucket.Autoclass)) { return super.equals(obj); } com.google.storage.v2.Bucket.Autoclass other = (com.google.storage.v2.Bucket.Autoclass) obj; - if (getEnabled() - != other.getEnabled()) return false; + if (getEnabled() != other.getEnabled()) return false; if (hasToggleTime() != other.hasToggleTime()) return false; if (hasToggleTime()) { - if (!getToggleTime() - .equals(other.getToggleTime())) return false; + if (!getToggleTime().equals(other.getToggleTime())) return false; } if (hasTerminalStorageClass() != other.hasTerminalStorageClass()) return false; if (hasTerminalStorageClass()) { - if (!getTerminalStorageClass() - .equals(other.getTerminalStorageClass())) return false; + if (!getTerminalStorageClass().equals(other.getTerminalStorageClass())) return false; } - if (hasTerminalStorageClassUpdateTime() != other.hasTerminalStorageClassUpdateTime()) return false; + if (hasTerminalStorageClassUpdateTime() != other.hasTerminalStorageClassUpdateTime()) + return false; if (hasTerminalStorageClassUpdateTime()) { - if (!getTerminalStorageClassUpdateTime() - .equals(other.getTerminalStorageClassUpdateTime())) return false; + if (!getTerminalStorageClassUpdateTime().equals(other.getTerminalStorageClassUpdateTime())) + return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -15299,8 +17025,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(); @@ -15318,90 +17043,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 @@ -15411,27 +17140,32 @@ 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() @@ -15439,18 +17173,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getToggleTimeFieldBuilder(); getTerminalStorageClassUpdateTimeFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -15471,9 +17205,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 @@ -15492,8 +17226,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; } @@ -15505,9 +17242,8 @@ private void buildPartial0(com.google.storage.v2.Bucket.Autoclass result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.toggleTime_ = toggleTimeBuilder_ == null - ? toggleTime_ - : toggleTimeBuilder_.build(); + result.toggleTime_ = + toggleTimeBuilder_ == null ? toggleTime_ : toggleTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -15515,9 +17251,10 @@ private void buildPartial0(com.google.storage.v2.Bucket.Autoclass result) { to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.terminalStorageClassUpdateTime_ = terminalStorageClassUpdateTimeBuilder_ == null - ? terminalStorageClassUpdateTime_ - : terminalStorageClassUpdateTimeBuilder_.build(); + result.terminalStorageClassUpdateTime_ = + terminalStorageClassUpdateTimeBuilder_ == null + ? terminalStorageClassUpdateTime_ + : terminalStorageClassUpdateTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; @@ -15527,38 +17264,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; @@ -15607,36 +17347,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - enabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - input.readMessage( - getToggleTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - terminalStorageClass_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getTerminalStorageClassUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + enabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(getToggleTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + terminalStorageClass_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getTerminalStorageClassUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -15646,15 +17389,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 @@ -15662,11 +17409,14 @@ public boolean getEnabled() { return enabled_; } /** + * + * *
                    * Enables Autoclass.
                    * 
            * * bool enabled = 1; + * * @param value The enabled to set. * @return This builder for chaining. */ @@ -15678,11 +17428,14 @@ public Builder setEnabled(boolean value) { return this; } /** + * + * *
                    * Enables Autoclass.
                    * 
            * * bool enabled = 1; + * * @return This builder for chaining. */ public Builder clearEnabled() { @@ -15694,8 +17447,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
            @@ -15703,13 +17461,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
            @@ -15717,17 +17480,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
            @@ -15735,7 +17505,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) { @@ -15751,6 +17523,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
            @@ -15758,10 +17532,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 { @@ -15772,6 +17547,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
            @@ -15779,13 +17556,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; @@ -15800,6 +17579,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
            @@ -15807,7 +17588,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); @@ -15820,6 +17603,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
            @@ -15827,7 +17612,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; @@ -15835,6 +17622,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
            @@ -15842,17 +17631,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
            @@ -15860,17 +17654,22 @@ 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_; @@ -15878,6 +17677,8 @@ public com.google.protobuf.TimestampOrBuilder getToggleTimeOrBuilder() { private java.lang.Object terminalStorageClass_ = ""; /** + * + * *
                    * An object in an Autoclass bucket will eventually cool down to the
                    * terminal storage class if there is no access to the object.
            @@ -15885,12 +17686,15 @@ public com.google.protobuf.TimestampOrBuilder getToggleTimeOrBuilder() {
                    * 
            * * optional string terminal_storage_class = 3; + * * @return Whether the terminalStorageClass field is set. */ public boolean hasTerminalStorageClass() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
                    * An object in an Autoclass bucket will eventually cool down to the
                    * terminal storage class if there is no access to the object.
            @@ -15898,13 +17702,13 @@ public boolean hasTerminalStorageClass() {
                    * 
            * * optional string terminal_storage_class = 3; + * * @return The terminalStorageClass. */ public java.lang.String getTerminalStorageClass() { java.lang.Object ref = terminalStorageClass_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); terminalStorageClass_ = s; return s; @@ -15913,6 +17717,8 @@ public java.lang.String getTerminalStorageClass() { } } /** + * + * *
                    * An object in an Autoclass bucket will eventually cool down to the
                    * terminal storage class if there is no access to the object.
            @@ -15920,15 +17726,14 @@ public java.lang.String getTerminalStorageClass() {
                    * 
            * * optional string terminal_storage_class = 3; + * * @return The bytes for terminalStorageClass. */ - public com.google.protobuf.ByteString - getTerminalStorageClassBytes() { + public com.google.protobuf.ByteString getTerminalStorageClassBytes() { java.lang.Object ref = terminalStorageClass_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); terminalStorageClass_ = b; return b; } else { @@ -15936,6 +17741,8 @@ public java.lang.String getTerminalStorageClass() { } } /** + * + * *
                    * An object in an Autoclass bucket will eventually cool down to the
                    * terminal storage class if there is no access to the object.
            @@ -15943,18 +17750,22 @@ public java.lang.String getTerminalStorageClass() {
                    * 
            * * optional string terminal_storage_class = 3; + * * @param value The terminalStorageClass to set. * @return This builder for chaining. */ - public Builder setTerminalStorageClass( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTerminalStorageClass(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } terminalStorageClass_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
                    * An object in an Autoclass bucket will eventually cool down to the
                    * terminal storage class if there is no access to the object.
            @@ -15962,6 +17773,7 @@ public Builder setTerminalStorageClass(
                    * 
            * * optional string terminal_storage_class = 3; + * * @return This builder for chaining. */ public Builder clearTerminalStorageClass() { @@ -15971,6 +17783,8 @@ public Builder clearTerminalStorageClass() { return this; } /** + * + * *
                    * An object in an Autoclass bucket will eventually cool down to the
                    * terminal storage class if there is no access to the object.
            @@ -15978,12 +17792,14 @@ public Builder clearTerminalStorageClass() {
                    * 
            * * optional string terminal_storage_class = 3; + * * @param value The bytes for terminalStorageClass to set. * @return This builder for chaining. */ - public Builder setTerminalStorageClassBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTerminalStorageClassBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); terminalStorageClass_ = value; bitField0_ |= 0x00000004; @@ -15993,42 +17809,61 @@ public Builder setTerminalStorageClassBytes( private com.google.protobuf.Timestamp terminalStorageClassUpdateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> terminalStorageClassUpdateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + terminalStorageClassUpdateTimeBuilder_; /** + * + * *
                    * Output only. Latest instant at which the autoclass terminal storage class
                    * was updated.
                    * 
            * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the terminalStorageClassUpdateTime field is set. */ public boolean hasTerminalStorageClassUpdateTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
                    * Output only. Latest instant at which the autoclass terminal storage class
                    * was updated.
                    * 
            * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The terminalStorageClassUpdateTime. */ public com.google.protobuf.Timestamp getTerminalStorageClassUpdateTime() { if (terminalStorageClassUpdateTimeBuilder_ == null) { - return terminalStorageClassUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : terminalStorageClassUpdateTime_; + return terminalStorageClassUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : terminalStorageClassUpdateTime_; } else { return terminalStorageClassUpdateTimeBuilder_.getMessage(); } } /** + * + * *
                    * Output only. Latest instant at which the autoclass terminal storage class
                    * was updated.
                    * 
            * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setTerminalStorageClassUpdateTime(com.google.protobuf.Timestamp value) { if (terminalStorageClassUpdateTimeBuilder_ == null) { @@ -16044,12 +17879,16 @@ public Builder setTerminalStorageClassUpdateTime(com.google.protobuf.Timestamp v return this; } /** + * + * *
                    * Output only. Latest instant at which the autoclass terminal storage class
                    * was updated.
                    * 
            * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setTerminalStorageClassUpdateTime( com.google.protobuf.Timestamp.Builder builderForValue) { @@ -16063,18 +17902,23 @@ public Builder setTerminalStorageClassUpdateTime( return this; } /** + * + * *
                    * Output only. Latest instant at which the autoclass terminal storage class
                    * was updated.
                    * 
            * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeTerminalStorageClassUpdateTime(com.google.protobuf.Timestamp value) { if (terminalStorageClassUpdateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - terminalStorageClassUpdateTime_ != null && - terminalStorageClassUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && terminalStorageClassUpdateTime_ != null + && terminalStorageClassUpdateTime_ + != com.google.protobuf.Timestamp.getDefaultInstance()) { getTerminalStorageClassUpdateTimeBuilder().mergeFrom(value); } else { terminalStorageClassUpdateTime_ = value; @@ -16089,12 +17933,16 @@ public Builder mergeTerminalStorageClassUpdateTime(com.google.protobuf.Timestamp return this; } /** + * + * *
                    * Output only. Latest instant at which the autoclass terminal storage class
                    * was updated.
                    * 
            * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearTerminalStorageClassUpdateTime() { bitField0_ = (bitField0_ & ~0x00000008); @@ -16107,12 +17955,16 @@ public Builder clearTerminalStorageClassUpdateTime() { return this; } /** + * + * *
                    * Output only. Latest instant at which the autoclass terminal storage class
                    * was updated.
                    * 
            * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getTerminalStorageClassUpdateTimeBuilder() { bitField0_ |= 0x00000008; @@ -16120,42 +17972,55 @@ public com.google.protobuf.Timestamp.Builder getTerminalStorageClassUpdateTimeBu return getTerminalStorageClassUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
                    * Output only. Latest instant at which the autoclass terminal storage class
                    * was updated.
                    * 
            * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getTerminalStorageClassUpdateTimeOrBuilder() { if (terminalStorageClassUpdateTimeBuilder_ != null) { return terminalStorageClassUpdateTimeBuilder_.getMessageOrBuilder(); } else { - return terminalStorageClassUpdateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : terminalStorageClassUpdateTime_; + return terminalStorageClassUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : terminalStorageClassUpdateTime_; } } /** + * + * *
                    * Output only. Latest instant at which the autoclass terminal storage class
                    * was updated.
                    * 
            * - * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp terminal_storage_class_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getTerminalStorageClassUpdateTimeFieldBuilder() { if (terminalStorageClassUpdateTimeBuilder_ == null) { - terminalStorageClassUpdateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getTerminalStorageClassUpdateTime(), - getParentForChildren(), - isClean()); + terminalStorageClassUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getTerminalStorageClassUpdateTime(), getParentForChildren(), isClean()); terminalStorageClassUpdateTime_ = null; } return terminalStorageClassUpdateTimeBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -16168,12 +18033,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(); } @@ -16182,27 +18047,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; @@ -16217,70 +18083,79 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.Autoclass getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface HierarchicalNamespaceOrBuilder extends + public interface HierarchicalNamespaceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket.HierarchicalNamespace) com.google.protobuf.MessageOrBuilder { /** + * + * *
                  * Optional. Enables the hierarchical namespace feature.
                  * 
            * * bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enabled. */ boolean getEnabled(); } /** + * + * *
                * Configuration for a bucket's hierarchical namespace feature.
                * 
            * * Protobuf type {@code google.storage.v2.Bucket.HierarchicalNamespace} */ - public static final class HierarchicalNamespace extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class HierarchicalNamespace extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.v2.Bucket.HierarchicalNamespace) HierarchicalNamespaceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use HierarchicalNamespace.newBuilder() to construct. private HierarchicalNamespace(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private HierarchicalNamespace() { - } + + private HierarchicalNamespace() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new HierarchicalNamespace(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_HierarchicalNamespace_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_Bucket_HierarchicalNamespace_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_HierarchicalNamespace_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_Bucket_HierarchicalNamespace_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.HierarchicalNamespace.class, com.google.storage.v2.Bucket.HierarchicalNamespace.Builder.class); + com.google.storage.v2.Bucket.HierarchicalNamespace.class, + com.google.storage.v2.Bucket.HierarchicalNamespace.Builder.class); } public static final int ENABLED_FIELD_NUMBER = 1; private boolean enabled_ = false; /** + * + * *
                  * Optional. Enables the hierarchical namespace feature.
                  * 
            * * bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enabled. */ @java.lang.Override @@ -16289,6 +18164,7 @@ public boolean getEnabled() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -16300,8 +18176,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_); } @@ -16315,8 +18190,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; @@ -16326,15 +18200,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.HierarchicalNamespace)) { return super.equals(obj); } - com.google.storage.v2.Bucket.HierarchicalNamespace other = (com.google.storage.v2.Bucket.HierarchicalNamespace) obj; + com.google.storage.v2.Bucket.HierarchicalNamespace other = + (com.google.storage.v2.Bucket.HierarchicalNamespace) obj; - if (getEnabled() - != other.getEnabled()) return false; + if (getEnabled() != other.getEnabled()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -16347,97 +18221,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.HierarchicalNamespace parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.v2.Bucket.HierarchicalNamespace parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.v2.Bucket.HierarchicalNamespace parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.v2.Bucket.HierarchicalNamespace parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.v2.Bucket.HierarchicalNamespace parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.v2.Bucket.HierarchicalNamespace parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.storage.v2.Bucket.HierarchicalNamespace parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.storage.v2.Bucket.HierarchicalNamespace parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.v2.Bucket.HierarchicalNamespace parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.storage.v2.Bucket.HierarchicalNamespace parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.Bucket.HierarchicalNamespace parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.Bucket.HierarchicalNamespace parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.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.HierarchicalNamespace parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.v2.Bucket.HierarchicalNamespace parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.storage.v2.Bucket.HierarchicalNamespace prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -16447,39 +18324,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
                  * Configuration for a bucket's hierarchical namespace feature.
                  * 
            * * Protobuf type {@code google.storage.v2.Bucket.HierarchicalNamespace} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.storage.v2.Bucket.HierarchicalNamespace) com.google.storage.v2.Bucket.HierarchicalNamespaceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_HierarchicalNamespace_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_Bucket_HierarchicalNamespace_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Bucket_HierarchicalNamespace_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_Bucket_HierarchicalNamespace_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.Bucket.HierarchicalNamespace.class, com.google.storage.v2.Bucket.HierarchicalNamespace.Builder.class); + com.google.storage.v2.Bucket.HierarchicalNamespace.class, + com.google.storage.v2.Bucket.HierarchicalNamespace.Builder.class); } // Construct using com.google.storage.v2.Bucket.HierarchicalNamespace.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(); @@ -16489,9 +18368,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_HierarchicalNamespace_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_Bucket_HierarchicalNamespace_descriptor; } @java.lang.Override @@ -16510,8 +18389,11 @@ public com.google.storage.v2.Bucket.HierarchicalNamespace build() { @java.lang.Override public com.google.storage.v2.Bucket.HierarchicalNamespace buildPartial() { - com.google.storage.v2.Bucket.HierarchicalNamespace result = new com.google.storage.v2.Bucket.HierarchicalNamespace(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.storage.v2.Bucket.HierarchicalNamespace result = + new com.google.storage.v2.Bucket.HierarchicalNamespace(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -16527,38 +18409,41 @@ private void buildPartial0(com.google.storage.v2.Bucket.HierarchicalNamespace 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.HierarchicalNamespace) { - return mergeFrom((com.google.storage.v2.Bucket.HierarchicalNamespace)other); + return mergeFrom((com.google.storage.v2.Bucket.HierarchicalNamespace) other); } else { super.mergeFrom(other); return this; @@ -16566,7 +18451,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.storage.v2.Bucket.HierarchicalNamespace other) { - if (other == com.google.storage.v2.Bucket.HierarchicalNamespace.getDefaultInstance()) return this; + if (other == com.google.storage.v2.Bucket.HierarchicalNamespace.getDefaultInstance()) + return this; if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } @@ -16596,17 +18482,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) { @@ -16616,15 +18504,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private boolean enabled_ ; + private boolean enabled_; /** + * + * *
                    * Optional. Enables the hierarchical namespace feature.
                    * 
            * * bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enabled. */ @java.lang.Override @@ -16632,11 +18524,14 @@ public boolean getEnabled() { return enabled_; } /** + * + * *
                    * Optional. Enables the hierarchical namespace feature.
                    * 
            * * bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The enabled to set. * @return This builder for chaining. */ @@ -16648,11 +18543,14 @@ public Builder setEnabled(boolean value) { return this; } /** + * + * *
                    * Optional. Enables the hierarchical namespace feature.
                    * 
            * * bool enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEnabled() { @@ -16661,6 +18559,7 @@ public Builder clearEnabled() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -16673,12 +18572,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.storage.v2.Bucket.HierarchicalNamespace) } // @@protoc_insertion_point(class_scope:google.storage.v2.Bucket.HierarchicalNamespace) private static final com.google.storage.v2.Bucket.HierarchicalNamespace DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.storage.v2.Bucket.HierarchicalNamespace(); } @@ -16687,27 +18586,28 @@ public static com.google.storage.v2.Bucket.HierarchicalNamespace getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HierarchicalNamespace parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HierarchicalNamespace parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -16722,20 +18622,23 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.Bucket.HierarchicalNamespace getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
                * Immutable. The name of the bucket.
                * Format: `projects/{project}/buckets/{bucket}`
                * 
            * * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ @java.lang.Override @@ -16744,30 +18647,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
                * Immutable. The name of the bucket.
                * Format: `projects/{project}/buckets/{bucket}`
                * 
            * * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -16776,9 +18679,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
            @@ -16786,6 +18692,7 @@ public java.lang.String getName() {
                * 
            * * string bucket_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bucketId. */ @java.lang.Override @@ -16794,14 +18701,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
            @@ -16809,16 +18717,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 { @@ -16827,9 +18734,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
            @@ -16837,6 +18747,7 @@ public java.lang.String getBucketId() {
                * 
            * * string etag = 29; + * * @return The etag. */ @java.lang.Override @@ -16845,14 +18756,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
            @@ -16860,16 +18772,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 { @@ -16878,16 +18789,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 @@ -16896,31 +18813,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 { @@ -16931,11 +18850,14 @@ 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.
                * 
            * * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The metageneration. */ @java.lang.Override @@ -16944,9 +18866,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`.
            @@ -16957,6 +18882,7 @@ public long getMetageneration() {
                * 
            * * string location = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The location. */ @java.lang.Override @@ -16965,14 +18891,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`.
            @@ -16983,16 +18910,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 { @@ -17001,15 +18927,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 @@ -17018,30 +18948,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 { @@ -17050,9 +18980,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
            @@ -17063,6 +18996,7 @@ public java.lang.String getLocationType() {
                * 
            * * string storage_class = 7; + * * @return The storageClass. */ @java.lang.Override @@ -17071,14 +19005,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
            @@ -17089,16 +19024,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 { @@ -17107,9 +19041,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
            @@ -17120,6 +19057,7 @@ public java.lang.String getStorageClass() {
                * 
            * * string rpo = 27; + * * @return The rpo. */ @java.lang.Override @@ -17128,14 +19066,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
            @@ -17146,16 +19085,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 { @@ -17164,9 +19102,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,
            @@ -17180,6 +19121,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,
            @@ -17189,11 +19132,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,
            @@ -17207,6 +19152,8 @@ public int getAclCount() {
                 return acl_.size();
               }
               /**
            +   *
            +   *
                * 
                * Access controls on the bucket.
                * If iam_config.uniform_bucket_level_access is enabled on this bucket,
            @@ -17220,6 +19167,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,
            @@ -17229,15 +19178,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,
            @@ -17251,6 +19202,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,
            @@ -17260,11 +19213,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,
            @@ -17278,6 +19233,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,
            @@ -17291,6 +19248,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,
            @@ -17308,6 +19267,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]
            @@ -17315,6 +19276,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 @@ -17322,6 +19284,8 @@ public boolean hasLifecycle() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * The bucket's lifecycle config. See
                * [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
            @@ -17329,13 +19293,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]
            @@ -17346,17 +19315,23 @@ public com.google.storage.v2.Bucket.Lifecycle getLifecycle() {
                */
               @java.lang.Override
               public com.google.storage.v2.Bucket.LifecycleOrBuilder getLifecycleOrBuilder() {
            -    return lifecycle_ == null ? com.google.storage.v2.Bucket.Lifecycle.getDefaultInstance() : lifecycle_;
            +    return lifecycle_ == null
            +        ? com.google.storage.v2.Bucket.Lifecycle.getDefaultInstance()
            +        : lifecycle_;
               }
             
               public static final int CREATE_TIME_FIELD_NUMBER = 11;
               private com.google.protobuf.Timestamp createTime_;
               /**
            +   *
            +   *
                * 
                * Output only. The creation time of the bucket.
                * 
            * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -17364,11 +19339,15 @@ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
                * Output only. The creation time of the bucket.
                * 
            * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -17376,11 +19355,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
                * Output only. The creation time of the bucket.
                * 
            * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -17388,9 +19370,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.
            @@ -17403,6 +19388,8 @@ public java.util.List getCorsList() {
                 return cors_;
               }
               /**
            +   *
            +   *
                * 
                * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
                * (CORS) config.
            @@ -17411,11 +19398,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.
            @@ -17428,6 +19417,8 @@ public int getCorsCount() {
                 return cors_.size();
               }
               /**
            +   *
            +   *
                * 
                * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
                * (CORS) config.
            @@ -17440,6 +19431,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.
            @@ -17448,19 +19441,22 @@ public com.google.storage.v2.Bucket.Cors getCors(int index) {
                * repeated .google.storage.v2.Bucket.Cors cors = 12;
                */
               @java.lang.Override
            -  public com.google.storage.v2.Bucket.CorsOrBuilder getCorsOrBuilder(
            -      int index) {
            +  public com.google.storage.v2.Bucket.CorsOrBuilder getCorsOrBuilder(int index) {
                 return cors_.get(index);
               }
             
               public static final int UPDATE_TIME_FIELD_NUMBER = 13;
               private com.google.protobuf.Timestamp updateTime_;
               /**
            +   *
            +   *
                * 
                * Output only. The modification time of the bucket.
                * 
            * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -17468,11 +19464,15 @@ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
                * Output only. The modification time of the bucket.
                * 
            * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -17480,11 +19480,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
                * Output only. The modification time of the bucket.
                * 
            * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -17494,6 +19497,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
            @@ -17511,6 +19516,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
                * 
            * * bool default_event_based_hold = 14; + * * @return The defaultEventBasedHold. */ @java.lang.Override @@ -17519,32 +19525,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.
                * 
            @@ -17552,20 +19560,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.
                * 
            @@ -17577,6 +19586,8 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
                * User-provided labels, in key/value pairs.
                * 
            @@ -17584,17 +19595,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.
                * 
            @@ -17602,11 +19615,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(); } @@ -17616,6 +19629,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
            @@ -17624,6 +19639,7 @@ public java.lang.String getLabelsOrThrow(
                * 
            * * .google.storage.v2.Bucket.Website website = 16; + * * @return Whether the website field is set. */ @java.lang.Override @@ -17631,6 +19647,8 @@ public boolean hasWebsite() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
                * The bucket's website config, controlling how the service behaves
                * when accessing bucket contents as a web site. See the
            @@ -17639,6 +19657,7 @@ public boolean hasWebsite() {
                * 
            * * .google.storage.v2.Bucket.Website website = 16; + * * @return The website. */ @java.lang.Override @@ -17646,6 +19665,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
            @@ -17663,11 +19684,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 @@ -17675,18 +19699,25 @@ public boolean hasVersioning() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
                * The bucket's versioning config.
                * 
            * * .google.storage.v2.Bucket.Versioning versioning = 17; + * * @return The versioning. */ @java.lang.Override public com.google.storage.v2.Bucket.Versioning getVersioning() { - return versioning_ == null ? com.google.storage.v2.Bucket.Versioning.getDefaultInstance() : versioning_; + return versioning_ == null + ? com.google.storage.v2.Bucket.Versioning.getDefaultInstance() + : versioning_; } /** + * + * *
                * The bucket's versioning config.
                * 
            @@ -17695,18 +19726,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 @@ -17714,12 +19750,15 @@ public boolean hasLogging() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
                * The bucket's logging config, which defines the destination bucket
                * and name prefix (if any) for the current bucket's logs.
                * 
            * * .google.storage.v2.Bucket.Logging logging = 18; + * * @return The logging. */ @java.lang.Override @@ -17727,6 +19766,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.
            @@ -17742,12 +19783,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 @@ -17755,12 +19799,15 @@ public boolean hasOwner() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
                * Output only. The owner of the bucket. This is always the project team's
                * owner group.
                * 
            * * .google.storage.v2.Owner owner = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The owner. */ @java.lang.Override @@ -17768,6 +19815,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.
            @@ -17783,11 +19832,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 @@ -17795,18 +19847,25 @@ public boolean hasEncryption() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
                * Encryption config for a bucket.
                * 
            * * .google.storage.v2.Bucket.Encryption encryption = 20; + * * @return The encryption. */ @java.lang.Override public com.google.storage.v2.Bucket.Encryption getEncryption() { - return encryption_ == null ? com.google.storage.v2.Bucket.Encryption.getDefaultInstance() : encryption_; + return encryption_ == null + ? com.google.storage.v2.Bucket.Encryption.getDefaultInstance() + : encryption_; } /** + * + * *
                * Encryption config for a bucket.
                * 
            @@ -17815,17 +19874,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 @@ -17833,11 +19897,14 @@ public boolean hasBilling() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
                * The bucket's billing config.
                * 
            * * .google.storage.v2.Bucket.Billing billing = 21; + * * @return The billing. */ @java.lang.Override @@ -17845,6 +19912,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.
                * 
            @@ -17859,6 +19928,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
            @@ -17872,6 +19943,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 @@ -17879,6 +19951,8 @@ public boolean hasRetentionPolicy() { return ((bitField0_ & 0x00000200) != 0); } /** + * + * *
                * The bucket's retention policy. The retention policy enforces a minimum
                * retention time for all objects contained in the bucket, based on their
            @@ -17892,13 +19966,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
            @@ -17915,17 +19994,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 @@ -17933,18 +20017,25 @@ public boolean hasIamConfig() { return ((bitField0_ & 0x00000400) != 0); } /** + * + * *
                * The bucket's IAM config.
                * 
            * * .google.storage.v2.Bucket.IamConfig iam_config = 23; + * * @return The iamConfig. */ @java.lang.Override public com.google.storage.v2.Bucket.IamConfig getIamConfig() { - return iamConfig_ == null ? com.google.storage.v2.Bucket.IamConfig.getDefaultInstance() : iamConfig_; + return iamConfig_ == null + ? com.google.storage.v2.Bucket.IamConfig.getDefaultInstance() + : iamConfig_; } /** + * + * *
                * The bucket's IAM config.
                * 
            @@ -17953,17 +20044,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 @@ -17974,12 +20070,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 @@ -17987,19 +20086,26 @@ public boolean hasCustomPlacementConfig() { return ((bitField0_ & 0x00000800) != 0); } /** + * + * *
                * Configuration that, if present, specifies the data placement for a
                * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
                * 
            * * .google.storage.v2.Bucket.CustomPlacementConfig custom_placement_config = 26; + * * @return The customPlacementConfig. */ @java.lang.Override public com.google.storage.v2.Bucket.CustomPlacementConfig getCustomPlacementConfig() { - return customPlacementConfig_ == null ? com.google.storage.v2.Bucket.CustomPlacementConfig.getDefaultInstance() : customPlacementConfig_; + return customPlacementConfig_ == null + ? com.google.storage.v2.Bucket.CustomPlacementConfig.getDefaultInstance() + : customPlacementConfig_; } /** + * + * *
                * Configuration that, if present, specifies the data placement for a
                * [https://cloud.google.com/storage/docs/use-dual-regions][Dual Region].
            @@ -18008,19 +20114,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 @@ -18028,19 +20140,26 @@ public boolean hasAutoclass() { return ((bitField0_ & 0x00001000) != 0); } /** + * + * *
                * The bucket's Autoclass configuration. If there is no configuration, the
                * Autoclass feature will be disabled and have no effect on the bucket.
                * 
            * * .google.storage.v2.Bucket.Autoclass autoclass = 28; + * * @return The autoclass. */ @java.lang.Override public com.google.storage.v2.Bucket.Autoclass getAutoclass() { - return autoclass_ == null ? com.google.storage.v2.Bucket.Autoclass.getDefaultInstance() : autoclass_; + return autoclass_ == null + ? com.google.storage.v2.Bucket.Autoclass.getDefaultInstance() + : autoclass_; } /** + * + * *
                * The bucket's Autoclass configuration. If there is no configuration, the
                * Autoclass feature will be disabled and have no effect on the bucket.
            @@ -18050,19 +20169,26 @@ public com.google.storage.v2.Bucket.Autoclass getAutoclass() {
                */
               @java.lang.Override
               public com.google.storage.v2.Bucket.AutoclassOrBuilder getAutoclassOrBuilder() {
            -    return autoclass_ == null ? com.google.storage.v2.Bucket.Autoclass.getDefaultInstance() : autoclass_;
            +    return autoclass_ == null
            +        ? com.google.storage.v2.Bucket.Autoclass.getDefaultInstance()
            +        : autoclass_;
               }
             
               public static final int HIERARCHICAL_NAMESPACE_FIELD_NUMBER = 32;
               private com.google.storage.v2.Bucket.HierarchicalNamespace hierarchicalNamespace_;
               /**
            +   *
            +   *
                * 
                * Optional. The bucket's hierarchical namespace configuration. If there is no
                * configuration, the hierarchical namespace feature will be disabled and have
                * no effect on the bucket.
                * 
            * - * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the hierarchicalNamespace field is set. */ @java.lang.Override @@ -18070,42 +20196,61 @@ public boolean hasHierarchicalNamespace() { return ((bitField0_ & 0x00002000) != 0); } /** + * + * *
                * Optional. The bucket's hierarchical namespace configuration. If there is no
                * configuration, the hierarchical namespace feature will be disabled and have
                * no effect on the bucket.
                * 
            * - * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The hierarchicalNamespace. */ @java.lang.Override public com.google.storage.v2.Bucket.HierarchicalNamespace getHierarchicalNamespace() { - return hierarchicalNamespace_ == null ? com.google.storage.v2.Bucket.HierarchicalNamespace.getDefaultInstance() : hierarchicalNamespace_; + return hierarchicalNamespace_ == null + ? com.google.storage.v2.Bucket.HierarchicalNamespace.getDefaultInstance() + : hierarchicalNamespace_; } /** + * + * *
                * Optional. The bucket's hierarchical namespace configuration. If there is no
                * configuration, the hierarchical namespace feature will be disabled and have
                * no effect on the bucket.
                * 
            * - * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.storage.v2.Bucket.HierarchicalNamespaceOrBuilder getHierarchicalNamespaceOrBuilder() { - return hierarchicalNamespace_ == null ? com.google.storage.v2.Bucket.HierarchicalNamespace.getDefaultInstance() : hierarchicalNamespace_; + public com.google.storage.v2.Bucket.HierarchicalNamespaceOrBuilder + getHierarchicalNamespaceOrBuilder() { + return hierarchicalNamespace_ == null + ? com.google.storage.v2.Bucket.HierarchicalNamespace.getDefaultInstance() + : hierarchicalNamespace_; } public static final int SOFT_DELETE_POLICY_FIELD_NUMBER = 31; private com.google.storage.v2.Bucket.SoftDeletePolicy softDeletePolicy_; /** + * + * *
                * Optional. The bucket's soft delete policy. The soft delete policy prevents
                * soft-deleted objects from being permanently deleted.
                * 
            * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the softDeletePolicy field is set. */ @java.lang.Override @@ -18113,32 +20258,46 @@ public boolean hasSoftDeletePolicy() { return ((bitField0_ & 0x00004000) != 0); } /** + * + * *
                * Optional. The bucket's soft delete policy. The soft delete policy prevents
                * soft-deleted objects from being permanently deleted.
                * 
            * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The softDeletePolicy. */ @java.lang.Override public com.google.storage.v2.Bucket.SoftDeletePolicy getSoftDeletePolicy() { - return softDeletePolicy_ == null ? com.google.storage.v2.Bucket.SoftDeletePolicy.getDefaultInstance() : softDeletePolicy_; + return softDeletePolicy_ == null + ? com.google.storage.v2.Bucket.SoftDeletePolicy.getDefaultInstance() + : softDeletePolicy_; } /** + * + * *
                * Optional. The bucket's soft delete policy. The soft delete policy prevents
                * soft-deleted objects from being permanently deleted.
                * 
            * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.storage.v2.Bucket.SoftDeletePolicyOrBuilder getSoftDeletePolicyOrBuilder() { - return softDeletePolicy_ == null ? com.google.storage.v2.Bucket.SoftDeletePolicy.getDefaultInstance() : softDeletePolicy_; + return softDeletePolicy_ == null + ? com.google.storage.v2.Bucket.SoftDeletePolicy.getDefaultInstance() + : softDeletePolicy_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -18150,8 +20309,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_); } @@ -18194,12 +20352,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 (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(16, getWebsite()); } @@ -18264,8 +20418,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_); @@ -18277,100 +20430,82 @@ 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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getLifecycle()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getLifecycle()); } if (((bitField0_ & 0x00000002) != 0)) { - 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 (((bitField0_ & 0x00000004) != 0)) { - 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 (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getWebsite()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getWebsite()); } if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getVersioning()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getVersioning()); } if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, getLogging()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getLogging()); } if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, getOwner()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getOwner()); } if (((bitField0_ & 0x00000080) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, getEncryption()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getEncryption()); } if (((bitField0_ & 0x00000100) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, getBilling()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getBilling()); } if (((bitField0_ & 0x00000200) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, getRetentionPolicy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getRetentionPolicy()); } if (((bitField0_ & 0x00000400) != 0)) { - 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 (((bitField0_ & 0x00000800) != 0)) { - 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 (((bitField0_ & 0x00001000) != 0)) { - 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_); } if (((bitField0_ & 0x00004000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(31, getSoftDeletePolicy()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(31, getSoftDeletePolicy()); } if (((bitField0_ & 0x00002000) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(32, getHierarchicalNamespace()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(32, getHierarchicalNamespace()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -18380,117 +20515,87 @@ public int 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 (hasHierarchicalNamespace() != other.hasHierarchicalNamespace()) return false; if (hasHierarchicalNamespace()) { - if (!getHierarchicalNamespace() - .equals(other.getHierarchicalNamespace())) return false; + if (!getHierarchicalNamespace().equals(other.getHierarchicalNamespace())) return false; } if (hasSoftDeletePolicy() != other.hasSoftDeletePolicy()) return false; if (hasSoftDeletePolicy()) { - if (!getSoftDeletePolicy() - .equals(other.getSoftDeletePolicy())) return false; + if (!getSoftDeletePolicy().equals(other.getSoftDeletePolicy())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -18512,8 +20617,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; @@ -18547,8 +20651,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(); @@ -18586,8 +20689,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(); @@ -18609,111 +20711,114 @@ 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; } @@ -18724,10 +20829,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl 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.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { @@ -18735,14 +20840,15 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi 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); } @@ -18752,14 +20858,13 @@ 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) { getAclFieldBuilder(); getDefaultObjectAclFieldBuilder(); getLifecycleFieldBuilder(); @@ -18780,6 +20885,7 @@ private void maybeForceBuilderInitialization() { getSoftDeletePolicyFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -18896,8 +21002,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; } @@ -18919,7 +21024,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; } @@ -18985,21 +21092,15 @@ private void buildPartial0(com.google.storage.v2.Bucket result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000800) != 0)) { - result.lifecycle_ = lifecycleBuilder_ == null - ? lifecycle_ - : lifecycleBuilder_.build(); + result.lifecycle_ = lifecycleBuilder_ == null ? lifecycle_ : lifecycleBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00001000) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00004000) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00008000) != 0)) { @@ -19010,78 +21111,62 @@ private void buildPartial0(com.google.storage.v2.Bucket result) { result.labels_.makeImmutable(); } if (((from_bitField0_ & 0x00020000) != 0)) { - result.website_ = websiteBuilder_ == null - ? website_ - : websiteBuilder_.build(); + result.website_ = websiteBuilder_ == null ? website_ : websiteBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00040000) != 0)) { - result.versioning_ = versioningBuilder_ == null - ? versioning_ - : versioningBuilder_.build(); + result.versioning_ = versioningBuilder_ == null ? versioning_ : versioningBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00080000) != 0)) { - result.logging_ = loggingBuilder_ == null - ? logging_ - : loggingBuilder_.build(); + result.logging_ = loggingBuilder_ == null ? logging_ : loggingBuilder_.build(); to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00100000) != 0)) { - result.owner_ = ownerBuilder_ == null - ? owner_ - : ownerBuilder_.build(); + result.owner_ = ownerBuilder_ == null ? owner_ : ownerBuilder_.build(); to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00200000) != 0)) { - result.encryption_ = encryptionBuilder_ == null - ? encryption_ - : encryptionBuilder_.build(); + result.encryption_ = encryptionBuilder_ == null ? encryption_ : encryptionBuilder_.build(); to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00400000) != 0)) { - result.billing_ = billingBuilder_ == null - ? billing_ - : billingBuilder_.build(); + result.billing_ = billingBuilder_ == null ? billing_ : billingBuilder_.build(); to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00800000) != 0)) { - result.retentionPolicy_ = retentionPolicyBuilder_ == null - ? retentionPolicy_ - : retentionPolicyBuilder_.build(); + result.retentionPolicy_ = + retentionPolicyBuilder_ == null ? retentionPolicy_ : retentionPolicyBuilder_.build(); to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x01000000) != 0)) { - result.iamConfig_ = iamConfigBuilder_ == null - ? iamConfig_ - : iamConfigBuilder_.build(); + result.iamConfig_ = iamConfigBuilder_ == null ? iamConfig_ : iamConfigBuilder_.build(); to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x02000000) != 0)) { result.satisfiesPzs_ = satisfiesPzs_; } if (((from_bitField0_ & 0x04000000) != 0)) { - result.customPlacementConfig_ = customPlacementConfigBuilder_ == null - ? customPlacementConfig_ - : customPlacementConfigBuilder_.build(); + result.customPlacementConfig_ = + customPlacementConfigBuilder_ == null + ? customPlacementConfig_ + : customPlacementConfigBuilder_.build(); to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x08000000) != 0)) { - result.autoclass_ = autoclassBuilder_ == null - ? autoclass_ - : autoclassBuilder_.build(); + result.autoclass_ = autoclassBuilder_ == null ? autoclass_ : autoclassBuilder_.build(); to_bitField0_ |= 0x00001000; } if (((from_bitField0_ & 0x10000000) != 0)) { - result.hierarchicalNamespace_ = hierarchicalNamespaceBuilder_ == null - ? hierarchicalNamespace_ - : hierarchicalNamespaceBuilder_.build(); + result.hierarchicalNamespace_ = + hierarchicalNamespaceBuilder_ == null + ? hierarchicalNamespace_ + : hierarchicalNamespaceBuilder_.build(); to_bitField0_ |= 0x00002000; } if (((from_bitField0_ & 0x20000000) != 0)) { - result.softDeletePolicy_ = softDeletePolicyBuilder_ == null - ? softDeletePolicy_ - : softDeletePolicyBuilder_.build(); + result.softDeletePolicy_ = + softDeletePolicyBuilder_ == null ? softDeletePolicy_ : softDeletePolicyBuilder_.build(); to_bitField0_ |= 0x00004000; } result.bitField0_ |= to_bitField0_; @@ -19091,38 +21176,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; @@ -19192,9 +21278,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_); } @@ -19218,9 +21305,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_); } @@ -19250,9 +21338,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_); } @@ -19264,8 +21353,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()); @@ -19323,229 +21411,232 @@ public Builder mergeFrom( throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - bucketId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - project_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 32: { - metageneration_ = input.readInt64(); - bitField0_ |= 0x00000010; - break; - } // case 32 - case 42: { - location_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 42 - case 50: { - locationType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 58: { - storageClass_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 58 - case 66: { - com.google.storage.v2.BucketAccessControl m = - input.readMessage( - com.google.storage.v2.BucketAccessControl.parser(), - extensionRegistry); - if (aclBuilder_ == null) { - ensureAclIsMutable(); - acl_.add(m); - } else { - aclBuilder_.addMessage(m); - } - break; - } // case 66 - case 74: { - com.google.storage.v2.ObjectAccessControl m = - input.readMessage( - com.google.storage.v2.ObjectAccessControl.parser(), - extensionRegistry); - if (defaultObjectAclBuilder_ == null) { - ensureDefaultObjectAclIsMutable(); - defaultObjectAcl_.add(m); - } else { - defaultObjectAclBuilder_.addMessage(m); - } - break; - } // case 74 - case 82: { - input.readMessage( - getLifecycleFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000800; - break; - } // case 82 - case 90: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00001000; - break; - } // case 90 - case 98: { - com.google.storage.v2.Bucket.Cors m = - input.readMessage( - com.google.storage.v2.Bucket.Cors.parser(), - extensionRegistry); - if (corsBuilder_ == null) { - ensureCorsIsMutable(); - cors_.add(m); - } else { - corsBuilder_.addMessage(m); - } - break; - } // case 98 - case 106: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00004000; - break; - } // case 106 - case 112: { - defaultEventBasedHold_ = input.readBool(); - bitField0_ |= 0x00008000; - break; - } // case 112 - case 122: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00010000; - break; - } // case 122 - case 130: { - input.readMessage( - getWebsiteFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00020000; - break; - } // case 130 - case 138: { - input.readMessage( - getVersioningFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00040000; - break; - } // case 138 - case 146: { - input.readMessage( - getLoggingFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00080000; - break; - } // case 146 - case 154: { - input.readMessage( - getOwnerFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00100000; - break; - } // case 154 - case 162: { - input.readMessage( - getEncryptionFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00200000; - break; - } // case 162 - case 170: { - input.readMessage( - getBillingFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00400000; - break; - } // case 170 - case 178: { - input.readMessage( - getRetentionPolicyFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00800000; - break; - } // case 178 - case 186: { - input.readMessage( - getIamConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x01000000; - break; - } // case 186 - case 200: { - satisfiesPzs_ = input.readBool(); - bitField0_ |= 0x02000000; - break; - } // case 200 - case 210: { - input.readMessage( - getCustomPlacementConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x04000000; - break; - } // case 210 - case 218: { - rpo_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 218 - case 226: { - input.readMessage( - getAutoclassFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x08000000; - break; - } // case 226 - case 234: { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 234 - case 250: { - input.readMessage( - getSoftDeletePolicyFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x20000000; - break; - } // case 250 - case 258: { - input.readMessage( - getHierarchicalNamespaceFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x10000000; - break; - } // case 258 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + bucketId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 32: + { + metageneration_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 42: + { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 50: + { + locationType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: + { + storageClass_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: + { + com.google.storage.v2.BucketAccessControl m = + input.readMessage( + com.google.storage.v2.BucketAccessControl.parser(), extensionRegistry); + if (aclBuilder_ == null) { + ensureAclIsMutable(); + acl_.add(m); + } else { + aclBuilder_.addMessage(m); + } + break; + } // case 66 + case 74: + { + com.google.storage.v2.ObjectAccessControl m = + input.readMessage( + com.google.storage.v2.ObjectAccessControl.parser(), extensionRegistry); + if (defaultObjectAclBuilder_ == null) { + ensureDefaultObjectAclIsMutable(); + defaultObjectAcl_.add(m); + } else { + defaultObjectAclBuilder_.addMessage(m); + } + break; + } // case 74 + case 82: + { + input.readMessage(getLifecycleFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 82 + case 90: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 90 + case 98: + { + com.google.storage.v2.Bucket.Cors m = + input.readMessage( + com.google.storage.v2.Bucket.Cors.parser(), extensionRegistry); + if (corsBuilder_ == null) { + ensureCorsIsMutable(); + cors_.add(m); + } else { + corsBuilder_.addMessage(m); + } + break; + } // case 98 + case 106: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 106 + case 112: + { + defaultEventBasedHold_ = input.readBool(); + bitField0_ |= 0x00008000; + break; + } // case 112 + case 122: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00010000; + break; + } // case 122 + case 130: + { + input.readMessage(getWebsiteFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 130 + case 138: + { + input.readMessage(getVersioningFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00040000; + break; + } // case 138 + case 146: + { + input.readMessage(getLoggingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00080000; + break; + } // case 146 + case 154: + { + input.readMessage(getOwnerFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00100000; + break; + } // case 154 + case 162: + { + input.readMessage(getEncryptionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00200000; + break; + } // case 162 + case 170: + { + input.readMessage(getBillingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00400000; + break; + } // case 170 + case 178: + { + input.readMessage(getRetentionPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00800000; + break; + } // case 178 + case 186: + { + input.readMessage(getIamConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x01000000; + break; + } // case 186 + case 200: + { + satisfiesPzs_ = input.readBool(); + bitField0_ |= 0x02000000; + break; + } // case 200 + case 210: + { + input.readMessage( + getCustomPlacementConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x04000000; + break; + } // case 210 + case 218: + { + rpo_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 218 + case 226: + { + input.readMessage(getAutoclassFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x08000000; + break; + } // case 226 + case 234: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 234 + case 250: + { + input.readMessage( + getSoftDeletePolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x20000000; + break; + } // case 250 + case 258: + { + input.readMessage( + getHierarchicalNamespaceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x10000000; + break; + } // case 258 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -19555,23 +21646,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
                  * Immutable. The name of the bucket.
                  * Format: `projects/{project}/buckets/{bucket}`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -19580,21 +21674,22 @@ public java.lang.String getName() { } } /** + * + * *
                  * Immutable. The name of the bucket.
                  * Format: `projects/{project}/buckets/{bucket}`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -19602,30 +21697,37 @@ public java.lang.String getName() { } } /** + * + * *
                  * Immutable. The name of the bucket.
                  * Format: `projects/{project}/buckets/{bucket}`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
                  * Immutable. The name of the bucket.
                  * Format: `projects/{project}/buckets/{bucket}`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -19635,18 +21737,22 @@ public Builder clearName() { return this; } /** + * + * *
                  * Immutable. The name of the bucket.
                  * Format: `projects/{project}/buckets/{bucket}`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -19656,6 +21762,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
            @@ -19663,13 +21771,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; @@ -19678,6 +21786,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
            @@ -19685,15 +21795,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 { @@ -19701,6 +21810,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
            @@ -19708,18 +21819,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
            @@ -19727,6 +21842,7 @@ public Builder setBucketId(
                  * 
            * * string bucket_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearBucketId() { @@ -19736,6 +21852,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
            @@ -19743,12 +21861,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; @@ -19758,6 +21878,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
            @@ -19765,13 +21887,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; @@ -19780,6 +21902,8 @@ public java.lang.String getEtag() { } } /** + * + * *
                  * The etag of the bucket.
                  * If included in the metadata of an UpdateBucketRequest, the operation will
            @@ -19787,15 +21911,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 { @@ -19803,6 +21926,8 @@ public java.lang.String getEtag() { } } /** + * + * *
                  * The etag of the bucket.
                  * If included in the metadata of an UpdateBucketRequest, the operation will
            @@ -19810,18 +21935,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
            @@ -19829,6 +21958,7 @@ public Builder setEtag(
                  * 
            * * string etag = 29; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -19838,6 +21968,8 @@ public Builder clearEtag() { return this; } /** + * + * *
                  * The etag of the bucket.
                  * If included in the metadata of an UpdateBucketRequest, the operation will
            @@ -19845,12 +21977,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; @@ -19860,20 +21994,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; @@ -19882,22 +22020,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 { @@ -19905,32 +22046,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() { @@ -19940,19 +22092,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; @@ -19960,13 +22118,16 @@ public Builder setProjectBytes( return this; } - private long metageneration_ ; + private long metageneration_; /** + * + * *
                  * Output only. The metadata generation of this bucket.
                  * 
            * * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The metageneration. */ @java.lang.Override @@ -19974,11 +22135,14 @@ public long getMetageneration() { return metageneration_; } /** + * + * *
                  * Output only. The metadata generation of this bucket.
                  * 
            * * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The metageneration to set. * @return This builder for chaining. */ @@ -19990,11 +22154,14 @@ public Builder setMetageneration(long value) { return this; } /** + * + * *
                  * Output only. The metadata generation of this bucket.
                  * 
            * * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearMetageneration() { @@ -20006,6 +22173,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`.
            @@ -20016,13 +22185,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; @@ -20031,6 +22200,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`.
            @@ -20041,15 +22212,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 { @@ -20057,6 +22227,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`.
            @@ -20067,18 +22239,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`.
            @@ -20089,6 +22265,7 @@ public Builder setLocation(
                  * 
            * * string location = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearLocation() { @@ -20098,6 +22275,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`.
            @@ -20108,12 +22287,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; @@ -20123,19 +22304,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; @@ -20144,21 +22327,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 { @@ -20166,30 +22350,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() { @@ -20199,18 +22390,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; @@ -20220,6 +22415,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
            @@ -20230,13 +22427,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; @@ -20245,6 +22442,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
            @@ -20255,15 +22454,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 { @@ -20271,6 +22469,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
            @@ -20281,18 +22481,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
            @@ -20303,6 +22507,7 @@ public Builder setStorageClass(
                  * 
            * * string storage_class = 7; + * * @return This builder for chaining. */ public Builder clearStorageClass() { @@ -20312,6 +22517,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
            @@ -20322,12 +22529,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; @@ -20337,6 +22546,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
            @@ -20347,13 +22558,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; @@ -20362,6 +22573,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
            @@ -20372,15 +22585,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 { @@ -20388,6 +22600,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
            @@ -20398,18 +22612,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
            @@ -20420,6 +22638,7 @@ public Builder setRpo(
                  * 
            * * string rpo = 27; + * * @return This builder for chaining. */ public Builder clearRpo() { @@ -20429,6 +22648,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
            @@ -20439,12 +22660,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; @@ -20453,18 +22676,24 @@ public Builder setRpoBytes( } private java.util.List acl_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAclIsMutable() { if (!((bitField0_ & 0x00000200) != 0)) { acl_ = new java.util.ArrayList(acl_); bitField0_ |= 0x00000200; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.BucketAccessControl, com.google.storage.v2.BucketAccessControl.Builder, com.google.storage.v2.BucketAccessControlOrBuilder> aclBuilder_; + com.google.storage.v2.BucketAccessControl, + com.google.storage.v2.BucketAccessControl.Builder, + com.google.storage.v2.BucketAccessControlOrBuilder> + aclBuilder_; /** + * + * *
                  * Access controls on the bucket.
                  * If iam_config.uniform_bucket_level_access is enabled on this bucket,
            @@ -20481,6 +22710,8 @@ public java.util.List getAclList() {
                   }
                 }
                 /**
            +     *
            +     *
                  * 
                  * Access controls on the bucket.
                  * If iam_config.uniform_bucket_level_access is enabled on this bucket,
            @@ -20497,6 +22728,8 @@ public int getAclCount() {
                   }
                 }
                 /**
            +     *
            +     *
                  * 
                  * Access controls on the bucket.
                  * If iam_config.uniform_bucket_level_access is enabled on this bucket,
            @@ -20513,6 +22746,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,
            @@ -20521,8 +22756,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();
            @@ -20536,6 +22770,8 @@ public Builder setAcl(
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * Access controls on the bucket.
                  * If iam_config.uniform_bucket_level_access is enabled on this bucket,
            @@ -20556,6 +22792,8 @@ public Builder setAcl(
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * Access controls on the bucket.
                  * If iam_config.uniform_bucket_level_access is enabled on this bucket,
            @@ -20578,6 +22816,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,
            @@ -20586,8 +22826,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();
            @@ -20601,6 +22840,8 @@ public Builder addAcl(
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * Access controls on the bucket.
                  * If iam_config.uniform_bucket_level_access is enabled on this bucket,
            @@ -20609,8 +22850,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());
            @@ -20621,6 +22861,8 @@ public Builder addAcl(
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * Access controls on the bucket.
                  * If iam_config.uniform_bucket_level_access is enabled on this bucket,
            @@ -20641,6 +22883,8 @@ public Builder addAcl(
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * Access controls on the bucket.
                  * If iam_config.uniform_bucket_level_access is enabled on this bucket,
            @@ -20653,8 +22897,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);
            @@ -20662,6 +22905,8 @@ public Builder addAllAcl(
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * Access controls on the bucket.
                  * If iam_config.uniform_bucket_level_access is enabled on this bucket,
            @@ -20681,6 +22926,8 @@ public Builder clearAcl() {
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * Access controls on the bucket.
                  * If iam_config.uniform_bucket_level_access is enabled on this bucket,
            @@ -20700,6 +22947,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,
            @@ -20708,11 +22957,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,
            @@ -20721,14 +22971,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,
            @@ -20737,8 +22989,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 {
            @@ -20746,6 +22998,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,
            @@ -20755,10 +23009,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,
            @@ -20767,12 +23023,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,
            @@ -20781,38 +23038,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,
            @@ -20829,6 +23095,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,
            @@ -20845,6 +23113,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,
            @@ -20861,6 +23131,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,
            @@ -20869,8 +23141,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();
            @@ -20884,6 +23155,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,
            @@ -20904,6 +23177,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,
            @@ -20926,6 +23201,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,
            @@ -20934,8 +23211,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();
            @@ -20949,6 +23225,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,
            @@ -20969,6 +23247,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,
            @@ -20989,6 +23269,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,
            @@ -21001,8 +23283,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);
            @@ -21010,6 +23291,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,
            @@ -21029,6 +23312,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,
            @@ -21048,6 +23333,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,
            @@ -21056,11 +23343,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,
            @@ -21072,11 +23360,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,
            @@ -21085,8 +23376,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 {
            @@ -21094,6 +23385,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,
            @@ -21103,10 +23396,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,
            @@ -21115,12 +23410,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,
            @@ -21129,16 +23425,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(),
            @@ -21150,8 +23452,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]
            @@ -21159,12 +23466,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]
            @@ -21172,16 +23482,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]
            @@ -21204,6 +23519,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]
            @@ -21212,8 +23529,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 {
            @@ -21224,6 +23540,8 @@ public Builder setLifecycle(
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * The bucket's lifecycle config. See
                  * [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
            @@ -21234,9 +23552,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;
            @@ -21251,6 +23569,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]
            @@ -21270,6 +23590,8 @@ public Builder clearLifecycle() {
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * The bucket's lifecycle config. See
                  * [https://developers.google.com/storage/docs/lifecycle]Lifecycle Management]
            @@ -21284,6 +23606,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]
            @@ -21296,11 +23620,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]
            @@ -21310,14 +23637,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_;
            @@ -21325,39 +23655,58 @@ public com.google.storage.v2.Bucket.LifecycleOrBuilder getLifecycleOrBuilder() {
             
                 private com.google.protobuf.Timestamp createTime_;
                 private com.google.protobuf.SingleFieldBuilderV3<
            -        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
            +            com.google.protobuf.Timestamp,
            +            com.google.protobuf.Timestamp.Builder,
            +            com.google.protobuf.TimestampOrBuilder>
            +        createTimeBuilder_;
                 /**
            +     *
            +     *
                  * 
                  * Output only. The creation time of the bucket.
                  * 
            * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00001000) != 0); } /** + * + * *
                  * Output only. The creation time of the bucket.
                  * 
            * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
                  * Output only. The creation time of the bucket.
                  * 
            * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -21373,14 +23722,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                  * Output only. The creation time of the bucket.
                  * 
            * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -21391,17 +23743,21 @@ public Builder setCreateTime( return this; } /** + * + * *
                  * Output only. The creation time of the bucket.
                  * 
            * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -21416,11 +23772,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                  * Output only. The creation time of the bucket.
                  * 
            * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00001000); @@ -21433,11 +23793,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
                  * Output only. The creation time of the bucket.
                  * 
            * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00001000; @@ -21445,54 +23809,72 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
                  * Output only. The creation time of the bucket.
                  * 
            * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
                  * Output only. The creation time of the bucket.
                  * 
            * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; } private java.util.List cors_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureCorsIsMutable() { if (!((bitField0_ & 0x00002000) != 0)) { cors_ = new java.util.ArrayList(cors_); bitField0_ |= 0x00002000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.storage.v2.Bucket.Cors, com.google.storage.v2.Bucket.Cors.Builder, com.google.storage.v2.Bucket.CorsOrBuilder> corsBuilder_; + com.google.storage.v2.Bucket.Cors, + com.google.storage.v2.Bucket.Cors.Builder, + com.google.storage.v2.Bucket.CorsOrBuilder> + corsBuilder_; /** + * + * *
                  * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
                  * (CORS) config.
            @@ -21508,6 +23890,8 @@ public java.util.List getCorsList() {
                   }
                 }
                 /**
            +     *
            +     *
                  * 
                  * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
                  * (CORS) config.
            @@ -21523,6 +23907,8 @@ public int getCorsCount() {
                   }
                 }
                 /**
            +     *
            +     *
                  * 
                  * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
                  * (CORS) config.
            @@ -21538,6 +23924,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.
            @@ -21545,8 +23933,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();
            @@ -21560,6 +23947,8 @@ public Builder setCors(
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
                  * (CORS) config.
            @@ -21567,8 +23956,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());
            @@ -21579,6 +23967,8 @@ public Builder setCors(
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
                  * (CORS) config.
            @@ -21600,6 +23990,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.
            @@ -21607,8 +23999,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();
            @@ -21622,6 +24013,8 @@ public Builder addCors(
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
                  * (CORS) config.
            @@ -21629,8 +24022,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());
            @@ -21641,6 +24033,8 @@ public Builder addCors(
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
                  * (CORS) config.
            @@ -21648,8 +24042,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());
            @@ -21660,6 +24053,8 @@ public Builder addCors(
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
                  * (CORS) config.
            @@ -21671,8 +24066,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);
            @@ -21680,6 +24074,8 @@ public Builder addAllCors(
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
                  * (CORS) config.
            @@ -21698,6 +24094,8 @@ public Builder clearCors() {
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
                  * (CORS) config.
            @@ -21716,6 +24114,8 @@ public Builder removeCors(int index) {
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
                  * (CORS) config.
            @@ -21723,11 +24123,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.
            @@ -21735,14 +24136,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.
            @@ -21750,8 +24153,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 {
            @@ -21759,6 +24162,8 @@ public com.google.storage.v2.Bucket.CorsOrBuilder getCorsOrBuilder(
                   }
                 }
                 /**
            +     *
            +     *
                  * 
                  * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
                  * (CORS) config.
            @@ -21767,10 +24172,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.
            @@ -21778,12 +24185,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.
            @@ -21791,20 +24199,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_;
            @@ -21812,39 +24222,58 @@ 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.
                  * 
            * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00004000) != 0); } /** + * + * *
                  * Output only. The modification time of the bucket.
                  * 
            * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
                  * Output only. The modification time of the bucket.
                  * 
            * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -21860,14 +24289,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                  * Output only. The modification time of the bucket.
                  * 
            * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -21878,17 +24310,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
                  * Output only. The modification time of the bucket.
                  * 
            * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00004000) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -21903,11 +24339,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                  * Output only. The modification time of the bucket.
                  * 
            * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00004000); @@ -21920,11 +24360,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
                  * Output only. The modification time of the bucket.
                  * 
            * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00004000; @@ -21932,43 +24376,57 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
                  * Output only. The modification time of the bucket.
                  * 
            * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
                  * Output only. The modification time of the bucket.
                  * 
            * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private boolean defaultEventBasedHold_ ; + private boolean defaultEventBasedHold_; /** + * + * *
                  * The default value for event-based hold on newly created objects in this
                  * bucket.  Event-based hold is a way to retain objects indefinitely until an
            @@ -21986,6 +24444,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
                  * 
            * * bool default_event_based_hold = 14; + * * @return The defaultEventBasedHold. */ @java.lang.Override @@ -21993,6 +24452,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
            @@ -22010,6 +24471,7 @@ public boolean getDefaultEventBasedHold() {
                  * 
            * * bool default_event_based_hold = 14; + * * @param value The defaultEventBasedHold to set. * @return This builder for chaining. */ @@ -22021,6 +24483,8 @@ public Builder setDefaultEventBasedHold(boolean value) { return this; } /** + * + * *
                  * The default value for event-based hold on newly created objects in this
                  * bucket.  Event-based hold is a way to retain objects indefinitely until an
            @@ -22038,6 +24502,7 @@ public Builder setDefaultEventBasedHold(boolean value) {
                  * 
            * * bool default_event_based_hold = 14; + * * @return This builder for chaining. */ public Builder clearDefaultEventBasedHold() { @@ -22047,21 +24512,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(); @@ -22070,10 +24533,13 @@ public Builder clearDefaultEventBasedHold() { onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
                  * User-provided labels, in key/value pairs.
                  * 
            @@ -22081,20 +24547,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.
                  * 
            @@ -22106,6 +24573,8 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
                  * User-provided labels, in key/value pairs.
                  * 
            @@ -22113,17 +24582,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.
                  * 
            @@ -22131,81 +24602,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
            @@ -22214,12 +24692,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
            @@ -22228,16 +24709,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
            @@ -22261,6 +24747,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
            @@ -22270,8 +24758,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 {
            @@ -22282,6 +24769,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
            @@ -22293,9 +24782,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;
            @@ -22310,6 +24799,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
            @@ -22330,6 +24821,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
            @@ -22345,6 +24838,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
            @@ -22358,11 +24853,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
            @@ -22373,14 +24871,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_;
            @@ -22388,34 +24889,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.
                  * 
            @@ -22436,14 +24950,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 { @@ -22454,6 +24969,8 @@ public Builder setVersioning( return this; } /** + * + * *
                  * The bucket's versioning config.
                  * 
            @@ -22462,9 +24979,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; @@ -22479,6 +24996,8 @@ public Builder mergeVersioning(com.google.storage.v2.Bucket.Versioning value) { return this; } /** + * + * *
                  * The bucket's versioning config.
                  * 
            @@ -22496,6 +25015,8 @@ public Builder clearVersioning() { return this; } /** + * + * *
                  * The bucket's versioning config.
                  * 
            @@ -22508,6 +25029,8 @@ public com.google.storage.v2.Bucket.Versioning.Builder getVersioningBuilder() { return getVersioningFieldBuilder().getBuilder(); } /** + * + * *
                  * The bucket's versioning config.
                  * 
            @@ -22518,11 +25041,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.
                  * 
            @@ -22530,14 +25056,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_; @@ -22545,36 +25074,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.
            @@ -22596,6 +25138,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.
            @@ -22603,8 +25147,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 {
            @@ -22615,6 +25158,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.
            @@ -22624,9 +25169,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;
            @@ -22641,6 +25186,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.
            @@ -22659,6 +25206,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.
            @@ -22672,6 +25221,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.
            @@ -22683,11 +25234,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.
            @@ -22696,14 +25250,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_;
            @@ -22711,26 +25268,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() { @@ -22741,12 +25309,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) { @@ -22762,15 +25333,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 { @@ -22781,18 +25354,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; @@ -22807,12 +25383,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); @@ -22825,12 +25404,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; @@ -22838,38 +25420,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_; @@ -22877,34 +25467,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.
                  * 
            @@ -22925,14 +25528,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 { @@ -22943,6 +25547,8 @@ public Builder setEncryption( return this; } /** + * + * *
                  * Encryption config for a bucket.
                  * 
            @@ -22951,9 +25557,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; @@ -22968,6 +25574,8 @@ public Builder mergeEncryption(com.google.storage.v2.Bucket.Encryption value) { return this; } /** + * + * *
                  * Encryption config for a bucket.
                  * 
            @@ -22985,6 +25593,8 @@ public Builder clearEncryption() { return this; } /** + * + * *
                  * Encryption config for a bucket.
                  * 
            @@ -22997,6 +25607,8 @@ public com.google.storage.v2.Bucket.Encryption.Builder getEncryptionBuilder() { return getEncryptionFieldBuilder().getBuilder(); } /** + * + * *
                  * Encryption config for a bucket.
                  * 
            @@ -23007,11 +25619,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.
                  * 
            @@ -23019,14 +25634,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_; @@ -23034,34 +25652,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.
                  * 
            @@ -23082,14 +25713,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 { @@ -23100,6 +25732,8 @@ public Builder setBilling( return this; } /** + * + * *
                  * The bucket's billing config.
                  * 
            @@ -23108,9 +25742,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; @@ -23125,6 +25759,8 @@ public Builder mergeBilling(com.google.storage.v2.Bucket.Billing value) { return this; } /** + * + * *
                  * The bucket's billing config.
                  * 
            @@ -23142,6 +25778,8 @@ public Builder clearBilling() { return this; } /** + * + * *
                  * The bucket's billing config.
                  * 
            @@ -23154,6 +25792,8 @@ public com.google.storage.v2.Bucket.Billing.Builder getBillingBuilder() { return getBillingFieldBuilder().getBuilder(); } /** + * + * *
                  * The bucket's billing config.
                  * 
            @@ -23164,11 +25804,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.
                  * 
            @@ -23176,14 +25819,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_; @@ -23191,8 +25837,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
            @@ -23206,12 +25857,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
            @@ -23225,16 +25879,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
            @@ -23263,6 +25922,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
            @@ -23289,6 +25950,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
            @@ -23305,9 +25968,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;
            @@ -23322,6 +25986,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
            @@ -23347,6 +26013,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
            @@ -23367,6 +26035,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
            @@ -23385,11 +26055,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
            @@ -23405,14 +26078,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_;
            @@ -23420,34 +26096,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.
                  * 
            @@ -23468,14 +26157,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 { @@ -23486,6 +26176,8 @@ public Builder setIamConfig( return this; } /** + * + * *
                  * The bucket's IAM config.
                  * 
            @@ -23494,9 +26186,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; @@ -23511,6 +26203,8 @@ public Builder mergeIamConfig(com.google.storage.v2.Bucket.IamConfig value) { return this; } /** + * + * *
                  * The bucket's IAM config.
                  * 
            @@ -23528,6 +26222,8 @@ public Builder clearIamConfig() { return this; } /** + * + * *
                  * The bucket's IAM config.
                  * 
            @@ -23540,6 +26236,8 @@ public com.google.storage.v2.Bucket.IamConfig.Builder getIamConfigBuilder() { return getIamConfigFieldBuilder().getBuilder(); } /** + * + * *
                  * The bucket's IAM config.
                  * 
            @@ -23550,11 +26248,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.
                  * 
            @@ -23562,26 +26263,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 @@ -23589,11 +26296,14 @@ public boolean getSatisfiesPzs() { return satisfiesPzs_; } /** + * + * *
                  * Reserved for future use.
                  * 
            * * bool satisfies_pzs = 25; + * * @param value The satisfiesPzs to set. * @return This builder for chaining. */ @@ -23605,11 +26315,14 @@ public Builder setSatisfiesPzs(boolean value) { return this; } /** + * + * *
                  * Reserved for future use.
                  * 
            * * bool satisfies_pzs = 25; + * * @return This builder for chaining. */ public Builder clearSatisfiesPzs() { @@ -23621,36 +26334,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].
            @@ -23658,7 +26384,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();
            @@ -23672,6 +26399,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].
            @@ -23691,6 +26420,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].
            @@ -23698,11 +26429,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;
            @@ -23717,6 +26450,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].
            @@ -23735,6 +26470,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].
            @@ -23742,12 +26479,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].
            @@ -23755,15 +26495,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].
            @@ -23772,14 +26516,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_;
            @@ -23787,36 +26534,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.
            @@ -23838,6 +26598,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.
            @@ -23845,8 +26607,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 {
            @@ -23857,6 +26618,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.
            @@ -23866,9 +26629,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;
            @@ -23883,6 +26646,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.
            @@ -23901,6 +26666,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.
            @@ -23914,6 +26681,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.
            @@ -23925,11 +26694,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.
            @@ -23938,14 +26710,17 @@ 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_;
            @@ -23953,47 +26728,67 @@ public com.google.storage.v2.Bucket.AutoclassOrBuilder getAutoclassOrBuilder() {
             
                 private com.google.storage.v2.Bucket.HierarchicalNamespace hierarchicalNamespace_;
                 private com.google.protobuf.SingleFieldBuilderV3<
            -        com.google.storage.v2.Bucket.HierarchicalNamespace, com.google.storage.v2.Bucket.HierarchicalNamespace.Builder, com.google.storage.v2.Bucket.HierarchicalNamespaceOrBuilder> hierarchicalNamespaceBuilder_;
            +            com.google.storage.v2.Bucket.HierarchicalNamespace,
            +            com.google.storage.v2.Bucket.HierarchicalNamespace.Builder,
            +            com.google.storage.v2.Bucket.HierarchicalNamespaceOrBuilder>
            +        hierarchicalNamespaceBuilder_;
                 /**
            +     *
            +     *
                  * 
                  * Optional. The bucket's hierarchical namespace configuration. If there is no
                  * configuration, the hierarchical namespace feature will be disabled and have
                  * no effect on the bucket.
                  * 
            * - * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the hierarchicalNamespace field is set. */ public boolean hasHierarchicalNamespace() { return ((bitField0_ & 0x10000000) != 0); } /** + * + * *
                  * Optional. The bucket's hierarchical namespace configuration. If there is no
                  * configuration, the hierarchical namespace feature will be disabled and have
                  * no effect on the bucket.
                  * 
            * - * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The hierarchicalNamespace. */ public com.google.storage.v2.Bucket.HierarchicalNamespace getHierarchicalNamespace() { if (hierarchicalNamespaceBuilder_ == null) { - return hierarchicalNamespace_ == null ? com.google.storage.v2.Bucket.HierarchicalNamespace.getDefaultInstance() : hierarchicalNamespace_; + return hierarchicalNamespace_ == null + ? com.google.storage.v2.Bucket.HierarchicalNamespace.getDefaultInstance() + : hierarchicalNamespace_; } else { return hierarchicalNamespaceBuilder_.getMessage(); } } /** + * + * *
                  * Optional. The bucket's hierarchical namespace configuration. If there is no
                  * configuration, the hierarchical namespace feature will be disabled and have
                  * no effect on the bucket.
                  * 
            * - * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setHierarchicalNamespace(com.google.storage.v2.Bucket.HierarchicalNamespace value) { + public Builder setHierarchicalNamespace( + com.google.storage.v2.Bucket.HierarchicalNamespace value) { if (hierarchicalNamespaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -24007,13 +26802,17 @@ public Builder setHierarchicalNamespace(com.google.storage.v2.Bucket.Hierarchica return this; } /** + * + * *
                  * Optional. The bucket's hierarchical namespace configuration. If there is no
                  * configuration, the hierarchical namespace feature will be disabled and have
                  * no effect on the bucket.
                  * 
            * - * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setHierarchicalNamespace( com.google.storage.v2.Bucket.HierarchicalNamespace.Builder builderForValue) { @@ -24027,19 +26826,25 @@ public Builder setHierarchicalNamespace( return this; } /** + * + * *
                  * Optional. The bucket's hierarchical namespace configuration. If there is no
                  * configuration, the hierarchical namespace feature will be disabled and have
                  * no effect on the bucket.
                  * 
            * - * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeHierarchicalNamespace(com.google.storage.v2.Bucket.HierarchicalNamespace value) { + public Builder mergeHierarchicalNamespace( + com.google.storage.v2.Bucket.HierarchicalNamespace value) { if (hierarchicalNamespaceBuilder_ == null) { - if (((bitField0_ & 0x10000000) != 0) && - hierarchicalNamespace_ != null && - hierarchicalNamespace_ != com.google.storage.v2.Bucket.HierarchicalNamespace.getDefaultInstance()) { + if (((bitField0_ & 0x10000000) != 0) + && hierarchicalNamespace_ != null + && hierarchicalNamespace_ + != com.google.storage.v2.Bucket.HierarchicalNamespace.getDefaultInstance()) { getHierarchicalNamespaceBuilder().mergeFrom(value); } else { hierarchicalNamespace_ = value; @@ -24054,13 +26859,17 @@ public Builder mergeHierarchicalNamespace(com.google.storage.v2.Bucket.Hierarchi return this; } /** + * + * *
                  * Optional. The bucket's hierarchical namespace configuration. If there is no
                  * configuration, the hierarchical namespace feature will be disabled and have
                  * no effect on the bucket.
                  * 
            * - * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearHierarchicalNamespace() { bitField0_ = (bitField0_ & ~0x10000000); @@ -24073,54 +26882,72 @@ public Builder clearHierarchicalNamespace() { return this; } /** + * + * *
                  * Optional. The bucket's hierarchical namespace configuration. If there is no
                  * configuration, the hierarchical namespace feature will be disabled and have
                  * no effect on the bucket.
                  * 
            * - * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.storage.v2.Bucket.HierarchicalNamespace.Builder getHierarchicalNamespaceBuilder() { + public com.google.storage.v2.Bucket.HierarchicalNamespace.Builder + getHierarchicalNamespaceBuilder() { bitField0_ |= 0x10000000; onChanged(); return getHierarchicalNamespaceFieldBuilder().getBuilder(); } /** + * + * *
                  * Optional. The bucket's hierarchical namespace configuration. If there is no
                  * configuration, the hierarchical namespace feature will be disabled and have
                  * no effect on the bucket.
                  * 
            * - * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.storage.v2.Bucket.HierarchicalNamespaceOrBuilder getHierarchicalNamespaceOrBuilder() { + public com.google.storage.v2.Bucket.HierarchicalNamespaceOrBuilder + getHierarchicalNamespaceOrBuilder() { if (hierarchicalNamespaceBuilder_ != null) { return hierarchicalNamespaceBuilder_.getMessageOrBuilder(); } else { - return hierarchicalNamespace_ == null ? - com.google.storage.v2.Bucket.HierarchicalNamespace.getDefaultInstance() : hierarchicalNamespace_; + return hierarchicalNamespace_ == null + ? com.google.storage.v2.Bucket.HierarchicalNamespace.getDefaultInstance() + : hierarchicalNamespace_; } } /** + * + * *
                  * Optional. The bucket's hierarchical namespace configuration. If there is no
                  * configuration, the hierarchical namespace feature will be disabled and have
                  * no effect on the bucket.
                  * 
            * - * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.HierarchicalNamespace, com.google.storage.v2.Bucket.HierarchicalNamespace.Builder, com.google.storage.v2.Bucket.HierarchicalNamespaceOrBuilder> + com.google.storage.v2.Bucket.HierarchicalNamespace, + com.google.storage.v2.Bucket.HierarchicalNamespace.Builder, + com.google.storage.v2.Bucket.HierarchicalNamespaceOrBuilder> getHierarchicalNamespaceFieldBuilder() { if (hierarchicalNamespaceBuilder_ == null) { - hierarchicalNamespaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.HierarchicalNamespace, com.google.storage.v2.Bucket.HierarchicalNamespace.Builder, com.google.storage.v2.Bucket.HierarchicalNamespaceOrBuilder>( - getHierarchicalNamespace(), - getParentForChildren(), - isClean()); + hierarchicalNamespaceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.Bucket.HierarchicalNamespace, + com.google.storage.v2.Bucket.HierarchicalNamespace.Builder, + com.google.storage.v2.Bucket.HierarchicalNamespaceOrBuilder>( + getHierarchicalNamespace(), getParentForChildren(), isClean()); hierarchicalNamespace_ = null; } return hierarchicalNamespaceBuilder_; @@ -24128,42 +26955,61 @@ public com.google.storage.v2.Bucket.HierarchicalNamespaceOrBuilder getHierarchic private com.google.storage.v2.Bucket.SoftDeletePolicy softDeletePolicy_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.SoftDeletePolicy, com.google.storage.v2.Bucket.SoftDeletePolicy.Builder, com.google.storage.v2.Bucket.SoftDeletePolicyOrBuilder> softDeletePolicyBuilder_; + com.google.storage.v2.Bucket.SoftDeletePolicy, + com.google.storage.v2.Bucket.SoftDeletePolicy.Builder, + com.google.storage.v2.Bucket.SoftDeletePolicyOrBuilder> + softDeletePolicyBuilder_; /** + * + * *
                  * Optional. The bucket's soft delete policy. The soft delete policy prevents
                  * soft-deleted objects from being permanently deleted.
                  * 
            * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the softDeletePolicy field is set. */ public boolean hasSoftDeletePolicy() { return ((bitField0_ & 0x20000000) != 0); } /** + * + * *
                  * Optional. The bucket's soft delete policy. The soft delete policy prevents
                  * soft-deleted objects from being permanently deleted.
                  * 
            * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The softDeletePolicy. */ public com.google.storage.v2.Bucket.SoftDeletePolicy getSoftDeletePolicy() { if (softDeletePolicyBuilder_ == null) { - return softDeletePolicy_ == null ? com.google.storage.v2.Bucket.SoftDeletePolicy.getDefaultInstance() : softDeletePolicy_; + return softDeletePolicy_ == null + ? com.google.storage.v2.Bucket.SoftDeletePolicy.getDefaultInstance() + : softDeletePolicy_; } else { return softDeletePolicyBuilder_.getMessage(); } } /** + * + * *
                  * Optional. The bucket's soft delete policy. The soft delete policy prevents
                  * soft-deleted objects from being permanently deleted.
                  * 
            * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSoftDeletePolicy(com.google.storage.v2.Bucket.SoftDeletePolicy value) { if (softDeletePolicyBuilder_ == null) { @@ -24179,12 +27025,16 @@ public Builder setSoftDeletePolicy(com.google.storage.v2.Bucket.SoftDeletePolicy return this; } /** + * + * *
                  * Optional. The bucket's soft delete policy. The soft delete policy prevents
                  * soft-deleted objects from being permanently deleted.
                  * 
            * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSoftDeletePolicy( com.google.storage.v2.Bucket.SoftDeletePolicy.Builder builderForValue) { @@ -24198,18 +27048,23 @@ public Builder setSoftDeletePolicy( return this; } /** + * + * *
                  * Optional. The bucket's soft delete policy. The soft delete policy prevents
                  * soft-deleted objects from being permanently deleted.
                  * 
            * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeSoftDeletePolicy(com.google.storage.v2.Bucket.SoftDeletePolicy value) { if (softDeletePolicyBuilder_ == null) { - if (((bitField0_ & 0x20000000) != 0) && - softDeletePolicy_ != null && - softDeletePolicy_ != com.google.storage.v2.Bucket.SoftDeletePolicy.getDefaultInstance()) { + if (((bitField0_ & 0x20000000) != 0) + && softDeletePolicy_ != null + && softDeletePolicy_ + != com.google.storage.v2.Bucket.SoftDeletePolicy.getDefaultInstance()) { getSoftDeletePolicyBuilder().mergeFrom(value); } else { softDeletePolicy_ = value; @@ -24224,12 +27079,16 @@ public Builder mergeSoftDeletePolicy(com.google.storage.v2.Bucket.SoftDeletePoli return this; } /** + * + * *
                  * Optional. The bucket's soft delete policy. The soft delete policy prevents
                  * soft-deleted objects from being permanently deleted.
                  * 
            * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSoftDeletePolicy() { bitField0_ = (bitField0_ & ~0x20000000); @@ -24242,12 +27101,16 @@ public Builder clearSoftDeletePolicy() { return this; } /** + * + * *
                  * Optional. The bucket's soft delete policy. The soft delete policy prevents
                  * soft-deleted objects from being permanently deleted.
                  * 
            * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.storage.v2.Bucket.SoftDeletePolicy.Builder getSoftDeletePolicyBuilder() { bitField0_ |= 0x20000000; @@ -24255,45 +27118,57 @@ public com.google.storage.v2.Bucket.SoftDeletePolicy.Builder getSoftDeletePolicy return getSoftDeletePolicyFieldBuilder().getBuilder(); } /** + * + * *
                  * Optional. The bucket's soft delete policy. The soft delete policy prevents
                  * soft-deleted objects from being permanently deleted.
                  * 
            * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.storage.v2.Bucket.SoftDeletePolicyOrBuilder getSoftDeletePolicyOrBuilder() { if (softDeletePolicyBuilder_ != null) { return softDeletePolicyBuilder_.getMessageOrBuilder(); } else { - return softDeletePolicy_ == null ? - com.google.storage.v2.Bucket.SoftDeletePolicy.getDefaultInstance() : softDeletePolicy_; + return softDeletePolicy_ == null + ? com.google.storage.v2.Bucket.SoftDeletePolicy.getDefaultInstance() + : softDeletePolicy_; } } /** + * + * *
                  * Optional. The bucket's soft delete policy. The soft delete policy prevents
                  * soft-deleted objects from being permanently deleted.
                  * 
            * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.SoftDeletePolicy, com.google.storage.v2.Bucket.SoftDeletePolicy.Builder, com.google.storage.v2.Bucket.SoftDeletePolicyOrBuilder> + com.google.storage.v2.Bucket.SoftDeletePolicy, + com.google.storage.v2.Bucket.SoftDeletePolicy.Builder, + com.google.storage.v2.Bucket.SoftDeletePolicyOrBuilder> getSoftDeletePolicyFieldBuilder() { if (softDeletePolicyBuilder_ == null) { - softDeletePolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Bucket.SoftDeletePolicy, com.google.storage.v2.Bucket.SoftDeletePolicy.Builder, com.google.storage.v2.Bucket.SoftDeletePolicyOrBuilder>( - getSoftDeletePolicy(), - getParentForChildren(), - isClean()); + softDeletePolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.Bucket.SoftDeletePolicy, + com.google.storage.v2.Bucket.SoftDeletePolicy.Builder, + com.google.storage.v2.Bucket.SoftDeletePolicyOrBuilder>( + getSoftDeletePolicy(), getParentForChildren(), isClean()); softDeletePolicy_ = null; } return softDeletePolicyBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -24303,12 +27178,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(); } @@ -24317,27 +27192,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; @@ -24352,6 +27227,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 57eddf3cca..b2c6ce1a8f 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,21 +20,24 @@ 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_ = ""; @@ -33,34 +51,39 @@ private BucketAccessControl() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BucketAccessControl(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BucketAccessControl_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_BucketAccessControl_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_BucketAccessControl_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_BucketAccessControl_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.BucketAccessControl.class, com.google.storage.v2.BucketAccessControl.Builder.class); + com.google.storage.v2.BucketAccessControl.class, + com.google.storage.v2.BucketAccessControl.Builder.class); } private int bitField0_; public static final int ROLE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object role_ = ""; /** + * + * *
                * The access permission for the entity.
                * 
            * * string role = 1; + * * @return The role. */ @java.lang.Override @@ -69,29 +92,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 { @@ -100,14 +123,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 @@ -116,29 +143,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 { @@ -147,9 +174,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}`
            @@ -172,6 +202,7 @@ public java.lang.String getId() {
                * 
            * * string entity = 3; + * * @return The entity. */ @java.lang.Override @@ -180,14 +211,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}`
            @@ -210,16 +242,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 { @@ -228,15 +259,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 @@ -245,30 +280,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 { @@ -277,14 +312,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 @@ -293,29 +332,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 { @@ -324,9 +363,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
            @@ -335,6 +377,7 @@ public java.lang.String getEntityId() {
                * 
            * * string etag = 8; + * * @return The etag. */ @java.lang.Override @@ -343,14 +386,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
            @@ -359,16 +403,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 { @@ -377,14 +420,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 @@ -393,29 +440,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 { @@ -424,14 +471,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 @@ -440,29 +491,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 { @@ -473,11 +524,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 @@ -485,18 +539,25 @@ public boolean hasProjectTeam() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * The project team associated with the entity, if any.
                * 
            * * .google.storage.v2.ProjectTeam project_team = 7; + * * @return The projectTeam. */ @java.lang.Override public com.google.storage.v2.ProjectTeam getProjectTeam() { - return projectTeam_ == null ? com.google.storage.v2.ProjectTeam.getDefaultInstance() : projectTeam_; + return projectTeam_ == null + ? com.google.storage.v2.ProjectTeam.getDefaultInstance() + : projectTeam_; } /** + * + * *
                * The project team associated with the entity, if any.
                * 
            @@ -505,10 +566,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; @@ -520,8 +584,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_); } @@ -577,8 +640,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, domain_); } if (((bitField0_ & 0x00000001) != 0)) { - 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_); @@ -594,33 +656,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; @@ -658,120 +712,127 @@ 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() @@ -779,17 +840,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) { getProjectTeamFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -811,9 +872,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 @@ -832,8 +893,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; } @@ -866,9 +930,8 @@ private void buildPartial0(com.google.storage.v2.BucketAccessControl result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000100) != 0)) { - result.projectTeam_ = projectTeamBuilder_ == null - ? projectTeam_ - : projectTeamBuilder_.build(); + result.projectTeam_ = + projectTeamBuilder_ == null ? projectTeam_ : projectTeamBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -878,38 +941,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; @@ -987,59 +1051,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) { @@ -1049,22 +1121,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; @@ -1073,20 +1148,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 { @@ -1094,28 +1170,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() { @@ -1125,17 +1208,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; @@ -1145,18 +1232,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; @@ -1165,20 +1254,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 { @@ -1186,28 +1276,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() { @@ -1217,17 +1314,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; @@ -1237,6 +1338,8 @@ public Builder setIdBytes( private java.lang.Object entity_ = ""; /** + * + * *
                  * The entity holding the permission, in one of the following forms:
                  * * `user-{userid}`
            @@ -1259,13 +1362,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; @@ -1274,6 +1377,8 @@ public java.lang.String getEntity() { } } /** + * + * *
                  * The entity holding the permission, in one of the following forms:
                  * * `user-{userid}`
            @@ -1296,15 +1401,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 { @@ -1312,6 +1416,8 @@ public java.lang.String getEntity() { } } /** + * + * *
                  * The entity holding the permission, in one of the following forms:
                  * * `user-{userid}`
            @@ -1334,18 +1440,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}`
            @@ -1368,6 +1478,7 @@ public Builder setEntity(
                  * 
            * * string entity = 3; + * * @return This builder for chaining. */ public Builder clearEntity() { @@ -1377,6 +1488,8 @@ public Builder clearEntity() { return this; } /** + * + * *
                  * The entity holding the permission, in one of the following forms:
                  * * `user-{userid}`
            @@ -1399,12 +1512,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; @@ -1414,19 +1529,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; @@ -1435,21 +1552,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 { @@ -1457,30 +1575,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() { @@ -1490,18 +1615,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; @@ -1511,18 +1640,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; @@ -1531,20 +1662,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 { @@ -1552,28 +1684,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() { @@ -1583,17 +1722,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; @@ -1603,6 +1746,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
            @@ -1611,13 +1756,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; @@ -1626,6 +1771,8 @@ public java.lang.String getEtag() { } } /** + * + * *
                  * The etag of the BucketAccessControl.
                  * If included in the metadata of an update or delete request message, the
            @@ -1634,15 +1781,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 { @@ -1650,6 +1796,8 @@ public java.lang.String getEtag() { } } /** + * + * *
                  * The etag of the BucketAccessControl.
                  * If included in the metadata of an update or delete request message, the
            @@ -1658,18 +1806,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
            @@ -1678,6 +1830,7 @@ public Builder setEtag(
                  * 
            * * string etag = 8; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -1687,6 +1840,8 @@ public Builder clearEtag() { return this; } /** + * + * *
                  * The etag of the BucketAccessControl.
                  * If included in the metadata of an update or delete request message, the
            @@ -1695,12 +1850,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; @@ -1710,18 +1867,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; @@ -1730,20 +1889,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 { @@ -1751,28 +1911,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() { @@ -1782,17 +1949,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; @@ -1802,18 +1973,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; @@ -1822,20 +1995,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 { @@ -1843,28 +2017,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() { @@ -1874,17 +2055,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; @@ -1894,34 +2079,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.
                  * 
            @@ -1942,14 +2140,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 { @@ -1960,6 +2159,8 @@ public Builder setProjectTeam( return this; } /** + * + * *
                  * The project team associated with the entity, if any.
                  * 
            @@ -1968,9 +2169,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; @@ -1985,6 +2186,8 @@ public Builder mergeProjectTeam(com.google.storage.v2.ProjectTeam value) { return this; } /** + * + * *
                  * The project team associated with the entity, if any.
                  * 
            @@ -2002,6 +2205,8 @@ public Builder clearProjectTeam() { return this; } /** + * + * *
                  * The project team associated with the entity, if any.
                  * 
            @@ -2014,6 +2219,8 @@ public com.google.storage.v2.ProjectTeam.Builder getProjectTeamBuilder() { return getProjectTeamFieldBuilder().getBuilder(); } /** + * + * *
                  * The project team associated with the entity, if any.
                  * 
            @@ -2024,11 +2231,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.
                  * 
            @@ -2036,21 +2246,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); } @@ -2060,12 +2273,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(); } @@ -2074,27 +2287,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; @@ -2109,6 +2322,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 a8ecae1f0a..2c2582831a 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,54 +1,82 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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}`
            @@ -71,10 +99,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}`
            @@ -97,54 +128,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
            @@ -153,10 +196,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
            @@ -165,70 +211,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 86% 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 c26adfb28e..d404726a3b 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,36 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 package com.google.storage.v2; -public interface BucketOrBuilder extends +public interface BucketOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.storage.v2.Bucket) com.google.protobuf.MessageOrBuilder { /** + * + * *
                * Immutable. The name of the bucket.
                * Format: `projects/{project}/buckets/{bucket}`
                * 
            * * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
                * Immutable. The name of the bucket.
                * Format: `projects/{project}/buckets/{bucket}`
                * 
            * * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
                * Output only. The user-chosen part of the bucket name. The `{bucket}`
                * portion of the `name` field. For globally unique buckets, this is equal to
            @@ -38,10 +61,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
            @@ -49,12 +75,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
            @@ -62,10 +90,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
            @@ -73,46 +104,60 @@ 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.
                * 
            * * 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`.
            @@ -123,10 +168,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`.
            @@ -137,34 +185,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
            @@ -175,10 +230,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
            @@ -189,12 +247,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
            @@ -205,10 +265,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
            @@ -219,12 +282,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,
            @@ -233,9 +298,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,
            @@ -246,6 +312,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,
            @@ -256,6 +324,8 @@ public interface BucketOrBuilder extends
                */
               int getAclCount();
               /**
            +   *
            +   *
                * 
                * Access controls on the bucket.
                * If iam_config.uniform_bucket_level_access is enabled on this bucket,
            @@ -264,9 +334,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,
            @@ -275,10 +347,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,
            @@ -287,9 +360,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,
            @@ -300,6 +374,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,
            @@ -310,6 +386,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,
            @@ -318,9 +396,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,
            @@ -329,10 +409,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]
            @@ -340,10 +421,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]
            @@ -351,10 +435,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]
            @@ -366,33 +453,46 @@ com.google.storage.v2.ObjectAccessControlOrBuilder getDefaultObjectAclOrBuilder(
               com.google.storage.v2.Bucket.LifecycleOrBuilder getLifecycleOrBuilder();
             
               /**
            +   *
            +   *
                * 
                * Output only. The creation time of the bucket.
                * 
            * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
                * Output only. The creation time of the bucket.
                * 
            * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
                * Output only. The creation time of the bucket.
                * 
            * - * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
                * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
                * (CORS) config.
            @@ -400,9 +500,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.
            @@ -412,6 +513,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.
            @@ -421,6 +524,8 @@ com.google.storage.v2.ObjectAccessControlOrBuilder getDefaultObjectAclOrBuilder(
                */
               int getCorsCount();
               /**
            +   *
            +   *
                * 
                * The bucket's [https://www.w3.org/TR/cors/][Cross-Origin Resource Sharing]
                * (CORS) config.
            @@ -428,9 +533,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.
            @@ -438,37 +544,49 @@ 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.
                * 
            * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
                * Output only. The modification time of the bucket.
                * 
            * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
                * Output only. The modification time of the bucket.
                * 
            * - * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
                * The default value for event-based hold on newly created objects in this
                * bucket.  Event-based hold is a way to retain objects indefinitely until an
            @@ -486,11 +604,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.
                * 
            @@ -499,30 +620,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.
                * 
            @@ -530,21 +652,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
            @@ -553,10 +678,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
            @@ -565,10 +693,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
            @@ -581,24 +712,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.
                * 
            @@ -608,26 +747,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.
            @@ -638,26 +785,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.
            @@ -668,24 +823,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.
                * 
            @@ -695,24 +858,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.
                * 
            @@ -722,6 +893,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
            @@ -735,10 +908,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
            @@ -752,10 +928,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
            @@ -773,24 +952,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.
                * 
            @@ -800,36 +987,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].
            @@ -840,26 +1038,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.
            @@ -870,65 +1076,93 @@ java.lang.String getLabelsOrThrow(
               com.google.storage.v2.Bucket.AutoclassOrBuilder getAutoclassOrBuilder();
             
               /**
            +   *
            +   *
                * 
                * Optional. The bucket's hierarchical namespace configuration. If there is no
                * configuration, the hierarchical namespace feature will be disabled and have
                * no effect on the bucket.
                * 
            * - * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the hierarchicalNamespace field is set. */ boolean hasHierarchicalNamespace(); /** + * + * *
                * Optional. The bucket's hierarchical namespace configuration. If there is no
                * configuration, the hierarchical namespace feature will be disabled and have
                * no effect on the bucket.
                * 
            * - * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The hierarchicalNamespace. */ com.google.storage.v2.Bucket.HierarchicalNamespace getHierarchicalNamespace(); /** + * + * *
                * Optional. The bucket's hierarchical namespace configuration. If there is no
                * configuration, the hierarchical namespace feature will be disabled and have
                * no effect on the bucket.
                * 
            * - * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.storage.v2.Bucket.HierarchicalNamespace hierarchical_namespace = 32 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.storage.v2.Bucket.HierarchicalNamespaceOrBuilder getHierarchicalNamespaceOrBuilder(); /** + * + * *
                * Optional. The bucket's soft delete policy. The soft delete policy prevents
                * soft-deleted objects from being permanently deleted.
                * 
            * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the softDeletePolicy field is set. */ boolean hasSoftDeletePolicy(); /** + * + * *
                * Optional. The bucket's soft delete policy. The soft delete policy prevents
                * soft-deleted objects from being permanently deleted.
                * 
            * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The softDeletePolicy. */ com.google.storage.v2.Bucket.SoftDeletePolicy getSoftDeletePolicy(); /** + * + * *
                * Optional. The bucket's soft delete policy. The soft delete policy prevents
                * soft-deleted objects from being permanently deleted.
                * 
            * - * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.storage.v2.Bucket.SoftDeletePolicy soft_delete_policy = 31 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.storage.v2.Bucket.SoftDeletePolicyOrBuilder getSoftDeletePolicyOrBuilder(); } diff --git a/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 72b8b9541f..665a6bd9e7 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,6 +20,8 @@ package com.google.storage.v2; /** + * + * *
              * Message for canceling an in-progress resumable upload.
              * `upload_id` **must** be set.
            @@ -12,49 +29,55 @@
              *
              * Protobuf type {@code google.storage.v2.CancelResumableWriteRequest}
              */
            -public final class CancelResumableWriteRequest extends
            -    com.google.protobuf.GeneratedMessageV3 implements
            +public final class CancelResumableWriteRequest extends com.google.protobuf.GeneratedMessageV3
            +    implements
                 // @@protoc_insertion_point(message_implements:google.storage.v2.CancelResumableWriteRequest)
                 CancelResumableWriteRequestOrBuilder {
            -private static final long serialVersionUID = 0L;
            +  private static final long serialVersionUID = 0L;
               // Use CancelResumableWriteRequest.newBuilder() to construct.
               private CancelResumableWriteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                 super(builder);
               }
            +
               private CancelResumableWriteRequest() {
                 uploadId_ = "";
               }
             
               @java.lang.Override
               @SuppressWarnings({"unused"})
            -  protected java.lang.Object newInstance(
            -      UnusedPrivateParameter unused) {
            +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                 return new CancelResumableWriteRequest();
               }
             
            -  public static final com.google.protobuf.Descriptors.Descriptor
            -      getDescriptor() {
            -    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CancelResumableWriteRequest_descriptor;
            +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            +    return com.google.storage.v2.StorageProto
            +        .internal_static_google_storage_v2_CancelResumableWriteRequest_descriptor;
               }
             
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
            -    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CancelResumableWriteRequest_fieldAccessorTable
            +    return com.google.storage.v2.StorageProto
            +        .internal_static_google_storage_v2_CancelResumableWriteRequest_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
            -            com.google.storage.v2.CancelResumableWriteRequest.class, com.google.storage.v2.CancelResumableWriteRequest.Builder.class);
            +            com.google.storage.v2.CancelResumableWriteRequest.class,
            +            com.google.storage.v2.CancelResumableWriteRequest.Builder.class);
               }
             
               public static final int UPLOAD_ID_FIELD_NUMBER = 1;
            +
               @SuppressWarnings("serial")
               private volatile java.lang.Object uploadId_ = "";
               /**
            +   *
            +   *
                * 
                * Required. The upload_id of the resumable upload to cancel. This should be
                * copied from the `upload_id` field of `StartResumableWriteResponse`.
                * 
            * * string upload_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The uploadId. */ @java.lang.Override @@ -63,30 +86,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 { @@ -95,6 +118,7 @@ public java.lang.String getUploadId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +130,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_); } @@ -131,15 +154,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; } @@ -159,98 +182,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.
            @@ -258,33 +286,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();
            @@ -294,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_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
            @@ -315,8 +342,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;
                 }
            @@ -332,38 +362,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;
            @@ -371,7 +402,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;
            @@ -403,17 +435,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 +457,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; @@ -448,21 +485,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 { @@ -470,30 +508,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() { @@ -503,27 +548,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); } @@ -533,12 +582,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(); } @@ -547,27 +596,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; @@ -582,6 +631,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 56% 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 71c847c0da..7f147ed6b6 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,32 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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 b97ddd0fc8..520b8eafae 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,6 +20,8 @@ package com.google.storage.v2; /** + * + * *
              * Empty response message for canceling an in-progress resumable upload, will be
              * extended as needed.
            @@ -12,39 +29,41 @@
              *
              * Protobuf type {@code google.storage.v2.CancelResumableWriteResponse}
              */
            -public final class CancelResumableWriteResponse extends
            -    com.google.protobuf.GeneratedMessageV3 implements
            +public final class CancelResumableWriteResponse extends com.google.protobuf.GeneratedMessageV3
            +    implements
                 // @@protoc_insertion_point(message_implements:google.storage.v2.CancelResumableWriteResponse)
                 CancelResumableWriteResponseOrBuilder {
            -private static final long serialVersionUID = 0L;
            +  private static final long serialVersionUID = 0L;
               // Use CancelResumableWriteResponse.newBuilder() to construct.
               private CancelResumableWriteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                 super(builder);
               }
            -  private CancelResumableWriteResponse() {
            -  }
            +
            +  private CancelResumableWriteResponse() {}
             
               @java.lang.Override
               @SuppressWarnings({"unused"})
            -  protected java.lang.Object newInstance(
            -      UnusedPrivateParameter unused) {
            +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                 return new CancelResumableWriteResponse();
               }
             
            -  public static final com.google.protobuf.Descriptors.Descriptor
            -      getDescriptor() {
            -    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CancelResumableWriteResponse_descriptor;
            +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            +    return com.google.storage.v2.StorageProto
            +        .internal_static_google_storage_v2_CancelResumableWriteResponse_descriptor;
               }
             
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
            -    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CancelResumableWriteResponse_fieldAccessorTable
            +    return com.google.storage.v2.StorageProto
            +        .internal_static_google_storage_v2_CancelResumableWriteResponse_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
            -            com.google.storage.v2.CancelResumableWriteResponse.class, com.google.storage.v2.CancelResumableWriteResponse.Builder.class);
            +            com.google.storage.v2.CancelResumableWriteResponse.class,
            +            com.google.storage.v2.CancelResumableWriteResponse.Builder.class);
               }
             
               private byte memoizedIsInitialized = -1;
            +
               @java.lang.Override
               public final boolean isInitialized() {
                 byte isInitialized = memoizedIsInitialized;
            @@ -56,8 +75,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);
               }
             
            @@ -75,12 +93,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;
            @@ -99,98 +118,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.
            @@ -198,33 +222,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();
            @@ -232,9 +255,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
            @@ -253,7 +276,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;
                 }
            @@ -262,38 +286,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;
            @@ -301,7 +326,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;
            @@ -328,12 +354,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) {
            @@ -343,9 +370,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);
                 }
             
            @@ -355,12 +382,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();
               }
            @@ -369,27 +396,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;
            @@ -404,6 +431,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..ba03212461
            --- /dev/null
            +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CancelResumableWriteResponseOrBuilder.java
            @@ -0,0 +1,25 @@
            +/*
            + * Copyright 2024 Google LLC
            + *
            + * Licensed under the Apache License, Version 2.0 (the "License");
            + * you may not use this file except in compliance with the License.
            + * You may obtain a copy of the License at
            + *
            + *     https://www.apache.org/licenses/LICENSE-2.0
            + *
            + * Unless required by applicable law or agreed to in writing, software
            + * distributed under the License is distributed on an "AS IS" BASIS,
            + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            + * See the License for the specific language governing permissions and
            + * limitations under the License.
            + */
            +// Generated by the protocol buffer compiler.  DO NOT EDIT!
            +// source: google/storage/v2/storage.proto
            +
            +// Protobuf Java Version: 3.25.3
            +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 ea1660fa48..824ba38894 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,3 +1,18 @@
            +/*
            + * Copyright 2024 Google LLC
            + *
            + * Licensed under the Apache License, Version 2.0 (the "License");
            + * you may not use this file except in compliance with the License.
            + * You may obtain a copy of the License at
            + *
            + *     https://www.apache.org/licenses/LICENSE-2.0
            + *
            + * Unless required by applicable law or agreed to in writing, software
            + * distributed under the License is distributed on an "AS IS" BASIS,
            + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            + * See the License for the specific language governing permissions and
            + * limitations under the License.
            + */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
            @@ -5,6 +20,8 @@
             package com.google.storage.v2;
             
             /**
            + *
            + *
              * 
              * Message used to convey content being read or written, along with an optional
              * checksum.
            @@ -12,48 +29,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();
               }
             
            -  public static final com.google.protobuf.Descriptors.Descriptor
            -      getDescriptor() {
            -    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ChecksummedData_descriptor;
            +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            +    return com.google.storage.v2.StorageProto
            +        .internal_static_google_storage_v2_ChecksummedData_descriptor;
               }
             
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
            -    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ChecksummedData_fieldAccessorTable
            +    return com.google.storage.v2.StorageProto
            +        .internal_static_google_storage_v2_ChecksummedData_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
            -            com.google.storage.v2.ChecksummedData.class, com.google.storage.v2.ChecksummedData.Builder.class);
            +            com.google.storage.v2.ChecksummedData.class,
            +            com.google.storage.v2.ChecksummedData.Builder.class);
               }
             
               private int bitField0_;
               public static final int CONTENT_FIELD_NUMBER = 1;
               private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY;
               /**
            +   *
            +   *
                * 
                * Optional. The data.
                * 
            * * bytes content = 1 [ctype = CORD, (.google.api.field_behavior) = OPTIONAL]; + * * @return The content. */ @java.lang.Override @@ -64,11 +86,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 @@ -76,11 +101,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 @@ -89,6 +117,7 @@ public int getCrc32C() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -100,8 +129,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_); } @@ -118,12 +146,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; @@ -133,19 +159,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; @@ -169,99 +193,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.
            @@ -269,33 +297,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();
            @@ -306,9 +333,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
            @@ -327,8 +354,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;
                 }
            @@ -350,38 +380,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;
            @@ -422,22 +453,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) {
            @@ -447,15 +481,19 @@ public Builder mergeFrom(
                   } // finally
                   return this;
                 }
            +
                 private int bitField0_;
             
                 private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY;
                 /**
            +     *
            +     *
                  * 
                  * Optional. The data.
                  * 
            * * bytes content = 1 [ctype = CORD, (.google.api.field_behavior) = OPTIONAL]; + * * @return The content. */ @java.lang.Override @@ -463,27 +501,35 @@ public com.google.protobuf.ByteString getContent() { return content_; } /** + * + * *
                  * Optional. The data.
                  * 
            * * bytes content = 1 [ctype = CORD, (.google.api.field_behavior) = OPTIONAL]; + * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } content_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
                  * Optional. The data.
                  * 
            * * bytes content = 1 [ctype = CORD, (.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearContent() { @@ -493,13 +539,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 @@ -507,11 +556,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 @@ -519,11 +571,14 @@ 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. */ @@ -535,11 +590,14 @@ public Builder setCrc32C(int value) { return this; } /** + * + * *
                  * If set, the CRC32C digest of the content field.
                  * 
            * * optional fixed32 crc32c = 2; + * * @return This builder for chaining. */ public Builder clearCrc32C() { @@ -548,9 +606,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); } @@ -560,12 +618,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(); } @@ -574,27 +632,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; @@ -609,6 +667,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 57% 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 bb09ff65b7..d5199d01d6 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,38 +1,63 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 package com.google.storage.v2; -public interface ChecksummedDataOrBuilder extends +public interface ChecksummedDataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.storage.v2.ChecksummedData) com.google.protobuf.MessageOrBuilder { /** + * + * *
                * Optional. The data.
                * 
            * * bytes content = 1 [ctype = CORD, (.google.api.field_behavior) = OPTIONAL]; + * * @return The content. */ com.google.protobuf.ByteString getContent(); /** + * + * *
                * If set, the CRC32C digest of the content field.
                * 
            * * optional fixed32 crc32c = 2; + * * @return Whether the crc32c field is set. */ boolean hasCrc32C(); /** + * + * *
                * If set, the CRC32C digest of the content field.
                * 
            * * optional fixed32 crc32c = 2; + * * @return The crc32c. */ int getCrc32C(); diff --git a/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 85c8d9cf78..52a536ab54 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,21 +20,24 @@ 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; @@ -28,34 +46,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(); } - 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 @@ -64,30 +87,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 { @@ -98,12 +121,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 @@ -112,14 +138,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 @@ -128,6 +158,7 @@ public com.google.protobuf.ByteString getEncryptionKeySha256Bytes() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -139,8 +170,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_); } @@ -163,12 +193,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; @@ -178,19 +206,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -213,132 +239,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(); @@ -350,9 +380,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 @@ -371,8 +401,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; } @@ -394,38 +427,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; @@ -433,7 +467,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; @@ -471,27 +506,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) { @@ -501,23 +540,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; @@ -526,21 +568,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 { @@ -548,30 +591,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() { @@ -581,18 +631,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; @@ -600,14 +654,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 @@ -615,29 +673,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() { @@ -647,14 +713,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 @@ -662,29 +732,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() { @@ -693,9 +771,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); } @@ -705,12 +783,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(); } @@ -719,27 +797,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; @@ -754,6 +832,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 64% 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 e9aa92db74..8232fa50e7 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,53 +1,80 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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 e9d53176aa..c400203b53 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,21 +20,24 @@ 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_ = ""; @@ -28,132 +46,165 @@ private ComposeObjectRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ComposeObjectRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ComposeObjectRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_ComposeObjectRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ComposeObjectRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_ComposeObjectRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ComposeObjectRequest.class, com.google.storage.v2.ComposeObjectRequest.Builder.class); + com.google.storage.v2.ComposeObjectRequest.class, + com.google.storage.v2.ComposeObjectRequest.Builder.class); } - public interface SourceObjectOrBuilder extends + public interface SourceObjectOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.storage.v2.ComposeObjectRequest.SourceObject) com.google.protobuf.MessageOrBuilder { /** + * + * *
                  * Required. The source object's name. All source objects must reside in the
                  * same bucket.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
                  * Required. The source object's name. All source objects must reside in the
                  * same bucket.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
                  * The generation of this object to use as the source.
                  * 
            * * int64 generation = 2; + * * @return The generation. */ long getGeneration(); /** + * + * *
                  * Conditions that must be met for this operation to execute.
                  * 
            * - * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; + * + * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; + * + * * @return Whether the objectPreconditions field is set. */ boolean hasObjectPreconditions(); /** + * + * *
                  * Conditions that must be met for this operation to execute.
                  * 
            * - * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; + * + * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; + * + * * @return The objectPreconditions. */ - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions getObjectPreconditions(); + com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions + getObjectPreconditions(); /** + * + * *
                  * Conditions that must be met for this operation to execute.
                  * 
            * - * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; + * + * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; + * */ - com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditionsOrBuilder getObjectPreconditionsOrBuilder(); + com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditionsOrBuilder + getObjectPreconditionsOrBuilder(); } /** + * + * *
                * Description of a source object for a composition request.
                * 
            * * Protobuf type {@code google.storage.v2.ComposeObjectRequest.SourceObject} */ - public static final class SourceObject extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class SourceObject extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.v2.ComposeObjectRequest.SourceObject) SourceObjectOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SourceObject.newBuilder() to construct. private SourceObject(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SourceObject() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SourceObject(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ComposeObjectRequest.SourceObject.class, com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder.class); + com.google.storage.v2.ComposeObjectRequest.SourceObject.class, + com.google.storage.v2.ComposeObjectRequest.SourceObject.Builder.class); } - public interface ObjectPreconditionsOrBuilder extends + public interface ObjectPreconditionsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions) com.google.protobuf.MessageOrBuilder { /** + * + * *
                    * Only perform the composition if the generation of the source object
                    * that would be used matches this value.  If this value and a generation
            @@ -161,10 +212,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
            @@ -172,53 +226,60 @@ 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(); } - 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
            @@ -226,6 +287,7 @@ protected java.lang.Object newInstance(
                    * 
            * * optional int64 if_generation_match = 1; + * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -233,6 +295,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
            @@ -240,6 +304,7 @@ public boolean hasIfGenerationMatch() {
                    * 
            * * optional int64 if_generation_match = 1; + * * @return The ifGenerationMatch. */ @java.lang.Override @@ -248,6 +313,7 @@ public long getIfGenerationMatch() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -259,8 +325,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(1, ifGenerationMatch_); } @@ -274,8 +339,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; @@ -285,17 +349,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; @@ -310,98 +376,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 @@ -411,39 +489,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(); @@ -453,19 +536,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); } @@ -473,14 +559,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)) { @@ -494,46 +585,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()); } @@ -563,17 +664,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) { @@ -583,10 +686,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
            @@ -594,6 +700,7 @@ public Builder mergeFrom(
                      * 
            * * optional int64 if_generation_match = 1; + * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -601,6 +708,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
            @@ -608,6 +717,7 @@ public boolean hasIfGenerationMatch() {
                      * 
            * * optional int64 if_generation_match = 1; + * * @return The ifGenerationMatch. */ @java.lang.Override @@ -615,6 +725,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
            @@ -622,6 +734,7 @@ public long getIfGenerationMatch() {
                      * 
            * * optional int64 if_generation_match = 1; + * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ @@ -633,6 +746,8 @@ public Builder setIfGenerationMatch(long value) { return this; } /** + * + * *
                      * Only perform the composition if the generation of the source object
                      * that would be used matches this value.  If this value and a generation
            @@ -640,6 +755,7 @@ public Builder setIfGenerationMatch(long value) {
                      * 
            * * optional int64 if_generation_match = 1; + * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -648,6 +764,7 @@ public Builder clearIfGenerationMatch() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -660,41 +777,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; @@ -706,23 +828,27 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions getDefaultInstanceForType() { + public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
                  * Required. The source object's name. All source objects must reside in the
                  * same bucket.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -731,30 +857,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 { @@ -765,11 +891,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 @@ -778,13 +907,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 @@ -792,30 +927,48 @@ public boolean hasObjectPreconditions() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                  * Conditions that must be met for this operation to execute.
                  * 
            * - * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; + * + * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; + * + * * @return The objectPreconditions. */ @java.lang.Override - public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions getObjectPreconditions() { - return objectPreconditions_ == null ? com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.getDefaultInstance() : objectPreconditions_; + public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions + getObjectPreconditions() { + return objectPreconditions_ == null + ? com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions + .getDefaultInstance() + : objectPreconditions_; } /** + * + * *
                  * Conditions that must be met for this operation to execute.
                  * 
            * - * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; + * + * .google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions object_preconditions = 3; + * */ @java.lang.Override - public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditionsOrBuilder getObjectPreconditionsOrBuilder() { - return objectPreconditions_ == null ? com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions.getDefaultInstance() : objectPreconditions_; + public com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditionsOrBuilder + getObjectPreconditionsOrBuilder() { + return objectPreconditions_ == null + ? com.google.storage.v2.ComposeObjectRequest.SourceObject.ObjectPreconditions + .getDefaultInstance() + : objectPreconditions_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -827,8 +980,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_); } @@ -851,12 +1003,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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getObjectPreconditions()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getObjectPreconditions()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -866,21 +1017,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; @@ -896,8 +1045,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(); @@ -908,89 +1056,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 @@ -1000,27 +1153,32 @@ 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() @@ -1028,17 +1186,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) { getObjectPreconditionsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1054,9 +1212,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 @@ -1075,8 +1233,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; } @@ -1091,9 +1252,10 @@ private void buildPartial0(com.google.storage.v2.ComposeObjectRequest.SourceObje } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.objectPreconditions_ = objectPreconditionsBuilder_ == null - ? objectPreconditions_ - : objectPreconditionsBuilder_.build(); + result.objectPreconditions_ = + objectPreconditionsBuilder_ == null + ? objectPreconditions_ + : objectPreconditionsBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -1103,38 +1265,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 +1307,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 +1346,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 +1381,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 +1409,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 +1432,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 +1472,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 +1495,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,11 +1512,14 @@ 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. */ @@ -1341,11 +1531,14 @@ public Builder setGeneration(long value) { return this; } /** + * + * *
                    * The generation of this object to use as the source.
                    * 
            * * int64 generation = 2; + * * @return This builder for chaining. */ public Builder clearGeneration() { @@ -1355,43 +1548,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 +1621,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 +1644,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; @@ -1448,11 +1676,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); @@ -1465,52 +1697,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) { @@ -1523,12 +1777,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(); } @@ -1537,27 +1791,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; @@ -1572,18 +1827,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 @@ -1591,11 +1849,15 @@ 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. */ @java.lang.Override @@ -1603,11 +1865,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() { @@ -1615,9 +1880,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.
                * 
            @@ -1625,10 +1893,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.
                * 
            @@ -1636,11 +1907,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.
                * 
            @@ -1652,6 +1925,8 @@ public int getSourceObjectsCount() { return sourceObjects_.size(); } /** + * + * *
                * The list of source objects that will be concatenated into a single object.
                * 
            @@ -1663,6 +1938,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.
                * 
            @@ -1676,9 +1953,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",
            @@ -1686,6 +1966,7 @@ public com.google.storage.v2.ComposeObjectRequest.SourceObjectOrBuilder getSourc
                * 
            * * string destination_predefined_acl = 9; + * * @return The destinationPredefinedAcl. */ @java.lang.Override @@ -1694,14 +1975,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",
            @@ -1709,16 +1991,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 { @@ -1729,6 +2010,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
            @@ -1736,6 +2019,7 @@ public java.lang.String getDestinationPredefinedAcl() {
                * 
            * * optional int64 if_generation_match = 4; + * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -1743,6 +2027,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
            @@ -1750,6 +2036,7 @@ public boolean hasIfGenerationMatch() {
                * 
            * * optional int64 if_generation_match = 4; + * * @return The ifGenerationMatch. */ @java.lang.Override @@ -1760,12 +2047,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 @@ -1773,12 +2063,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 @@ -1787,9 +2080,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`,
            @@ -1798,6 +2094,7 @@ public long getIfMetagenerationMatch() {
                * 
            * * string kms_key = 6 [(.google.api.resource_reference) = { ... } + * * @return The kmsKey. */ @java.lang.Override @@ -1806,14 +2103,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`,
            @@ -1822,16 +2120,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 { @@ -1842,11 +2139,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 @@ -1854,18 +2154,25 @@ public boolean hasCommonObjectRequestParams() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 7; + * * @return The commonObjectRequestParams. */ @java.lang.Override public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { - return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; + return commonObjectRequestParams_ == null + ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() + : commonObjectRequestParams_; } /** + * + * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            @@ -1873,19 +2180,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 @@ -1893,19 +2206,26 @@ public boolean hasObjectChecksums() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
                * The checksums of the complete object. This will be validated against the
                * combined checksums of the component objects.
                * 
            * * .google.storage.v2.ObjectChecksums object_checksums = 10; + * * @return The objectChecksums. */ @java.lang.Override public com.google.storage.v2.ObjectChecksums getObjectChecksums() { - return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_; + return objectChecksums_ == null + ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() + : objectChecksums_; } /** + * + * *
                * The checksums of the complete object. This will be validated against the
                * combined checksums of the component objects.
            @@ -1915,10 +2235,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;
            @@ -1930,8 +2253,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.writeMessage(1, getDestination());
                 }
            @@ -1966,34 +2288,31 @@ public int getSerializedSize() {
             
                 size = 0;
                 if (((bitField0_ & 0x00000001) != 0)) {
            -      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_ & 0x00000002) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream
            -        .computeInt64Size(4, ifGenerationMatch_);
            +      size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ifGenerationMatch_);
                 }
                 if (((bitField0_ & 0x00000004) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream
            -        .computeInt64Size(5, 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 (((bitField0_ & 0x00000008) != 0)) {
            -      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 (((bitField0_ & 0x00000010) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream
            -        .computeMessageSize(10, getObjectChecksums());
            +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getObjectChecksums());
                 }
                 size += getUnknownFields().getSerializedSize();
                 memoizedSize = size;
            @@ -2003,43 +2322,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;
            @@ -2064,13 +2377,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();
            @@ -2087,120 +2398,127 @@ 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() @@ -2208,20 +2526,20 @@ 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) { getDestinationFieldBuilder(); getSourceObjectsFieldBuilder(); getCommonObjectRequestParamsFieldBuilder(); getObjectChecksumsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -2256,9 +2574,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 @@ -2277,9 +2595,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; } @@ -2300,9 +2621,8 @@ private void buildPartial0(com.google.storage.v2.ComposeObjectRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.destination_ = destinationBuilder_ == null - ? destination_ - : destinationBuilder_.build(); + result.destination_ = + destinationBuilder_ == null ? destination_ : destinationBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -2320,15 +2640,15 @@ 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(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.objectChecksums_ = objectChecksumsBuilder_ == null - ? objectChecksums_ - : objectChecksumsBuilder_.build(); + result.objectChecksums_ = + objectChecksumsBuilder_ == null ? objectChecksums_ : objectChecksumsBuilder_.build(); to_bitField0_ |= 0x00000010; } result.bitField0_ |= to_bitField0_; @@ -2338,38 +2658,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; @@ -2399,9 +2720,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_); } @@ -2455,66 +2777,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) { @@ -2524,43 +2850,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) { @@ -2576,14 +2919,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 { @@ -2594,17 +2939,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; @@ -2619,11 +2967,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); @@ -2636,11 +2987,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; @@ -2648,61 +3002,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 { @@ -2710,11 +3084,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) { @@ -2724,11 +3101,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) { @@ -2738,11 +3118,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) { @@ -2759,14 +3142,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()); @@ -2777,11 +3164,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) { @@ -2797,11 +3187,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) { @@ -2818,11 +3211,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) { @@ -2836,14 +3232,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()); @@ -2854,18 +3254,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); @@ -2873,11 +3276,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) { @@ -2890,11 +3296,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) { @@ -2907,39 +3316,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 { @@ -2947,45 +3367,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(), @@ -2997,6 +3434,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",
            @@ -3004,13 +3443,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; @@ -3019,6 +3458,8 @@ public java.lang.String getDestinationPredefinedAcl() { } } /** + * + * *
                  * Apply a predefined set of access controls to the destination object.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -3026,15 +3467,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 { @@ -3042,6 +3482,8 @@ public java.lang.String getDestinationPredefinedAcl() { } } /** + * + * *
                  * Apply a predefined set of access controls to the destination object.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -3049,18 +3491,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",
            @@ -3068,6 +3514,7 @@ public Builder setDestinationPredefinedAcl(
                  * 
            * * string destination_predefined_acl = 9; + * * @return This builder for chaining. */ public Builder clearDestinationPredefinedAcl() { @@ -3077,6 +3524,8 @@ public Builder clearDestinationPredefinedAcl() { return this; } /** + * + * *
                  * Apply a predefined set of access controls to the destination object.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -3084,12 +3533,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; @@ -3097,8 +3548,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
            @@ -3106,6 +3559,7 @@ public Builder setDestinationPredefinedAclBytes(
                  * 
            * * optional int64 if_generation_match = 4; + * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -3113,6 +3567,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
            @@ -3120,6 +3576,7 @@ public boolean hasIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_match = 4; + * * @return The ifGenerationMatch. */ @java.lang.Override @@ -3127,6 +3584,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
            @@ -3134,6 +3593,7 @@ public long getIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_match = 4; + * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ @@ -3145,6 +3605,8 @@ public Builder setIfGenerationMatch(long value) { return this; } /** + * + * *
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -3152,6 +3614,7 @@ public Builder setIfGenerationMatch(long value) {
                  * 
            * * optional int64 if_generation_match = 4; + * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -3161,14 +3624,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 @@ -3176,12 +3642,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 @@ -3189,12 +3658,15 @@ 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. */ @@ -3206,12 +3678,15 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** + * + * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 5; + * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -3223,6 +3698,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`,
            @@ -3231,13 +3708,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; @@ -3246,6 +3723,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`,
            @@ -3254,15 +3733,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 { @@ -3270,6 +3748,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`,
            @@ -3278,18 +3758,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`,
            @@ -3298,6 +3782,7 @@ public Builder setKmsKey(
                  * 
            * * string kms_key = 6 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearKmsKey() { @@ -3307,6 +3792,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`,
            @@ -3315,12 +3802,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; @@ -3330,41 +3819,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(); @@ -3378,6 +3881,8 @@ public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRe return this; } /** + * + * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -3396,17 +3901,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; @@ -3421,6 +3930,8 @@ public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObject return this; } /** + * + * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -3438,33 +3949,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.
                  * 
            @@ -3472,14 +3992,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_; @@ -3487,36 +4010,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.
            @@ -3538,6 +4074,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.
            @@ -3557,6 +4095,8 @@ public Builder setObjectChecksums(
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * The checksums of the complete object. This will be validated against the
                  * combined checksums of the component objects.
            @@ -3566,9 +4106,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;
            @@ -3583,6 +4123,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.
            @@ -3601,6 +4143,8 @@ public Builder clearObjectChecksums() {
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * The checksums of the complete object. This will be validated against the
                  * combined checksums of the component objects.
            @@ -3614,6 +4158,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.
            @@ -3625,11 +4171,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.
            @@ -3638,21 +4187,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);
                 }
             
            @@ -3662,12 +4214,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();
               }
            @@ -3676,27 +4228,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;
            @@ -3711,6 +4263,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 8458f3a94c..1eaa01f1a3 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,50 +1,80 @@
            +/*
            + * Copyright 2024 Google LLC
            + *
            + * Licensed under the Apache License, Version 2.0 (the "License");
            + * you may not use this file except in compliance with the License.
            + * You may obtain a copy of the License at
            + *
            + *     https://www.apache.org/licenses/LICENSE-2.0
            + *
            + * Unless required by applicable law or agreed to in writing, software
            + * distributed under the License is distributed on an "AS IS" BASIS,
            + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            + * See the License for the specific language governing permissions and
            + * limitations under the License.
            + */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
             // Protobuf Java Version: 3.25.3
             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.
                * 
            @@ -53,6 +83,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.
                * 
            @@ -61,15 +93,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.
                * 
            @@ -80,6 +116,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",
            @@ -87,10 +125,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",
            @@ -98,12 +139,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
            @@ -111,10 +154,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
            @@ -122,32 +168,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`,
            @@ -156,10 +211,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`,
            @@ -168,30 +226,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.
                * 
            @@ -201,26 +267,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 66%
            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 edcc5f0ed7..98a1721113 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,3 +1,18 @@
            +/*
            + * Copyright 2024 Google LLC
            + *
            + * Licensed under the Apache License, Version 2.0 (the "License");
            + * you may not use this file except in compliance with the License.
            + * You may obtain a copy of the License at
            + *
            + *     https://www.apache.org/licenses/LICENSE-2.0
            + *
            + * Unless required by applicable law or agreed to in writing, software
            + * distributed under the License is distributed on an "AS IS" BASIS,
            + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            + * See the License for the specific language governing permissions and
            + * limitations under the License.
            + */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
            @@ -5,52 +20,58 @@
             package com.google.storage.v2;
             
             /**
            + *
            + *
              * 
              * Specifies a requested range of bytes to download.
              * 
            * * Protobuf type {@code google.storage.v2.ContentRange} */ -public final class ContentRange extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ContentRange extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.v2.ContentRange) ContentRangeOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ContentRange.newBuilder() to construct. private ContentRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ContentRange() { - } + + private ContentRange() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ContentRange(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ContentRange_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_ContentRange_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ContentRange_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_ContentRange_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ContentRange.class, com.google.storage.v2.ContentRange.Builder.class); + com.google.storage.v2.ContentRange.class, + com.google.storage.v2.ContentRange.Builder.class); } public static final int START_FIELD_NUMBER = 1; private long start_ = 0L; /** + * + * *
                * The starting offset of the object data. This value is inclusive.
                * 
            * * int64 start = 1; + * * @return The start. */ @java.lang.Override @@ -61,11 +82,14 @@ public long getStart() { public static final int END_FIELD_NUMBER = 2; private long end_ = 0L; /** + * + * *
                * The ending offset of the object data. This value is exclusive.
                * 
            * * int64 end = 2; + * * @return The end. */ @java.lang.Override @@ -76,11 +100,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 @@ -89,6 +116,7 @@ public long getCompleteLength() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -100,8 +128,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_); } @@ -121,16 +148,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; @@ -140,19 +164,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; } @@ -165,145 +186,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(); @@ -315,9 +336,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 @@ -337,7 +358,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; } @@ -359,38 +382,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; @@ -434,27 +458,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) { @@ -464,15 +492,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private long start_ ; + private long start_; /** + * + * *
                  * The starting offset of the object data. This value is inclusive.
                  * 
            * * int64 start = 1; + * * @return The start. */ @java.lang.Override @@ -480,11 +512,14 @@ public long getStart() { return start_; } /** + * + * *
                  * The starting offset of the object data. This value is inclusive.
                  * 
            * * int64 start = 1; + * * @param value The start to set. * @return This builder for chaining. */ @@ -496,11 +531,14 @@ public Builder setStart(long value) { return this; } /** + * + * *
                  * The starting offset of the object data. This value is inclusive.
                  * 
            * * int64 start = 1; + * * @return This builder for chaining. */ public Builder clearStart() { @@ -510,13 +548,16 @@ public Builder clearStart() { return this; } - private long end_ ; + private long end_; /** + * + * *
                  * The ending offset of the object data. This value is exclusive.
                  * 
            * * int64 end = 2; + * * @return The end. */ @java.lang.Override @@ -524,11 +565,14 @@ public long getEnd() { return end_; } /** + * + * *
                  * The ending offset of the object data. This value is exclusive.
                  * 
            * * int64 end = 2; + * * @param value The end to set. * @return This builder for chaining. */ @@ -540,11 +584,14 @@ public Builder setEnd(long value) { return this; } /** + * + * *
                  * The ending offset of the object data. This value is exclusive.
                  * 
            * * int64 end = 2; + * * @return This builder for chaining. */ public Builder clearEnd() { @@ -554,13 +601,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 @@ -568,11 +618,14 @@ 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. */ @@ -584,11 +637,14 @@ public Builder setCompleteLength(long value) { return this; } /** + * + * *
                  * The complete length of the object data.
                  * 
            * * int64 complete_length = 3; + * * @return This builder for chaining. */ public Builder clearCompleteLength() { @@ -597,9 +653,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); } @@ -609,12 +665,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(); } @@ -623,27 +679,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; @@ -658,6 +714,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 55% 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 ca2f994fcf..d4cf266f8e 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,39 +1,64 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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. This value is inclusive.
                * 
            * * int64 start = 1; + * * @return The start. */ long getStart(); /** + * + * *
                * The ending offset of the object data. This value is exclusive.
                * 
            * * int64 end = 2; + * * @return The end. */ long getEnd(); /** + * + * *
                * The complete length of the object data.
                * 
            * * int64 complete_length = 3; + * * @return The completeLength. */ long getCompleteLength(); diff --git a/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 9ea0a7630e..8c1eed4745 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,21 +20,24 @@ 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_ = ""; @@ -29,34 +47,41 @@ private CreateBucketRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateBucketRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_CreateBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateBucketRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_CreateBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.CreateBucketRequest.class, com.google.storage.v2.CreateBucketRequest.Builder.class); + com.google.storage.v2.CreateBucketRequest.class, + com.google.storage.v2.CreateBucketRequest.Builder.class); } private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
                * Required. The project to which this bucket will belong.
                * 
            * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -65,29 +90,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 { @@ -98,6 +125,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
            @@ -109,6 +138,7 @@ public java.lang.String getParent() {
                * 
            * * .google.storage.v2.Bucket bucket = 2; + * * @return Whether the bucket field is set. */ @java.lang.Override @@ -116,6 +146,8 @@ public boolean hasBucket() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * Properties of the new bucket being inserted.
                * The name of the bucket is specified in the `bucket_id` field. Populating
            @@ -127,6 +159,7 @@ public boolean hasBucket() {
                * 
            * * .google.storage.v2.Bucket bucket = 2; + * * @return The bucket. */ @java.lang.Override @@ -134,6 +167,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
            @@ -152,9 +187,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
            @@ -162,6 +200,7 @@ public com.google.storage.v2.BucketOrBuilder getBucketOrBuilder() {
                * 
            * * string bucket_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bucketId. */ @java.lang.Override @@ -170,14 +209,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
            @@ -185,16 +225,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 { @@ -203,9 +242,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",
            @@ -213,6 +255,7 @@ public java.lang.String getBucketId() {
                * 
            * * string predefined_acl = 6; + * * @return The predefinedAcl. */ @java.lang.Override @@ -221,14 +264,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",
            @@ -236,16 +280,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 { @@ -254,9 +297,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",
            @@ -264,6 +310,7 @@ public java.lang.String getPredefinedAcl() {
                * 
            * * string predefined_default_object_acl = 7; + * * @return The predefinedDefaultObjectAcl. */ @java.lang.Override @@ -272,14 +319,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",
            @@ -287,16 +335,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 { @@ -305,6 +352,7 @@ public java.lang.String getPredefinedDefaultObjectAcl() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -316,8 +364,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_); } @@ -346,8 +393,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (((bitField0_ & 0x00000001) != 0)) { - 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_); @@ -356,7 +402,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; @@ -366,26 +413,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; } @@ -414,120 +458,127 @@ 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() @@ -535,17 +586,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) { getBucketFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -563,9 +614,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 @@ -584,8 +635,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; } @@ -597,9 +651,7 @@ private void buildPartial0(com.google.storage.v2.CreateBucketRequest result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.bucket_ = bucketBuilder_ == null - ? bucket_ - : bucketBuilder_.build(); + result.bucket_ = bucketBuilder_ == null ? bucket_ : bucketBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -618,38 +670,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; @@ -707,39 +760,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) { @@ -749,22 +806,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; @@ -773,20 +835,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 { @@ -794,28 +859,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() { @@ -825,17 +901,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; @@ -845,8 +927,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
            @@ -858,12 +945,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
            @@ -875,6 +965,7 @@ public boolean hasBucket() {
                  * 
            * * .google.storage.v2.Bucket bucket = 2; + * * @return The bucket. */ public com.google.storage.v2.Bucket getBucket() { @@ -885,6 +976,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
            @@ -911,6 +1004,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
            @@ -923,8 +1018,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 {
            @@ -935,6 +1029,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
            @@ -949,9 +1045,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;
            @@ -966,6 +1062,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
            @@ -989,6 +1087,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
            @@ -1007,6 +1107,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
            @@ -1023,11 +1125,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
            @@ -1041,14 +1144,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_;
            @@ -1056,6 +1162,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
            @@ -1063,13 +1171,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; @@ -1078,6 +1186,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
            @@ -1085,15 +1195,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 { @@ -1101,6 +1210,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
            @@ -1108,18 +1219,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
            @@ -1127,6 +1242,7 @@ public Builder setBucketId(
                  * 
            * * string bucket_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearBucketId() { @@ -1136,6 +1252,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
            @@ -1143,12 +1261,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; @@ -1158,6 +1278,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",
            @@ -1165,13 +1287,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; @@ -1180,6 +1302,8 @@ public java.lang.String getPredefinedAcl() { } } /** + * + * *
                  * Apply a predefined set of access controls to this bucket.
                  * Valid values are "authenticatedRead", "private", "projectPrivate",
            @@ -1187,15 +1311,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 { @@ -1203,6 +1326,8 @@ public java.lang.String getPredefinedAcl() { } } /** + * + * *
                  * Apply a predefined set of access controls to this bucket.
                  * Valid values are "authenticatedRead", "private", "projectPrivate",
            @@ -1210,18 +1335,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",
            @@ -1229,6 +1358,7 @@ public Builder setPredefinedAcl(
                  * 
            * * string predefined_acl = 6; + * * @return This builder for chaining. */ public Builder clearPredefinedAcl() { @@ -1238,6 +1368,8 @@ public Builder clearPredefinedAcl() { return this; } /** + * + * *
                  * Apply a predefined set of access controls to this bucket.
                  * Valid values are "authenticatedRead", "private", "projectPrivate",
            @@ -1245,12 +1377,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; @@ -1260,6 +1394,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",
            @@ -1267,13 +1403,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; @@ -1282,6 +1418,8 @@ public java.lang.String getPredefinedDefaultObjectAcl() { } } /** + * + * *
                  * Apply a predefined set of default object access controls to this bucket.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -1289,15 +1427,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 { @@ -1305,6 +1442,8 @@ public java.lang.String getPredefinedDefaultObjectAcl() { } } /** + * + * *
                  * Apply a predefined set of default object access controls to this bucket.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -1312,18 +1451,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",
            @@ -1331,6 +1474,7 @@ public Builder setPredefinedDefaultObjectAcl(
                  * 
            * * string predefined_default_object_acl = 7; + * * @return This builder for chaining. */ public Builder clearPredefinedDefaultObjectAcl() { @@ -1340,6 +1484,8 @@ public Builder clearPredefinedDefaultObjectAcl() { return this; } /** + * + * *
                  * Apply a predefined set of default object access controls to this bucket.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -1347,21 +1493,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); } @@ -1371,12 +1519,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(); } @@ -1385,27 +1533,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; @@ -1420,6 +1568,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 78% 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 86c52f7b14..32fa4e23d6 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,34 +1,61 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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
            @@ -40,10 +67,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
            @@ -55,10 +85,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
            @@ -74,6 +107,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
            @@ -81,10 +116,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
            @@ -92,12 +130,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",
            @@ -105,10 +145,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",
            @@ -116,12 +159,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",
            @@ -129,10 +174,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",
            @@ -140,8 +188,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 10e7cad7e5..278b0bee55 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,21 +20,24 @@ 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_ = ""; @@ -27,35 +45,42 @@ private CreateHmacKeyRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateHmacKeyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateHmacKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_CreateHmacKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateHmacKeyRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_CreateHmacKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.CreateHmacKeyRequest.class, com.google.storage.v2.CreateHmacKeyRequest.Builder.class); + com.google.storage.v2.CreateHmacKeyRequest.class, + com.google.storage.v2.CreateHmacKeyRequest.Builder.class); } public static final int PROJECT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object project_ = ""; /** + * + * *
                * Required. The project that the HMAC-owning service account lives in, in the
                * format of "projects/{projectIdentifier}". {projectIdentifier} can be the
                * project ID or project number.
                * 
            * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The project. */ @java.lang.Override @@ -64,31 +89,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 { @@ -97,14 +124,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 @@ -113,29 +144,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 { @@ -144,6 +175,7 @@ public java.lang.String getServiceAccountEmail() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +187,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); } @@ -186,17 +217,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; } @@ -217,132 +247,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(); @@ -353,9 +387,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 @@ -374,8 +408,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; } @@ -394,38 +431,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; @@ -470,22 +508,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) { @@ -495,24 +536,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; @@ -521,22 +567,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 { @@ -544,32 +593,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() { @@ -579,19 +639,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; @@ -601,18 +667,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; @@ -621,20 +689,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 { @@ -642,28 +711,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() { @@ -673,26 +749,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); } @@ -702,12 +782,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(); } @@ -716,27 +796,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; @@ -751,6 +831,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 c4e33b8ac3..df1e6b8135 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,54 +1,84 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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 aadd401294..4e763b462c 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,54 +20,61 @@ package com.google.storage.v2; /** + * + * *
              * Create hmac response.  The only time the secret for an HMAC will be returned.
              * 
            * * Protobuf type {@code google.storage.v2.CreateHmacKeyResponse} */ -public final class CreateHmacKeyResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateHmacKeyResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.v2.CreateHmacKeyResponse) CreateHmacKeyResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateHmacKeyResponse.newBuilder() to construct. private CreateHmacKeyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateHmacKeyResponse() { secretKeyBytes_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateHmacKeyResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateHmacKeyResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_CreateHmacKeyResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateHmacKeyResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_CreateHmacKeyResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.CreateHmacKeyResponse.class, com.google.storage.v2.CreateHmacKeyResponse.Builder.class); + com.google.storage.v2.CreateHmacKeyResponse.class, + com.google.storage.v2.CreateHmacKeyResponse.Builder.class); } private int bitField0_; public static final int METADATA_FIELD_NUMBER = 1; private com.google.storage.v2.HmacKeyMetadata metadata_; /** + * + * *
                * Key metadata.
                * 
            * * .google.storage.v2.HmacKeyMetadata metadata = 1; + * * @return Whether the metadata field is set. */ @java.lang.Override @@ -60,18 +82,25 @@ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * Key metadata.
                * 
            * * .google.storage.v2.HmacKeyMetadata metadata = 1; + * * @return The metadata. */ @java.lang.Override public com.google.storage.v2.HmacKeyMetadata getMetadata() { - return metadata_ == null ? com.google.storage.v2.HmacKeyMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.storage.v2.HmacKeyMetadata.getDefaultInstance() + : metadata_; } /** + * + * *
                * Key metadata.
                * 
            @@ -80,18 +109,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 @@ -100,6 +134,7 @@ public com.google.protobuf.ByteString getSecretKeyBytes() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -111,8 +146,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.writeMessage(1, getMetadata()); } @@ -129,12 +163,10 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - 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; @@ -144,20 +176,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.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; } @@ -180,120 +211,127 @@ 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() @@ -301,17 +339,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) { getMetadataFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -326,9 +364,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 @@ -347,8 +385,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; } @@ -357,9 +398,7 @@ private void buildPartial0(com.google.storage.v2.CreateHmacKeyResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.metadata_ = metadataBuilder_ == null - ? metadata_ - : metadataBuilder_.build(); + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { @@ -372,38 +411,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; @@ -444,24 +484,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) { @@ -471,38 +512,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.
                  * 
            @@ -523,14 +578,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 { @@ -541,6 +597,8 @@ public Builder setMetadata( return this; } /** + * + * *
                  * Key metadata.
                  * 
            @@ -549,9 +607,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; @@ -566,6 +624,8 @@ public Builder mergeMetadata(com.google.storage.v2.HmacKeyMetadata value) { return this; } /** + * + * *
                  * Key metadata.
                  * 
            @@ -583,6 +643,8 @@ public Builder clearMetadata() { return this; } /** + * + * *
                  * Key metadata.
                  * 
            @@ -595,6 +657,8 @@ public com.google.storage.v2.HmacKeyMetadata.Builder getMetadataBuilder() { return getMetadataFieldBuilder().getBuilder(); } /** + * + * *
                  * Key metadata.
                  * 
            @@ -605,11 +669,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.
                  * 
            @@ -617,14 +684,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_; @@ -632,12 +702,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 @@ -645,29 +718,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() { @@ -676,9 +757,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); } @@ -688,12 +769,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(); } @@ -702,27 +783,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; @@ -737,6 +818,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 62% 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 ab6129549d..1b0ca68d84 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,32 +1,56 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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.
                * 
            @@ -36,12 +60,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 eac3d9d919..32583d678c 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,55 +20,66 @@ package com.google.storage.v2; /** + * + * *
              * Request message for CreateNotificationConfig.
              * 
            * * Protobuf type {@code google.storage.v2.CreateNotificationConfigRequest} */ -public final class CreateNotificationConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateNotificationConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.v2.CreateNotificationConfigRequest) CreateNotificationConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateNotificationConfigRequest.newBuilder() to construct. - private CreateNotificationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateNotificationConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateNotificationConfigRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateNotificationConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_CreateNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_CreateNotificationConfigRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_CreateNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.CreateNotificationConfigRequest.class, com.google.storage.v2.CreateNotificationConfigRequest.Builder.class); + com.google.storage.v2.CreateNotificationConfigRequest.class, + com.google.storage.v2.CreateNotificationConfigRequest.Builder.class); } private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
                * Required. The bucket to which this NotificationConfig belongs.
                * 
            * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -62,29 +88,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 { @@ -95,11 +123,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 @@ -107,30 +140,44 @@ public boolean hasNotificationConfig() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * Required. Properties of the NotificationConfig to be inserted.
                * 
            * - * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The notificationConfig. */ @java.lang.Override public com.google.storage.v2.NotificationConfig getNotificationConfig() { - return notificationConfig_ == null ? com.google.storage.v2.NotificationConfig.getDefaultInstance() : notificationConfig_; + return notificationConfig_ == null + ? com.google.storage.v2.NotificationConfig.getDefaultInstance() + : notificationConfig_; } /** + * + * *
                * Required. Properties of the NotificationConfig to be inserted.
                * 
            * - * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.storage.v2.NotificationConfig notification_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.storage.v2.NotificationConfigOrBuilder getNotificationConfigOrBuilder() { - return notificationConfig_ == null ? com.google.storage.v2.NotificationConfig.getDefaultInstance() : notificationConfig_; + return notificationConfig_ == null + ? com.google.storage.v2.NotificationConfig.getDefaultInstance() + : notificationConfig_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -142,8 +189,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_); } @@ -163,8 +209,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getNotificationConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getNotificationConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -174,19 +219,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; @@ -211,119 +255,127 @@ 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() @@ -331,17 +383,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) { getNotificationConfigFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -356,9 +408,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 @@ -377,8 +429,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; } @@ -390,9 +445,10 @@ private void buildPartial0(com.google.storage.v2.CreateNotificationConfigRequest } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.notificationConfig_ = notificationConfigBuilder_ == null - ? notificationConfig_ - : notificationConfigBuilder_.build(); + result.notificationConfig_ = + notificationConfigBuilder_ == null + ? notificationConfig_ + : notificationConfigBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -402,38 +458,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; @@ -441,7 +498,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; @@ -476,24 +534,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) { @@ -503,22 +563,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; @@ -527,20 +592,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 { @@ -548,28 +616,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() { @@ -579,17 +658,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; @@ -599,39 +684,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) { @@ -647,11 +751,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) { @@ -665,17 +773,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; @@ -690,11 +803,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); @@ -707,11 +824,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; @@ -719,43 +840,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); } @@ -765,12 +898,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(); } @@ -779,27 +912,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; @@ -814,6 +947,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..fb106cbd0d --- /dev/null +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/CreateNotificationConfigRequestOrBuilder.java @@ -0,0 +1,96 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/storage/v2/storage.proto + +// Protobuf Java Version: 3.25.3 +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 8d7101d91f..9c12a01357 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,6 +20,8 @@ package com.google.storage.v2; /** + * + * *
              * Describes the Customer-Supplied Encryption Key mechanism used to store an
              * Object's data at rest.
            @@ -12,15 +29,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;
            @@ -28,33 +46,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();
               }
             
            -  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 @@ -63,29 +86,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 { @@ -96,12 +119,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 @@ -110,6 +136,7 @@ public com.google.protobuf.ByteString getKeySha256Bytes() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -121,8 +148,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_); } @@ -142,8 +168,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; @@ -153,17 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -184,99 +207,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.
            @@ -284,33 +312,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();
            @@ -321,9 +348,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
            @@ -342,8 +369,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;
                 }
            @@ -362,38 +392,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;
            @@ -436,22 +467,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) {
            @@ -461,22 +495,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; @@ -485,20 +522,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 { @@ -506,28 +544,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() { @@ -537,17 +582,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; @@ -557,12 +606,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 @@ -570,29 +622,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() { @@ -601,9 +661,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); } @@ -613,12 +673,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(); } @@ -627,27 +687,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; @@ -662,6 +722,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 55% 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 a0fad36687..dea3c58a16 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,40 +1,64 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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 68% 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 8e65f77b70..a41ce6b14a 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,55 +20,65 @@ package com.google.storage.v2; /** + * + * *
              * Request message for DeleteBucket.
              * 
            * * Protobuf type {@code google.storage.v2.DeleteBucketRequest} */ -public final class DeleteBucketRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteBucketRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.v2.DeleteBucketRequest) DeleteBucketRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteBucketRequest.newBuilder() to construct. private DeleteBucketRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteBucketRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteBucketRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_DeleteBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteBucketRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_DeleteBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.DeleteBucketRequest.class, com.google.storage.v2.DeleteBucketRequest.Builder.class); + com.google.storage.v2.DeleteBucketRequest.class, + com.google.storage.v2.DeleteBucketRequest.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
                * Required. Name of a bucket to delete.
                * 
            * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -62,29 +87,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 { @@ -95,11 +122,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 @@ -107,11 +137,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 @@ -122,12 +155,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 @@ -135,12 +171,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 @@ -149,6 +188,7 @@ public long getIfMetagenerationNotMatch() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -160,8 +200,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_); } @@ -184,12 +223,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; @@ -199,24 +236,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; @@ -233,145 +268,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(); @@ -383,9 +420,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 @@ -404,8 +441,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; } @@ -431,38 +471,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; @@ -508,27 +549,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) { @@ -538,22 +583,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; @@ -562,20 +612,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 { @@ -583,28 +636,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() { @@ -614,17 +678,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; @@ -632,13 +702,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 @@ -646,11 +719,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 @@ -658,11 +734,14 @@ 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. */ @@ -674,11 +753,14 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** + * + * *
                  * If set, only deletes the bucket if its metageneration matches this value.
                  * 
            * * optional int64 if_metageneration_match = 2; + * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -688,14 +770,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 @@ -703,12 +788,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 @@ -716,12 +804,15 @@ 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. */ @@ -733,12 +824,15 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** + * + * *
                  * If set, only deletes the bucket if its metageneration does not match this
                  * value.
                  * 
            * * optional int64 if_metageneration_not_match = 3; + * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -747,9 +841,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); } @@ -759,12 +853,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(); } @@ -773,27 +867,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; @@ -808,6 +902,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 61% 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 3aab3359a0..e16f379ea9 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,69 +1,106 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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 9e3542f3f7..f424f3e660 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,21 +20,24 @@ 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_ = ""; @@ -27,33 +45,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(); } - 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 @@ -62,29 +85,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 { @@ -93,16 +116,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 @@ -111,31 +140,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 { @@ -144,6 +175,7 @@ public java.lang.String getProject() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +187,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accessId_); } @@ -186,17 +217,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; } @@ -217,132 +247,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(); @@ -353,9 +387,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 @@ -374,8 +408,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; } @@ -394,38 +431,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; @@ -470,22 +508,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) { @@ -495,22 +536,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; @@ -519,20 +563,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 { @@ -540,28 +585,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() { @@ -571,17 +623,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; @@ -591,20 +647,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; @@ -613,22 +673,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 { @@ -636,32 +699,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() { @@ -671,28 +745,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); } @@ -702,12 +782,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(); } @@ -716,27 +796,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; @@ -751,6 +831,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 54% 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 2873f30a08..25f792bd18 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,54 +1,84 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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 17eb7a5349..3ed33c9ef2 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,54 +20,65 @@ package com.google.storage.v2; /** + * + * *
              * Request message for DeleteNotificationConfig.
              * 
            * * Protobuf type {@code google.storage.v2.DeleteNotificationConfigRequest} */ -public final class DeleteNotificationConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteNotificationConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.v2.DeleteNotificationConfigRequest) DeleteNotificationConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteNotificationConfigRequest.newBuilder() to construct. - private DeleteNotificationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteNotificationConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteNotificationConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteNotificationConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_DeleteNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteNotificationConfigRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_DeleteNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.DeleteNotificationConfigRequest.class, com.google.storage.v2.DeleteNotificationConfigRequest.Builder.class); + com.google.storage.v2.DeleteNotificationConfigRequest.class, + com.google.storage.v2.DeleteNotificationConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
                * Required. The parent bucket of the NotificationConfig.
                * 
            * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -61,29 +87,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 { @@ -92,6 +120,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -103,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -128,15 +156,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; } @@ -156,131 +184,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(); @@ -290,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_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 @@ -311,8 +344,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; } @@ -328,38 +364,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; @@ -367,7 +404,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; @@ -399,17 +437,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) { @@ -419,22 +459,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; @@ -443,20 +488,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 { @@ -464,28 +512,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() { @@ -495,26 +554,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); } @@ -524,12 +589,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(); } @@ -538,27 +603,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; @@ -573,6 +638,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..c0b97b8da3 --- /dev/null +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/DeleteNotificationConfigRequestOrBuilder.java @@ -0,0 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/storage/v2/storage.proto + +// Protobuf Java Version: 3.25.3 +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 682eab6421..225ab6115b 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,6 +20,8 @@ package com.google.storage.v2; /** + * + * *
              * Message for deleting an object.
              * `bucket` and `object` **must** be set.
            @@ -12,15 +29,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_ = "";
            @@ -28,34 +46,41 @@ private DeleteObjectRequest() {
             
               @java.lang.Override
               @SuppressWarnings({"unused"})
            -  protected java.lang.Object newInstance(
            -      UnusedPrivateParameter unused) {
            +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                 return new DeleteObjectRequest();
               }
             
            -  public static final com.google.protobuf.Descriptors.Descriptor
            -      getDescriptor() {
            -    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteObjectRequest_descriptor;
            +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            +    return com.google.storage.v2.StorageProto
            +        .internal_static_google_storage_v2_DeleteObjectRequest_descriptor;
               }
             
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
            -    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_DeleteObjectRequest_fieldAccessorTable
            +    return com.google.storage.v2.StorageProto
            +        .internal_static_google_storage_v2_DeleteObjectRequest_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
            -            com.google.storage.v2.DeleteObjectRequest.class, com.google.storage.v2.DeleteObjectRequest.Builder.class);
            +            com.google.storage.v2.DeleteObjectRequest.class,
            +            com.google.storage.v2.DeleteObjectRequest.Builder.class);
               }
             
               private int bitField0_;
               public static final int BUCKET_FIELD_NUMBER = 1;
            +
               @SuppressWarnings("serial")
               private volatile java.lang.Object bucket_ = "";
               /**
            +   *
            +   *
                * 
                * Required. Name of the bucket in which the object resides.
                * 
            * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bucket. */ @java.lang.Override @@ -64,29 +89,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 { @@ -95,9 +122,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
            @@ -105,6 +135,7 @@ public java.lang.String getBucket() {
                * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The object. */ @java.lang.Override @@ -113,14 +144,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
            @@ -128,16 +160,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 { @@ -148,12 +179,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 @@ -164,6 +198,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
            @@ -171,6 +207,7 @@ public long getGeneration() {
                * 
            * * optional int64 if_generation_match = 5; + * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -178,6 +215,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
            @@ -185,6 +224,7 @@ public boolean hasIfGenerationMatch() {
                * 
            * * optional int64 if_generation_match = 5; + * * @return The ifGenerationMatch. */ @java.lang.Override @@ -195,6 +235,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
            @@ -203,6 +245,7 @@ public long getIfGenerationMatch() {
                * 
            * * optional int64 if_generation_not_match = 6; + * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -210,6 +253,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
            @@ -218,6 +263,7 @@ public boolean hasIfGenerationNotMatch() {
                * 
            * * optional int64 if_generation_not_match = 6; + * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -228,12 +274,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 @@ -241,12 +290,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 @@ -257,12 +309,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 @@ -270,12 +325,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 @@ -286,11 +344,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 @@ -298,18 +359,25 @@ public boolean hasCommonObjectRequestParams() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; + * * @return The commonObjectRequestParams. */ @java.lang.Override public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { - return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; + return commonObjectRequestParams_ == null + ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() + : commonObjectRequestParams_; } /** + * + * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            @@ -317,11 +385,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; @@ -333,8 +405,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_); } @@ -375,28 +446,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 (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getCommonObjectRequestParams()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, getCommonObjectRequestParams()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -406,43 +473,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; @@ -460,27 +521,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; @@ -491,99 +547,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.
            @@ -591,21 +652,23 @@ 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()
            @@ -613,17 +676,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) {
                     getCommonObjectRequestParamsFieldBuilder();
                   }
                 }
            +
                 @java.lang.Override
                 public Builder clear() {
                   super.clear();
            @@ -644,9 +707,9 @@ public Builder clear() {
                 }
             
                 @java.lang.Override
            -    public com.google.protobuf.Descriptors.Descriptor
            -        getDescriptorForType() {
            -      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_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
            @@ -665,8 +728,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;
                 }
            @@ -700,9 +766,10 @@ private void buildPartial0(com.google.storage.v2.DeleteObjectRequest result) {
                     to_bitField0_ |= 0x00000008;
                   }
                   if (((from_bitField0_ & 0x00000080) != 0)) {
            -        result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null
            -            ? commonObjectRequestParams_
            -            : commonObjectRequestParamsBuilder_.build();
            +        result.commonObjectRequestParams_ =
            +            commonObjectRequestParamsBuilder_ == null
            +                ? commonObjectRequestParams_
            +                : commonObjectRequestParamsBuilder_.build();
                     to_bitField0_ |= 0x00000010;
                   }
                   result.bitField0_ |= to_bitField0_;
            @@ -712,38 +779,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;
            @@ -806,54 +874,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) {
            @@ -863,22 +939,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; @@ -887,20 +968,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 { @@ -908,28 +992,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() { @@ -939,17 +1034,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; @@ -959,6 +1060,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
            @@ -966,13 +1069,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; @@ -981,6 +1084,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
            @@ -988,15 +1093,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 { @@ -1004,6 +1108,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
            @@ -1011,18 +1117,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
            @@ -1030,6 +1140,7 @@ public Builder setObject(
                  * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearObject() { @@ -1039,6 +1150,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
            @@ -1046,12 +1159,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; @@ -1059,14 +1174,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 @@ -1074,12 +1192,15 @@ 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. */ @@ -1091,12 +1212,15 @@ public Builder setGeneration(long value) { return this; } /** + * + * *
                  * If present, permanently deletes a specific revision of this object (as
                  * opposed to the latest version, the default).
                  * 
            * * int64 generation = 4; + * * @return This builder for chaining. */ public Builder clearGeneration() { @@ -1106,8 +1230,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
            @@ -1115,6 +1241,7 @@ public Builder clearGeneration() {
                  * 
            * * optional int64 if_generation_match = 5; + * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -1122,6 +1249,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
            @@ -1129,6 +1258,7 @@ public boolean hasIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_match = 5; + * * @return The ifGenerationMatch. */ @java.lang.Override @@ -1136,6 +1266,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
            @@ -1143,6 +1275,7 @@ public long getIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_match = 5; + * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ @@ -1154,6 +1287,8 @@ public Builder setIfGenerationMatch(long value) { return this; } /** + * + * *
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -1161,6 +1296,7 @@ public Builder setIfGenerationMatch(long value) {
                  * 
            * * optional int64 if_generation_match = 5; + * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -1170,8 +1306,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
            @@ -1180,6 +1318,7 @@ public Builder clearIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_not_match = 6; + * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -1187,6 +1326,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
            @@ -1195,6 +1336,7 @@ public boolean hasIfGenerationNotMatch() {
                  * 
            * * optional int64 if_generation_not_match = 6; + * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -1202,6 +1344,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
            @@ -1210,6 +1354,7 @@ public long getIfGenerationNotMatch() {
                  * 
            * * optional int64 if_generation_not_match = 6; + * * @param value The ifGenerationNotMatch to set. * @return This builder for chaining. */ @@ -1221,6 +1366,8 @@ public Builder setIfGenerationNotMatch(long value) { return this; } /** + * + * *
                  * Makes the operation conditional on whether the object's live generation
                  * does not match the given value. If no live object exists, the precondition
            @@ -1229,6 +1376,7 @@ public Builder setIfGenerationNotMatch(long value) {
                  * 
            * * optional int64 if_generation_not_match = 6; + * * @return This builder for chaining. */ public Builder clearIfGenerationNotMatch() { @@ -1238,14 +1386,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 @@ -1253,12 +1404,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 @@ -1266,12 +1420,15 @@ 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. */ @@ -1283,12 +1440,15 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** + * + * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 7; + * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -1298,14 +1458,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 @@ -1313,12 +1476,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 @@ -1326,12 +1492,15 @@ 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. */ @@ -1343,12 +1512,15 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** + * + * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 8; + * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -1360,41 +1532,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(); @@ -1408,6 +1594,8 @@ public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRe return this; } /** + * + * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -1426,17 +1614,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; @@ -1451,6 +1643,8 @@ public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObject return this; } /** + * + * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -1468,33 +1662,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.
                  * 
            @@ -1502,21 +1705,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); } @@ -1526,12 +1732,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(); } @@ -1540,27 +1746,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; @@ -1575,6 +1781,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 1542fc3cd9..26265c14dc 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,34 +1,61 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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
            @@ -36,10 +63,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
            @@ -47,23 +77,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
            @@ -71,10 +106,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
            @@ -82,11 +120,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
            @@ -95,10 +136,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
            @@ -107,71 +151,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 72% 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 4364d0806b..e436ba6cfc 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,55 +20,65 @@ package com.google.storage.v2; /** + * + * *
              * Request message for GetBucket.
              * 
            * * Protobuf type {@code google.storage.v2.GetBucketRequest} */ -public final class GetBucketRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetBucketRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.v2.GetBucketRequest) GetBucketRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetBucketRequest.newBuilder() to construct. private GetBucketRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetBucketRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetBucketRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_GetBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetBucketRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_GetBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.GetBucketRequest.class, com.google.storage.v2.GetBucketRequest.Builder.class); + com.google.storage.v2.GetBucketRequest.class, + com.google.storage.v2.GetBucketRequest.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
                * Required. Name of a bucket.
                * 
            * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -62,29 +87,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 { @@ -95,12 +122,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 @@ -108,12 +138,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 @@ -124,12 +157,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 @@ -137,12 +173,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 @@ -153,6 +192,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.
            @@ -160,6 +201,7 @@ public long getIfMetagenerationNotMatch() {
                * 
            * * optional .google.protobuf.FieldMask read_mask = 5; + * * @return Whether the readMask field is set. */ @java.lang.Override @@ -167,6 +209,8 @@ public boolean hasReadMask() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
                * Mask specifying which fields to read.
                * A "*" field may be used to indicate all fields.
            @@ -174,6 +218,7 @@ public boolean hasReadMask() {
                * 
            * * optional .google.protobuf.FieldMask read_mask = 5; + * * @return The readMask. */ @java.lang.Override @@ -181,6 +226,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.
            @@ -195,6 +242,7 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
               }
             
               private byte memoizedIsInitialized = -1;
            +
               @java.lang.Override
               public final boolean isInitialized() {
                 byte isInitialized = memoizedIsInitialized;
            @@ -206,8 +254,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_);
                 }
            @@ -233,16 +280,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;
            @@ -252,29 +296,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;
            @@ -291,13 +331,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;
            @@ -308,120 +346,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() @@ -429,17 +474,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(); @@ -456,9 +501,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_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 @@ -477,8 +522,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; } @@ -498,9 +546,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_; @@ -510,38 +556,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; @@ -590,34 +637,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) { @@ -627,22 +677,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; @@ -651,20 +706,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 { @@ -672,28 +730,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() { @@ -703,17 +772,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; @@ -721,14 +796,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 @@ -736,12 +814,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 @@ -749,12 +830,15 @@ 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. */ @@ -766,12 +850,15 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** + * + * *
                  * If set, and if the bucket's current metageneration does not match the
                  * specified value, the request will return an error.
                  * 
            * * optional int64 if_metageneration_match = 2; + * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -781,14 +868,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 @@ -796,12 +886,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 @@ -809,12 +902,15 @@ 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. */ @@ -826,12 +922,15 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** + * + * *
                  * If set, and if the bucket's current metageneration matches the specified
                  * value, the request will return an error.
                  * 
            * * optional int64 if_metageneration_not_match = 3; + * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -843,8 +942,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.
            @@ -852,12 +956,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.
            @@ -865,6 +972,7 @@ public boolean hasReadMask() {
                  * 
            * * optional .google.protobuf.FieldMask read_mask = 5; + * * @return The readMask. */ public com.google.protobuf.FieldMask getReadMask() { @@ -875,6 +983,8 @@ public com.google.protobuf.FieldMask getReadMask() { } } /** + * + * *
                  * Mask specifying which fields to read.
                  * A "*" field may be used to indicate all fields.
            @@ -897,6 +1007,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.
            @@ -905,8 +1017,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 {
            @@ -917,6 +1028,8 @@ public Builder setReadMask(
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * Mask specifying which fields to read.
                  * A "*" field may be used to indicate all fields.
            @@ -927,9 +1040,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 +1057,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 +1078,8 @@ public Builder clearReadMask() {
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * Mask specifying which fields to read.
                  * A "*" field may be used to indicate all fields.
            @@ -977,6 +1094,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 +1108,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 +1123,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 +1150,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 +1164,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 +1199,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 72%
            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 cd8f88bda8..0a797f87ca 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,76 +1,115 @@
            +/*
            + * Copyright 2024 Google LLC
            + *
            + * Licensed under the Apache License, Version 2.0 (the "License");
            + * you may not use this file except in compliance with the License.
            + * You may obtain a copy of the License at
            + *
            + *     https://www.apache.org/licenses/LICENSE-2.0
            + *
            + * Unless required by applicable law or agreed to in writing, software
            + * distributed under the License is distributed on an "AS IS" BASIS,
            + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            + * See the License for the specific language governing permissions and
            + * limitations under the License.
            + */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
             // Protobuf Java Version: 3.25.3
             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.
            @@ -78,10 +117,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.
            @@ -89,10 +131,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 6ec5983078..1ac5037e16 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,3 +1,18 @@
            +/*
            + * Copyright 2024 Google LLC
            + *
            + * Licensed under the Apache License, Version 2.0 (the "License");
            + * you may not use this file except in compliance with the License.
            + * You may obtain a copy of the License at
            + *
            + *     https://www.apache.org/licenses/LICENSE-2.0
            + *
            + * Unless required by applicable law or agreed to in writing, software
            + * distributed under the License is distributed on an "AS IS" BASIS,
            + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            + * See the License for the specific language governing permissions and
            + * limitations under the License.
            + */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
            @@ -5,21 +20,24 @@
             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_ = ""; @@ -27,33 +45,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(); } - 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 @@ -62,29 +85,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 { @@ -93,16 +116,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 @@ -111,31 +140,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 { @@ -144,6 +175,7 @@ public java.lang.String getProject() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +187,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accessId_); } @@ -186,17 +217,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; } @@ -217,132 +246,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(); @@ -353,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_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 @@ -374,8 +407,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; } @@ -394,38 +430,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; @@ -470,22 +507,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) { @@ -495,22 +535,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; @@ -519,20 +562,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 { @@ -540,28 +584,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() { @@ -571,17 +622,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; @@ -591,20 +646,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; @@ -613,22 +672,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 { @@ -636,32 +698,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() { @@ -671,28 +744,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); } @@ -702,12 +781,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(); } @@ -716,27 +795,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; @@ -751,6 +830,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 54% 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 5855f16174..810b54f45a 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,54 +1,84 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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 510ec44e04..ac58e69583 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,56 +20,66 @@ package com.google.storage.v2; /** + * + * *
              * Request message for GetNotificationConfig.
              * 
            * * Protobuf type {@code google.storage.v2.GetNotificationConfigRequest} */ -public final class GetNotificationConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetNotificationConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.v2.GetNotificationConfigRequest) GetNotificationConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetNotificationConfigRequest.newBuilder() to construct. private GetNotificationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetNotificationConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetNotificationConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetNotificationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_GetNotificationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetNotificationConfigRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_GetNotificationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.GetNotificationConfigRequest.class, com.google.storage.v2.GetNotificationConfigRequest.Builder.class); + com.google.storage.v2.GetNotificationConfigRequest.class, + com.google.storage.v2.GetNotificationConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
                * Required. The parent bucket of the NotificationConfig.
                * Format:
                * `projects/{project}/buckets/{bucket}/notificationConfigs/{notificationConfig}`
                * 
            * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -63,31 +88,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 { @@ -96,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -132,15 +159,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -160,131 +187,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(); @@ -294,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_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 @@ -315,8 +346,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; } @@ -332,38 +366,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; @@ -371,7 +406,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; @@ -403,17 +439,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -423,24 +461,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; @@ -449,22 +492,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 { @@ -472,32 +518,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() { @@ -507,28 +564,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); } @@ -538,12 +601,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(); } @@ -552,27 +615,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; @@ -587,6 +650,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..722654bff8 --- /dev/null +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetNotificationConfigRequestOrBuilder.java @@ -0,0 +1,59 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/storage/v2/storage.proto + +// Protobuf Java Version: 3.25.3 +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 75% 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 6b5d8d3fe6..383c4f611c 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,21 +20,24 @@ 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_ = ""; @@ -27,34 +45,41 @@ private GetObjectRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetObjectRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetObjectRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_GetObjectRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetObjectRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_GetObjectRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.GetObjectRequest.class, com.google.storage.v2.GetObjectRequest.Builder.class); + com.google.storage.v2.GetObjectRequest.class, + com.google.storage.v2.GetObjectRequest.Builder.class); } private int bitField0_; public static final int BUCKET_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object bucket_ = ""; /** + * + * *
                * Required. Name of the bucket in which the object resides.
                * 
            * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bucket. */ @java.lang.Override @@ -63,29 +88,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 { @@ -94,14 +121,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 @@ -110,29 +141,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 { @@ -143,12 +174,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 @@ -159,11 +193,14 @@ public long getGeneration() { public static final int SOFT_DELETED_FIELD_NUMBER = 11; private boolean softDeleted_ = false; /** + * + * *
                * If true, return the soft-deleted version of this object.
                * 
            * * optional bool soft_deleted = 11; + * * @return Whether the softDeleted field is set. */ @java.lang.Override @@ -171,11 +208,14 @@ public boolean hasSoftDeleted() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * If true, return the soft-deleted version of this object.
                * 
            * * optional bool soft_deleted = 11; + * * @return The softDeleted. */ @java.lang.Override @@ -186,6 +226,8 @@ public boolean getSoftDeleted() { public static final int IF_GENERATION_MATCH_FIELD_NUMBER = 4; private long ifGenerationMatch_ = 0L; /** + * + * *
                * Makes the operation conditional on whether the object's current generation
                * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -193,6 +235,7 @@ public boolean getSoftDeleted() {
                * 
            * * optional int64 if_generation_match = 4; + * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -200,6 +243,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
            @@ -207,6 +252,7 @@ public boolean hasIfGenerationMatch() {
                * 
            * * optional int64 if_generation_match = 4; + * * @return The ifGenerationMatch. */ @java.lang.Override @@ -217,6 +263,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
            @@ -225,6 +273,7 @@ public long getIfGenerationMatch() {
                * 
            * * optional int64 if_generation_not_match = 5; + * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -232,6 +281,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
            @@ -240,6 +291,7 @@ public boolean hasIfGenerationNotMatch() {
                * 
            * * optional int64 if_generation_not_match = 5; + * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -250,12 +302,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 @@ -263,12 +318,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 = 6; + * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -279,12 +337,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 @@ -292,12 +353,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 = 7; + * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -308,11 +372,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 @@ -320,18 +387,25 @@ public boolean hasCommonObjectRequestParams() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; + * * @return The commonObjectRequestParams. */ @java.lang.Override public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { - return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; + return commonObjectRequestParams_ == null + ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() + : commonObjectRequestParams_; } /** + * + * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            @@ -339,13 +413,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
            @@ -354,6 +433,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 @@ -361,6 +441,8 @@ public boolean hasReadMask() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
                * Mask specifying which fields to read.
                * If no mask is specified, will default to all fields except metadata.acl and
            @@ -369,6 +451,7 @@ public boolean hasReadMask() {
                * 
            * * optional .google.protobuf.FieldMask read_mask = 10; + * * @return The readMask. */ @java.lang.Override @@ -376,6 +459,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
            @@ -391,6 +476,7 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
               }
             
               private byte memoizedIsInitialized = -1;
            +
               @java.lang.Override
               public final boolean isInitialized() {
                 byte isInitialized = memoizedIsInitialized;
            @@ -402,8 +488,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_);
                 }
            @@ -450,36 +535,30 @@ public int getSerializedSize() {
                   size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, object_);
                 }
                 if (generation_ != 0L) {
            -      size += com.google.protobuf.CodedOutputStream
            -        .computeInt64Size(3, generation_);
            +      size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, generation_);
                 }
                 if (((bitField0_ & 0x00000002) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream
            -        .computeInt64Size(4, ifGenerationMatch_);
            +      size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ifGenerationMatch_);
                 }
                 if (((bitField0_ & 0x00000004) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream
            -        .computeInt64Size(5, ifGenerationNotMatch_);
            +      size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, ifGenerationNotMatch_);
                 }
                 if (((bitField0_ & 0x00000008) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream
            -        .computeInt64Size(6, ifMetagenerationMatch_);
            +      size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, ifMetagenerationMatch_);
                 }
                 if (((bitField0_ & 0x00000010) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream
            -        .computeInt64Size(7, ifMetagenerationNotMatch_);
            +      size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, ifMetagenerationNotMatch_);
                 }
                 if (((bitField0_ & 0x00000020) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream
            -        .computeMessageSize(8, getCommonObjectRequestParams());
            +      size +=
            +          com.google.protobuf.CodedOutputStream.computeMessageSize(
            +              8, getCommonObjectRequestParams());
                 }
                 if (((bitField0_ & 0x00000040) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream
            -        .computeMessageSize(10, getReadMask());
            +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getReadMask());
                 }
                 if (((bitField0_ & 0x00000001) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream
            -        .computeBoolSize(11, softDeleted_);
            +      size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, softDeleted_);
                 }
                 size += getUnknownFields().getSerializedSize();
                 memoizedSize = size;
            @@ -489,53 +568,44 @@ public int getSerializedSize() {
               @java.lang.Override
               public boolean equals(final java.lang.Object obj) {
                 if (obj == this) {
            -     return true;
            +      return true;
                 }
                 if (!(obj instanceof com.google.storage.v2.GetObjectRequest)) {
                   return super.equals(obj);
                 }
                 com.google.storage.v2.GetObjectRequest other = (com.google.storage.v2.GetObjectRequest) obj;
             
            -    if (!getBucket()
            -        .equals(other.getBucket())) return false;
            -    if (!getObject()
            -        .equals(other.getObject())) return false;
            -    if (getGeneration()
            -        != other.getGeneration()) return false;
            +    if (!getBucket().equals(other.getBucket())) return false;
            +    if (!getObject().equals(other.getObject())) return false;
            +    if (getGeneration() != other.getGeneration()) return false;
                 if (hasSoftDeleted() != other.hasSoftDeleted()) return false;
                 if (hasSoftDeleted()) {
            -      if (getSoftDeleted()
            -          != other.getSoftDeleted()) return false;
            +      if (getSoftDeleted() != other.getSoftDeleted()) return false;
                 }
                 if (hasIfGenerationMatch() != other.hasIfGenerationMatch()) return false;
                 if (hasIfGenerationMatch()) {
            -      if (getIfGenerationMatch()
            -          != other.getIfGenerationMatch()) return false;
            +      if (getIfGenerationMatch() != other.getIfGenerationMatch()) return false;
                 }
                 if (hasIfGenerationNotMatch() != other.hasIfGenerationNotMatch()) return false;
                 if (hasIfGenerationNotMatch()) {
            -      if (getIfGenerationNotMatch()
            -          != other.getIfGenerationNotMatch()) return false;
            +      if (getIfGenerationNotMatch() != other.getIfGenerationNotMatch()) return false;
                 }
                 if (hasIfMetagenerationMatch() != other.hasIfMetagenerationMatch()) return false;
                 if (hasIfMetagenerationMatch()) {
            -      if (getIfMetagenerationMatch()
            -          != other.getIfMetagenerationMatch()) return false;
            +      if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false;
                 }
                 if (hasIfMetagenerationNotMatch() != other.hasIfMetagenerationNotMatch()) return false;
                 if (hasIfMetagenerationNotMatch()) {
            -      if (getIfMetagenerationNotMatch()
            -          != other.getIfMetagenerationNotMatch()) return false;
            +      if (getIfMetagenerationNotMatch() != other.getIfMetagenerationNotMatch()) return false;
                 }
                 if (hasCommonObjectRequestParams() != other.hasCommonObjectRequestParams()) return false;
                 if (hasCommonObjectRequestParams()) {
            -      if (!getCommonObjectRequestParams()
            -          .equals(other.getCommonObjectRequestParams())) return false;
            +      if (!getCommonObjectRequestParams().equals(other.getCommonObjectRequestParams()))
            +        return false;
                 }
                 if (hasReadMask() != other.hasReadMask()) return false;
                 if (hasReadMask()) {
            -      if (!getReadMask()
            -          .equals(other.getReadMask())) return false;
            +      if (!getReadMask().equals(other.getReadMask())) return false;
                 }
                 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
                 return true;
            @@ -553,32 +623,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());
                 if (hasSoftDeleted()) {
                   hash = (37 * hash) + SOFT_DELETED_FIELD_NUMBER;
            -      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
            -          getSoftDeleted());
            +      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSoftDeleted());
                 }
                 if (hasIfGenerationMatch()) {
                   hash = (37 * hash) + IF_GENERATION_MATCH_FIELD_NUMBER;
            -      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            -          getIfGenerationMatch());
            +      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfGenerationMatch());
                 }
                 if (hasIfGenerationNotMatch()) {
                   hash = (37 * hash) + IF_GENERATION_NOT_MATCH_FIELD_NUMBER;
            -      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            -          getIfGenerationNotMatch());
            +      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfGenerationNotMatch());
                 }
                 if (hasIfMetagenerationMatch()) {
                   hash = (37 * hash) + IF_METAGENERATION_MATCH_FIELD_NUMBER;
            -      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            -          getIfMetagenerationMatch());
            +      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationMatch());
                 }
                 if (hasIfMetagenerationNotMatch()) {
                   hash = (37 * hash) + IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER;
            -      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            -          getIfMetagenerationNotMatch());
            +      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationNotMatch());
                 }
                 if (hasCommonObjectRequestParams()) {
                   hash = (37 * hash) + COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER;
            @@ -593,120 +657,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() @@ -714,18 +785,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(); @@ -752,9 +823,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 @@ -773,8 +844,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; } @@ -812,15 +886,14 @@ private void buildPartial0(com.google.storage.v2.GetObjectRequest result) { to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null - ? commonObjectRequestParams_ - : commonObjectRequestParamsBuilder_.build(); + result.commonObjectRequestParams_ = + commonObjectRequestParamsBuilder_ == null + ? commonObjectRequestParams_ + : commonObjectRequestParamsBuilder_.build(); to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.readMask_ = readMaskBuilder_ == null - ? readMask_ - : readMaskBuilder_.build(); + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); to_bitField0_ |= 0x00000040; } result.bitField0_ |= to_bitField0_; @@ -830,38 +903,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; @@ -930,66 +1004,74 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - bucket_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - object_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - generation_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - ifGenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000010; - break; - } // case 32 - case 40: { - ifGenerationNotMatch_ = input.readInt64(); - bitField0_ |= 0x00000020; - break; - } // case 40 - case 48: { - ifMetagenerationMatch_ = input.readInt64(); - bitField0_ |= 0x00000040; - break; - } // case 48 - case 56: { - ifMetagenerationNotMatch_ = input.readInt64(); - bitField0_ |= 0x00000080; - break; - } // case 56 - case 66: { - input.readMessage( - getCommonObjectRequestParamsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 66 - case 82: { - input.readMessage( - getReadMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 88: { - softDeleted_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 88 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + bucket_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + object_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + generation_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + ifGenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 40: + { + ifGenerationNotMatch_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 40 + case 48: + { + ifMetagenerationMatch_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 48 + case 56: + { + ifMetagenerationNotMatch_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 56 + case 66: + { + input.readMessage( + getCommonObjectRequestParamsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 82: + { + input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 88: + { + softDeleted_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 88 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -999,22 +1081,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; @@ -1023,20 +1110,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 { @@ -1044,28 +1134,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() { @@ -1075,17 +1176,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; @@ -1095,18 +1202,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; @@ -1115,20 +1224,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 { @@ -1136,28 +1246,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() { @@ -1167,17 +1284,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; @@ -1185,14 +1306,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 @@ -1200,12 +1324,15 @@ 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. */ @@ -1217,12 +1344,15 @@ public Builder setGeneration(long value) { return this; } /** + * + * *
                  * If present, selects a specific revision of this object (as opposed to the
                  * latest version, the default).
                  * 
            * * int64 generation = 3; + * * @return This builder for chaining. */ public Builder clearGeneration() { @@ -1232,13 +1362,16 @@ public Builder clearGeneration() { return this; } - private boolean softDeleted_ ; + private boolean softDeleted_; /** + * + * *
                  * If true, return the soft-deleted version of this object.
                  * 
            * * optional bool soft_deleted = 11; + * * @return Whether the softDeleted field is set. */ @java.lang.Override @@ -1246,11 +1379,14 @@ public boolean hasSoftDeleted() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
                  * If true, return the soft-deleted version of this object.
                  * 
            * * optional bool soft_deleted = 11; + * * @return The softDeleted. */ @java.lang.Override @@ -1258,11 +1394,14 @@ public boolean getSoftDeleted() { return softDeleted_; } /** + * + * *
                  * If true, return the soft-deleted version of this object.
                  * 
            * * optional bool soft_deleted = 11; + * * @param value The softDeleted to set. * @return This builder for chaining. */ @@ -1274,11 +1413,14 @@ public Builder setSoftDeleted(boolean value) { return this; } /** + * + * *
                  * If true, return the soft-deleted version of this object.
                  * 
            * * optional bool soft_deleted = 11; + * * @return This builder for chaining. */ public Builder clearSoftDeleted() { @@ -1288,8 +1430,10 @@ public Builder clearSoftDeleted() { return this; } - private long ifGenerationMatch_ ; + private long ifGenerationMatch_; /** + * + * *
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -1297,6 +1441,7 @@ public Builder clearSoftDeleted() {
                  * 
            * * optional int64 if_generation_match = 4; + * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -1304,6 +1449,8 @@ public boolean hasIfGenerationMatch() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -1311,6 +1458,7 @@ public boolean hasIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_match = 4; + * * @return The ifGenerationMatch. */ @java.lang.Override @@ -1318,6 +1466,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
            @@ -1325,6 +1475,7 @@ public long getIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_match = 4; + * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ @@ -1336,6 +1487,8 @@ public Builder setIfGenerationMatch(long value) { return this; } /** + * + * *
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -1343,6 +1496,7 @@ public Builder setIfGenerationMatch(long value) {
                  * 
            * * optional int64 if_generation_match = 4; + * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -1352,8 +1506,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
            @@ -1362,6 +1518,7 @@ public Builder clearIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_not_match = 5; + * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -1369,6 +1526,8 @@ public boolean hasIfGenerationNotMatch() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
                  * Makes the operation conditional on whether the object's live generation
                  * does not match the given value. If no live object exists, the precondition
            @@ -1377,6 +1536,7 @@ public boolean hasIfGenerationNotMatch() {
                  * 
            * * optional int64 if_generation_not_match = 5; + * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -1384,6 +1544,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
            @@ -1392,6 +1554,7 @@ public long getIfGenerationNotMatch() {
                  * 
            * * optional int64 if_generation_not_match = 5; + * * @param value The ifGenerationNotMatch to set. * @return This builder for chaining. */ @@ -1403,6 +1566,8 @@ public Builder setIfGenerationNotMatch(long value) { return this; } /** + * + * *
                  * Makes the operation conditional on whether the object's live generation
                  * does not match the given value. If no live object exists, the precondition
            @@ -1411,6 +1576,7 @@ public Builder setIfGenerationNotMatch(long value) {
                  * 
            * * optional int64 if_generation_not_match = 5; + * * @return This builder for chaining. */ public Builder clearIfGenerationNotMatch() { @@ -1420,14 +1586,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 @@ -1435,12 +1604,15 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 6; + * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -1448,12 +1620,15 @@ 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. */ @@ -1465,12 +1640,15 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** + * + * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 6; + * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -1480,14 +1658,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 @@ -1495,12 +1676,15 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 7; + * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -1508,12 +1692,15 @@ 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. */ @@ -1525,12 +1712,15 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** + * + * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 7; + * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -1542,41 +1732,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_ & 0x00000100) != 0); } /** + * + * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; + * * @return The commonObjectRequestParams. */ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { if (commonObjectRequestParamsBuilder_ == null) { - return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; + return commonObjectRequestParams_ == null + ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() + : commonObjectRequestParams_; } else { return commonObjectRequestParamsBuilder_.getMessage(); } } /** + * + * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ - public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { + public Builder setCommonObjectRequestParams( + com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1590,6 +1794,8 @@ public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRe return this; } /** + * + * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -1608,17 +1814,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_ & 0x00000100) != 0) && - commonObjectRequestParams_ != null && - commonObjectRequestParams_ != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && commonObjectRequestParams_ != null + && commonObjectRequestParams_ + != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { getCommonObjectRequestParamsBuilder().mergeFrom(value); } else { commonObjectRequestParams_ = value; @@ -1633,6 +1843,8 @@ public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObject return this; } /** + * + * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -1650,33 +1862,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_ |= 0x00000100; onChanged(); return getCommonObjectRequestParamsFieldBuilder().getBuilder(); } /** + * + * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder + getCommonObjectRequestParamsOrBuilder() { if (commonObjectRequestParamsBuilder_ != null) { return commonObjectRequestParamsBuilder_.getMessageOrBuilder(); } else { - return commonObjectRequestParams_ == null ? - com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; + return commonObjectRequestParams_ == null + ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() + : commonObjectRequestParams_; } } /** + * + * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -1684,14 +1905,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_; @@ -1699,8 +1923,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
            @@ -1709,12 +1938,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_ & 0x00000200) != 0); } /** + * + * *
                  * Mask specifying which fields to read.
                  * If no mask is specified, will default to all fields except metadata.acl and
            @@ -1723,6 +1955,7 @@ public boolean hasReadMask() {
                  * 
            * * optional .google.protobuf.FieldMask read_mask = 10; + * * @return The readMask. */ public com.google.protobuf.FieldMask getReadMask() { @@ -1733,6 +1966,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
            @@ -1756,6 +1991,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
            @@ -1765,8 +2002,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 {
            @@ -1777,6 +2013,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
            @@ -1788,9 +2026,9 @@ public Builder setReadMask(
                  */
                 public Builder mergeReadMask(com.google.protobuf.FieldMask value) {
                   if (readMaskBuilder_ == null) {
            -        if (((bitField0_ & 0x00000200) != 0) &&
            -          readMask_ != null &&
            -          readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
            +        if (((bitField0_ & 0x00000200) != 0)
            +            && readMask_ != null
            +            && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
                       getReadMaskBuilder().mergeFrom(value);
                     } else {
                       readMask_ = value;
            @@ -1805,6 +2043,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
            @@ -1825,6 +2065,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
            @@ -1840,6 +2082,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
            @@ -1853,11 +2097,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
            @@ -1868,21 +2113,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);
                 }
             
            @@ -1892,12 +2140,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();
               }
            @@ -1906,27 +2154,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;
            @@ -1941,6 +2189,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 83%
            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 a59071291a..3c9d4e4b29 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,84 +1,125 @@
            +/*
            + * Copyright 2024 Google LLC
            + *
            + * Licensed under the Apache License, Version 2.0 (the "License");
            + * you may not use this file except in compliance with the License.
            + * You may obtain a copy of the License at
            + *
            + *     https://www.apache.org/licenses/LICENSE-2.0
            + *
            + * Unless required by applicable law or agreed to in writing, software
            + * distributed under the License is distributed on an "AS IS" BASIS,
            + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            + * See the License for the specific language governing permissions and
            + * limitations under the License.
            + */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
             // Protobuf Java Version: 3.25.3
             package com.google.storage.v2;
             
            -public interface GetObjectRequestOrBuilder extends
            +public interface GetObjectRequestOrBuilder
            +    extends
                 // @@protoc_insertion_point(interface_extends:google.storage.v2.GetObjectRequest)
                 com.google.protobuf.MessageOrBuilder {
             
               /**
            +   *
            +   *
                * 
                * Required. Name of the bucket in which the object resides.
                * 
            * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bucket. */ java.lang.String getBucket(); /** + * + * *
                * Required. Name of the bucket in which the object resides.
                * 
            * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for bucket. */ - com.google.protobuf.ByteString - getBucketBytes(); + com.google.protobuf.ByteString getBucketBytes(); /** + * + * *
                * Required. Name of the object.
                * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The object. */ java.lang.String getObject(); /** + * + * *
                * Required. Name of the object.
                * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for object. */ - com.google.protobuf.ByteString - getObjectBytes(); + com.google.protobuf.ByteString getObjectBytes(); /** + * + * *
                * If present, selects a specific revision of this object (as opposed to the
                * latest version, the default).
                * 
            * * int64 generation = 3; + * * @return The generation. */ long getGeneration(); /** + * + * *
                * If true, return the soft-deleted version of this object.
                * 
            * * optional bool soft_deleted = 11; + * * @return Whether the softDeleted field is set. */ boolean hasSoftDeleted(); /** + * + * *
                * If true, return the soft-deleted version of this object.
                * 
            * * optional bool soft_deleted = 11; + * * @return The softDeleted. */ boolean getSoftDeleted(); /** + * + * *
                * Makes the operation conditional on whether the object's current generation
                * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -86,10 +127,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
            @@ -97,11 +141,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
            @@ -110,10 +157,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
            @@ -122,71 +172,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.
                * 
            @@ -196,6 +267,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
            @@ -204,10 +277,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
            @@ -216,10 +292,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 7f7ed3d0e8..103bc4a558 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,3 +1,18 @@
            +/*
            + * Copyright 2024 Google LLC
            + *
            + * Licensed under the Apache License, Version 2.0 (the "License");
            + * you may not use this file except in compliance with the License.
            + * You may obtain a copy of the License at
            + *
            + *     https://www.apache.org/licenses/LICENSE-2.0
            + *
            + * Unless required by applicable law or agreed to in writing, software
            + * distributed under the License is distributed on an "AS IS" BASIS,
            + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            + * See the License for the specific language governing permissions and
            + * limitations under the License.
            + */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
            @@ -5,55 +20,65 @@
             package com.google.storage.v2;
             
             /**
            + *
            + *
              * 
              * Request message for GetServiceAccount.
              * 
            * * Protobuf type {@code google.storage.v2.GetServiceAccountRequest} */ -public final class GetServiceAccountRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetServiceAccountRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.v2.GetServiceAccountRequest) GetServiceAccountRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetServiceAccountRequest.newBuilder() to construct. private GetServiceAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetServiceAccountRequest() { project_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetServiceAccountRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetServiceAccountRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_GetServiceAccountRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_GetServiceAccountRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_GetServiceAccountRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.GetServiceAccountRequest.class, com.google.storage.v2.GetServiceAccountRequest.Builder.class); + com.google.storage.v2.GetServiceAccountRequest.class, + com.google.storage.v2.GetServiceAccountRequest.Builder.class); } public static final int PROJECT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object project_ = ""; /** + * + * *
                * Required. Project ID, in the format of "projects/{projectIdentifier}".
                * {projectIdentifier} can be the project ID or project number.
                * 
            * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The project. */ @java.lang.Override @@ -62,30 +87,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 { @@ -94,6 +121,7 @@ public java.lang.String getProject() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -105,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(project_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); } @@ -130,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.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; } @@ -157,132 +184,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(); @@ -292,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_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 @@ -313,8 +344,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; } @@ -330,38 +364,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; @@ -401,17 +436,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) { @@ -421,23 +458,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; @@ -446,21 +488,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 { @@ -468,30 +513,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() { @@ -501,27 +557,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); } @@ -531,12 +593,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(); } @@ -545,27 +607,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; @@ -580,6 +642,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..9d883a5127 --- /dev/null +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/GetServiceAccountRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/storage/v2/storage.proto + +// Protobuf Java Version: 3.25.3 +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 c013c3b034..08557a21b6 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,21 +20,24 @@ 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_ = ""; @@ -31,29 +49,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(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_HmacKeyMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_HmacKeyMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_HmacKeyMetadata_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_HmacKeyMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.HmacKeyMetadata.class, com.google.storage.v2.HmacKeyMetadata.Builder.class); + com.google.storage.v2.HmacKeyMetadata.class, + com.google.storage.v2.HmacKeyMetadata.Builder.class); } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** + * + * *
                * Immutable. Resource name ID of the key in the format
                * {projectIdentifier}/{accessId}.
            @@ -61,6 +83,7 @@ protected java.lang.Object newInstance(
                * 
            * * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The id. */ @java.lang.Override @@ -69,14 +92,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}.
            @@ -84,16 +108,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 { @@ -102,14 +125,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 @@ -118,29 +145,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 { @@ -149,16 +176,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 @@ -167,31 +200,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 { @@ -200,14 +235,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 @@ -216,29 +255,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 { @@ -247,15 +286,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 @@ -264,30 +307,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 { @@ -298,11 +341,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 @@ -310,11 +357,15 @@ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * Output only. The creation time of the HMAC key.
                * 
            * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -322,11 +373,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() { @@ -336,11 +390,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 @@ -348,11 +406,15 @@ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
                * Output only. The last modification time of the HMAC key metadata.
                * 
            * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -360,11 +422,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() { @@ -372,14 +437,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 @@ -388,29 +457,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 { @@ -419,6 +488,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -430,8 +500,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_); } @@ -481,12 +550,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, state_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { - 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_); @@ -499,35 +566,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; } @@ -564,120 +623,126 @@ 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() @@ -685,18 +750,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) { getCreateTimeFieldBuilder(); getUpdateTimeFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -721,9 +786,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 @@ -742,8 +807,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; } @@ -767,15 +835,11 @@ private void buildPartial0(com.google.storage.v2.HmacKeyMetadata result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000020) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000080) != 0)) { @@ -788,38 +852,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; @@ -890,56 +955,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) { @@ -949,10 +1019,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}.
            @@ -960,13 +1033,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; @@ -975,6 +1048,8 @@ public java.lang.String getId() { } } /** + * + * *
                  * Immutable. Resource name ID of the key in the format
                  * {projectIdentifier}/{accessId}.
            @@ -982,15 +1057,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 { @@ -998,6 +1072,8 @@ public java.lang.String getId() { } } /** + * + * *
                  * Immutable. Resource name ID of the key in the format
                  * {projectIdentifier}/{accessId}.
            @@ -1005,18 +1081,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}.
            @@ -1024,6 +1104,7 @@ public Builder setId(
                  * 
            * * string id = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearId() { @@ -1033,6 +1114,8 @@ public Builder clearId() { return this; } /** + * + * *
                  * Immutable. Resource name ID of the key in the format
                  * {projectIdentifier}/{accessId}.
            @@ -1040,12 +1123,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; @@ -1055,18 +1140,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; @@ -1075,20 +1162,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 { @@ -1096,28 +1184,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() { @@ -1127,17 +1222,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; @@ -1147,20 +1246,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; @@ -1169,22 +1272,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 { @@ -1192,32 +1298,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() { @@ -1227,19 +1344,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; @@ -1249,18 +1372,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; @@ -1269,20 +1394,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 { @@ -1290,28 +1416,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() { @@ -1321,17 +1454,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; @@ -1341,19 +1478,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; @@ -1362,21 +1501,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 { @@ -1384,30 +1524,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() { @@ -1417,18 +1564,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; @@ -1438,39 +1589,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) { @@ -1486,14 +1656,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 { @@ -1504,17 +1677,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; @@ -1529,11 +1706,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); @@ -1546,11 +1727,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; @@ -1558,36 +1743,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_; @@ -1595,39 +1792,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) { @@ -1643,14 +1859,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 { @@ -1661,17 +1880,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; @@ -1686,11 +1909,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); @@ -1703,11 +1930,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; @@ -1715,36 +1946,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_; @@ -1752,18 +1995,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; @@ -1772,20 +2017,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 { @@ -1793,28 +2039,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() { @@ -1824,26 +2077,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); } @@ -1853,12 +2110,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(); } @@ -1867,27 +2124,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; @@ -1902,6 +2159,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 5423e56dd2..10537fa671 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,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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}.
            @@ -16,10 +34,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}.
            @@ -27,168 +48,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 aff73c09ae..3f0459ea2d 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,21 +20,24 @@ 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_ = ""; @@ -28,34 +46,41 @@ private ListBucketsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListBucketsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListBucketsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_ListBucketsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListBucketsRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_ListBucketsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListBucketsRequest.class, com.google.storage.v2.ListBucketsRequest.Builder.class); + com.google.storage.v2.ListBucketsRequest.class, + com.google.storage.v2.ListBucketsRequest.Builder.class); } private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
                * Required. The project whose buckets we are listing.
                * 
            * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -64,29 +89,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 { @@ -97,6 +124,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
            @@ -105,6 +134,7 @@ public java.lang.String getParent() {
                * 
            * * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -113,15 +143,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 @@ -130,30 +164,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 { @@ -162,14 +196,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 @@ -178,29 +216,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 { @@ -211,6 +249,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,
            @@ -219,6 +259,7 @@ public java.lang.String getPrefix() {
                * 
            * * optional .google.protobuf.FieldMask read_mask = 5; + * * @return Whether the readMask field is set. */ @java.lang.Override @@ -226,6 +267,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,
            @@ -234,6 +277,7 @@ public boolean hasReadMask() {
                * 
            * * optional .google.protobuf.FieldMask read_mask = 5; + * * @return The readMask. */ @java.lang.Override @@ -241,6 +285,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,
            @@ -256,6 +302,7 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
               }
             
               private byte memoizedIsInitialized = -1;
            +
               @java.lang.Override
               public final boolean isInitialized() {
                 byte isInitialized = memoizedIsInitialized;
            @@ -267,8 +314,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_);
                 }
            @@ -297,8 +343,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_);
            @@ -307,8 +352,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;
            @@ -318,25 +362,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;
            @@ -366,120 +405,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() @@ -487,17 +533,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(); @@ -515,9 +561,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 @@ -536,8 +582,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; } @@ -558,9 +607,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_; @@ -570,38 +617,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; @@ -657,39 +705,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) { @@ -699,22 +751,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; @@ -723,20 +780,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 { @@ -744,28 +804,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() { @@ -775,17 +846,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; @@ -793,8 +870,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
            @@ -803,6 +882,7 @@ public Builder setParentBytes(
                  * 
            * * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -810,6 +890,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
            @@ -818,6 +900,7 @@ public int getPageSize() {
                  * 
            * * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -829,6 +912,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
                  * Maximum number of buckets to return in a single response. The service will
                  * use this parameter or 1,000 items, whichever is smaller. If "acl" is
            @@ -837,6 +922,7 @@ public Builder setPageSize(int value) {
                  * 
            * * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -848,19 +934,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; @@ -869,21 +957,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 { @@ -891,30 +980,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() { @@ -924,18 +1020,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; @@ -945,18 +1045,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; @@ -965,20 +1067,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 { @@ -986,28 +1089,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() { @@ -1017,17 +1127,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; @@ -1037,8 +1151,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,
            @@ -1047,12 +1166,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,
            @@ -1061,6 +1183,7 @@ public boolean hasReadMask() {
                  * 
            * * optional .google.protobuf.FieldMask read_mask = 5; + * * @return The readMask. */ public com.google.protobuf.FieldMask getReadMask() { @@ -1071,6 +1194,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,
            @@ -1094,6 +1219,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,
            @@ -1103,8 +1230,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 {
            @@ -1115,6 +1241,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,
            @@ -1126,9 +1254,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 +1271,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 +1293,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 +1310,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 +1325,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 +1341,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 +1368,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 +1382,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 +1417,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 290e1ecff3..57c83288a6 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,34 +1,61 @@
            +/*
            + * Copyright 2024 Google LLC
            + *
            + * Licensed under the Apache License, Version 2.0 (the "License");
            + * you may not use this file except in compliance with the License.
            + * You may obtain a copy of the License at
            + *
            + *     https://www.apache.org/licenses/LICENSE-2.0
            + *
            + * Unless required by applicable law or agreed to in writing, software
            + * distributed under the License is distributed on an "AS IS" BASIS,
            + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            + * See the License for the specific language governing permissions and
            + * limitations under the License.
            + */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
             // Protobuf Java Version: 3.25.3
             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
            @@ -37,53 +64,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,
            @@ -92,10 +132,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,
            @@ -104,10 +147,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 ae70de0fa0..9f3b2e621e 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,3 +1,18 @@
            +/*
            + * Copyright 2024 Google LLC
            + *
            + * Licensed under the Apache License, Version 2.0 (the "License");
            + * you may not use this file except in compliance with the License.
            + * You may obtain a copy of the License at
            + *
            + *     https://www.apache.org/licenses/LICENSE-2.0
            + *
            + * Unless required by applicable law or agreed to in writing, software
            + * distributed under the License is distributed on an "AS IS" BASIS,
            + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            + * See the License for the specific language governing permissions and
            + * limitations under the License.
            + */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
            @@ -5,21 +20,24 @@
             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_ = ""; @@ -27,28 +45,32 @@ private ListBucketsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListBucketsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListBucketsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_ListBucketsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListBucketsResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_ListBucketsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListBucketsResponse.class, com.google.storage.v2.ListBucketsResponse.Builder.class); + com.google.storage.v2.ListBucketsResponse.class, + com.google.storage.v2.ListBucketsResponse.Builder.class); } public static final int BUCKETS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List buckets_; /** + * + * *
                * The list of items.
                * 
            @@ -60,6 +82,8 @@ public java.util.List getBucketsList() { return buckets_; } /** + * + * *
                * The list of items.
                * 
            @@ -67,11 +91,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.
                * 
            @@ -83,6 +108,8 @@ public int getBucketsCount() { return buckets_.size(); } /** + * + * *
                * The list of items.
                * 
            @@ -94,6 +121,8 @@ public com.google.storage.v2.Bucket getBuckets(int index) { return buckets_.get(index); } /** + * + * *
                * The list of items.
                * 
            @@ -101,21 +130,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 @@ -124,30 +156,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 { @@ -156,6 +188,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,8 +200,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)); } @@ -185,8 +217,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_); @@ -199,17 +230,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; } @@ -232,132 +262,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(); @@ -374,9 +408,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 @@ -395,9 +429,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; } @@ -425,38 +462,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; @@ -483,9 +521,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_); } @@ -522,30 +561,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) { @@ -555,21 +595,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.
                  * 
            @@ -584,6 +631,8 @@ public java.util.List getBucketsList() { } } /** + * + * *
                  * The list of items.
                  * 
            @@ -598,6 +647,8 @@ public int getBucketsCount() { } } /** + * + * *
                  * The list of items.
                  * 
            @@ -612,14 +663,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(); @@ -633,14 +685,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()); @@ -651,6 +704,8 @@ public Builder setBuckets( return this; } /** + * + * *
                  * The list of items.
                  * 
            @@ -671,14 +726,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(); @@ -692,14 +748,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()); @@ -710,14 +767,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()); @@ -728,6 +786,8 @@ public Builder addBuckets( return this; } /** + * + * *
                  * The list of items.
                  * 
            @@ -738,8 +798,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); @@ -747,6 +806,8 @@ public Builder addAllBuckets( return this; } /** + * + * *
                  * The list of items.
                  * 
            @@ -764,6 +825,8 @@ public Builder clearBuckets() { return this; } /** + * + * *
                  * The list of items.
                  * 
            @@ -781,39 +844,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 { @@ -821,6 +889,8 @@ public com.google.storage.v2.BucketOrBuilder getBucketsOrBuilder( } } /** + * + * *
                  * The list of items.
                  * 
            @@ -828,42 +898,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_; @@ -871,19 +945,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; @@ -892,21 +968,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 { @@ -914,30 +991,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() { @@ -947,27 +1031,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); } @@ -977,12 +1065,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(); } @@ -991,27 +1079,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; @@ -1026,6 +1114,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 8f6c1867f0..d097829222 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,23 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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.
                * 
            @@ -26,6 +45,8 @@ public interface ListBucketsResponseOrBuilder extends */ com.google.storage.v2.Bucket getBuckets(int index); /** + * + * *
                * The list of items.
                * 
            @@ -34,43 +55,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 2deeda73e3..833ed56d45 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,21 +20,24 @@ 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_ = ""; @@ -28,35 +46,42 @@ private ListHmacKeysRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListHmacKeysRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListHmacKeysRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_ListHmacKeysRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListHmacKeysRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_ListHmacKeysRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListHmacKeysRequest.class, com.google.storage.v2.ListHmacKeysRequest.Builder.class); + com.google.storage.v2.ListHmacKeysRequest.class, + com.google.storage.v2.ListHmacKeysRequest.Builder.class); } public static final int PROJECT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object project_ = ""; /** + * + * *
                * Required. The project to list HMAC keys for, in the format of
                * "projects/{projectIdentifier}".
                * {projectIdentifier} can be the project ID or project number.
                * 
            * - * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The project. */ @java.lang.Override @@ -65,31 +90,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 { @@ -100,11 +127,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 @@ -113,14 +143,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 @@ -129,29 +163,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 { @@ -160,14 +194,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 @@ -176,29 +214,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 { @@ -209,11 +247,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 @@ -222,6 +263,7 @@ public boolean getShowDeletedKeys() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -233,8 +275,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_); } @@ -263,8 +304,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_); @@ -273,8 +313,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; @@ -284,23 +323,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; } @@ -321,139 +356,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(); @@ -467,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_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 @@ -488,8 +526,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; } @@ -517,38 +558,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; @@ -604,37 +646,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) { @@ -644,24 +692,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; @@ -670,22 +723,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 { @@ -693,32 +749,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() { @@ -728,19 +795,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; @@ -748,13 +821,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 @@ -762,11 +838,14 @@ 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. */ @@ -778,11 +857,14 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
                  * The maximum number of keys to return.
                  * 
            * * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -794,18 +876,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; @@ -814,20 +898,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 { @@ -835,28 +920,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() { @@ -866,17 +958,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; @@ -886,18 +982,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; @@ -906,20 +1004,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 { @@ -927,28 +1026,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() { @@ -958,17 +1064,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; @@ -976,13 +1086,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 @@ -990,11 +1103,14 @@ 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. */ @@ -1006,11 +1122,14 @@ public Builder setShowDeletedKeys(boolean value) { return this; } /** + * + * *
                  * If set, return deleted keys that have not yet been wiped out.
                  * 
            * * bool show_deleted_keys = 5; + * * @return This builder for chaining. */ public Builder clearShowDeletedKeys() { @@ -1019,9 +1138,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); } @@ -1031,12 +1150,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(); } @@ -1045,27 +1164,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; @@ -1080,6 +1199,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 1d24bf9080..170f169364 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,93 +1,134 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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 962f9e482c..54344d68a8 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,21 +20,24 @@ 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_ = ""; @@ -27,28 +45,32 @@ private ListHmacKeysResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListHmacKeysResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListHmacKeysResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_ListHmacKeysResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListHmacKeysResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_ListHmacKeysResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListHmacKeysResponse.class, com.google.storage.v2.ListHmacKeysResponse.Builder.class); + com.google.storage.v2.ListHmacKeysResponse.class, + com.google.storage.v2.ListHmacKeysResponse.Builder.class); } public static final int HMAC_KEYS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List hmacKeys_; /** + * + * *
                * The list of items.
                * 
            @@ -60,6 +82,8 @@ public java.util.List getHmacKeysList() { return hmacKeys_; } /** + * + * *
                * The list of items.
                * 
            @@ -67,11 +91,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.
                * 
            @@ -83,6 +109,8 @@ public int getHmacKeysCount() { return hmacKeys_.size(); } /** + * + * *
                * The list of items.
                * 
            @@ -94,6 +122,8 @@ public com.google.storage.v2.HmacKeyMetadata getHmacKeys(int index) { return hmacKeys_.get(index); } /** + * + * *
                * The list of items.
                * 
            @@ -101,21 +131,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 @@ -124,30 +157,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 { @@ -156,6 +189,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,8 +201,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)); } @@ -185,8 +218,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_); @@ -199,17 +231,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; } @@ -232,132 +263,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(); @@ -374,9 +409,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 @@ -395,9 +430,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; } @@ -425,38 +463,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; @@ -483,9 +522,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_); } @@ -522,30 +562,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) { @@ -555,21 +597,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.
                  * 
            @@ -584,6 +633,8 @@ public java.util.List getHmacKeysList() { } } /** + * + * *
                  * The list of items.
                  * 
            @@ -598,6 +649,8 @@ public int getHmacKeysCount() { } } /** + * + * *
                  * The list of items.
                  * 
            @@ -612,14 +665,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(); @@ -633,6 +687,8 @@ public Builder setHmacKeys( return this; } /** + * + * *
                  * The list of items.
                  * 
            @@ -651,6 +707,8 @@ public Builder setHmacKeys( return this; } /** + * + * *
                  * The list of items.
                  * 
            @@ -671,14 +729,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(); @@ -692,14 +751,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()); @@ -710,6 +770,8 @@ public Builder addHmacKeys( return this; } /** + * + * *
                  * The list of items.
                  * 
            @@ -728,6 +790,8 @@ public Builder addHmacKeys( return this; } /** + * + * *
                  * The list of items.
                  * 
            @@ -738,8 +802,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); @@ -747,6 +810,8 @@ public Builder addAllHmacKeys( return this; } /** + * + * *
                  * The list of items.
                  * 
            @@ -764,6 +829,8 @@ public Builder clearHmacKeys() { return this; } /** + * + * *
                  * The list of items.
                  * 
            @@ -781,39 +848,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 { @@ -821,6 +893,8 @@ public com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeysOrBuilder( } } /** + * + * *
                  * The list of items.
                  * 
            @@ -828,42 +902,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_; @@ -871,19 +950,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; @@ -892,21 +973,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 { @@ -914,30 +996,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() { @@ -947,27 +1036,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); } @@ -977,12 +1070,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(); } @@ -991,27 +1084,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; @@ -1026,6 +1119,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 8388b2d630..994e550681 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,23 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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.
                * 
            @@ -26,6 +45,8 @@ public interface ListHmacKeysResponseOrBuilder extends */ com.google.storage.v2.HmacKeyMetadata getHmacKeys(int index); /** + * + * *
                * The list of items.
                * 
            @@ -34,43 +55,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 71eea1415d..199bc95e08 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,21 +20,25 @@ 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_ = ""; @@ -27,33 +46,40 @@ private ListNotificationConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNotificationConfigsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListNotificationConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_ListNotificationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListNotificationConfigsRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_ListNotificationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListNotificationConfigsRequest.class, com.google.storage.v2.ListNotificationConfigsRequest.Builder.class); + com.google.storage.v2.ListNotificationConfigsRequest.class, + com.google.storage.v2.ListNotificationConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
                * Required. Name of a Google Cloud Storage bucket.
                * 
            * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -62,29 +88,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 { @@ -95,6 +123,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
            @@ -102,6 +132,7 @@ public java.lang.String getParent() {
                * 
            * * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -110,9 +141,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.
            @@ -122,6 +156,7 @@ public int getPageSize() {
                * 
            * * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -130,14 +165,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.
            @@ -147,16 +183,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 { @@ -165,6 +200,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -176,8 +212,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_); } @@ -200,8 +235,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_); @@ -214,19 +248,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; } @@ -250,131 +282,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 +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_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 +443,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 +469,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 +509,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 +550,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 +584,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 +613,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 +637,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 +679,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 +703,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 +714,7 @@ public Builder setParentBytes(
                  * 
            * * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -649,6 +722,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,6 +731,7 @@ public int getPageSize() {
                  * 
            * * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -667,6 +743,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
                  * The maximum number of NotificationConfigs to return. The service may
                  * return fewer than this value. The default value is 100. Specifying a value
            @@ -674,6 +752,7 @@ public Builder setPageSize(int value) {
                  * 
            * * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -685,6 +764,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.
            @@ -694,13 +775,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; @@ -709,6 +790,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
                  * A page token, received from a previous `ListNotificationConfigs` call.
                  * Provide this to retrieve the subsequent page.
            @@ -718,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 { @@ -734,6 +816,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
                  * A page token, received from a previous `ListNotificationConfigs` call.
                  * Provide this to retrieve the subsequent page.
            @@ -743,18 +827,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.
            @@ -764,6 +852,7 @@ public Builder setPageToken(
                  * 
            * * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -773,6 +862,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
                  * A page token, received from a previous `ListNotificationConfigs` call.
                  * Provide this to retrieve the subsequent page.
            @@ -782,21 +873,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); } @@ -806,12 +899,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(); } @@ -820,27 +913,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; @@ -855,6 +948,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 f2b7416867..1c08d45143 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,34 +1,61 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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
            @@ -36,11 +63,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.
            @@ -50,10 +80,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.
            @@ -63,8 +96,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 40b7e632b1..9e0c00e9ae 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,21 +20,25 @@ 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_ = ""; @@ -27,28 +46,32 @@ private ListNotificationConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNotificationConfigsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListNotificationConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_ListNotificationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListNotificationConfigsResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_ListNotificationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListNotificationConfigsResponse.class, com.google.storage.v2.ListNotificationConfigsResponse.Builder.class); + com.google.storage.v2.ListNotificationConfigsResponse.class, + com.google.storage.v2.ListNotificationConfigsResponse.Builder.class); } public static final int NOTIFICATION_CONFIGS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List notificationConfigs_; /** + * + * *
                * The list of items.
                * 
            @@ -60,6 +83,8 @@ public java.util.List getNotificationC return notificationConfigs_; } /** + * + * *
                * The list of items.
                * 
            @@ -67,11 +92,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.
                * 
            @@ -83,6 +110,8 @@ public int getNotificationConfigsCount() { return notificationConfigs_.size(); } /** + * + * *
                * The list of items.
                * 
            @@ -94,6 +123,8 @@ public com.google.storage.v2.NotificationConfig getNotificationConfigs(int index return notificationConfigs_.get(index); } /** + * + * *
                * The list of items.
                * 
            @@ -107,15 +138,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 @@ -124,30 +159,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 { @@ -156,6 +191,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,8 +203,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)); } @@ -185,8 +220,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_); @@ -199,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.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; } @@ -233,131 +267,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(); @@ -374,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_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 @@ -395,14 +434,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_); @@ -425,38 +468,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; @@ -464,7 +508,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()) { @@ -483,9 +528,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_); } @@ -522,30 +568,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) { @@ -555,21 +603,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.
                  * 
            @@ -584,6 +640,8 @@ public java.util.List getNotificationC } } /** + * + * *
                  * The list of items.
                  * 
            @@ -598,6 +656,8 @@ public int getNotificationConfigsCount() { } } /** + * + * *
                  * The list of items.
                  * 
            @@ -612,6 +672,8 @@ public com.google.storage.v2.NotificationConfig getNotificationConfigs(int index } } /** + * + * *
                  * The list of items.
                  * 
            @@ -633,6 +695,8 @@ public Builder setNotificationConfigs( return this; } /** + * + * *
                  * The list of items.
                  * 
            @@ -651,6 +715,8 @@ public Builder setNotificationConfigs( return this; } /** + * + * *
                  * The list of items.
                  * 
            @@ -671,6 +737,8 @@ public Builder addNotificationConfigs(com.google.storage.v2.NotificationConfig v return this; } /** + * + * *
                  * The list of items.
                  * 
            @@ -692,6 +760,8 @@ public Builder addNotificationConfigs( return this; } /** + * + * *
                  * The list of items.
                  * 
            @@ -710,6 +780,8 @@ public Builder addNotificationConfigs( return this; } /** + * + * *
                  * The list of items.
                  * 
            @@ -728,6 +800,8 @@ public Builder addNotificationConfigs( return this; } /** + * + * *
                  * The list of items.
                  * 
            @@ -738,8 +812,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); @@ -747,6 +820,8 @@ public Builder addAllNotificationConfigs( return this; } /** + * + * *
                  * The list of items.
                  * 
            @@ -764,6 +839,8 @@ public Builder clearNotificationConfigs() { return this; } /** + * + * *
                  * The list of items.
                  * 
            @@ -781,6 +858,8 @@ public Builder removeNotificationConfigs(int index) { return this; } /** + * + * *
                  * The list of items.
                  * 
            @@ -792,6 +871,8 @@ public com.google.storage.v2.NotificationConfig.Builder getNotificationConfigsBu return getNotificationConfigsFieldBuilder().getBuilder(index); } /** + * + * *
                  * The list of items.
                  * 
            @@ -801,19 +882,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 { @@ -821,6 +905,8 @@ public com.google.storage.v2.NotificationConfigOrBuilder getNotificationConfigsO } } /** + * + * *
                  * The list of items.
                  * 
            @@ -828,10 +914,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.
                  * 
            @@ -840,26 +928,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(), @@ -871,19 +967,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; @@ -892,21 +990,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 { @@ -914,30 +1013,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() { @@ -947,27 +1053,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); } @@ -977,12 +1087,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(); } @@ -991,27 +1101,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; @@ -1026,6 +1136,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 bd5f536dfc..ee7634c0bc 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,23 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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.
                * 
            @@ -26,6 +45,8 @@ public interface ListNotificationConfigsResponseOrBuilder extends */ com.google.storage.v2.NotificationConfig getNotificationConfigs(int index); /** + * + * *
                * The list of items.
                * 
            @@ -34,43 +55,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 76% 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 65fdf83254..ddb575f2ac 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,21 +20,24 @@ 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_ = ""; @@ -32,34 +50,41 @@ private ListObjectsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListObjectsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListObjectsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_ListObjectsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListObjectsRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_ListObjectsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListObjectsRequest.class, com.google.storage.v2.ListObjectsRequest.Builder.class); + com.google.storage.v2.ListObjectsRequest.class, + com.google.storage.v2.ListObjectsRequest.Builder.class); } private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
                * Required. Name of the bucket in which to look for objects.
                * 
            * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -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. 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 { @@ -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 `items` plus `prefixes` to return
                * in a single page of responses. As duplicate `prefixes` are
            @@ -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,9 +200,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
            @@ -179,6 +216,7 @@ public java.lang.String getPageToken() {
                * 
            * * string delimiter = 4; + * * @return The delimiter. */ @java.lang.Override @@ -187,14 +225,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
            @@ -205,16 +244,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 { @@ -225,6 +263,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
            @@ -232,6 +272,7 @@ public java.lang.String getDelimiter() {
                * 
            * * bool include_trailing_delimiter = 5; + * * @return The includeTrailingDelimiter. */ @java.lang.Override @@ -240,14 +281,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 @@ -256,29 +301,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 { @@ -289,6 +334,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
            @@ -297,6 +344,7 @@ public java.lang.String getPrefix() {
                * 
            * * bool versions = 7; + * * @return The versions. */ @java.lang.Override @@ -307,6 +355,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
            @@ -315,6 +365,7 @@ public boolean getVersions() {
                * 
            * * optional .google.protobuf.FieldMask read_mask = 8; + * * @return Whether the readMask field is set. */ @java.lang.Override @@ -322,6 +373,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
            @@ -330,6 +383,7 @@ public boolean hasReadMask() {
                * 
            * * optional .google.protobuf.FieldMask read_mask = 8; + * * @return The readMask. */ @java.lang.Override @@ -337,6 +391,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
            @@ -352,9 +408,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
            @@ -363,6 +422,7 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
                * 
            * * string lexicographic_start = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The lexicographicStart. */ @java.lang.Override @@ -371,14 +431,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
            @@ -387,16 +448,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 { @@ -405,9 +465,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
            @@ -416,6 +479,7 @@ public java.lang.String getLexicographicStart() {
                * 
            * * string lexicographic_end = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The lexicographicEnd. */ @java.lang.Override @@ -424,14 +488,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
            @@ -440,16 +505,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 { @@ -460,12 +524,15 @@ public java.lang.String getLexicographicEnd() { public static final int SOFT_DELETED_FIELD_NUMBER = 12; private boolean softDeleted_ = false; /** + * + * *
                * Optional. If true, only list all soft-deleted versions of the object.
                * Soft delete policy is required to set this option.
                * 
            * * bool soft_deleted = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The softDeleted. */ @java.lang.Override @@ -476,12 +543,15 @@ public boolean getSoftDeleted() { public static final int INCLUDE_FOLDERS_AS_PREFIXES_FIELD_NUMBER = 13; private boolean includeFoldersAsPrefixes_ = false; /** + * + * *
                * Optional. If true, will also include folders and managed folders (besides
                * objects) in the returned `prefixes`. Requires `delimiter` to be set to '/'.
                * 
            * * bool include_folders_as_prefixes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The includeFoldersAsPrefixes. */ @java.lang.Override @@ -490,9 +560,12 @@ public boolean getIncludeFoldersAsPrefixes() { } public static final int MATCH_GLOB_FIELD_NUMBER = 14; + @SuppressWarnings("serial") private volatile java.lang.Object matchGlob_ = ""; /** + * + * *
                * Optional. Filter results to objects and prefixes that match this glob
                * pattern. See [List Objects Using
            @@ -501,6 +574,7 @@ public boolean getIncludeFoldersAsPrefixes() {
                * 
            * * string match_glob = 14 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The matchGlob. */ @java.lang.Override @@ -509,14 +583,15 @@ public java.lang.String getMatchGlob() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); matchGlob_ = s; return s; } } /** + * + * *
                * Optional. Filter results to objects and prefixes that match this glob
                * pattern. See [List Objects Using
            @@ -525,16 +600,15 @@ public java.lang.String getMatchGlob() {
                * 
            * * string match_glob = 14 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for matchGlob. */ @java.lang.Override - public com.google.protobuf.ByteString - getMatchGlobBytes() { + public com.google.protobuf.ByteString getMatchGlobBytes() { java.lang.Object ref = matchGlob_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); matchGlob_ = b; return b; } else { @@ -543,6 +617,7 @@ public java.lang.String getMatchGlob() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -554,8 +629,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_); } @@ -608,8 +682,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_); @@ -618,19 +691,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_); @@ -639,12 +709,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, lexicographicEnd_); } if (softDeleted_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(12, softDeleted_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, softDeleted_); } if (includeFoldersAsPrefixes_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(13, includeFoldersAsPrefixes_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, includeFoldersAsPrefixes_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(matchGlob_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, matchGlob_); @@ -657,42 +725,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.ListObjectsRequest)) { return super.equals(obj); } com.google.storage.v2.ListObjectsRequest other = (com.google.storage.v2.ListObjectsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getDelimiter() - .equals(other.getDelimiter())) return false; - if (getIncludeTrailingDelimiter() - != other.getIncludeTrailingDelimiter()) return false; - if (!getPrefix() - .equals(other.getPrefix())) return false; - if (getVersions() - != other.getVersions()) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getDelimiter().equals(other.getDelimiter())) return false; + if (getIncludeTrailingDelimiter() != other.getIncludeTrailingDelimiter()) return false; + if (!getPrefix().equals(other.getPrefix())) return false; + if (getVersions() != other.getVersions()) return false; if (hasReadMask() != other.hasReadMask()) return false; if (hasReadMask()) { - if (!getReadMask() - .equals(other.getReadMask())) return false; - } - if (!getLexicographicStart() - .equals(other.getLexicographicStart())) return false; - if (!getLexicographicEnd() - .equals(other.getLexicographicEnd())) return false; - if (getSoftDeleted() - != other.getSoftDeleted()) return false; - if (getIncludeFoldersAsPrefixes() - != other.getIncludeFoldersAsPrefixes()) return false; - if (!getMatchGlob() - .equals(other.getMatchGlob())) return false; + if (!getReadMask().equals(other.getReadMask())) return false; + } + if (!getLexicographicStart().equals(other.getLexicographicStart())) return false; + if (!getLexicographicEnd().equals(other.getLexicographicEnd())) return false; + if (getSoftDeleted() != other.getSoftDeleted()) return false; + if (getIncludeFoldersAsPrefixes() != other.getIncludeFoldersAsPrefixes()) return false; + if (!getMatchGlob().equals(other.getMatchGlob())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -713,13 +768,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(); @@ -729,11 +782,9 @@ public int hashCode() { hash = (37 * hash) + LEXICOGRAPHIC_END_FIELD_NUMBER; hash = (53 * hash) + getLexicographicEnd().hashCode(); hash = (37 * hash) + SOFT_DELETED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSoftDeleted()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSoftDeleted()); hash = (37 * hash) + INCLUDE_FOLDERS_AS_PREFIXES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIncludeFoldersAsPrefixes()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeFoldersAsPrefixes()); hash = (37 * hash) + MATCH_GLOB_FIELD_NUMBER; hash = (53 * hash) + getMatchGlob().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -741,120 +792,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() @@ -862,17 +920,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(); @@ -898,9 +956,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 @@ -919,8 +977,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; } @@ -950,9 +1011,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)) { @@ -977,38 +1036,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; @@ -1096,79 +1156,91 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - delimiter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: { - includeTrailingDelimiter_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 50: { - prefix_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 56: { - versions_ = input.readBool(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 66: { - input.readMessage( - getReadMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 82: { - lexicographicStart_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 82 - case 90: { - lexicographicEnd_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; - break; - } // case 90 - case 96: { - softDeleted_ = input.readBool(); - bitField0_ |= 0x00000400; - break; - } // case 96 - case 104: { - includeFoldersAsPrefixes_ = input.readBool(); - bitField0_ |= 0x00000800; - break; - } // case 104 - case 114: { - matchGlob_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; - break; - } // case 114 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + delimiter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + includeTrailingDelimiter_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + prefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + versions_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 66: + { + input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 82: + { + lexicographicStart_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 82 + case 90: + { + lexicographicEnd_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 90 + case 96: + { + softDeleted_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 96 + case 104: + { + includeFoldersAsPrefixes_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 104 + case 114: + { + matchGlob_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 114 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1178,22 +1250,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; @@ -1202,20 +1279,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 { @@ -1223,28 +1303,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() { @@ -1254,17 +1345,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; @@ -1272,8 +1369,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
            @@ -1282,6 +1381,7 @@ public Builder setParentBytes(
                  * 
            * * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -1289,6 +1389,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
                  * Maximum number of `items` plus `prefixes` to return
                  * in a single page of responses. As duplicate `prefixes` are
            @@ -1297,6 +1399,7 @@ public int getPageSize() {
                  * 
            * * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1308,6 +1411,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
                  * Maximum number of `items` plus `prefixes` to return
                  * in a single page of responses. As duplicate `prefixes` are
            @@ -1316,6 +1421,7 @@ public Builder setPageSize(int value) {
                  * 
            * * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1327,19 +1433,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; @@ -1348,21 +1456,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 { @@ -1370,30 +1479,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() { @@ -1403,18 +1519,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; @@ -1424,6 +1544,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
            @@ -1434,13 +1556,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; @@ -1449,6 +1571,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
            @@ -1459,15 +1583,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 { @@ -1475,6 +1598,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
            @@ -1485,18 +1610,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
            @@ -1507,6 +1636,7 @@ public Builder setDelimiter(
                  * 
            * * string delimiter = 4; + * * @return This builder for chaining. */ public Builder clearDelimiter() { @@ -1516,6 +1646,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
            @@ -1526,12 +1658,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; @@ -1539,8 +1673,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
            @@ -1548,6 +1684,7 @@ public Builder setDelimiterBytes(
                  * 
            * * bool include_trailing_delimiter = 5; + * * @return The includeTrailingDelimiter. */ @java.lang.Override @@ -1555,6 +1692,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
            @@ -1562,6 +1701,7 @@ public boolean getIncludeTrailingDelimiter() {
                  * 
            * * bool include_trailing_delimiter = 5; + * * @param value The includeTrailingDelimiter to set. * @return This builder for chaining. */ @@ -1573,6 +1713,8 @@ public Builder setIncludeTrailingDelimiter(boolean value) { return this; } /** + * + * *
                  * If true, objects that end in exactly one instance of `delimiter`
                  * will have their metadata included in `items` in addition to
            @@ -1580,6 +1722,7 @@ public Builder setIncludeTrailingDelimiter(boolean value) {
                  * 
            * * bool include_trailing_delimiter = 5; + * * @return This builder for chaining. */ public Builder clearIncludeTrailingDelimiter() { @@ -1591,18 +1734,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; @@ -1611,20 +1756,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 { @@ -1632,28 +1778,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() { @@ -1663,17 +1816,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; @@ -1681,8 +1838,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
            @@ -1691,6 +1850,7 @@ public Builder setPrefixBytes(
                  * 
            * * bool versions = 7; + * * @return The versions. */ @java.lang.Override @@ -1698,6 +1858,8 @@ public boolean getVersions() { return versions_; } /** + * + * *
                  * If `true`, lists all versions of an object as distinct results.
                  * For more information, see
            @@ -1706,6 +1868,7 @@ public boolean getVersions() {
                  * 
            * * bool versions = 7; + * * @param value The versions to set. * @return This builder for chaining. */ @@ -1717,6 +1880,8 @@ public Builder setVersions(boolean value) { return this; } /** + * + * *
                  * If `true`, lists all versions of an object as distinct results.
                  * For more information, see
            @@ -1725,6 +1890,7 @@ public Builder setVersions(boolean value) {
                  * 
            * * bool versions = 7; + * * @return This builder for chaining. */ public Builder clearVersions() { @@ -1736,8 +1902,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
            @@ -1746,12 +1917,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
            @@ -1760,6 +1934,7 @@ public boolean hasReadMask() {
                  * 
            * * optional .google.protobuf.FieldMask read_mask = 8; + * * @return The readMask. */ public com.google.protobuf.FieldMask getReadMask() { @@ -1770,6 +1945,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
            @@ -1793,6 +1970,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
            @@ -1802,8 +1981,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 {
            @@ -1814,6 +1992,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
            @@ -1825,9 +2005,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;
            @@ -1842,6 +2022,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
            @@ -1862,6 +2044,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
            @@ -1877,6 +2061,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
            @@ -1890,11 +2076,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
            @@ -1905,14 +2092,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_;
            @@ -1920,6 +2110,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
            @@ -1928,13 +2120,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; @@ -1943,6 +2135,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
            @@ -1951,15 +2145,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 { @@ -1967,6 +2160,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
            @@ -1975,18 +2170,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
            @@ -1995,6 +2194,7 @@ public Builder setLexicographicStart(
                  * 
            * * string lexicographic_start = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearLexicographicStart() { @@ -2004,6 +2204,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
            @@ -2012,12 +2214,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; @@ -2027,6 +2231,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
            @@ -2035,13 +2241,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; @@ -2050,6 +2256,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
            @@ -2058,15 +2266,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 { @@ -2074,6 +2281,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
            @@ -2082,18 +2291,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
            @@ -2102,6 +2315,7 @@ public Builder setLexicographicEnd(
                  * 
            * * string lexicographic_end = 11 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearLexicographicEnd() { @@ -2111,6 +2325,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
            @@ -2119,12 +2335,14 @@ 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; @@ -2132,14 +2350,17 @@ public Builder setLexicographicEndBytes( return this; } - private boolean softDeleted_ ; + private boolean softDeleted_; /** + * + * *
                  * Optional. If true, only list all soft-deleted versions of the object.
                  * Soft delete policy is required to set this option.
                  * 
            * * bool soft_deleted = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The softDeleted. */ @java.lang.Override @@ -2147,12 +2368,15 @@ public boolean getSoftDeleted() { return softDeleted_; } /** + * + * *
                  * Optional. If true, only list all soft-deleted versions of the object.
                  * Soft delete policy is required to set this option.
                  * 
            * * bool soft_deleted = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The softDeleted to set. * @return This builder for chaining. */ @@ -2164,12 +2388,15 @@ public Builder setSoftDeleted(boolean value) { return this; } /** + * + * *
                  * Optional. If true, only list all soft-deleted versions of the object.
                  * Soft delete policy is required to set this option.
                  * 
            * * bool soft_deleted = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSoftDeleted() { @@ -2179,14 +2406,17 @@ public Builder clearSoftDeleted() { return this; } - private boolean includeFoldersAsPrefixes_ ; + private boolean includeFoldersAsPrefixes_; /** + * + * *
                  * Optional. If true, will also include folders and managed folders (besides
                  * objects) in the returned `prefixes`. Requires `delimiter` to be set to '/'.
                  * 
            * * bool include_folders_as_prefixes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The includeFoldersAsPrefixes. */ @java.lang.Override @@ -2194,12 +2424,15 @@ public boolean getIncludeFoldersAsPrefixes() { return includeFoldersAsPrefixes_; } /** + * + * *
                  * Optional. If true, will also include folders and managed folders (besides
                  * objects) in the returned `prefixes`. Requires `delimiter` to be set to '/'.
                  * 
            * * bool include_folders_as_prefixes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The includeFoldersAsPrefixes to set. * @return This builder for chaining. */ @@ -2211,12 +2444,15 @@ public Builder setIncludeFoldersAsPrefixes(boolean value) { return this; } /** + * + * *
                  * Optional. If true, will also include folders and managed folders (besides
                  * objects) in the returned `prefixes`. Requires `delimiter` to be set to '/'.
                  * 
            * * bool include_folders_as_prefixes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearIncludeFoldersAsPrefixes() { @@ -2228,6 +2464,8 @@ public Builder clearIncludeFoldersAsPrefixes() { private java.lang.Object matchGlob_ = ""; /** + * + * *
                  * Optional. Filter results to objects and prefixes that match this glob
                  * pattern. See [List Objects Using
            @@ -2236,13 +2474,13 @@ public Builder clearIncludeFoldersAsPrefixes() {
                  * 
            * * string match_glob = 14 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The matchGlob. */ public java.lang.String getMatchGlob() { java.lang.Object ref = matchGlob_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); matchGlob_ = s; return s; @@ -2251,6 +2489,8 @@ public java.lang.String getMatchGlob() { } } /** + * + * *
                  * Optional. Filter results to objects and prefixes that match this glob
                  * pattern. See [List Objects Using
            @@ -2259,15 +2499,14 @@ public java.lang.String getMatchGlob() {
                  * 
            * * string match_glob = 14 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for matchGlob. */ - public com.google.protobuf.ByteString - getMatchGlobBytes() { + public com.google.protobuf.ByteString getMatchGlobBytes() { java.lang.Object ref = matchGlob_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); matchGlob_ = b; return b; } else { @@ -2275,6 +2514,8 @@ public java.lang.String getMatchGlob() { } } /** + * + * *
                  * Optional. Filter results to objects and prefixes that match this glob
                  * pattern. See [List Objects Using
            @@ -2283,18 +2524,22 @@ public java.lang.String getMatchGlob() {
                  * 
            * * string match_glob = 14 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The matchGlob to set. * @return This builder for chaining. */ - public Builder setMatchGlob( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMatchGlob(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } matchGlob_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** + * + * *
                  * Optional. Filter results to objects and prefixes that match this glob
                  * pattern. See [List Objects Using
            @@ -2303,6 +2548,7 @@ public Builder setMatchGlob(
                  * 
            * * string match_glob = 14 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMatchGlob() { @@ -2312,6 +2558,8 @@ public Builder clearMatchGlob() { return this; } /** + * + * *
                  * Optional. Filter results to objects and prefixes that match this glob
                  * pattern. See [List Objects Using
            @@ -2320,21 +2568,23 @@ public Builder clearMatchGlob() {
                  * 
            * * string match_glob = 14 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for matchGlob to set. * @return This builder for chaining. */ - public Builder setMatchGlobBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMatchGlobBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); matchGlob_ = value; bitField0_ |= 0x00001000; 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); } @@ -2344,12 +2594,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(); } @@ -2358,27 +2608,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; @@ -2393,6 +2643,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 83% 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 63015e56d3..6abda60794 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,34 +1,61 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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
            @@ -37,33 +64,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
            @@ -74,10 +109,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
            @@ -88,12 +126,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
            @@ -101,31 +141,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
            @@ -134,11 +182,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
            @@ -147,10 +198,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
            @@ -159,10 +213,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
            @@ -175,6 +232,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
            @@ -183,10 +242,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
            @@ -195,12 +257,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
            @@ -209,10 +273,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
            @@ -221,34 +288,42 @@ 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(); /** + * + * *
                * Optional. If true, only list all soft-deleted versions of the object.
                * Soft delete policy is required to set this option.
                * 
            * * bool soft_deleted = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The softDeleted. */ boolean getSoftDeleted(); /** + * + * *
                * Optional. If true, will also include folders and managed folders (besides
                * objects) in the returned `prefixes`. Requires `delimiter` to be set to '/'.
                * 
            * * bool include_folders_as_prefixes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The includeFoldersAsPrefixes. */ boolean getIncludeFoldersAsPrefixes(); /** + * + * *
                * Optional. Filter results to objects and prefixes that match this glob
                * pattern. See [List Objects Using
            @@ -257,10 +332,13 @@ public interface ListObjectsRequestOrBuilder extends
                * 
            * * string match_glob = 14 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The matchGlob. */ java.lang.String getMatchGlob(); /** + * + * *
                * Optional. Filter results to objects and prefixes that match this glob
                * pattern. See [List Objects Using
            @@ -269,8 +347,8 @@ public interface ListObjectsRequestOrBuilder extends
                * 
            * * string match_glob = 14 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for matchGlob. */ - com.google.protobuf.ByteString - getMatchGlobBytes(); + com.google.protobuf.ByteString getMatchGlobBytes(); } diff --git a/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 72% 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 fd0243b297..392f5c5cc9 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,52 +20,58 @@ package com.google.storage.v2; /** + * + * *
              * The result of a call to Objects.ListObjects
              * 
            * * Protobuf type {@code google.storage.v2.ListObjectsResponse} */ -public final class ListObjectsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListObjectsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.v2.ListObjectsResponse) ListObjectsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListObjectsResponse.newBuilder() to construct. private ListObjectsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListObjectsResponse() { objects_ = java.util.Collections.emptyList(); - prefixes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + prefixes_ = com.google.protobuf.LazyStringArrayList.emptyList(); nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListObjectsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListObjectsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_ListObjectsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListObjectsResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_ListObjectsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ListObjectsResponse.class, com.google.storage.v2.ListObjectsResponse.Builder.class); + com.google.storage.v2.ListObjectsResponse.class, + com.google.storage.v2.ListObjectsResponse.Builder.class); } public static final int OBJECTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List objects_; /** + * + * *
                * The list of items.
                * 
            @@ -62,6 +83,8 @@ public java.util.List getObjectsList() { return objects_; } /** + * + * *
                * The list of items.
                * 
            @@ -69,11 +92,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.
                * 
            @@ -85,6 +109,8 @@ public int getObjectsCount() { return objects_.size(); } /** + * + * *
                * The list of items.
                * 
            @@ -96,6 +122,8 @@ public com.google.storage.v2.Object getObjects(int index) { return objects_.get(index); } /** + * + * *
                * The list of items.
                * 
            @@ -103,47 +131,55 @@ public com.google.storage.v2.Object getObjects(int index) { * repeated .google.storage.v2.Object objects = 1; */ @java.lang.Override - public com.google.storage.v2.ObjectOrBuilder getObjectsOrBuilder( - int index) { + public com.google.storage.v2.ObjectOrBuilder getObjectsOrBuilder(int index) { return objects_.get(index); } public static final int PREFIXES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList prefixes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
                * The list of prefixes of objects matching-but-not-listed up to and including
                * the requested delimiter.
                * 
            * * repeated string prefixes = 2; + * * @return A list containing the prefixes. */ - public com.google.protobuf.ProtocolStringList - getPrefixesList() { + public com.google.protobuf.ProtocolStringList getPrefixesList() { return prefixes_; } /** + * + * *
                * The list of prefixes of objects matching-but-not-listed up to and including
                * the requested delimiter.
                * 
            * * repeated string prefixes = 2; + * * @return The count of prefixes. */ public int getPrefixesCount() { return prefixes_.size(); } /** + * + * *
                * The list of prefixes of objects matching-but-not-listed up to and including
                * the requested delimiter.
                * 
            * * repeated string prefixes = 2; + * * @param index The index of the element to return. * @return The prefixes at the given index. */ @@ -151,30 +187,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 @@ -183,30 +225,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 { @@ -215,6 +257,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -226,8 +269,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)); } @@ -247,8 +289,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; @@ -269,19 +310,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; } @@ -308,132 +347,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(); @@ -445,16 +488,15 @@ public Builder clear() { objectsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); - prefixes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + prefixes_ = com.google.protobuf.LazyStringArrayList.emptyList(); nextPageToken_ = ""; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ListObjectsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_ListObjectsResponse_descriptor; } @java.lang.Override @@ -473,9 +515,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; } @@ -507,38 +552,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; @@ -565,9 +611,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_); } @@ -614,36 +661,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) { @@ -653,21 +702,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.
                  * 
            @@ -682,6 +738,8 @@ public java.util.List getObjectsList() { } } /** + * + * *
                  * The list of items.
                  * 
            @@ -696,6 +754,8 @@ public int getObjectsCount() { } } /** + * + * *
                  * The list of items.
                  * 
            @@ -710,14 +770,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(); @@ -731,14 +792,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()); @@ -749,6 +811,8 @@ public Builder setObjects( return this; } /** + * + * *
                  * The list of items.
                  * 
            @@ -769,14 +833,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(); @@ -790,14 +855,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()); @@ -808,14 +874,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()); @@ -826,6 +893,8 @@ public Builder addObjects( return this; } /** + * + * *
                  * The list of items.
                  * 
            @@ -836,8 +905,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); @@ -845,6 +913,8 @@ public Builder addAllObjects( return this; } /** + * + * *
                  * The list of items.
                  * 
            @@ -862,6 +932,8 @@ public Builder clearObjects() { return this; } /** + * + * *
                  * The list of items.
                  * 
            @@ -879,39 +951,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 { @@ -919,6 +996,8 @@ public com.google.storage.v2.ObjectOrBuilder getObjectsOrBuilder( } } /** + * + * *
                  * The list of items.
                  * 
            @@ -926,42 +1005,46 @@ 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_; @@ -969,6 +1052,7 @@ public com.google.storage.v2.Object.Builder addObjectsBuilder( private com.google.protobuf.LazyStringArrayList prefixes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensurePrefixesIsMutable() { if (!prefixes_.isModifiable()) { prefixes_ = new com.google.protobuf.LazyStringArrayList(prefixes_); @@ -976,38 +1060,46 @@ private void ensurePrefixesIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
                  * The list of prefixes of objects matching-but-not-listed up to and including
                  * the requested delimiter.
                  * 
            * * repeated string prefixes = 2; + * * @return A list containing the prefixes. */ - public com.google.protobuf.ProtocolStringList - getPrefixesList() { + public com.google.protobuf.ProtocolStringList getPrefixesList() { prefixes_.makeImmutable(); return prefixes_; } /** + * + * *
                  * The list of prefixes of objects matching-but-not-listed up to and including
                  * the requested delimiter.
                  * 
            * * repeated string prefixes = 2; + * * @return The count of prefixes. */ public int getPrefixesCount() { return prefixes_.size(); } /** + * + * *
                  * The list of prefixes of objects matching-but-not-listed up to and including
                  * the requested delimiter.
                  * 
            * * repeated string prefixes = 2; + * * @param index The index of the element to return. * @return The prefixes at the given index. */ @@ -1015,33 +1107,39 @@ public java.lang.String getPrefixes(int index) { return prefixes_.get(index); } /** + * + * *
                  * The list of prefixes of objects matching-but-not-listed up to and including
                  * the requested delimiter.
                  * 
            * * repeated string prefixes = 2; + * * @param index The index of the value to return. * @return The bytes of the prefixes at the given index. */ - public com.google.protobuf.ByteString - getPrefixesBytes(int index) { + public com.google.protobuf.ByteString getPrefixesBytes(int index) { return prefixes_.getByteString(index); } /** + * + * *
                  * The list of prefixes of objects matching-but-not-listed up to and including
                  * the requested delimiter.
                  * 
            * * repeated string prefixes = 2; + * * @param index The index to set the value at. * @param value The prefixes to set. * @return This builder for chaining. */ - public Builder setPrefixes( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPrefixes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensurePrefixesIsMutable(); prefixes_.set(index, value); bitField0_ |= 0x00000002; @@ -1049,18 +1147,22 @@ public Builder setPrefixes( return this; } /** + * + * *
                  * The list of prefixes of objects matching-but-not-listed up to and including
                  * the requested delimiter.
                  * 
            * * repeated string prefixes = 2; + * * @param value The prefixes to add. * @return This builder for chaining. */ - public Builder addPrefixes( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addPrefixes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensurePrefixesIsMutable(); prefixes_.add(value); bitField0_ |= 0x00000002; @@ -1068,53 +1170,61 @@ public Builder addPrefixes( return this; } /** + * + * *
                  * The list of prefixes of objects matching-but-not-listed up to and including
                  * the requested delimiter.
                  * 
            * * repeated string prefixes = 2; + * * @param values The prefixes to add. * @return This builder for chaining. */ - public Builder addAllPrefixes( - java.lang.Iterable values) { + public Builder addAllPrefixes(java.lang.Iterable values) { ensurePrefixesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, prefixes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, prefixes_); bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
                  * The list of prefixes of objects matching-but-not-listed up to and including
                  * the requested delimiter.
                  * 
            * * repeated string prefixes = 2; + * * @return This builder for chaining. */ public Builder clearPrefixes() { - prefixes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + prefixes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } /** + * + * *
                  * The list of prefixes of objects matching-but-not-listed up to and including
                  * the requested delimiter.
                  * 
            * * repeated string prefixes = 2; + * * @param value The bytes of the prefixes to add. * @return This builder for chaining. */ - public Builder addPrefixesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addPrefixesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensurePrefixesIsMutable(); prefixes_.add(value); @@ -1125,19 +1235,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; @@ -1146,21 +1258,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 { @@ -1168,30 +1281,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() { @@ -1201,27 +1321,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); } @@ -1231,12 +1355,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(); } @@ -1245,27 +1369,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; @@ -1280,6 +1404,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 0175326037..ef5e82b8a3 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,23 +1,42 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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.
                * 
            @@ -26,6 +45,8 @@ public interface ListObjectsResponseOrBuilder extends */ com.google.storage.v2.Object getObjects(int index); /** + * + * *
                * The list of items.
                * 
            @@ -34,88 +55,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 c5f19698c6..f866fcaa34 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,54 +20,65 @@ package com.google.storage.v2; /** + * + * *
              * Request message for LockBucketRetentionPolicyRequest.
              * 
            * * Protobuf type {@code google.storage.v2.LockBucketRetentionPolicyRequest} */ -public final class LockBucketRetentionPolicyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LockBucketRetentionPolicyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.v2.LockBucketRetentionPolicyRequest) LockBucketRetentionPolicyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LockBucketRetentionPolicyRequest.newBuilder() to construct. - private LockBucketRetentionPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private LockBucketRetentionPolicyRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private LockBucketRetentionPolicyRequest() { bucket_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LockBucketRetentionPolicyRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.LockBucketRetentionPolicyRequest.class, com.google.storage.v2.LockBucketRetentionPolicyRequest.Builder.class); + com.google.storage.v2.LockBucketRetentionPolicyRequest.class, + com.google.storage.v2.LockBucketRetentionPolicyRequest.Builder.class); } public static final int BUCKET_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object bucket_ = ""; /** + * + * *
                * Required. Name of a bucket.
                * 
            * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bucket. */ @java.lang.Override @@ -61,29 +87,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 { @@ -94,12 +122,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 @@ -108,6 +139,7 @@ public long getIfMetagenerationMatch() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -119,8 +151,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_); } @@ -140,8 +171,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; @@ -151,17 +181,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; } @@ -176,139 +205,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(); @@ -319,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_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 @@ -340,8 +373,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; } @@ -360,38 +396,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; @@ -399,7 +436,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; @@ -434,22 +472,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) { @@ -459,22 +500,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; @@ -483,20 +529,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 { @@ -504,28 +553,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() { @@ -535,17 +595,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; @@ -553,14 +619,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 @@ -568,12 +637,15 @@ 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. */ @@ -585,12 +657,15 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** + * + * *
                  * Required. Makes the operation conditional on whether bucket's current
                  * metageneration matches the given value. Must be positive.
                  * 
            * * int64 if_metageneration_match = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -599,9 +674,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); } @@ -611,12 +686,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(); } @@ -625,27 +700,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; @@ -660,6 +735,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..8c9b7e67c8 --- /dev/null +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/LockBucketRetentionPolicyRequestOrBuilder.java @@ -0,0 +1,69 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/storage/v2/storage.proto + +// Protobuf Java Version: 3.25.3 +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 a2184a4bcf..479b8ffb2b 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,41 +20,42 @@ package com.google.storage.v2; /** + * + * *
              * A directive to publish Pub/Sub notifications upon changes to a bucket.
              * 
            * * Protobuf type {@code google.storage.v2.NotificationConfig} */ -public final class NotificationConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class NotificationConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.v2.NotificationConfig) NotificationConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NotificationConfig.newBuilder() to construct. private NotificationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private NotificationConfig() { name_ = ""; topic_ = ""; etag_ = ""; - eventTypes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + eventTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); objectNamePrefix_ = ""; payloadFormat_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NotificationConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_NotificationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_NotificationConfig_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -50,22 +66,27 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl 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:
            @@ -74,6 +95,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
                * 
            * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -82,14 +104,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:
            @@ -98,16 +121,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 { @@ -116,9 +138,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:
            @@ -126,6 +151,7 @@ public java.lang.String getName() {
                * 
            * * string topic = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The topic. */ @java.lang.Override @@ -134,14 +160,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:
            @@ -149,16 +176,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 { @@ -167,9 +193,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
            @@ -177,6 +206,7 @@ public java.lang.String getTopic() {
                * 
            * * string etag = 7; + * * @return The etag. */ @java.lang.Override @@ -185,14 +215,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
            @@ -200,16 +231,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 { @@ -218,41 +248,50 @@ public java.lang.String getEtag() { } public static final int EVENT_TYPES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList eventTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
                * If present, only send notifications about listed event types. If
                * empty, sent notifications for all event types.
                * 
            * * repeated string event_types = 3; + * * @return A list containing the eventTypes. */ - public com.google.protobuf.ProtocolStringList - getEventTypesList() { + public com.google.protobuf.ProtocolStringList getEventTypesList() { return eventTypes_; } /** + * + * *
                * If present, only send notifications about listed event types. If
                * empty, sent notifications for all event types.
                * 
            * * repeated string event_types = 3; + * * @return The count of eventTypes. */ public int getEventTypesCount() { return eventTypes_.size(); } /** + * + * *
                * If present, only send notifications about listed event types. If
                * empty, sent notifications for all event types.
                * 
            * * repeated string event_types = 3; + * * @param index The index of the element to return. * @return The eventTypes at the given index. */ @@ -260,47 +299,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.
            @@ -309,20 +354,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.
            @@ -335,6 +381,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.
            @@ -343,17 +391,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.
            @@ -362,11 +412,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();
                 }
            @@ -374,15 +424,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 @@ -391,30 +445,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 { @@ -423,14 +477,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 @@ -439,29 +497,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 { @@ -470,6 +528,7 @@ public java.lang.String getPayloadFormat() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -481,8 +540,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_); } @@ -492,12 +550,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_); } @@ -530,15 +584,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_); @@ -557,27 +611,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; } @@ -612,112 +659,117 @@ 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"}) @@ -727,10 +779,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl 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.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { @@ -738,28 +790,27 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi 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(); @@ -767,8 +818,7 @@ public Builder clear() { name_ = ""; topic_ = ""; etag_ = ""; - eventTypes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + eventTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); internalGetMutableCustomAttributes().clear(); objectNamePrefix_ = ""; payloadFormat_ = ""; @@ -776,9 +826,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,8 +847,11 @@ public com.google.storage.v2.NotificationConfig build() { @java.lang.Override public com.google.storage.v2.NotificationConfig buildPartial() { - com.google.storage.v2.NotificationConfig result = new com.google.storage.v2.NotificationConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.storage.v2.NotificationConfig result = + new com.google.storage.v2.NotificationConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -834,38 +887,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; @@ -899,8 +953,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_; @@ -938,52 +991,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) { @@ -993,10 +1057,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
                  * Required. The resource name of this NotificationConfig.
                  * Format:
            @@ -1005,13 +1072,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; @@ -1020,6 +1087,8 @@ public java.lang.String getName() { } } /** + * + * *
                  * Required. The resource name of this NotificationConfig.
                  * Format:
            @@ -1028,15 +1097,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 { @@ -1044,6 +1112,8 @@ public java.lang.String getName() { } } /** + * + * *
                  * Required. The resource name of this NotificationConfig.
                  * Format:
            @@ -1052,18 +1122,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:
            @@ -1072,6 +1146,7 @@ public Builder setName(
                  * 
            * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1081,6 +1156,8 @@ public Builder clearName() { return this; } /** + * + * *
                  * Required. The resource name of this NotificationConfig.
                  * Format:
            @@ -1089,12 +1166,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; @@ -1104,6 +1183,8 @@ public Builder setNameBytes( private java.lang.Object topic_ = ""; /** + * + * *
                  * Required. The Pub/Sub topic to which this subscription publishes. Formatted
                  * as:
            @@ -1111,13 +1192,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; @@ -1126,6 +1207,8 @@ public java.lang.String getTopic() { } } /** + * + * *
                  * Required. The Pub/Sub topic to which this subscription publishes. Formatted
                  * as:
            @@ -1133,15 +1216,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 { @@ -1149,6 +1231,8 @@ public java.lang.String getTopic() { } } /** + * + * *
                  * Required. The Pub/Sub topic to which this subscription publishes. Formatted
                  * as:
            @@ -1156,18 +1240,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:
            @@ -1175,6 +1263,7 @@ public Builder setTopic(
                  * 
            * * string topic = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearTopic() { @@ -1184,6 +1273,8 @@ public Builder clearTopic() { return this; } /** + * + * *
                  * Required. The Pub/Sub topic to which this subscription publishes. Formatted
                  * as:
            @@ -1191,12 +1282,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; @@ -1206,6 +1299,8 @@ public Builder setTopicBytes( private java.lang.Object etag_ = ""; /** + * + * *
                  * The etag of the NotificationConfig.
                  * If included in the metadata of GetNotificationConfigRequest, the operation
            @@ -1213,13 +1308,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; @@ -1228,6 +1323,8 @@ public java.lang.String getEtag() { } } /** + * + * *
                  * The etag of the NotificationConfig.
                  * If included in the metadata of GetNotificationConfigRequest, the operation
            @@ -1235,15 +1332,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 { @@ -1251,6 +1347,8 @@ public java.lang.String getEtag() { } } /** + * + * *
                  * The etag of the NotificationConfig.
                  * If included in the metadata of GetNotificationConfigRequest, the operation
            @@ -1258,18 +1356,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
            @@ -1277,6 +1379,7 @@ public Builder setEtag(
                  * 
            * * string etag = 7; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -1286,6 +1389,8 @@ public Builder clearEtag() { return this; } /** + * + * *
                  * The etag of the NotificationConfig.
                  * If included in the metadata of GetNotificationConfigRequest, the operation
            @@ -1293,12 +1398,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; @@ -1308,6 +1415,7 @@ public Builder setEtagBytes( private com.google.protobuf.LazyStringArrayList eventTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureEventTypesIsMutable() { if (!eventTypes_.isModifiable()) { eventTypes_ = new com.google.protobuf.LazyStringArrayList(eventTypes_); @@ -1315,38 +1423,46 @@ private void ensureEventTypesIsMutable() { bitField0_ |= 0x00000008; } /** + * + * *
                  * If present, only send notifications about listed event types. If
                  * empty, sent notifications for all event types.
                  * 
            * * repeated string event_types = 3; + * * @return A list containing the eventTypes. */ - public com.google.protobuf.ProtocolStringList - getEventTypesList() { + public com.google.protobuf.ProtocolStringList getEventTypesList() { eventTypes_.makeImmutable(); return eventTypes_; } /** + * + * *
                  * If present, only send notifications about listed event types. If
                  * empty, sent notifications for all event types.
                  * 
            * * repeated string event_types = 3; + * * @return The count of eventTypes. */ public int getEventTypesCount() { return eventTypes_.size(); } /** + * + * *
                  * If present, only send notifications about listed event types. If
                  * empty, sent notifications for all event types.
                  * 
            * * repeated string event_types = 3; + * * @param index The index of the element to return. * @return The eventTypes at the given index. */ @@ -1354,33 +1470,39 @@ public java.lang.String getEventTypes(int index) { return eventTypes_.get(index); } /** + * + * *
                  * If present, only send notifications about listed event types. If
                  * empty, sent notifications for all event types.
                  * 
            * * repeated string event_types = 3; + * * @param index The index of the value to return. * @return The bytes of the eventTypes at the given index. */ - public com.google.protobuf.ByteString - getEventTypesBytes(int index) { + public com.google.protobuf.ByteString getEventTypesBytes(int index) { return eventTypes_.getByteString(index); } /** + * + * *
                  * If present, only send notifications about listed event types. If
                  * empty, sent notifications for all event types.
                  * 
            * * repeated string event_types = 3; + * * @param index The index to set the value at. * @param value The eventTypes to set. * @return This builder for chaining. */ - public Builder setEventTypes( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEventTypes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureEventTypesIsMutable(); eventTypes_.set(index, value); bitField0_ |= 0x00000008; @@ -1388,18 +1510,22 @@ public Builder setEventTypes( return this; } /** + * + * *
                  * If present, only send notifications about listed event types. If
                  * empty, sent notifications for all event types.
                  * 
            * * repeated string event_types = 3; + * * @param value The eventTypes to add. * @return This builder for chaining. */ - public Builder addEventTypes( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addEventTypes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureEventTypesIsMutable(); eventTypes_.add(value); bitField0_ |= 0x00000008; @@ -1407,53 +1533,61 @@ public Builder addEventTypes( return this; } /** + * + * *
                  * If present, only send notifications about listed event types. If
                  * empty, sent notifications for all event types.
                  * 
            * * repeated string event_types = 3; + * * @param values The eventTypes to add. * @return This builder for chaining. */ - public Builder addAllEventTypes( - java.lang.Iterable values) { + public Builder addAllEventTypes(java.lang.Iterable values) { ensureEventTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, eventTypes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, eventTypes_); bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
                  * If present, only send notifications about listed event types. If
                  * empty, sent notifications for all event types.
                  * 
            * * repeated string event_types = 3; + * * @return This builder for chaining. */ public Builder clearEventTypes() { - eventTypes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008);; + eventTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; onChanged(); return this; } /** + * + * *
                  * If present, only send notifications about listed event types. If
                  * empty, sent notifications for all event types.
                  * 
            * * repeated string event_types = 3; + * * @param value The bytes of the eventTypes to add. * @return This builder for chaining. */ - public Builder addEventTypesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addEventTypesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureEventTypesIsMutable(); eventTypes_.add(value); @@ -1462,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) { @@ -1472,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(); @@ -1485,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.
            @@ -1497,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.
            @@ -1523,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.
            @@ -1531,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.
            @@ -1550,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)) {
            @@ -1560,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.
            @@ -1574,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.
            @@ -1598,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.
            @@ -1618,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; @@ -1647,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 { @@ -1669,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() { @@ -1702,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; @@ -1723,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; @@ -1743,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 { @@ -1764,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() { @@ -1795,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); } @@ -1824,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(); } @@ -1838,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; @@ -1873,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 ba0b8ea9a3..56cb9e6c3b 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,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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:
            @@ -17,10 +35,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:
            @@ -29,12 +50,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:
            @@ -42,10 +65,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:
            @@ -53,12 +79,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
            @@ -66,10 +94,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
            @@ -77,57 +108,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.
            @@ -137,6 +180,8 @@ public interface NotificationConfigOrBuilder extends
                */
               int getCustomAttributesCount();
               /**
            +   *
            +   *
                * 
                * A list of additional attributes to attach to each Pub/Sub
                * message published for this NotificationConfig.
            @@ -144,15 +189,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.
            @@ -160,9 +203,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.
            @@ -171,11 +215,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.
            @@ -183,48 +229,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 73% 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 c9d2d20e6a..7e4d6f90d4 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,21 +20,24 @@ 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_ = ""; @@ -36,13 +54,11 @@ private Object() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Object(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Object_descriptor; } @@ -54,23 +70,27 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl 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
            @@ -82,6 +102,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
                * 
            * * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The name. */ @java.lang.Override @@ -90,14 +111,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
            @@ -109,16 +131,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 { @@ -127,14 +148,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 @@ -143,29 +170,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 { @@ -174,9 +203,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
            @@ -185,6 +217,7 @@ public java.lang.String getBucket() {
                * 
            * * string etag = 27; + * * @return The etag. */ @java.lang.Override @@ -193,14 +226,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
            @@ -209,16 +243,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 { @@ -229,12 +262,15 @@ 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.
                * 
            * * int64 generation = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The generation. */ @java.lang.Override @@ -245,6 +281,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
            @@ -253,6 +291,7 @@ public long getGeneration() {
                * 
            * * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The metageneration. */ @java.lang.Override @@ -261,14 +300,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 @@ -277,29 +320,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 { @@ -310,12 +353,15 @@ 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].
                * 
            * * int64 size = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The size. */ @java.lang.Override @@ -324,15 +370,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 @@ -341,30 +391,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 { @@ -373,15 +423,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 @@ -390,30 +444,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 { @@ -422,9 +476,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].
            @@ -433,6 +490,7 @@ public java.lang.String getContentDisposition() {
                * 
            * * string cache_control = 9; + * * @return The cacheControl. */ @java.lang.Override @@ -441,14 +499,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].
            @@ -457,16 +516,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 { @@ -475,9 +533,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
            @@ -491,6 +552,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
            @@ -500,11 +563,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
            @@ -518,6 +583,8 @@ public int getAclCount() {
                 return acl_.size();
               }
               /**
            +   *
            +   *
                * 
                * Access controls on the object.
                * If iam_config.uniform_bucket_level_access is enabled on the parent
            @@ -531,6 +598,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
            @@ -540,21 +609,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 @@ -563,30 +635,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 { @@ -597,12 +669,16 @@ public java.lang.String getContentLanguage() { public static final int DELETE_TIME_FIELD_NUMBER = 12; private com.google.protobuf.Timestamp deleteTime_; /** + * + * *
                * Output only. If this object is noncurrent, this is the time when the object
                * became noncurrent.
                * 
            * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -610,12 +686,16 @@ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * Output only. If this object is noncurrent, this is the time when the object
                * became noncurrent.
                * 
            * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ @java.lang.Override @@ -623,12 +703,15 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** + * + * *
                * Output only. If this object is noncurrent, this is the time when the object
                * became noncurrent.
                * 
            * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -636,9 +719,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].
            @@ -647,6 +733,7 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
                * 
            * * string content_type = 13; + * * @return The contentType. */ @java.lang.Override @@ -655,14 +742,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].
            @@ -671,16 +759,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 { @@ -691,11 +778,15 @@ 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.
                * 
            * - * .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 @@ -703,11 +794,15 @@ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
                * Output only. The creation time of the object.
                * 
            * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -715,11 +810,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
                * Output only. The creation time of the object.
                * 
            * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -729,12 +827,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int COMPONENT_COUNT_FIELD_NUMBER = 15; private int componentCount_ = 0; /** + * + * *
                * Output only. Number of underlying components that make up this object.
                * Components are accumulated by compose operations.
                * 
            * * int32 component_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The componentCount. */ @java.lang.Override @@ -745,12 +846,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 @@ -758,34 +864,49 @@ public boolean hasChecksums() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
                * Output only. Hashes for the data part of this object. This field is used
                * for output only and will be silently ignored if provided in requests.
                * 
            * - * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The checksums. */ @java.lang.Override public com.google.storage.v2.ObjectChecksums getChecksums() { - return checksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : checksums_; + return checksums_ == null + ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() + : checksums_; } /** + * + * *
                * Output only. Hashes for the data part of this object. This field is used
                * for output only and will be silently ignored if provided in requests.
                * 
            * - * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.storage.v2.ObjectChecksumsOrBuilder getChecksumsOrBuilder() { - return checksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : checksums_; + return checksums_ == null + ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() + : checksums_; } public static final int UPDATE_TIME_FIELD_NUMBER = 17; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
                * Output only. The modification time of the object metadata.
                * Set initially to object creation time and then updated whenever any
            @@ -795,7 +916,9 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getChecksumsOrBuilder() {
                * Object Lifecycle Configuration.
                * 
            * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -803,6 +926,8 @@ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
                * Output only. The modification time of the object metadata.
                * Set initially to object creation time and then updated whenever any
            @@ -812,7 +937,9 @@ public boolean hasUpdateTime() {
                * Object Lifecycle Configuration.
                * 
            * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -820,6 +947,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
            @@ -829,7 +958,8 @@ public com.google.protobuf.Timestamp getUpdateTime() {
                * Object Lifecycle Configuration.
                * 
            * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -837,15 +967,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 @@ -854,30 +988,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 { @@ -888,12 +1022,17 @@ 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.
                * 
            * - * .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 @@ -901,34 +1040,49 @@ public boolean hasUpdateStorageClassTime() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
                * Output only. The time at which the object's storage class was last changed.
                * When the object is initially created, it will be set to time_created.
                * 
            * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateStorageClassTime. */ @java.lang.Override public com.google.protobuf.Timestamp getUpdateStorageClassTime() { - return updateStorageClassTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateStorageClassTime_; + return updateStorageClassTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateStorageClassTime_; } /** + * + * *
                * Output only. The time at which the object's storage class was last changed.
                * When the object is initially created, it will be set to time_created.
                * 
            * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateStorageClassTimeOrBuilder() { - return updateStorageClassTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateStorageClassTime_; + return updateStorageClassTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateStorageClassTime_; } public static final int TEMPORARY_HOLD_FIELD_NUMBER = 20; private boolean temporaryHold_ = false; /** + * + * *
                * Whether an object is under temporary hold. While this flag is set to true,
                * the object is protected against deletion and overwrites.  A common use case
            @@ -938,6 +1092,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateStorageClassTimeOrBuilder
                * 
            * * bool temporary_hold = 20; + * * @return The temporaryHold. */ @java.lang.Override @@ -948,6 +1103,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.
            @@ -959,6 +1116,7 @@ public boolean getTemporaryHold() {
                * 
            * * .google.protobuf.Timestamp retention_expire_time = 21; + * * @return Whether the retentionExpireTime field is set. */ @java.lang.Override @@ -966,6 +1124,8 @@ public boolean hasRetentionExpireTime() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
                * A server-determined value that specifies the earliest time that the
                * object's retention period expires.
            @@ -977,13 +1137,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.
            @@ -998,36 +1163,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.
                * 
            @@ -1035,20 +1204,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.
                * 
            @@ -1060,6 +1230,8 @@ public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** + * + * *
                * User-provided metadata, in key/value pairs.
                * 
            @@ -1067,17 +1239,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.
                * 
            @@ -1085,11 +1259,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(); } @@ -1099,6 +1273,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
            @@ -1114,6 +1290,7 @@ public java.lang.String getMetadataOrThrow(
                * 
            * * optional bool event_based_hold = 23; + * * @return Whether the eventBasedHold field is set. */ @java.lang.Override @@ -1121,6 +1298,8 @@ public boolean hasEventBasedHold() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
                * Whether an object is under event-based hold.
                * An event-based hold is a way to force the retention of an object until
            @@ -1136,6 +1315,7 @@ public boolean hasEventBasedHold() {
                * 
            * * optional bool event_based_hold = 23; + * * @return The eventBasedHold. */ @java.lang.Override @@ -1146,12 +1326,15 @@ public boolean getEventBasedHold() { public static final int OWNER_FIELD_NUMBER = 24; private com.google.storage.v2.Owner owner_; /** + * + * *
                * Output only. The owner of the object. This will always be the uploader of
                * the object.
                * 
            * * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the owner field is set. */ @java.lang.Override @@ -1159,12 +1342,15 @@ public boolean hasOwner() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
                * Output only. The owner of the object. This will always be the uploader of
                * the object.
                * 
            * * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The owner. */ @java.lang.Override @@ -1172,6 +1358,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.
            @@ -1187,12 +1375,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 @@ -1200,19 +1391,26 @@ public boolean hasCustomerEncryption() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
                * Metadata of Customer-Supplied Encryption Key, if the object is encrypted by
                * such a key.
                * 
            * * .google.storage.v2.CustomerEncryption customer_encryption = 25; + * * @return The customerEncryption. */ @java.lang.Override public com.google.storage.v2.CustomerEncryption getCustomerEncryption() { - return customerEncryption_ == null ? com.google.storage.v2.CustomerEncryption.getDefaultInstance() : customerEncryption_; + return customerEncryption_ == null + ? com.google.storage.v2.CustomerEncryption.getDefaultInstance() + : customerEncryption_; } /** + * + * *
                * Metadata of Customer-Supplied Encryption Key, if the object is encrypted by
                * such a key.
            @@ -1222,17 +1420,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 @@ -1240,11 +1443,14 @@ public boolean hasCustomTime() { return ((bitField0_ & 0x00000200) != 0); } /** + * + * *
                * A user-specified timestamp set on an object.
                * 
            * * .google.protobuf.Timestamp custom_time = 26; + * * @return The customTime. */ @java.lang.Override @@ -1252,6 +1458,8 @@ public com.google.protobuf.Timestamp getCustomTime() { return customTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : customTime_; } /** + * + * *
                * A user-specified timestamp set on an object.
                * 
            @@ -1266,6 +1474,8 @@ public com.google.protobuf.TimestampOrBuilder getCustomTimeOrBuilder() { public static final int SOFT_DELETE_TIME_FIELD_NUMBER = 28; private com.google.protobuf.Timestamp softDeleteTime_; /** + * + * *
                * Output only. This is the time when the object became soft-deleted.
                *
            @@ -1273,7 +1483,10 @@ public com.google.protobuf.TimestampOrBuilder getCustomTimeOrBuilder() {
                * enabled. Also see hard_delete_time.
                * 
            * - * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the softDeleteTime field is set. */ @java.lang.Override @@ -1281,6 +1494,8 @@ public boolean hasSoftDeleteTime() { return ((bitField0_ & 0x00000400) != 0); } /** + * + * *
                * Output only. This is the time when the object became soft-deleted.
                *
            @@ -1288,14 +1503,21 @@ public boolean hasSoftDeleteTime() {
                * enabled. Also see hard_delete_time.
                * 
            * - * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The softDeleteTime. */ @java.lang.Override public com.google.protobuf.Timestamp getSoftDeleteTime() { - return softDeleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : softDeleteTime_; + return softDeleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : softDeleteTime_; } /** + * + * *
                * Output only. This is the time when the object became soft-deleted.
                *
            @@ -1303,16 +1525,22 @@ public com.google.protobuf.Timestamp getSoftDeleteTime() {
                * enabled. Also see hard_delete_time.
                * 
            * - * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getSoftDeleteTimeOrBuilder() { - return softDeleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : softDeleteTime_; + return softDeleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : softDeleteTime_; } public static final int HARD_DELETE_TIME_FIELD_NUMBER = 29; private com.google.protobuf.Timestamp hardDeleteTime_; /** + * + * *
                * Output only. The time when the object will be permanently deleted.
                *
            @@ -1320,7 +1548,10 @@ public com.google.protobuf.TimestampOrBuilder getSoftDeleteTimeOrBuilder() {
                * Otherwise, the object will not be accessible.
                * 
            * - * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the hardDeleteTime field is set. */ @java.lang.Override @@ -1328,6 +1559,8 @@ public boolean hasHardDeleteTime() { return ((bitField0_ & 0x00000800) != 0); } /** + * + * *
                * Output only. The time when the object will be permanently deleted.
                *
            @@ -1335,14 +1568,21 @@ public boolean hasHardDeleteTime() {
                * Otherwise, the object will not be accessible.
                * 
            * - * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The hardDeleteTime. */ @java.lang.Override public com.google.protobuf.Timestamp getHardDeleteTime() { - return hardDeleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : hardDeleteTime_; + return hardDeleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : hardDeleteTime_; } /** + * + * *
                * Output only. The time when the object will be permanently deleted.
                *
            @@ -1350,14 +1590,19 @@ public com.google.protobuf.Timestamp getHardDeleteTime() {
                * Otherwise, the object will not be accessible.
                * 
            * - * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getHardDeleteTimeOrBuilder() { - return hardDeleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : hardDeleteTime_; + return hardDeleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : hardDeleteTime_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1369,8 +1614,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_); } @@ -1434,12 +1678,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000020) != 0)) { 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_ & 0x00000040) != 0)) { output.writeBool(23, eventBasedHold_); } @@ -1477,19 +1717,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_); @@ -1501,86 +1738,73 @@ 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 (((bitField0_ & 0x00000001) != 0)) { - 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 (((bitField0_ & 0x00000002) != 0)) { - 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 (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getChecksums()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getChecksums()); } if (((bitField0_ & 0x00000008) != 0)) { - 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 (((bitField0_ & 0x00000010) != 0)) { - 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 (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, getRetentionExpireTime()); - } - for (java.util.Map.Entry entry - : internalGetMetadata().getMap().entrySet()) { - com.google.protobuf.MapEntry - metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, metadata__); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(21, getRetentionExpireTime()); + } + for (java.util.Map.Entry entry : + internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry metadata__ = + MetadataDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, metadata__); } if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(23, eventBasedHold_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(23, eventBasedHold_); } if (((bitField0_ & 0x00000080) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(24, getOwner()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getOwner()); } if (((bitField0_ & 0x00000100) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(25, getCustomerEncryption()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getCustomerEncryption()); } if (((bitField0_ & 0x00000200) != 0)) { - 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_); } if (((bitField0_ & 0x00000400) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(28, getSoftDeleteTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getSoftDeleteTime()); } if (((bitField0_ & 0x00000800) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(29, getHardDeleteTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getHardDeleteTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1590,106 +1814,77 @@ public int 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 (hasSoftDeleteTime() != other.hasSoftDeleteTime()) return false; if (hasSoftDeleteTime()) { - if (!getSoftDeleteTime() - .equals(other.getSoftDeleteTime())) return false; + if (!getSoftDeleteTime().equals(other.getSoftDeleteTime())) return false; } if (hasHardDeleteTime() != other.hasHardDeleteTime()) return false; if (hasHardDeleteTime()) { - if (!getHardDeleteTime() - .equals(other.getHardDeleteTime())) return false; + if (!getHardDeleteTime().equals(other.getHardDeleteTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1709,16 +1904,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; @@ -1758,8 +1950,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(); @@ -1770,8 +1961,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; @@ -1798,111 +1988,114 @@ 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; } @@ -1913,10 +2106,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl 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.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { @@ -1924,14 +2117,15 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi 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); } @@ -1941,14 +2135,13 @@ 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) { getAclFieldBuilder(); getDeleteTimeFieldBuilder(); getCreateTimeFieldBuilder(); @@ -1963,6 +2156,7 @@ private void maybeForceBuilderInitialization() { getHardDeleteTimeFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -2050,8 +2244,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; } @@ -2073,7 +2266,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; } @@ -2127,51 +2322,45 @@ private void buildPartial0(com.google.storage.v2.Object result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00001000) != 0)) { - result.deleteTime_ = deleteTimeBuilder_ == null - ? deleteTime_ - : deleteTimeBuilder_.build(); + result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00002000) != 0)) { result.contentType_ = contentType_; } if (((from_bitField0_ & 0x00004000) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00008000) != 0)) { result.componentCount_ = componentCount_; } if (((from_bitField0_ & 0x00010000) != 0)) { - result.checksums_ = checksumsBuilder_ == null - ? checksums_ - : checksumsBuilder_.build(); + result.checksums_ = checksumsBuilder_ == null ? checksums_ : checksumsBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00020000) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00040000) != 0)) { result.kmsKey_ = kmsKey_; } if (((from_bitField0_ & 0x00080000) != 0)) { - result.updateStorageClassTime_ = updateStorageClassTimeBuilder_ == null - ? updateStorageClassTime_ - : updateStorageClassTimeBuilder_.build(); + result.updateStorageClassTime_ = + updateStorageClassTimeBuilder_ == null + ? updateStorageClassTime_ + : updateStorageClassTimeBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00100000) != 0)) { result.temporaryHold_ = temporaryHold_; } if (((from_bitField0_ & 0x00200000) != 0)) { - result.retentionExpireTime_ = retentionExpireTimeBuilder_ == null - ? retentionExpireTime_ - : retentionExpireTimeBuilder_.build(); + result.retentionExpireTime_ = + retentionExpireTimeBuilder_ == null + ? retentionExpireTime_ + : retentionExpireTimeBuilder_.build(); to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00400000) != 0)) { @@ -2183,33 +2372,28 @@ private void buildPartial0(com.google.storage.v2.Object result) { to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x01000000) != 0)) { - result.owner_ = ownerBuilder_ == null - ? owner_ - : ownerBuilder_.build(); + result.owner_ = ownerBuilder_ == null ? owner_ : ownerBuilder_.build(); to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x02000000) != 0)) { - result.customerEncryption_ = customerEncryptionBuilder_ == null - ? customerEncryption_ - : customerEncryptionBuilder_.build(); + result.customerEncryption_ = + customerEncryptionBuilder_ == null + ? customerEncryption_ + : customerEncryptionBuilder_.build(); to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x04000000) != 0)) { - result.customTime_ = customTimeBuilder_ == null - ? customTime_ - : customTimeBuilder_.build(); + result.customTime_ = customTimeBuilder_ == null ? customTime_ : customTimeBuilder_.build(); to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x08000000) != 0)) { - result.softDeleteTime_ = softDeleteTimeBuilder_ == null - ? softDeleteTime_ - : softDeleteTimeBuilder_.build(); + result.softDeleteTime_ = + softDeleteTimeBuilder_ == null ? softDeleteTime_ : softDeleteTimeBuilder_.build(); to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x10000000) != 0)) { - result.hardDeleteTime_ = hardDeleteTimeBuilder_ == null - ? hardDeleteTime_ - : hardDeleteTimeBuilder_.build(); + result.hardDeleteTime_ = + hardDeleteTimeBuilder_ == null ? hardDeleteTime_ : hardDeleteTimeBuilder_.build(); to_bitField0_ |= 0x00000800; } result.bitField0_ |= to_bitField0_; @@ -2219,38 +2403,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; @@ -2321,9 +2506,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_); } @@ -2368,8 +2554,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()); @@ -2415,191 +2600,203 @@ 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 - case 226: { - input.readMessage( - getSoftDeleteTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x08000000; - break; - } // case 226 - case 234: { - input.readMessage( - getHardDeleteTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x10000000; - 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: + { + 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 + case 226: + { + input.readMessage(getSoftDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x08000000; + break; + } // case 226 + case 234: + { + input.readMessage(getHardDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x10000000; + 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) { @@ -2609,10 +2806,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
            @@ -2624,13 +2824,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; @@ -2639,6 +2839,8 @@ public java.lang.String getName() { } } /** + * + * *
                  * Immutable. The name of this object. Nearly any sequence of unicode
                  * characters is valid. See
            @@ -2650,15 +2852,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 { @@ -2666,6 +2867,8 @@ public java.lang.String getName() { } } /** + * + * *
                  * Immutable. The name of this object. Nearly any sequence of unicode
                  * characters is valid. See
            @@ -2677,18 +2880,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
            @@ -2700,6 +2907,7 @@ public Builder setName(
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -2709,6 +2917,8 @@ public Builder clearName() { return this; } /** + * + * *
                  * Immutable. The name of this object. Nearly any sequence of unicode
                  * characters is valid. See
            @@ -2720,12 +2930,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; @@ -2735,18 +2947,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; @@ -2755,20 +2971,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 { @@ -2776,28 +2995,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() { @@ -2807,17 +3037,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; @@ -2827,6 +3063,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
            @@ -2835,13 +3073,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; @@ -2850,6 +3088,8 @@ public java.lang.String getEtag() { } } /** + * + * *
                  * The etag of the object.
                  * If included in the metadata of an update or delete request message, the
            @@ -2858,15 +3098,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 { @@ -2874,6 +3113,8 @@ public java.lang.String getEtag() { } } /** + * + * *
                  * The etag of the object.
                  * If included in the metadata of an update or delete request message, the
            @@ -2882,18 +3123,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
            @@ -2902,6 +3147,7 @@ public Builder setEtag(
                  * 
            * * string etag = 27; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -2911,6 +3157,8 @@ public Builder clearEtag() { return this; } /** + * + * *
                  * The etag of the object.
                  * If included in the metadata of an update or delete request message, the
            @@ -2919,12 +3167,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; @@ -2932,14 +3182,17 @@ public Builder setEtagBytes( return this; } - private long generation_ ; + private long generation_; /** + * + * *
                  * Immutable. The content generation of this object. Used for object
                  * versioning.
                  * 
            * * int64 generation = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The generation. */ @java.lang.Override @@ -2947,12 +3200,15 @@ public long getGeneration() { return generation_; } /** + * + * *
                  * Immutable. The content generation of this object. Used for object
                  * versioning.
                  * 
            * * int64 generation = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The generation to set. * @return This builder for chaining. */ @@ -2964,12 +3220,15 @@ public Builder setGeneration(long value) { return this; } /** + * + * *
                  * Immutable. The content generation of this object. Used for object
                  * versioning.
                  * 
            * * int64 generation = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearGeneration() { @@ -2979,8 +3238,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
            @@ -2989,6 +3250,7 @@ public Builder clearGeneration() {
                  * 
            * * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The metageneration. */ @java.lang.Override @@ -2996,6 +3258,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
            @@ -3004,6 +3268,7 @@ public long getMetageneration() {
                  * 
            * * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The metageneration to set. * @return This builder for chaining. */ @@ -3015,6 +3280,8 @@ public Builder setMetageneration(long value) { return this; } /** + * + * *
                  * Output only. The version of the metadata for this generation of this
                  * object. Used for preconditions and for detecting changes in metadata. A
            @@ -3023,6 +3290,7 @@ public Builder setMetageneration(long value) {
                  * 
            * * int64 metageneration = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearMetageneration() { @@ -3034,18 +3302,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; @@ -3054,20 +3324,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 { @@ -3075,28 +3346,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() { @@ -3106,17 +3384,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; @@ -3124,14 +3406,17 @@ 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].
                  * 
            * * int64 size = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The size. */ @java.lang.Override @@ -3139,12 +3424,15 @@ public long getSize() { return size_; } /** + * + * *
                  * Output only. Content-Length of the object data in bytes, matching
                  * [https://tools.ietf.org/html/rfc7230#section-3.3.2][RFC 7230 §3.3.2].
                  * 
            * * int64 size = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The size to set. * @return This builder for chaining. */ @@ -3156,12 +3444,15 @@ public Builder setSize(long value) { return this; } /** + * + * *
                  * Output only. Content-Length of the object data in bytes, matching
                  * [https://tools.ietf.org/html/rfc7230#section-3.3.2][RFC 7230 §3.3.2].
                  * 
            * * int64 size = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearSize() { @@ -3173,19 +3464,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; @@ -3194,21 +3487,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 { @@ -3216,30 +3510,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() { @@ -3249,18 +3550,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; @@ -3270,19 +3575,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; @@ -3291,21 +3598,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 { @@ -3313,30 +3621,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() { @@ -3346,18 +3661,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; @@ -3367,6 +3686,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].
            @@ -3375,13 +3696,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; @@ -3390,6 +3711,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].
            @@ -3398,15 +3721,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 { @@ -3414,6 +3736,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].
            @@ -3422,18 +3746,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].
            @@ -3442,6 +3770,7 @@ public Builder setCacheControl(
                  * 
            * * string cache_control = 9; + * * @return This builder for chaining. */ public Builder clearCacheControl() { @@ -3451,6 +3780,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].
            @@ -3459,12 +3790,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; @@ -3473,18 +3806,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
            @@ -3501,6 +3840,8 @@ public java.util.List getAclList() {
                   }
                 }
                 /**
            +     *
            +     *
                  * 
                  * Access controls on the object.
                  * If iam_config.uniform_bucket_level_access is enabled on the parent
            @@ -3517,6 +3858,8 @@ public int getAclCount() {
                   }
                 }
                 /**
            +     *
            +     *
                  * 
                  * Access controls on the object.
                  * If iam_config.uniform_bucket_level_access is enabled on the parent
            @@ -3533,6 +3876,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
            @@ -3541,8 +3886,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();
            @@ -3556,6 +3900,8 @@ public Builder setAcl(
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * Access controls on the object.
                  * If iam_config.uniform_bucket_level_access is enabled on the parent
            @@ -3576,6 +3922,8 @@ public Builder setAcl(
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * Access controls on the object.
                  * If iam_config.uniform_bucket_level_access is enabled on the parent
            @@ -3598,6 +3946,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
            @@ -3606,8 +3956,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();
            @@ -3621,6 +3970,8 @@ public Builder addAcl(
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * Access controls on the object.
                  * If iam_config.uniform_bucket_level_access is enabled on the parent
            @@ -3629,8 +3980,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());
            @@ -3641,6 +3991,8 @@ public Builder addAcl(
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * Access controls on the object.
                  * If iam_config.uniform_bucket_level_access is enabled on the parent
            @@ -3661,6 +4013,8 @@ public Builder addAcl(
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * Access controls on the object.
                  * If iam_config.uniform_bucket_level_access is enabled on the parent
            @@ -3673,8 +4027,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);
            @@ -3682,6 +4035,8 @@ public Builder addAllAcl(
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * Access controls on the object.
                  * If iam_config.uniform_bucket_level_access is enabled on the parent
            @@ -3701,6 +4056,8 @@ public Builder clearAcl() {
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * Access controls on the object.
                  * If iam_config.uniform_bucket_level_access is enabled on the parent
            @@ -3720,6 +4077,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
            @@ -3728,11 +4087,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
            @@ -3741,14 +4101,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
            @@ -3757,8 +4119,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 {
            @@ -3766,6 +4128,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
            @@ -3775,10 +4139,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
            @@ -3787,12 +4153,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
            @@ -3801,20 +4168,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_;
            @@ -3822,19 +4191,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; @@ -3843,21 +4214,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 { @@ -3865,30 +4237,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() { @@ -3898,18 +4277,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; @@ -3919,42 +4302,61 @@ 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. If this object is noncurrent, this is the time when the object
                  * became noncurrent.
                  * 
            * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00001000) != 0); } /** + * + * *
                  * Output only. If this object is noncurrent, this is the time when the object
                  * became noncurrent.
                  * 
            * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** + * + * *
                  * Output only. If this object is noncurrent, this is the time when the object
                  * became noncurrent.
                  * 
            * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -3970,15 +4372,18 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                  * Output only. If this object is noncurrent, this is the time when the object
                  * became noncurrent.
                  * 
            * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -3989,18 +4394,22 @@ public Builder setDeleteTime( return this; } /** + * + * *
                  * Output only. If this object is noncurrent, this is the time when the object
                  * became noncurrent.
                  * 
            * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) && - deleteTime_ != null && - deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -4015,12 +4424,16 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                  * Output only. If this object is noncurrent, this is the time when the object
                  * became noncurrent.
                  * 
            * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00001000); @@ -4033,12 +4446,16 @@ public Builder clearDeleteTime() { return this; } /** + * + * *
                  * Output only. If this object is noncurrent, this is the time when the object
                  * became noncurrent.
                  * 
            * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00001000; @@ -4046,38 +4463,50 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** + * + * *
                  * Output only. If this object is noncurrent, this is the time when the object
                  * became noncurrent.
                  * 
            * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } } /** + * + * *
                  * Output only. If this object is noncurrent, this is the time when the object
                  * became noncurrent.
                  * 
            * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), - getParentForChildren(), - isClean()); + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -4085,6 +4514,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].
            @@ -4093,13 +4524,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; @@ -4108,6 +4539,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].
            @@ -4116,15 +4549,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 { @@ -4132,6 +4564,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].
            @@ -4140,18 +4574,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].
            @@ -4160,6 +4598,7 @@ public Builder setContentType(
                  * 
            * * string content_type = 13; + * * @return This builder for chaining. */ public Builder clearContentType() { @@ -4169,6 +4608,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].
            @@ -4177,12 +4618,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; @@ -4192,39 +4635,58 @@ 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.
                  * 
            * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00004000) != 0); } /** + * + * *
                  * Output only. The creation time of the object.
                  * 
            * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
                  * Output only. The creation time of the object.
                  * 
            * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -4240,14 +4702,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                  * Output only. The creation time of the object.
                  * 
            * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -4258,17 +4723,21 @@ public Builder setCreateTime( return this; } /** + * + * *
                  * Output only. The creation time of the object.
                  * 
            * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00004000) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -4283,11 +4752,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                  * Output only. The creation time of the object.
                  * 
            * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00004000); @@ -4300,11 +4773,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
                  * Output only. The creation time of the object.
                  * 
            * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00004000; @@ -4312,49 +4789,64 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
                  * Output only. The creation time of the object.
                  * 
            * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
                  * Output only. The creation time of the object.
                  * 
            * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; } - private int componentCount_ ; + private int componentCount_; /** + * + * *
                  * Output only. Number of underlying components that make up this object.
                  * Components are accumulated by compose operations.
                  * 
            * * int32 component_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The componentCount. */ @java.lang.Override @@ -4362,12 +4854,15 @@ public int getComponentCount() { return componentCount_; } /** + * + * *
                  * Output only. Number of underlying components that make up this object.
                  * Components are accumulated by compose operations.
                  * 
            * * int32 component_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The componentCount to set. * @return This builder for chaining. */ @@ -4379,12 +4874,15 @@ public Builder setComponentCount(int value) { return this; } /** + * + * *
                  * Output only. Number of underlying components that make up this object.
                  * Components are accumulated by compose operations.
                  * 
            * * int32 component_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearComponentCount() { @@ -4396,42 +4894,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) { @@ -4447,15 +4964,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 { @@ -4466,18 +4986,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; @@ -4492,12 +5016,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); @@ -4510,12 +5038,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; @@ -4523,38 +5055,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_; @@ -4562,8 +5106,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
            @@ -4573,13 +5122,18 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getChecksumsOrBuilder() {
                  * Object Lifecycle Configuration.
                  * 
            * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00020000) != 0); } /** + * + * *
                  * Output only. The modification time of the object metadata.
                  * Set initially to object creation time and then updated whenever any
            @@ -4589,17 +5143,24 @@ public boolean hasUpdateTime() {
                  * Object Lifecycle Configuration.
                  * 
            * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
                  * Output only. The modification time of the object metadata.
                  * Set initially to object creation time and then updated whenever any
            @@ -4609,7 +5170,9 @@ public com.google.protobuf.Timestamp getUpdateTime() {
                  * Object Lifecycle Configuration.
                  * 
            * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -4625,6 +5188,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
            @@ -4634,10 +5199,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
                  * Object Lifecycle Configuration.
                  * 
            * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -4648,6 +5214,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
            @@ -4657,13 +5225,15 @@ public Builder setUpdateTime(
                  * Object Lifecycle Configuration.
                  * 
            * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00020000) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -4678,6 +5248,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
            @@ -4687,7 +5259,9 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
                  * Object Lifecycle Configuration.
                  * 
            * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00020000); @@ -4700,6 +5274,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
            @@ -4709,7 +5285,9 @@ public Builder clearUpdateTime() {
                  * Object Lifecycle Configuration.
                  * 
            * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00020000; @@ -4717,6 +5295,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
            @@ -4726,17 +5306,22 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
                  * Object Lifecycle Configuration.
                  * 
            * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
                  * Output only. The modification time of the object metadata.
                  * Set initially to object creation time and then updated whenever any
            @@ -4746,17 +5331,22 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
                  * Object Lifecycle Configuration.
                  * 
            * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -4764,19 +5354,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; @@ -4785,21 +5377,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 { @@ -4807,30 +5400,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() { @@ -4840,18 +5440,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; @@ -4861,42 +5465,61 @@ 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.
                  * 
            * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateStorageClassTime field is set. */ public boolean hasUpdateStorageClassTime() { return ((bitField0_ & 0x00080000) != 0); } /** + * + * *
                  * Output only. The time at which the object's storage class was last changed.
                  * When the object is initially created, it will be set to time_created.
                  * 
            * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateStorageClassTime. */ public com.google.protobuf.Timestamp getUpdateStorageClassTime() { if (updateStorageClassTimeBuilder_ == null) { - return updateStorageClassTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateStorageClassTime_; + return updateStorageClassTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateStorageClassTime_; } else { return updateStorageClassTimeBuilder_.getMessage(); } } /** + * + * *
                  * Output only. The time at which the object's storage class was last changed.
                  * When the object is initially created, it will be set to time_created.
                  * 
            * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateStorageClassTime(com.google.protobuf.Timestamp value) { if (updateStorageClassTimeBuilder_ == null) { @@ -4912,12 +5535,16 @@ public Builder setUpdateStorageClassTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                  * Output only. The time at which the object's storage class was last changed.
                  * When the object is initially created, it will be set to time_created.
                  * 
            * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateStorageClassTime( com.google.protobuf.Timestamp.Builder builderForValue) { @@ -4931,18 +5558,22 @@ public Builder setUpdateStorageClassTime( return this; } /** + * + * *
                  * Output only. The time at which the object's storage class was last changed.
                  * When the object is initially created, it will be set to time_created.
                  * 
            * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateStorageClassTime(com.google.protobuf.Timestamp value) { if (updateStorageClassTimeBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0) && - updateStorageClassTime_ != null && - updateStorageClassTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00080000) != 0) + && updateStorageClassTime_ != null + && updateStorageClassTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateStorageClassTimeBuilder().mergeFrom(value); } else { updateStorageClassTime_ = value; @@ -4957,12 +5588,16 @@ 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.
                  * 
            * - * .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); @@ -4975,12 +5610,16 @@ public Builder clearUpdateStorageClassTime() { return this; } /** + * + * *
                  * Output only. The time at which the object's storage class was last changed.
                  * When the object is initially created, it will be set to time_created.
                  * 
            * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateStorageClassTimeBuilder() { bitField0_ |= 0x00080000; @@ -4988,45 +5627,59 @@ public com.google.protobuf.Timestamp.Builder getUpdateStorageClassTimeBuilder() return getUpdateStorageClassTimeFieldBuilder().getBuilder(); } /** + * + * *
                  * Output only. The time at which the object's storage class was last changed.
                  * When the object is initially created, it will be set to time_created.
                  * 
            * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateStorageClassTimeOrBuilder() { if (updateStorageClassTimeBuilder_ != null) { return updateStorageClassTimeBuilder_.getMessageOrBuilder(); } else { - return updateStorageClassTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateStorageClassTime_; + return updateStorageClassTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateStorageClassTime_; } } /** + * + * *
                  * Output only. The time at which the object's storage class was last changed.
                  * When the object is initially created, it will be set to time_created.
                  * 
            * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateStorageClassTimeFieldBuilder() { if (updateStorageClassTimeBuilder_ == null) { - updateStorageClassTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateStorageClassTime(), - getParentForChildren(), - isClean()); + updateStorageClassTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateStorageClassTime(), getParentForChildren(), isClean()); updateStorageClassTime_ = null; } return updateStorageClassTimeBuilder_; } - private boolean temporaryHold_ ; + private boolean temporaryHold_; /** + * + * *
                  * Whether an object is under temporary hold. While this flag is set to true,
                  * the object is protected against deletion and overwrites.  A common use case
            @@ -5036,6 +5689,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateStorageClassTimeOrBuilder
                  * 
            * * bool temporary_hold = 20; + * * @return The temporaryHold. */ @java.lang.Override @@ -5043,6 +5697,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
            @@ -5052,6 +5708,7 @@ public boolean getTemporaryHold() {
                  * 
            * * bool temporary_hold = 20; + * * @param value The temporaryHold to set. * @return This builder for chaining. */ @@ -5063,6 +5720,8 @@ public Builder setTemporaryHold(boolean value) { return this; } /** + * + * *
                  * Whether an object is under temporary hold. While this flag is set to true,
                  * the object is protected against deletion and overwrites.  A common use case
            @@ -5072,6 +5731,7 @@ public Builder setTemporaryHold(boolean value) {
                  * 
            * * bool temporary_hold = 20; + * * @return This builder for chaining. */ public Builder clearTemporaryHold() { @@ -5083,8 +5743,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.
            @@ -5096,12 +5761,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.
            @@ -5113,16 +5781,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.
            @@ -5149,6 +5822,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.
            @@ -5161,8 +5836,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 {
            @@ -5173,6 +5847,8 @@ public Builder setRetentionExpireTime(
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * A server-determined value that specifies the earliest time that the
                  * object's retention period expires.
            @@ -5187,9 +5863,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;
            @@ -5204,6 +5880,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.
            @@ -5227,6 +5905,8 @@ public Builder clearRetentionExpireTime() {
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * A server-determined value that specifies the earliest time that the
                  * object's retention period expires.
            @@ -5245,6 +5925,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.
            @@ -5261,11 +5943,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.
            @@ -5279,34 +5964,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();
            @@ -5315,10 +6002,13 @@ public com.google.protobuf.TimestampOrBuilder getRetentionExpireTimeOrBuilder()
                   onChanged();
                   return metadata_;
                 }
            +
                 public int getMetadataCount() {
                   return internalGetMetadata().getMap().size();
                 }
                 /**
            +     *
            +     *
                  * 
                  * User-provided metadata, in key/value pairs.
                  * 
            @@ -5326,20 +6016,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.
                  * 
            @@ -5351,6 +6042,8 @@ public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** + * + * *
                  * User-provided metadata, in key/value pairs.
                  * 
            @@ -5358,17 +6051,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.
                  * 
            @@ -5376,79 +6071,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
            @@ -5464,6 +6163,7 @@ public Builder putAllMetadata(
                  * 
            * * optional bool event_based_hold = 23; + * * @return Whether the eventBasedHold field is set. */ @java.lang.Override @@ -5471,6 +6171,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
            @@ -5486,6 +6188,7 @@ public boolean hasEventBasedHold() {
                  * 
            * * optional bool event_based_hold = 23; + * * @return The eventBasedHold. */ @java.lang.Override @@ -5493,6 +6196,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
            @@ -5508,6 +6213,7 @@ public boolean getEventBasedHold() {
                  * 
            * * optional bool event_based_hold = 23; + * * @param value The eventBasedHold to set. * @return This builder for chaining. */ @@ -5519,6 +6225,8 @@ public Builder setEventBasedHold(boolean value) { return this; } /** + * + * *
                  * Whether an object is under event-based hold.
                  * An event-based hold is a way to force the retention of an object until
            @@ -5534,6 +6242,7 @@ public Builder setEventBasedHold(boolean value) {
                  * 
            * * optional bool event_based_hold = 23; + * * @return This builder for chaining. */ public Builder clearEventBasedHold() { @@ -5545,26 +6254,37 @@ public Builder clearEventBasedHold() { private com.google.storage.v2.Owner owner_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Owner, com.google.storage.v2.Owner.Builder, com.google.storage.v2.OwnerOrBuilder> ownerBuilder_; + com.google.storage.v2.Owner, + com.google.storage.v2.Owner.Builder, + com.google.storage.v2.OwnerOrBuilder> + ownerBuilder_; /** + * + * *
                  * Output only. The owner of the object. This will always be the uploader of
                  * the object.
                  * 
            * - * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the owner field is set. */ public boolean hasOwner() { return ((bitField0_ & 0x01000000) != 0); } /** + * + * *
                  * Output only. The owner of the object. This will always be the uploader of
                  * the object.
                  * 
            * - * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The owner. */ public com.google.storage.v2.Owner getOwner() { @@ -5575,12 +6295,15 @@ public com.google.storage.v2.Owner getOwner() { } } /** + * + * *
                  * Output only. The owner of the object. This will always be the uploader of
                  * the object.
                  * 
            * - * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setOwner(com.google.storage.v2.Owner value) { if (ownerBuilder_ == null) { @@ -5596,15 +6319,17 @@ public Builder setOwner(com.google.storage.v2.Owner value) { return this; } /** + * + * *
                  * Output only. The owner of the object. This will always be the uploader of
                  * the object.
                  * 
            * - * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setOwner( - com.google.storage.v2.Owner.Builder builderForValue) { + public Builder setOwner(com.google.storage.v2.Owner.Builder builderForValue) { if (ownerBuilder_ == null) { owner_ = builderForValue.build(); } else { @@ -5615,18 +6340,21 @@ public Builder setOwner( return this; } /** + * + * *
                  * Output only. The owner of the object. This will always be the uploader of
                  * the object.
                  * 
            * - * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeOwner(com.google.storage.v2.Owner value) { if (ownerBuilder_ == null) { - if (((bitField0_ & 0x01000000) != 0) && - owner_ != null && - owner_ != com.google.storage.v2.Owner.getDefaultInstance()) { + if (((bitField0_ & 0x01000000) != 0) + && owner_ != null + && owner_ != com.google.storage.v2.Owner.getDefaultInstance()) { getOwnerBuilder().mergeFrom(value); } else { owner_ = value; @@ -5641,12 +6369,15 @@ 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.
                  * 
            * - * .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); @@ -5659,12 +6390,15 @@ public Builder clearOwner() { return this; } /** + * + * *
                  * Output only. The owner of the object. This will always be the uploader of
                  * the object.
                  * 
            * - * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.storage.v2.Owner.Builder getOwnerBuilder() { bitField0_ |= 0x01000000; @@ -5672,38 +6406,46 @@ public com.google.storage.v2.Owner.Builder getOwnerBuilder() { return getOwnerFieldBuilder().getBuilder(); } /** + * + * *
                  * Output only. The owner of the object. This will always be the uploader of
                  * the object.
                  * 
            * - * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.storage.v2.OwnerOrBuilder getOwnerOrBuilder() { if (ownerBuilder_ != null) { return ownerBuilder_.getMessageOrBuilder(); } else { - return owner_ == null ? - com.google.storage.v2.Owner.getDefaultInstance() : owner_; + return owner_ == null ? com.google.storage.v2.Owner.getDefaultInstance() : owner_; } } /** + * + * *
                  * Output only. The owner of the object. This will always be the uploader of
                  * the object.
                  * 
            * - * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Owner, com.google.storage.v2.Owner.Builder, com.google.storage.v2.OwnerOrBuilder> + com.google.storage.v2.Owner, + com.google.storage.v2.Owner.Builder, + com.google.storage.v2.OwnerOrBuilder> getOwnerFieldBuilder() { if (ownerBuilder_ == null) { - ownerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.Owner, com.google.storage.v2.Owner.Builder, com.google.storage.v2.OwnerOrBuilder>( - getOwner(), - getParentForChildren(), - isClean()); + ownerBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.storage.v2.Owner, + com.google.storage.v2.Owner.Builder, + com.google.storage.v2.OwnerOrBuilder>( + getOwner(), getParentForChildren(), isClean()); owner_ = null; } return ownerBuilder_; @@ -5711,36 +6453,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.
            @@ -5762,6 +6517,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.
            @@ -5781,6 +6538,8 @@ public Builder setCustomerEncryption(
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * Metadata of Customer-Supplied Encryption Key, if the object is encrypted by
                  * such a key.
            @@ -5790,9 +6549,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;
            @@ -5807,6 +6567,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.
            @@ -5825,6 +6587,8 @@ public Builder clearCustomerEncryption() {
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * Metadata of Customer-Supplied Encryption Key, if the object is encrypted by
                  * such a key.
            @@ -5838,6 +6602,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.
            @@ -5849,11 +6615,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.
            @@ -5862,14 +6631,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_;
            @@ -5877,34 +6649,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.
                  * 
            @@ -5925,14 +6710,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 { @@ -5943,6 +6729,8 @@ public Builder setCustomTime( return this; } /** + * + * *
                  * A user-specified timestamp set on an object.
                  * 
            @@ -5951,9 +6739,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; @@ -5968,6 +6756,8 @@ public Builder mergeCustomTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                  * A user-specified timestamp set on an object.
                  * 
            @@ -5985,6 +6775,8 @@ public Builder clearCustomTime() { return this; } /** + * + * *
                  * A user-specified timestamp set on an object.
                  * 
            @@ -5997,6 +6789,8 @@ public com.google.protobuf.Timestamp.Builder getCustomTimeBuilder() { return getCustomTimeFieldBuilder().getBuilder(); } /** + * + * *
                  * A user-specified timestamp set on an object.
                  * 
            @@ -6007,11 +6801,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.
                  * 
            @@ -6019,14 +6816,17 @@ 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_; @@ -6034,8 +6834,13 @@ public com.google.protobuf.TimestampOrBuilder getCustomTimeOrBuilder() { private com.google.protobuf.Timestamp softDeleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> softDeleteTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + softDeleteTimeBuilder_; /** + * + * *
                  * Output only. This is the time when the object became soft-deleted.
                  *
            @@ -6043,13 +6848,18 @@ public com.google.protobuf.TimestampOrBuilder getCustomTimeOrBuilder() {
                  * enabled. Also see hard_delete_time.
                  * 
            * - * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the softDeleteTime field is set. */ public boolean hasSoftDeleteTime() { return ((bitField0_ & 0x08000000) != 0); } /** + * + * *
                  * Output only. This is the time when the object became soft-deleted.
                  *
            @@ -6057,17 +6867,24 @@ public boolean hasSoftDeleteTime() {
                  * enabled. Also see hard_delete_time.
                  * 
            * - * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The softDeleteTime. */ public com.google.protobuf.Timestamp getSoftDeleteTime() { if (softDeleteTimeBuilder_ == null) { - return softDeleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : softDeleteTime_; + return softDeleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : softDeleteTime_; } else { return softDeleteTimeBuilder_.getMessage(); } } /** + * + * *
                  * Output only. This is the time when the object became soft-deleted.
                  *
            @@ -6075,7 +6892,9 @@ public com.google.protobuf.Timestamp getSoftDeleteTime() {
                  * enabled. Also see hard_delete_time.
                  * 
            * - * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSoftDeleteTime(com.google.protobuf.Timestamp value) { if (softDeleteTimeBuilder_ == null) { @@ -6091,6 +6910,8 @@ public Builder setSoftDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                  * Output only. This is the time when the object became soft-deleted.
                  *
            @@ -6098,10 +6919,11 @@ public Builder setSoftDeleteTime(com.google.protobuf.Timestamp value) {
                  * enabled. Also see hard_delete_time.
                  * 
            * - * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setSoftDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSoftDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (softDeleteTimeBuilder_ == null) { softDeleteTime_ = builderForValue.build(); } else { @@ -6112,6 +6934,8 @@ public Builder setSoftDeleteTime( return this; } /** + * + * *
                  * Output only. This is the time when the object became soft-deleted.
                  *
            @@ -6119,13 +6943,15 @@ public Builder setSoftDeleteTime(
                  * enabled. Also see hard_delete_time.
                  * 
            * - * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeSoftDeleteTime(com.google.protobuf.Timestamp value) { if (softDeleteTimeBuilder_ == null) { - if (((bitField0_ & 0x08000000) != 0) && - softDeleteTime_ != null && - softDeleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x08000000) != 0) + && softDeleteTime_ != null + && softDeleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSoftDeleteTimeBuilder().mergeFrom(value); } else { softDeleteTime_ = value; @@ -6140,6 +6966,8 @@ public Builder mergeSoftDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                  * Output only. This is the time when the object became soft-deleted.
                  *
            @@ -6147,7 +6975,9 @@ public Builder mergeSoftDeleteTime(com.google.protobuf.Timestamp value) {
                  * enabled. Also see hard_delete_time.
                  * 
            * - * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearSoftDeleteTime() { bitField0_ = (bitField0_ & ~0x08000000); @@ -6160,6 +6990,8 @@ public Builder clearSoftDeleteTime() { return this; } /** + * + * *
                  * Output only. This is the time when the object became soft-deleted.
                  *
            @@ -6167,7 +6999,9 @@ public Builder clearSoftDeleteTime() {
                  * enabled. Also see hard_delete_time.
                  * 
            * - * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getSoftDeleteTimeBuilder() { bitField0_ |= 0x08000000; @@ -6175,6 +7009,8 @@ public com.google.protobuf.Timestamp.Builder getSoftDeleteTimeBuilder() { return getSoftDeleteTimeFieldBuilder().getBuilder(); } /** + * + * *
                  * Output only. This is the time when the object became soft-deleted.
                  *
            @@ -6182,17 +7018,22 @@ public com.google.protobuf.Timestamp.Builder getSoftDeleteTimeBuilder() {
                  * enabled. Also see hard_delete_time.
                  * 
            * - * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getSoftDeleteTimeOrBuilder() { if (softDeleteTimeBuilder_ != null) { return softDeleteTimeBuilder_.getMessageOrBuilder(); } else { - return softDeleteTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : softDeleteTime_; + return softDeleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : softDeleteTime_; } } /** + * + * *
                  * Output only. This is the time when the object became soft-deleted.
                  *
            @@ -6200,17 +7041,22 @@ public com.google.protobuf.TimestampOrBuilder getSoftDeleteTimeOrBuilder() {
                  * enabled. Also see hard_delete_time.
                  * 
            * - * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.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> getSoftDeleteTimeFieldBuilder() { if (softDeleteTimeBuilder_ == null) { - softDeleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSoftDeleteTime(), - getParentForChildren(), - isClean()); + softDeleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSoftDeleteTime(), getParentForChildren(), isClean()); softDeleteTime_ = null; } return softDeleteTimeBuilder_; @@ -6218,8 +7064,13 @@ public com.google.protobuf.TimestampOrBuilder getSoftDeleteTimeOrBuilder() { private com.google.protobuf.Timestamp hardDeleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> hardDeleteTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + hardDeleteTimeBuilder_; /** + * + * *
                  * Output only. The time when the object will be permanently deleted.
                  *
            @@ -6227,13 +7078,18 @@ public com.google.protobuf.TimestampOrBuilder getSoftDeleteTimeOrBuilder() {
                  * Otherwise, the object will not be accessible.
                  * 
            * - * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the hardDeleteTime field is set. */ public boolean hasHardDeleteTime() { return ((bitField0_ & 0x10000000) != 0); } /** + * + * *
                  * Output only. The time when the object will be permanently deleted.
                  *
            @@ -6241,17 +7097,24 @@ public boolean hasHardDeleteTime() {
                  * Otherwise, the object will not be accessible.
                  * 
            * - * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The hardDeleteTime. */ public com.google.protobuf.Timestamp getHardDeleteTime() { if (hardDeleteTimeBuilder_ == null) { - return hardDeleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : hardDeleteTime_; + return hardDeleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : hardDeleteTime_; } else { return hardDeleteTimeBuilder_.getMessage(); } } /** + * + * *
                  * Output only. The time when the object will be permanently deleted.
                  *
            @@ -6259,7 +7122,9 @@ public com.google.protobuf.Timestamp getHardDeleteTime() {
                  * Otherwise, the object will not be accessible.
                  * 
            * - * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setHardDeleteTime(com.google.protobuf.Timestamp value) { if (hardDeleteTimeBuilder_ == null) { @@ -6275,6 +7140,8 @@ public Builder setHardDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                  * Output only. The time when the object will be permanently deleted.
                  *
            @@ -6282,10 +7149,11 @@ public Builder setHardDeleteTime(com.google.protobuf.Timestamp value) {
                  * Otherwise, the object will not be accessible.
                  * 
            * - * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setHardDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setHardDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (hardDeleteTimeBuilder_ == null) { hardDeleteTime_ = builderForValue.build(); } else { @@ -6296,6 +7164,8 @@ public Builder setHardDeleteTime( return this; } /** + * + * *
                  * Output only. The time when the object will be permanently deleted.
                  *
            @@ -6303,13 +7173,15 @@ public Builder setHardDeleteTime(
                  * Otherwise, the object will not be accessible.
                  * 
            * - * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeHardDeleteTime(com.google.protobuf.Timestamp value) { if (hardDeleteTimeBuilder_ == null) { - if (((bitField0_ & 0x10000000) != 0) && - hardDeleteTime_ != null && - hardDeleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x10000000) != 0) + && hardDeleteTime_ != null + && hardDeleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getHardDeleteTimeBuilder().mergeFrom(value); } else { hardDeleteTime_ = value; @@ -6324,6 +7196,8 @@ public Builder mergeHardDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
                  * Output only. The time when the object will be permanently deleted.
                  *
            @@ -6331,7 +7205,9 @@ public Builder mergeHardDeleteTime(com.google.protobuf.Timestamp value) {
                  * Otherwise, the object will not be accessible.
                  * 
            * - * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearHardDeleteTime() { bitField0_ = (bitField0_ & ~0x10000000); @@ -6344,6 +7220,8 @@ public Builder clearHardDeleteTime() { return this; } /** + * + * *
                  * Output only. The time when the object will be permanently deleted.
                  *
            @@ -6351,7 +7229,9 @@ public Builder clearHardDeleteTime() {
                  * Otherwise, the object will not be accessible.
                  * 
            * - * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getHardDeleteTimeBuilder() { bitField0_ |= 0x10000000; @@ -6359,6 +7239,8 @@ public com.google.protobuf.Timestamp.Builder getHardDeleteTimeBuilder() { return getHardDeleteTimeFieldBuilder().getBuilder(); } /** + * + * *
                  * Output only. The time when the object will be permanently deleted.
                  *
            @@ -6366,17 +7248,22 @@ public com.google.protobuf.Timestamp.Builder getHardDeleteTimeBuilder() {
                  * Otherwise, the object will not be accessible.
                  * 
            * - * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getHardDeleteTimeOrBuilder() { if (hardDeleteTimeBuilder_ != null) { return hardDeleteTimeBuilder_.getMessageOrBuilder(); } else { - return hardDeleteTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : hardDeleteTime_; + return hardDeleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : hardDeleteTime_; } } /** + * + * *
                  * Output only. The time when the object will be permanently deleted.
                  *
            @@ -6384,24 +7271,29 @@ public com.google.protobuf.TimestampOrBuilder getHardDeleteTimeOrBuilder() {
                  * Otherwise, the object will not be accessible.
                  * 
            * - * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.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> getHardDeleteTimeFieldBuilder() { if (hardDeleteTimeBuilder_ == null) { - hardDeleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getHardDeleteTime(), - getParentForChildren(), - isClean()); + hardDeleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getHardDeleteTime(), getParentForChildren(), isClean()); hardDeleteTime_ = null; } return hardDeleteTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -6411,12 +7303,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(); } @@ -6425,27 +7317,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; @@ -6460,6 +7352,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 fb19ace693..6a56338b5a 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,21 +20,24 @@ 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_ = ""; @@ -33,34 +51,39 @@ private ObjectAccessControl() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ObjectAccessControl(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ObjectAccessControl_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_ObjectAccessControl_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ObjectAccessControl_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_ObjectAccessControl_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ObjectAccessControl.class, com.google.storage.v2.ObjectAccessControl.Builder.class); + com.google.storage.v2.ObjectAccessControl.class, + com.google.storage.v2.ObjectAccessControl.Builder.class); } private int bitField0_; public static final int ROLE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object role_ = ""; /** + * + * *
                * The access permission for the entity.
                * 
            * * string role = 1; + * * @return The role. */ @java.lang.Override @@ -69,29 +92,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 { @@ -100,14 +123,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 @@ -116,29 +143,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 { @@ -147,9 +174,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}`
            @@ -172,6 +202,7 @@ public java.lang.String getId() {
                * 
            * * string entity = 3; + * * @return The entity. */ @java.lang.Override @@ -180,14 +211,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}`
            @@ -210,16 +242,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 { @@ -228,15 +259,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 @@ -245,30 +280,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 { @@ -277,14 +312,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 @@ -293,29 +332,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 { @@ -324,9 +363,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
            @@ -335,6 +377,7 @@ public java.lang.String getEntityId() {
                * 
            * * string etag = 8; + * * @return The etag. */ @java.lang.Override @@ -343,14 +386,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
            @@ -359,16 +403,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 { @@ -377,14 +420,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 @@ -393,29 +440,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 { @@ -424,14 +471,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 @@ -440,29 +491,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 { @@ -473,11 +524,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 @@ -485,18 +539,25 @@ public boolean hasProjectTeam() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * The project team associated with the entity, if any.
                * 
            * * .google.storage.v2.ProjectTeam project_team = 7; + * * @return The projectTeam. */ @java.lang.Override public com.google.storage.v2.ProjectTeam getProjectTeam() { - return projectTeam_ == null ? com.google.storage.v2.ProjectTeam.getDefaultInstance() : projectTeam_; + return projectTeam_ == null + ? com.google.storage.v2.ProjectTeam.getDefaultInstance() + : projectTeam_; } /** + * + * *
                * The project team associated with the entity, if any.
                * 
            @@ -505,10 +566,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; @@ -520,8 +584,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_); } @@ -577,8 +640,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, domain_); } if (((bitField0_ & 0x00000001) != 0)) { - 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_); @@ -594,33 +656,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; @@ -658,120 +712,127 @@ 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() @@ -779,17 +840,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) { getProjectTeamFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -811,9 +872,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 @@ -832,8 +893,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; } @@ -866,9 +930,8 @@ private void buildPartial0(com.google.storage.v2.ObjectAccessControl result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000100) != 0)) { - result.projectTeam_ = projectTeamBuilder_ == null - ? projectTeam_ - : projectTeamBuilder_.build(); + result.projectTeam_ = + projectTeamBuilder_ == null ? projectTeam_ : projectTeamBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -878,38 +941,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; @@ -987,59 +1051,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) { @@ -1049,22 +1121,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; @@ -1073,20 +1148,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 { @@ -1094,28 +1170,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() { @@ -1125,17 +1208,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; @@ -1145,18 +1232,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; @@ -1165,20 +1254,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 { @@ -1186,28 +1276,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() { @@ -1217,17 +1314,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; @@ -1237,6 +1338,8 @@ public Builder setIdBytes( private java.lang.Object entity_ = ""; /** + * + * *
                  * The entity holding the permission, in one of the following forms:
                  * * `user-{userid}`
            @@ -1259,13 +1362,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; @@ -1274,6 +1377,8 @@ public java.lang.String getEntity() { } } /** + * + * *
                  * The entity holding the permission, in one of the following forms:
                  * * `user-{userid}`
            @@ -1296,15 +1401,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 { @@ -1312,6 +1416,8 @@ public java.lang.String getEntity() { } } /** + * + * *
                  * The entity holding the permission, in one of the following forms:
                  * * `user-{userid}`
            @@ -1334,18 +1440,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}`
            @@ -1368,6 +1478,7 @@ public Builder setEntity(
                  * 
            * * string entity = 3; + * * @return This builder for chaining. */ public Builder clearEntity() { @@ -1377,6 +1488,8 @@ public Builder clearEntity() { return this; } /** + * + * *
                  * The entity holding the permission, in one of the following forms:
                  * * `user-{userid}`
            @@ -1399,12 +1512,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; @@ -1414,19 +1529,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; @@ -1435,21 +1552,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 { @@ -1457,30 +1575,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() { @@ -1490,18 +1615,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; @@ -1511,18 +1640,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; @@ -1531,20 +1662,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 { @@ -1552,28 +1684,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() { @@ -1583,17 +1722,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; @@ -1603,6 +1746,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
            @@ -1611,13 +1756,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; @@ -1626,6 +1771,8 @@ public java.lang.String getEtag() { } } /** + * + * *
                  * The etag of the ObjectAccessControl.
                  * If included in the metadata of an update or delete request message, the
            @@ -1634,15 +1781,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 { @@ -1650,6 +1796,8 @@ public java.lang.String getEtag() { } } /** + * + * *
                  * The etag of the ObjectAccessControl.
                  * If included in the metadata of an update or delete request message, the
            @@ -1658,18 +1806,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
            @@ -1678,6 +1830,7 @@ public Builder setEtag(
                  * 
            * * string etag = 8; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -1687,6 +1840,8 @@ public Builder clearEtag() { return this; } /** + * + * *
                  * The etag of the ObjectAccessControl.
                  * If included in the metadata of an update or delete request message, the
            @@ -1695,12 +1850,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; @@ -1710,18 +1867,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; @@ -1730,20 +1889,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 { @@ -1751,28 +1911,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() { @@ -1782,17 +1949,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; @@ -1802,18 +1973,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; @@ -1822,20 +1995,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 { @@ -1843,28 +2017,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() { @@ -1874,17 +2055,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; @@ -1894,34 +2079,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.
                  * 
            @@ -1942,14 +2140,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 { @@ -1960,6 +2159,8 @@ public Builder setProjectTeam( return this; } /** + * + * *
                  * The project team associated with the entity, if any.
                  * 
            @@ -1968,9 +2169,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; @@ -1985,6 +2186,8 @@ public Builder mergeProjectTeam(com.google.storage.v2.ProjectTeam value) { return this; } /** + * + * *
                  * The project team associated with the entity, if any.
                  * 
            @@ -2002,6 +2205,8 @@ public Builder clearProjectTeam() { return this; } /** + * + * *
                  * The project team associated with the entity, if any.
                  * 
            @@ -2014,6 +2219,8 @@ public com.google.storage.v2.ProjectTeam.Builder getProjectTeamBuilder() { return getProjectTeamFieldBuilder().getBuilder(); } /** + * + * *
                  * The project team associated with the entity, if any.
                  * 
            @@ -2024,11 +2231,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.
                  * 
            @@ -2036,21 +2246,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); } @@ -2060,12 +2273,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(); } @@ -2074,27 +2287,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; @@ -2109,6 +2322,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 89db297074..11e3909aa4 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,54 +1,82 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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}`
            @@ -71,10 +99,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}`
            @@ -97,54 +128,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
            @@ -153,10 +196,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
            @@ -165,70 +211,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 72% 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 03c07acf58..6a515e0597 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,49 +20,55 @@ package com.google.storage.v2; /** + * + * *
              * Message used for storing full (not subrange) object checksums.
              * 
            * * Protobuf type {@code google.storage.v2.ObjectChecksums} */ -public final class ObjectChecksums extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ObjectChecksums extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.v2.ObjectChecksums) ObjectChecksumsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ObjectChecksums.newBuilder() to construct. private ObjectChecksums(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ObjectChecksums() { md5Hash_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ObjectChecksums(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ObjectChecksums_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_ObjectChecksums_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ObjectChecksums_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_ObjectChecksums_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ObjectChecksums.class, com.google.storage.v2.ObjectChecksums.Builder.class); + com.google.storage.v2.ObjectChecksums.class, + com.google.storage.v2.ObjectChecksums.Builder.class); } private int bitField0_; public static final int CRC32C_FIELD_NUMBER = 1; private int crc32C_ = 0; /** + * + * *
                * CRC32C digest of the object data. Computed by the Cloud Storage service for
                * all written objects.
            @@ -56,6 +77,7 @@ protected java.lang.Object newInstance(
                * 
            * * optional fixed32 crc32c = 1; + * * @return Whether the crc32c field is set. */ @java.lang.Override @@ -63,6 +85,8 @@ public boolean hasCrc32C() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * CRC32C digest of the object data. Computed by the Cloud Storage service for
                * all written objects.
            @@ -71,6 +95,7 @@ public boolean hasCrc32C() {
                * 
            * * optional fixed32 crc32c = 1; + * * @return The crc32c. */ @java.lang.Override @@ -81,6 +106,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
            @@ -92,6 +119,7 @@ public int getCrc32C() {
                * 
            * * bytes md5_hash = 2; + * * @return The md5Hash. */ @java.lang.Override @@ -100,6 +128,7 @@ public com.google.protobuf.ByteString getMd5Hash() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -111,8 +140,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_); } @@ -129,12 +157,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; @@ -144,7 +170,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); @@ -153,11 +179,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; } @@ -180,132 +204,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(); @@ -316,9 +343,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 @@ -337,8 +364,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; } @@ -360,38 +390,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; @@ -432,22 +463,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) { @@ -457,10 +491,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.
            @@ -469,6 +506,7 @@ public Builder mergeFrom(
                  * 
            * * optional fixed32 crc32c = 1; + * * @return Whether the crc32c field is set. */ @java.lang.Override @@ -476,6 +514,8 @@ public boolean hasCrc32C() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                  * CRC32C digest of the object data. Computed by the Cloud Storage service for
                  * all written objects.
            @@ -484,6 +524,7 @@ public boolean hasCrc32C() {
                  * 
            * * optional fixed32 crc32c = 1; + * * @return The crc32c. */ @java.lang.Override @@ -491,6 +532,8 @@ public int getCrc32C() { return crc32C_; } /** + * + * *
                  * CRC32C digest of the object data. Computed by the Cloud Storage service for
                  * all written objects.
            @@ -499,6 +542,7 @@ public int getCrc32C() {
                  * 
            * * optional fixed32 crc32c = 1; + * * @param value The crc32c to set. * @return This builder for chaining. */ @@ -510,6 +554,8 @@ public Builder setCrc32C(int value) { return this; } /** + * + * *
                  * CRC32C digest of the object data. Computed by the Cloud Storage service for
                  * all written objects.
            @@ -518,6 +564,7 @@ public Builder setCrc32C(int value) {
                  * 
            * * optional fixed32 crc32c = 1; + * * @return This builder for chaining. */ public Builder clearCrc32C() { @@ -529,6 +576,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
            @@ -540,6 +589,7 @@ public Builder clearCrc32C() {
                  * 
            * * bytes md5_hash = 2; + * * @return The md5Hash. */ @java.lang.Override @@ -547,6 +597,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
            @@ -558,17 +610,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
            @@ -580,6 +637,7 @@ public Builder setMd5Hash(com.google.protobuf.ByteString value) {
                  * 
            * * bytes md5_hash = 2; + * * @return This builder for chaining. */ public Builder clearMd5Hash() { @@ -588,9 +646,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); } @@ -600,12 +658,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(); } @@ -614,27 +672,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; @@ -649,6 +707,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 69% 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 2885c1f0f5..f58e290a93 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,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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.
            @@ -17,10 +35,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.
            @@ -29,11 +50,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
            @@ -45,6 +69,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 82% 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 e05581785d..62f72c138e 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,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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
            @@ -20,10 +38,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
            @@ -35,32 +56,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
            @@ -69,10 +101,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
            @@ -81,23 +116,28 @@ 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.
                * 
            * * 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
            @@ -106,86 +146,107 @@ 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].
                * 
            * * 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].
            @@ -194,10 +255,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].
            @@ -206,12 +270,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
            @@ -220,9 +286,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
            @@ -233,6 +300,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
            @@ -243,6 +312,8 @@ public interface ObjectOrBuilder extends
                */
               int getAclCount();
               /**
            +   *
            +   *
                * 
                * Access controls on the object.
                * If iam_config.uniform_bucket_level_access is enabled on the parent
            @@ -251,9 +322,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
            @@ -262,62 +335,79 @@ 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. If this object is noncurrent, this is the time when the object
                * became noncurrent.
                * 
            * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** + * + * *
                * Output only. If this object is noncurrent, this is the time when the object
                * became noncurrent.
                * 
            * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** + * + * *
                * Output only. If this object is noncurrent, this is the time when the object
                * became noncurrent.
                * 
            * - * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** + * + * *
                * Content-Type of the object data, matching
                * [https://tools.ietf.org/html/rfc7231#section-3.1.1.5][RFC 7231 §3.1.1.5].
            @@ -326,10 +416,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].
            @@ -338,80 +431,110 @@ 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.
                * 
            * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
                * Output only. The creation time of the object.
                * 
            * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
                * Output only. The creation time of the object.
                * 
            * - * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
                * Output only. Number of underlying components that make up this object.
                * Components are accumulated by compose operations.
                * 
            * * int32 component_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The componentCount. */ int getComponentCount(); /** + * + * *
                * Output only. Hashes for the data part of this object. This field is used
                * for output only and will be silently ignored if provided in requests.
                * 
            * - * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the checksums field is set. */ boolean hasChecksums(); /** + * + * *
                * Output only. Hashes for the data part of this object. This field is used
                * for output only and will be silently ignored if provided in requests.
                * 
            * - * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The checksums. */ com.google.storage.v2.ObjectChecksums getChecksums(); /** + * + * *
                * Output only. Hashes for the data part of this object. This field is used
                * for output only and will be silently ignored if provided in requests.
                * 
            * - * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.storage.v2.ObjectChecksums checksums = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.storage.v2.ObjectChecksumsOrBuilder getChecksumsOrBuilder(); /** + * + * *
                * Output only. The modification time of the object metadata.
                * Set initially to object creation time and then updated whenever any
            @@ -421,11 +544,15 @@ com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder(
                * Object Lifecycle Configuration.
                * 
            * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
                * Output only. The modification time of the object metadata.
                * Set initially to object creation time and then updated whenever any
            @@ -435,11 +562,15 @@ com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder(
                * Object Lifecycle Configuration.
                * 
            * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
                * Output only. The modification time of the object metadata.
                * Set initially to object creation time and then updated whenever any
            @@ -449,63 +580,85 @@ com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder(
                * Object Lifecycle Configuration.
                * 
            * - * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
                * Cloud KMS Key used to encrypt this object, if the object is encrypted by
                * such a key.
                * 
            * * string kms_key = 18 [(.google.api.resource_reference) = { ... } + * * @return The kmsKey. */ java.lang.String getKmsKey(); /** + * + * *
                * Cloud KMS Key used to encrypt this object, if the object is encrypted by
                * such a key.
                * 
            * * string kms_key = 18 [(.google.api.resource_reference) = { ... } + * * @return The bytes for kmsKey. */ - com.google.protobuf.ByteString - getKmsKeyBytes(); + com.google.protobuf.ByteString getKmsKeyBytes(); /** + * + * *
                * Output only. The time at which the object's storage class was last changed.
                * When the object is initially created, it will be set to time_created.
                * 
            * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateStorageClassTime field is set. */ boolean hasUpdateStorageClassTime(); /** + * + * *
                * Output only. The time at which the object's storage class was last changed.
                * When the object is initially created, it will be set to time_created.
                * 
            * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateStorageClassTime. */ com.google.protobuf.Timestamp getUpdateStorageClassTime(); /** + * + * *
                * Output only. The time at which the object's storage class was last changed.
                * When the object is initially created, it will be set to time_created.
                * 
            * - * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_storage_class_time = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateStorageClassTimeOrBuilder(); /** + * + * *
                * Whether an object is under temporary hold. While this flag is set to true,
                * the object is protected against deletion and overwrites.  A common use case
            @@ -515,11 +668,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.
            @@ -531,10 +687,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.
            @@ -546,10 +705,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.
            @@ -565,6 +727,8 @@ com.google.storage.v2.ObjectAccessControlOrBuilder getAclOrBuilder(
               com.google.protobuf.TimestampOrBuilder getRetentionExpireTimeOrBuilder();
             
               /**
            +   *
            +   *
                * 
                * User-provided metadata, in key/value pairs.
                * 
            @@ -573,30 +737,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.
                * 
            @@ -604,21 +769,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
            @@ -634,10 +802,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
            @@ -653,31 +824,40 @@ 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.
                * 
            * * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the owner field is set. */ boolean hasOwner(); /** + * + * *
                * Output only. The owner of the object. This will always be the uploader of
                * the object.
                * 
            * * .google.storage.v2.Owner owner = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The owner. */ com.google.storage.v2.Owner getOwner(); /** + * + * *
                * Output only. The owner of the object. This will always be the uploader of
                * the object.
            @@ -688,26 +868,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.
            @@ -718,24 +906,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.
                * 
            @@ -745,6 +941,8 @@ java.lang.String getMetadataOrThrow( com.google.protobuf.TimestampOrBuilder getCustomTimeOrBuilder(); /** + * + * *
                * Output only. This is the time when the object became soft-deleted.
                *
            @@ -752,11 +950,16 @@ java.lang.String getMetadataOrThrow(
                * enabled. Also see hard_delete_time.
                * 
            * - * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the softDeleteTime field is set. */ boolean hasSoftDeleteTime(); /** + * + * *
                * Output only. This is the time when the object became soft-deleted.
                *
            @@ -764,11 +967,16 @@ java.lang.String getMetadataOrThrow(
                * enabled. Also see hard_delete_time.
                * 
            * - * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The softDeleteTime. */ com.google.protobuf.Timestamp getSoftDeleteTime(); /** + * + * *
                * Output only. This is the time when the object became soft-deleted.
                *
            @@ -776,11 +984,15 @@ java.lang.String getMetadataOrThrow(
                * enabled. Also see hard_delete_time.
                * 
            * - * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp soft_delete_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getSoftDeleteTimeOrBuilder(); /** + * + * *
                * Output only. The time when the object will be permanently deleted.
                *
            @@ -788,11 +1000,16 @@ java.lang.String getMetadataOrThrow(
                * Otherwise, the object will not be accessible.
                * 
            * - * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the hardDeleteTime field is set. */ boolean hasHardDeleteTime(); /** + * + * *
                * Output only. The time when the object will be permanently deleted.
                *
            @@ -800,11 +1017,16 @@ java.lang.String getMetadataOrThrow(
                * Otherwise, the object will not be accessible.
                * 
            * - * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The hardDeleteTime. */ com.google.protobuf.Timestamp getHardDeleteTime(); /** + * + * *
                * Output only. The time when the object will be permanently deleted.
                *
            @@ -812,7 +1034,9 @@ java.lang.String getMetadataOrThrow(
                * Otherwise, the object will not be accessible.
                * 
            * - * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * optional .google.protobuf.Timestamp hard_delete_time = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getHardDeleteTimeOrBuilder(); } 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 aae392a3e6..9a6afaf97e 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,21 +20,24 @@ 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_ = ""; @@ -27,33 +45,36 @@ private Owner() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Owner(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Owner_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_Owner_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_Owner_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.storage.v2.Owner.class, com.google.storage.v2.Owner.Builder.class); } public static final int ENTITY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object entity_ = ""; /** + * + * *
                * The entity, in the form `user-`*userId*.
                * 
            * * string entity = 1; + * * @return The entity. */ @java.lang.Override @@ -62,29 +83,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 { @@ -93,14 +114,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 @@ -109,29 +134,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 { @@ -140,6 +165,7 @@ public java.lang.String getEntityId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +177,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_); } @@ -182,17 +207,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; } @@ -213,132 +236,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(); @@ -349,8 +373,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; } @@ -371,7 +394,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; } @@ -390,38 +415,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; @@ -466,22 +492,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) { @@ -491,22 +520,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; @@ -515,20 +547,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 { @@ -536,28 +569,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() { @@ -567,17 +607,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; @@ -587,18 +631,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; @@ -607,20 +653,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 { @@ -628,28 +675,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() { @@ -659,26 +713,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); } @@ -688,12 +746,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(); } @@ -702,27 +760,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; @@ -737,6 +795,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 54% 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 b776a65d4c..d9a742fd5f 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,50 +1,76 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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 40a7a955a3..0f512e2c72 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,21 +20,24 @@ 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_ = ""; @@ -27,33 +45,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(); } - 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 @@ -62,29 +85,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 { @@ -93,14 +116,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 @@ -109,29 +136,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 { @@ -140,6 +167,7 @@ public java.lang.String getTeam() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,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_); } @@ -182,17 +209,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; } @@ -213,132 +238,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(); @@ -349,9 +377,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 @@ -371,7 +399,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; } @@ -390,38 +420,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; @@ -466,22 +497,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) { @@ -491,22 +525,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; @@ -515,20 +552,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 { @@ -536,28 +574,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() { @@ -567,17 +612,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; @@ -587,18 +636,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; @@ -607,20 +658,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 { @@ -628,28 +680,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() { @@ -659,26 +718,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); } @@ -688,12 +751,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(); } @@ -702,27 +765,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; @@ -737,6 +800,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 52% 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 08fc84878b..39317d44ea 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,50 +1,76 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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 68% 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 0589c3465c..bed16901c3 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,56 +20,64 @@ package com.google.storage.v2; /** + * + * *
              * Request object for `QueryWriteStatus`.
              * 
            * * Protobuf type {@code google.storage.v2.QueryWriteStatusRequest} */ -public final class QueryWriteStatusRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class QueryWriteStatusRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.v2.QueryWriteStatusRequest) QueryWriteStatusRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use QueryWriteStatusRequest.newBuilder() to construct. private QueryWriteStatusRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private QueryWriteStatusRequest() { uploadId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new QueryWriteStatusRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_QueryWriteStatusRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_QueryWriteStatusRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_QueryWriteStatusRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_QueryWriteStatusRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.QueryWriteStatusRequest.class, com.google.storage.v2.QueryWriteStatusRequest.Builder.class); + com.google.storage.v2.QueryWriteStatusRequest.class, + com.google.storage.v2.QueryWriteStatusRequest.Builder.class); } private int bitField0_; public static final int UPLOAD_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object uploadId_ = ""; /** + * + * *
                * Required. The name of the resume token for the object whose write status is
                * being requested.
                * 
            * * string upload_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The uploadId. */ @java.lang.Override @@ -63,30 +86,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 { @@ -97,11 +120,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 @@ -109,18 +135,25 @@ public boolean hasCommonObjectRequestParams() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 2; + * * @return The commonObjectRequestParams. */ @java.lang.Override public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { - return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; + return commonObjectRequestParams_ == null + ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() + : commonObjectRequestParams_; } /** + * + * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            @@ -128,11 +161,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; @@ -144,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(uploadId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uploadId_); } @@ -165,8 +201,9 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uploadId_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCommonObjectRequestParams()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getCommonObjectRequestParams()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -176,19 +213,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; @@ -212,120 +249,127 @@ 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() @@ -333,17 +377,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) { getCommonObjectRequestParamsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -358,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_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 @@ -379,8 +423,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; } @@ -392,9 +439,10 @@ private void buildPartial0(com.google.storage.v2.QueryWriteStatusRequest result) } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null - ? commonObjectRequestParams_ - : commonObjectRequestParamsBuilder_.build(); + result.commonObjectRequestParams_ = + commonObjectRequestParamsBuilder_ == null + ? commonObjectRequestParams_ + : commonObjectRequestParamsBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -404,38 +452,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; @@ -478,24 +527,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) { @@ -505,23 +556,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; @@ -530,21 +584,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 { @@ -552,30 +607,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() { @@ -585,18 +647,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; @@ -606,41 +672,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(); @@ -654,6 +734,8 @@ public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRe return this; } /** + * + * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -672,17 +754,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; @@ -697,6 +783,8 @@ public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObject return this; } /** + * + * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -714,33 +802,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.
                  * 
            @@ -748,21 +845,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); } @@ -772,12 +872,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(); } @@ -786,27 +886,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; @@ -821,6 +921,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 70% 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 65c2eb4501..055478ae9f 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,54 +1,83 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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 ecd694bbab..b71c9d45ac 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,54 +20,61 @@ package com.google.storage.v2; /** + * + * *
              * Response object for `QueryWriteStatus`.
              * 
            * * Protobuf type {@code google.storage.v2.QueryWriteStatusResponse} */ -public final class QueryWriteStatusResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class QueryWriteStatusResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.v2.QueryWriteStatusResponse) QueryWriteStatusResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use QueryWriteStatusResponse.newBuilder() to construct. private QueryWriteStatusResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private QueryWriteStatusResponse() { - } + + private QueryWriteStatusResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new QueryWriteStatusResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_QueryWriteStatusResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_QueryWriteStatusResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_QueryWriteStatusResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_QueryWriteStatusResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.QueryWriteStatusResponse.class, com.google.storage.v2.QueryWriteStatusResponse.Builder.class); + com.google.storage.v2.QueryWriteStatusResponse.class, + com.google.storage.v2.QueryWriteStatusResponse.Builder.class); } private int writeStatusCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object writeStatus_; + public enum WriteStatusCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PERSISTED_SIZE(1), RESOURCE(2), WRITESTATUS_NOT_SET(0); private final int value; + private WriteStatusCase(int value) { this.value = value; } @@ -68,25 +90,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
            @@ -95,6 +122,7 @@ public int getNumber() {
                * 
            * * int64 persisted_size = 1; + * * @return Whether the persistedSize field is set. */ @java.lang.Override @@ -102,6 +130,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
            @@ -110,6 +140,7 @@ public boolean hasPersistedSize() {
                * 
            * * int64 persisted_size = 1; + * * @return The persistedSize. */ @java.lang.Override @@ -122,12 +153,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 @@ -135,22 +169,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.
            @@ -161,12 +200,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;
            @@ -178,11 +218,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_);
            @@ -197,13 +235,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;
            @@ -213,22 +252,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:
            @@ -247,8 +285,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;
            @@ -262,132 +299,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(); @@ -401,9 +442,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 @@ -422,8 +463,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; @@ -436,8 +480,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(); } } @@ -446,38 +489,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; @@ -487,17 +531,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(); @@ -525,24 +572,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) { @@ -552,12 +600,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() { @@ -570,6 +618,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
            @@ -578,12 +628,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
            @@ -592,6 +645,7 @@ public boolean hasPersistedSize() {
                  * 
            * * int64 persisted_size = 1; + * * @return The persistedSize. */ public long getPersistedSize() { @@ -601,6 +655,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
            @@ -609,6 +665,7 @@ public long getPersistedSize() {
                  * 
            * * int64 persisted_size = 1; + * * @param value The persistedSize to set. * @return This builder for chaining. */ @@ -620,6 +677,8 @@ public Builder setPersistedSize(long value) { return this; } /** + * + * *
                  * The total number of bytes that have been processed for the given object
                  * from all `WriteObject` calls. This is the correct value for the
            @@ -628,6 +687,7 @@ public Builder setPersistedSize(long value) {
                  * 
            * * int64 persisted_size = 1; + * * @return This builder for chaining. */ public Builder clearPersistedSize() { @@ -640,14 +700,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 @@ -655,12 +721,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 @@ -678,6 +747,8 @@ public com.google.storage.v2.Object getResource() { } } /** + * + * *
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
            @@ -699,6 +770,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.
            @@ -706,8 +779,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();
            @@ -718,6 +790,8 @@ public Builder setResource(
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
            @@ -727,10 +801,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;
                     }
            @@ -746,6 +822,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.
            @@ -770,6 +848,8 @@ public Builder clearResource() {
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
            @@ -781,6 +861,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.
            @@ -800,6 +882,8 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
                   }
                 }
                 /**
            +     *
            +     *
                  * 
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
            @@ -808,26 +892,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);
                 }
             
            @@ -837,12 +924,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();
               }
            @@ -851,27 +938,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;
            @@ -886,6 +973,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 74%
            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 7e14f87886..f3a139e588 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,14 +1,32 @@
            +/*
            + * Copyright 2024 Google LLC
            + *
            + * Licensed under the Apache License, Version 2.0 (the "License");
            + * you may not use this file except in compliance with the License.
            + * You may obtain a copy of the License at
            + *
            + *     https://www.apache.org/licenses/LICENSE-2.0
            + *
            + * Unless required by applicable law or agreed to in writing, software
            + * distributed under the License is distributed on an "AS IS" BASIS,
            + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            + * See the License for the specific language governing permissions and
            + * limitations under the License.
            + */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
             // Protobuf Java Version: 3.25.3
             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
            @@ -17,10 +35,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
            @@ -29,31 +50,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 a7315fb5b8..55778a11fd 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,3 +1,18 @@
            +/*
            + * Copyright 2024 Google LLC
            + *
            + * Licensed under the Apache License, Version 2.0 (the "License");
            + * you may not use this file except in compliance with the License.
            + * You may obtain a copy of the License at
            + *
            + *     https://www.apache.org/licenses/LICENSE-2.0
            + *
            + * Unless required by applicable law or agreed to in writing, software
            + * distributed under the License is distributed on an "AS IS" BASIS,
            + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            + * See the License for the specific language governing permissions and
            + * limitations under the License.
            + */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
            @@ -5,21 +20,24 @@
             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_ = ""; @@ -27,34 +45,41 @@ private ReadObjectRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReadObjectRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ReadObjectRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_ReadObjectRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ReadObjectRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_ReadObjectRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ReadObjectRequest.class, com.google.storage.v2.ReadObjectRequest.Builder.class); + com.google.storage.v2.ReadObjectRequest.class, + com.google.storage.v2.ReadObjectRequest.Builder.class); } private int bitField0_; public static final int BUCKET_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object bucket_ = ""; /** + * + * *
                * Required. The name of the bucket containing the object to read.
                * 
            * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bucket. */ @java.lang.Override @@ -63,29 +88,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 { @@ -94,14 +121,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 @@ -110,29 +141,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 { @@ -143,12 +174,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 @@ -159,6 +193,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.
            @@ -172,6 +208,7 @@ public long getGeneration() {
                * 
            * * int64 read_offset = 4; + * * @return The readOffset. */ @java.lang.Override @@ -182,6 +219,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
            @@ -193,6 +232,7 @@ public long getReadOffset() {
                * 
            * * int64 read_limit = 5; + * * @return The readLimit. */ @java.lang.Override @@ -203,6 +243,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
            @@ -210,6 +252,7 @@ public long getReadLimit() {
                * 
            * * optional int64 if_generation_match = 6; + * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -217,6 +260,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
            @@ -224,6 +269,7 @@ public boolean hasIfGenerationMatch() {
                * 
            * * optional int64 if_generation_match = 6; + * * @return The ifGenerationMatch. */ @java.lang.Override @@ -234,6 +280,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
            @@ -242,6 +290,7 @@ public long getIfGenerationMatch() {
                * 
            * * optional int64 if_generation_not_match = 7; + * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -249,6 +298,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
            @@ -257,6 +308,7 @@ public boolean hasIfGenerationNotMatch() {
                * 
            * * optional int64 if_generation_not_match = 7; + * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -267,12 +319,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 @@ -280,12 +335,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 @@ -296,12 +354,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 @@ -309,12 +370,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 @@ -325,11 +389,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 @@ -337,18 +404,25 @@ public boolean hasCommonObjectRequestParams() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 10; + * * @return The commonObjectRequestParams. */ @java.lang.Override public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { - return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; + return commonObjectRequestParams_ == null + ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() + : commonObjectRequestParams_; } /** + * + * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            @@ -356,13 +430,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.
            @@ -372,6 +451,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 @@ -379,6 +459,8 @@ public boolean hasReadMask() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
                * Mask specifying which fields to read.
                * The checksummed_data field and its children will always be present.
            @@ -388,6 +470,7 @@ public boolean hasReadMask() {
                * 
            * * optional .google.protobuf.FieldMask read_mask = 12; + * * @return The readMask. */ @java.lang.Override @@ -395,6 +478,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.
            @@ -411,6 +496,7 @@ public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() {
               }
             
               private byte memoizedIsInitialized = -1;
            +
               @java.lang.Override
               public final boolean isInitialized() {
                 byte isInitialized = memoizedIsInitialized;
            @@ -422,8 +508,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_);
                 }
            @@ -473,40 +558,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 (((bitField0_ & 0x00000010) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream
            -        .computeMessageSize(10, getCommonObjectRequestParams());
            +      size +=
            +          com.google.protobuf.CodedOutputStream.computeMessageSize(
            +              10, getCommonObjectRequestParams());
                 }
                 if (((bitField0_ & 0x00000020) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream
            -        .computeMessageSize(12, getReadMask());
            +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getReadMask());
                 }
                 size += getUnknownFields().getSerializedSize();
                 memoizedSize = size;
            @@ -516,52 +594,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;
            @@ -579,33 +647,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;
            @@ -620,120 +681,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 +809,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 +848,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 +869,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,15 +913,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(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000400) != 0)) { - result.readMask_ = readMaskBuilder_ == null - ? readMask_ - : readMaskBuilder_.build(); + result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.build(); to_bitField0_ |= 0x00000020; } result.bitField0_ |= to_bitField0_; @@ -860,38 +930,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; @@ -963,71 +1034,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) { @@ -1037,22 +1117,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; @@ -1061,20 +1146,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 { @@ -1082,28 +1170,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() { @@ -1113,17 +1212,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; @@ -1133,18 +1238,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; @@ -1153,20 +1260,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 { @@ -1174,28 +1282,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() { @@ -1205,17 +1320,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; @@ -1223,14 +1342,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 @@ -1238,12 +1360,15 @@ 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. */ @@ -1255,12 +1380,15 @@ public Builder setGeneration(long value) { return this; } /** + * + * *
                  * If present, selects a specific revision of this object (as opposed
                  * to the latest version, the default).
                  * 
            * * int64 generation = 3; + * * @return This builder for chaining. */ public Builder clearGeneration() { @@ -1270,8 +1398,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.
            @@ -1285,6 +1415,7 @@ public Builder clearGeneration() {
                  * 
            * * int64 read_offset = 4; + * * @return The readOffset. */ @java.lang.Override @@ -1292,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.
            @@ -1305,6 +1438,7 @@ public long getReadOffset() {
                  * 
            * * int64 read_offset = 4; + * * @param value The readOffset to set. * @return This builder for chaining. */ @@ -1316,6 +1450,8 @@ public Builder setReadOffset(long value) { return this; } /** + * + * *
                  * The offset for the first byte to return in the read, relative to the start
                  * of the object.
            @@ -1329,6 +1465,7 @@ public Builder setReadOffset(long value) {
                  * 
            * * int64 read_offset = 4; + * * @return This builder for chaining. */ public Builder clearReadOffset() { @@ -1338,8 +1475,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
            @@ -1351,6 +1490,7 @@ public Builder clearReadOffset() {
                  * 
            * * int64 read_limit = 5; + * * @return The readLimit. */ @java.lang.Override @@ -1358,6 +1498,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
            @@ -1369,6 +1511,7 @@ public long getReadLimit() {
                  * 
            * * int64 read_limit = 5; + * * @param value The readLimit to set. * @return This builder for chaining. */ @@ -1380,6 +1523,8 @@ public Builder setReadLimit(long value) { return this; } /** + * + * *
                  * The maximum number of `data` bytes the server is allowed to return in the
                  * sum of all `Object` messages. A `read_limit` of zero indicates that there
            @@ -1391,6 +1536,7 @@ public Builder setReadLimit(long value) {
                  * 
            * * int64 read_limit = 5; + * * @return This builder for chaining. */ public Builder clearReadLimit() { @@ -1400,8 +1546,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
            @@ -1409,6 +1557,7 @@ public Builder clearReadLimit() {
                  * 
            * * optional int64 if_generation_match = 6; + * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -1416,6 +1565,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
            @@ -1423,6 +1574,7 @@ public boolean hasIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_match = 6; + * * @return The ifGenerationMatch. */ @java.lang.Override @@ -1430,6 +1582,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
            @@ -1437,6 +1591,7 @@ public long getIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_match = 6; + * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ @@ -1448,6 +1603,8 @@ public Builder setIfGenerationMatch(long value) { return this; } /** + * + * *
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -1455,6 +1612,7 @@ public Builder setIfGenerationMatch(long value) {
                  * 
            * * optional int64 if_generation_match = 6; + * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -1464,8 +1622,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
            @@ -1474,6 +1634,7 @@ public Builder clearIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_not_match = 7; + * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -1481,6 +1642,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
            @@ -1489,6 +1652,7 @@ public boolean hasIfGenerationNotMatch() {
                  * 
            * * optional int64 if_generation_not_match = 7; + * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -1496,6 +1660,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
            @@ -1504,6 +1670,7 @@ public long getIfGenerationNotMatch() {
                  * 
            * * optional int64 if_generation_not_match = 7; + * * @param value The ifGenerationNotMatch to set. * @return This builder for chaining. */ @@ -1515,6 +1682,8 @@ public Builder setIfGenerationNotMatch(long value) { return this; } /** + * + * *
                  * Makes the operation conditional on whether the object's live generation
                  * does not match the given value. If no live object exists, the precondition
            @@ -1523,6 +1692,7 @@ public Builder setIfGenerationNotMatch(long value) {
                  * 
            * * optional int64 if_generation_not_match = 7; + * * @return This builder for chaining. */ public Builder clearIfGenerationNotMatch() { @@ -1532,14 +1702,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 @@ -1547,12 +1720,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 @@ -1560,12 +1736,15 @@ 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. */ @@ -1577,12 +1756,15 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** + * + * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 8; + * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -1592,14 +1774,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 @@ -1607,12 +1792,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 @@ -1620,12 +1808,15 @@ 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. */ @@ -1637,12 +1828,15 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** + * + * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 9; + * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -1654,41 +1848,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(); @@ -1702,6 +1910,8 @@ public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRe return this; } /** + * + * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -1720,17 +1930,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; @@ -1745,6 +1959,8 @@ public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObject return this; } /** + * + * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -1762,33 +1978,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.
                  * 
            @@ -1796,14 +2021,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_; @@ -1811,8 +2039,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.
            @@ -1822,12 +2055,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.
            @@ -1837,6 +2073,7 @@ public boolean hasReadMask() {
                  * 
            * * optional .google.protobuf.FieldMask read_mask = 12; + * * @return The readMask. */ public com.google.protobuf.FieldMask getReadMask() { @@ -1847,6 +2084,8 @@ public com.google.protobuf.FieldMask getReadMask() { } } /** + * + * *
                  * Mask specifying which fields to read.
                  * The checksummed_data field and its children will always be present.
            @@ -1871,6 +2110,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.
            @@ -1881,8 +2122,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 {
            @@ -1893,6 +2133,8 @@ public Builder setReadMask(
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * Mask specifying which fields to read.
                  * The checksummed_data field and its children will always be present.
            @@ -1905,9 +2147,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;
            @@ -1922,6 +2164,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.
            @@ -1943,6 +2187,8 @@ public Builder clearReadMask() {
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * Mask specifying which fields to read.
                  * The checksummed_data field and its children will always be present.
            @@ -1959,6 +2205,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.
            @@ -1973,11 +2221,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.
            @@ -1989,21 +2238,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);
                 }
             
            @@ -2013,12 +2265,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();
               }
            @@ -2027,27 +2279,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;
            @@ -2062,6 +2314,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 040dd8bd45..94ad9c8236 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,65 +1,100 @@
            +/*
            + * Copyright 2024 Google LLC
            + *
            + * Licensed under the Apache License, Version 2.0 (the "License");
            + * you may not use this file except in compliance with the License.
            + * You may obtain a copy of the License at
            + *
            + *     https://www.apache.org/licenses/LICENSE-2.0
            + *
            + * Unless required by applicable law or agreed to in writing, software
            + * distributed under the License is distributed on an "AS IS" BASIS,
            + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            + * See the License for the specific language governing permissions and
            + * limitations under the License.
            + */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
             // Protobuf Java Version: 3.25.3
             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.
            @@ -73,11 +108,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
            @@ -89,11 +127,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
            @@ -101,10 +142,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
            @@ -112,11 +156,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
            @@ -125,10 +172,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
            @@ -137,71 +187,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.
                * 
            @@ -211,6 +282,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.
            @@ -220,10 +293,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.
            @@ -233,10 +309,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 74%
            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 e45b408011..e86769077a 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,3 +1,18 @@
            +/*
            + * Copyright 2024 Google LLC
            + *
            + * Licensed under the Apache License, Version 2.0 (the "License");
            + * you may not use this file except in compliance with the License.
            + * You may obtain a copy of the License at
            + *
            + *     https://www.apache.org/licenses/LICENSE-2.0
            + *
            + * Unless required by applicable law or agreed to in writing, software
            + * distributed under the License is distributed on an "AS IS" BASIS,
            + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            + * See the License for the specific language governing permissions and
            + * limitations under the License.
            + */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
            @@ -5,48 +20,53 @@
             package com.google.storage.v2;
             
             /**
            + *
            + *
              * 
              * Response message for ReadObject.
              * 
            * * Protobuf type {@code google.storage.v2.ReadObjectResponse} */ -public final class ReadObjectResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ReadObjectResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.v2.ReadObjectResponse) ReadObjectResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReadObjectResponse.newBuilder() to construct. private ReadObjectResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ReadObjectResponse() { - } + + private ReadObjectResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReadObjectResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ReadObjectResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_ReadObjectResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ReadObjectResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_ReadObjectResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ReadObjectResponse.class, com.google.storage.v2.ReadObjectResponse.Builder.class); + com.google.storage.v2.ReadObjectResponse.class, + com.google.storage.v2.ReadObjectResponse.Builder.class); } private int bitField0_; public static final int CHECKSUMMED_DATA_FIELD_NUMBER = 1; private com.google.storage.v2.ChecksummedData checksummedData_; /** + * + * *
                * A portion of the data for the object. The service **may** leave `data`
                * empty for any given `ReadResponse`. This enables the service to inform the
            @@ -55,6 +75,7 @@ protected java.lang.Object newInstance(
                * 
            * * .google.storage.v2.ChecksummedData checksummed_data = 1; + * * @return Whether the checksummedData field is set. */ @java.lang.Override @@ -62,6 +83,8 @@ 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
            @@ -70,13 +93,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
            @@ -88,12 +116,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. If the object is downloaded in full,
                * the client should compute one of these checksums over the downloaded object
            @@ -101,6 +133,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 @@ -108,6 +141,8 @@ public boolean hasObjectChecksums() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
                * The checksums of the complete object. If the object is downloaded in full,
                * the client should compute one of these checksums over the downloaded object
            @@ -115,13 +150,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. If the object is downloaded in full,
                * the client should compute one of these checksums over the downloaded object
            @@ -132,12 +172,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
            @@ -145,6 +189,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 @@ -152,6 +197,8 @@ 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
            @@ -159,13 +206,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
            @@ -176,18 +228,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 @@ -195,12 +252,15 @@ 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. */ @java.lang.Override @@ -208,6 +268,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.
            @@ -221,6 +283,7 @@ public com.google.storage.v2.ObjectOrBuilder getMetadataOrBuilder() {
               }
             
               private byte memoizedIsInitialized = -1;
            +
               @java.lang.Override
               public final boolean isInitialized() {
                 byte isInitialized = memoizedIsInitialized;
            @@ -232,8 +295,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.writeMessage(1, getChecksummedData());
                 }
            @@ -256,20 +318,16 @@ public int getSerializedSize() {
             
                 size = 0;
                 if (((bitField0_ & 0x00000001) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream
            -        .computeMessageSize(1, getChecksummedData());
            +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getChecksummedData());
                 }
                 if (((bitField0_ & 0x00000002) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream
            -        .computeMessageSize(2, getObjectChecksums());
            +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getObjectChecksums());
                 }
                 if (((bitField0_ & 0x00000004) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream
            -        .computeMessageSize(3, getContentRange());
            +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getContentRange());
                 }
                 if (((bitField0_ & 0x00000008) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream
            -        .computeMessageSize(4, getMetadata());
            +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMetadata());
                 }
                 size += getUnknownFields().getSerializedSize();
                 memoizedSize = size;
            @@ -279,7 +337,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);
            @@ -288,23 +346,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;
            @@ -338,120 +392,127 @@ 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() @@ -459,20 +520,20 @@ 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) { getChecksummedDataFieldBuilder(); getObjectChecksumsFieldBuilder(); getContentRangeFieldBuilder(); getMetadataFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -501,9 +562,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 @@ -522,8 +583,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; } @@ -532,27 +596,22 @@ private void buildPartial0(com.google.storage.v2.ReadObjectResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.checksummedData_ = checksummedDataBuilder_ == null - ? checksummedData_ - : checksummedDataBuilder_.build(); + result.checksummedData_ = + checksummedDataBuilder_ == null ? checksummedData_ : checksummedDataBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.objectChecksums_ = objectChecksumsBuilder_ == null - ? objectChecksums_ - : objectChecksumsBuilder_.build(); + result.objectChecksums_ = + objectChecksumsBuilder_ == null ? objectChecksums_ : objectChecksumsBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.contentRange_ = contentRangeBuilder_ == null - ? contentRange_ - : contentRangeBuilder_.build(); + result.contentRange_ = + contentRangeBuilder_ == null ? contentRange_ : contentRangeBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.metadata_ = metadataBuilder_ == null - ? metadata_ - : metadataBuilder_.build(); + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; @@ -562,38 +621,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; @@ -640,40 +700,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) { @@ -683,12 +740,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
            @@ -697,12 +760,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
            @@ -711,16 +777,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
            @@ -744,6 +815,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
            @@ -765,6 +838,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
            @@ -776,9 +851,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;
            @@ -793,6 +868,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
            @@ -813,6 +890,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
            @@ -828,6 +907,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
            @@ -841,11 +922,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
            @@ -856,14 +940,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_;
            @@ -871,8 +958,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. If the object is downloaded in full,
                  * the client should compute one of these checksums over the downloaded object
            @@ -880,12 +972,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. If the object is downloaded in full,
                  * the client should compute one of these checksums over the downloaded object
            @@ -893,16 +988,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. If the object is downloaded in full,
                  * the client should compute one of these checksums over the downloaded object
            @@ -925,6 +1025,8 @@ public Builder setObjectChecksums(com.google.storage.v2.ObjectChecksums value) {
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * The checksums of the complete object. If the object is downloaded in full,
                  * the client should compute one of these checksums over the downloaded object
            @@ -945,6 +1047,8 @@ public Builder setObjectChecksums(
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * The checksums of the complete object. If the object is downloaded in full,
                  * the client should compute one of these checksums over the downloaded object
            @@ -955,9 +1059,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;
            @@ -972,6 +1076,8 @@ public Builder mergeObjectChecksums(com.google.storage.v2.ObjectChecksums value)
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * The checksums of the complete object. If the object is downloaded in full,
                  * the client should compute one of these checksums over the downloaded object
            @@ -991,6 +1097,8 @@ public Builder clearObjectChecksums() {
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * The checksums of the complete object. If the object is downloaded in full,
                  * the client should compute one of these checksums over the downloaded object
            @@ -1005,6 +1113,8 @@ public com.google.storage.v2.ObjectChecksums.Builder getObjectChecksumsBuilder()
                   return getObjectChecksumsFieldBuilder().getBuilder();
                 }
                 /**
            +     *
            +     *
                  * 
                  * The checksums of the complete object. If the object is downloaded in full,
                  * the client should compute one of these checksums over the downloaded object
            @@ -1017,11 +1127,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. If the object is downloaded in full,
                  * the client should compute one of these checksums over the downloaded object
            @@ -1031,14 +1144,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_;
            @@ -1046,8 +1162,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
            @@ -1055,12 +1176,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
            @@ -1068,16 +1192,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
            @@ -1100,6 +1229,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
            @@ -1108,8 +1239,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 {
            @@ -1120,6 +1250,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
            @@ -1130,9 +1262,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;
            @@ -1147,6 +1279,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
            @@ -1166,6 +1300,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
            @@ -1180,6 +1316,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
            @@ -1192,11 +1330,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
            @@ -1206,14 +1347,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_;
            @@ -1221,26 +1365,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() { @@ -1251,6 +1404,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.
            @@ -1272,6 +1427,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.
            @@ -1279,8 +1436,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 {
            @@ -1291,6 +1447,8 @@ public Builder setMetadata(
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * Metadata of the object whose media is being returned.
                  * Only populated in the first response in the stream.
            @@ -1300,9 +1458,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;
            @@ -1317,6 +1475,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.
            @@ -1335,6 +1495,8 @@ public Builder clearMetadata() {
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * Metadata of the object whose media is being returned.
                  * Only populated in the first response in the stream.
            @@ -1348,6 +1510,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.
            @@ -1359,11 +1523,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.
            @@ -1372,21 +1537,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);
                 }
             
            @@ -1396,12 +1564,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();
               }
            @@ -1410,27 +1578,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;
            @@ -1445,6 +1613,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 24b4cd8821..b57255da69 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,14 +1,32 @@
            +/*
            + * Copyright 2024 Google LLC
            + *
            + * Licensed under the Apache License, Version 2.0 (the "License");
            + * you may not use this file except in compliance with the License.
            + * You may obtain a copy of the License at
            + *
            + *     https://www.apache.org/licenses/LICENSE-2.0
            + *
            + * Unless required by applicable law or agreed to in writing, software
            + * distributed under the License is distributed on an "AS IS" BASIS,
            + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            + * See the License for the specific language governing permissions and
            + * limitations under the License.
            + */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
             // Protobuf Java Version: 3.25.3
             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
            @@ -17,10 +35,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
            @@ -29,10 +50,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
            @@ -45,6 +69,8 @@ public interface ReadObjectResponseOrBuilder extends
               com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilder();
             
               /**
            +   *
            +   *
                * 
                * The checksums of the complete object. If the object is downloaded in full,
                * the client should compute one of these checksums over the downloaded object
            @@ -52,10 +78,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. If the object is downloaded in full,
                * the client should compute one of these checksums over the downloaded object
            @@ -63,10 +92,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. If the object is downloaded in full,
                * the client should compute one of these checksums over the downloaded object
            @@ -78,6 +110,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
            @@ -85,10 +119,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
            @@ -96,10 +133,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
            @@ -111,26 +151,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/RestoreObjectRequest.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequest.java
            similarity index 74%
            rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequest.java
            rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequest.java
            index 8faad21ef6..c01c3d744d 100644
            --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequest.java
            +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequest.java
            @@ -1,3 +1,18 @@
            +/*
            + * Copyright 2024 Google LLC
            + *
            + * Licensed under the Apache License, Version 2.0 (the "License");
            + * you may not use this file except in compliance with the License.
            + * You may obtain a copy of the License at
            + *
            + *     https://www.apache.org/licenses/LICENSE-2.0
            + *
            + * Unless required by applicable law or agreed to in writing, software
            + * distributed under the License is distributed on an "AS IS" BASIS,
            + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            + * See the License for the specific language governing permissions and
            + * limitations under the License.
            + */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
            @@ -5,6 +20,8 @@
             package com.google.storage.v2;
             
             /**
            + *
            + *
              * 
              * Message for restoring an object.
              * `bucket`, `object`, and `generation` **must** be set.
            @@ -12,15 +29,16 @@
              *
              * Protobuf type {@code google.storage.v2.RestoreObjectRequest}
              */
            -public final class RestoreObjectRequest extends
            -    com.google.protobuf.GeneratedMessageV3 implements
            +public final class RestoreObjectRequest extends com.google.protobuf.GeneratedMessageV3
            +    implements
                 // @@protoc_insertion_point(message_implements:google.storage.v2.RestoreObjectRequest)
                 RestoreObjectRequestOrBuilder {
            -private static final long serialVersionUID = 0L;
            +  private static final long serialVersionUID = 0L;
               // Use RestoreObjectRequest.newBuilder() to construct.
               private RestoreObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                 super(builder);
               }
            +
               private RestoreObjectRequest() {
                 bucket_ = "";
                 object_ = "";
            @@ -28,34 +46,41 @@ private RestoreObjectRequest() {
             
               @java.lang.Override
               @SuppressWarnings({"unused"})
            -  protected java.lang.Object newInstance(
            -      UnusedPrivateParameter unused) {
            +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                 return new RestoreObjectRequest();
               }
             
            -  public static final com.google.protobuf.Descriptors.Descriptor
            -      getDescriptor() {
            -    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_RestoreObjectRequest_descriptor;
            +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            +    return com.google.storage.v2.StorageProto
            +        .internal_static_google_storage_v2_RestoreObjectRequest_descriptor;
               }
             
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
            -    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_RestoreObjectRequest_fieldAccessorTable
            +    return com.google.storage.v2.StorageProto
            +        .internal_static_google_storage_v2_RestoreObjectRequest_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
            -            com.google.storage.v2.RestoreObjectRequest.class, com.google.storage.v2.RestoreObjectRequest.Builder.class);
            +            com.google.storage.v2.RestoreObjectRequest.class,
            +            com.google.storage.v2.RestoreObjectRequest.Builder.class);
               }
             
               private int bitField0_;
               public static final int BUCKET_FIELD_NUMBER = 1;
            +
               @SuppressWarnings("serial")
               private volatile java.lang.Object bucket_ = "";
               /**
            +   *
            +   *
                * 
                * Required. Name of the bucket in which the object resides.
                * 
            * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bucket. */ @java.lang.Override @@ -64,29 +89,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 { @@ -95,14 +122,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 restore.
                * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The object. */ @java.lang.Override @@ -111,29 +142,29 @@ public java.lang.String getObject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); object_ = s; return s; } } /** + * + * *
                * Required. The name of the object to restore.
                * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for object. */ @java.lang.Override - public com.google.protobuf.ByteString - getObjectBytes() { + public com.google.protobuf.ByteString getObjectBytes() { java.lang.Object ref = object_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); object_ = b; return b; } else { @@ -144,11 +175,14 @@ public java.lang.String getObject() { public static final int GENERATION_FIELD_NUMBER = 3; private long generation_ = 0L; /** + * + * *
                * Required. The specific revision of the object to restore.
                * 
            * * int64 generation = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The generation. */ @java.lang.Override @@ -159,6 +193,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
            @@ -166,6 +202,7 @@ public long getGeneration() {
                * 
            * * optional int64 if_generation_match = 4; + * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -173,6 +210,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
            @@ -180,6 +219,7 @@ public boolean hasIfGenerationMatch() {
                * 
            * * optional int64 if_generation_match = 4; + * * @return The ifGenerationMatch. */ @java.lang.Override @@ -190,6 +230,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
            @@ -198,6 +240,7 @@ public long getIfGenerationMatch() {
                * 
            * * optional int64 if_generation_not_match = 5; + * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -205,6 +248,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
            @@ -213,6 +258,7 @@ public boolean hasIfGenerationNotMatch() {
                * 
            * * optional int64 if_generation_not_match = 5; + * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -223,12 +269,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 @@ -236,12 +285,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 @@ -252,12 +304,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 @@ -265,12 +320,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 @@ -281,6 +339,8 @@ public long getIfMetagenerationNotMatch() { public static final int COPY_SOURCE_ACL_FIELD_NUMBER = 9; private boolean copySourceAcl_ = false; /** + * + * *
                * If false or unset, the bucket's default object ACL will be used.
                * If true, copy the source object's access controls.
            @@ -288,6 +348,7 @@ public long getIfMetagenerationNotMatch() {
                * 
            * * optional bool copy_source_acl = 9; + * * @return Whether the copySourceAcl field is set. */ @java.lang.Override @@ -295,6 +356,8 @@ public boolean hasCopySourceAcl() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
                * If false or unset, the bucket's default object ACL will be used.
                * If true, copy the source object's access controls.
            @@ -302,6 +365,7 @@ public boolean hasCopySourceAcl() {
                * 
            * * optional bool copy_source_acl = 9; + * * @return The copySourceAcl. */ @java.lang.Override @@ -312,11 +376,14 @@ public boolean getCopySourceAcl() { public static final int COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER = 8; private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; /** + * + * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; + * * @return Whether the commonObjectRequestParams field is set. */ @java.lang.Override @@ -324,18 +391,25 @@ public boolean hasCommonObjectRequestParams() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; + * * @return The commonObjectRequestParams. */ @java.lang.Override public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { - return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; + return commonObjectRequestParams_ == null + ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() + : commonObjectRequestParams_; } /** + * + * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            @@ -343,11 +417,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; @@ -359,8 +437,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_); } @@ -404,32 +481,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 (((bitField0_ & 0x00000020) != 0)) { - 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 - .computeBoolSize(9, copySourceAcl_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, copySourceAcl_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -439,48 +511,41 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.storage.v2.RestoreObjectRequest)) { return super.equals(obj); } - com.google.storage.v2.RestoreObjectRequest other = (com.google.storage.v2.RestoreObjectRequest) obj; + com.google.storage.v2.RestoreObjectRequest other = + (com.google.storage.v2.RestoreObjectRequest) obj; - if (!getBucket() - .equals(other.getBucket())) return false; - if (!getObject() - .equals(other.getObject())) return false; - if (getGeneration() - != other.getGeneration()) return false; + if (!getBucket().equals(other.getBucket())) return false; + if (!getObject().equals(other.getObject())) return false; + if (getGeneration() != other.getGeneration()) return false; if (hasIfGenerationMatch() != other.hasIfGenerationMatch()) return false; if (hasIfGenerationMatch()) { - if (getIfGenerationMatch() - != other.getIfGenerationMatch()) return false; + if (getIfGenerationMatch() != other.getIfGenerationMatch()) return false; } if (hasIfGenerationNotMatch() != other.hasIfGenerationNotMatch()) return false; if (hasIfGenerationNotMatch()) { - if (getIfGenerationNotMatch() - != other.getIfGenerationNotMatch()) return false; + if (getIfGenerationNotMatch() != other.getIfGenerationNotMatch()) return false; } if (hasIfMetagenerationMatch() != other.hasIfMetagenerationMatch()) return false; if (hasIfMetagenerationMatch()) { - if (getIfMetagenerationMatch() - != other.getIfMetagenerationMatch()) return false; + if (getIfMetagenerationMatch() != other.getIfMetagenerationMatch()) return false; } if (hasIfMetagenerationNotMatch() != other.hasIfMetagenerationNotMatch()) return false; if (hasIfMetagenerationNotMatch()) { - if (getIfMetagenerationNotMatch() - != other.getIfMetagenerationNotMatch()) return false; + if (getIfMetagenerationNotMatch() != other.getIfMetagenerationNotMatch()) return false; } if (hasCopySourceAcl() != other.hasCopySourceAcl()) return false; if (hasCopySourceAcl()) { - if (getCopySourceAcl() - != other.getCopySourceAcl()) return false; + if (getCopySourceAcl() != other.getCopySourceAcl()) return false; } if (hasCommonObjectRequestParams() != other.hasCommonObjectRequestParams()) return false; if (hasCommonObjectRequestParams()) { - if (!getCommonObjectRequestParams() - .equals(other.getCommonObjectRequestParams())) return false; + if (!getCommonObjectRequestParams().equals(other.getCommonObjectRequestParams())) + return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -498,32 +563,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()); if (hasIfGenerationMatch()) { hash = (37 * hash) + IF_GENERATION_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIfGenerationMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfGenerationMatch()); } if (hasIfGenerationNotMatch()) { hash = (37 * hash) + IF_GENERATION_NOT_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIfGenerationNotMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfGenerationNotMatch()); } if (hasIfMetagenerationMatch()) { hash = (37 * hash) + IF_METAGENERATION_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIfMetagenerationMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationMatch()); } if (hasIfMetagenerationNotMatch()) { hash = (37 * hash) + IF_METAGENERATION_NOT_MATCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIfMetagenerationNotMatch()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIfMetagenerationNotMatch()); } if (hasCopySourceAcl()) { hash = (37 * hash) + COPY_SOURCE_ACL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCopySourceAcl()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCopySourceAcl()); } if (hasCommonObjectRequestParams()) { hash = (37 * hash) + COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER; @@ -534,99 +593,104 @@ public int hashCode() { return hash; } - public static com.google.storage.v2.RestoreObjectRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.storage.v2.RestoreObjectRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.v2.RestoreObjectRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.v2.RestoreObjectRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.v2.RestoreObjectRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.v2.RestoreObjectRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.storage.v2.RestoreObjectRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.storage.v2.RestoreObjectRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.v2.RestoreObjectRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.storage.v2.RestoreObjectRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.storage.v2.RestoreObjectRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.storage.v2.RestoreObjectRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.storage.v2.RestoreObjectRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.storage.v2.RestoreObjectRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.storage.v2.RestoreObjectRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
                * Message for restoring an object.
                * `bucket`, `object`, and `generation` **must** be set.
            @@ -634,21 +698,23 @@ protected Builder newBuilderForType(
                *
                * Protobuf type {@code google.storage.v2.RestoreObjectRequest}
                */
            -  public static final class Builder extends
            -      com.google.protobuf.GeneratedMessageV3.Builder implements
            +  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
            +      implements
                   // @@protoc_insertion_point(builder_implements:google.storage.v2.RestoreObjectRequest)
                   com.google.storage.v2.RestoreObjectRequestOrBuilder {
            -    public static final com.google.protobuf.Descriptors.Descriptor
            -        getDescriptor() {
            -      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_RestoreObjectRequest_descriptor;
            +    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            +      return com.google.storage.v2.StorageProto
            +          .internal_static_google_storage_v2_RestoreObjectRequest_descriptor;
                 }
             
                 @java.lang.Override
                 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                     internalGetFieldAccessorTable() {
            -      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_RestoreObjectRequest_fieldAccessorTable
            +      return com.google.storage.v2.StorageProto
            +          .internal_static_google_storage_v2_RestoreObjectRequest_fieldAccessorTable
                       .ensureFieldAccessorsInitialized(
            -              com.google.storage.v2.RestoreObjectRequest.class, com.google.storage.v2.RestoreObjectRequest.Builder.class);
            +              com.google.storage.v2.RestoreObjectRequest.class,
            +              com.google.storage.v2.RestoreObjectRequest.Builder.class);
                 }
             
                 // Construct using com.google.storage.v2.RestoreObjectRequest.newBuilder()
            @@ -656,17 +722,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) {
                     getCommonObjectRequestParamsFieldBuilder();
                   }
                 }
            +
                 @java.lang.Override
                 public Builder clear() {
                   super.clear();
            @@ -688,9 +754,9 @@ public Builder clear() {
                 }
             
                 @java.lang.Override
            -    public com.google.protobuf.Descriptors.Descriptor
            -        getDescriptorForType() {
            -      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_RestoreObjectRequest_descriptor;
            +    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
            +      return com.google.storage.v2.StorageProto
            +          .internal_static_google_storage_v2_RestoreObjectRequest_descriptor;
                 }
             
                 @java.lang.Override
            @@ -709,8 +775,11 @@ public com.google.storage.v2.RestoreObjectRequest build() {
             
                 @java.lang.Override
                 public com.google.storage.v2.RestoreObjectRequest buildPartial() {
            -      com.google.storage.v2.RestoreObjectRequest result = new com.google.storage.v2.RestoreObjectRequest(this);
            -      if (bitField0_ != 0) { buildPartial0(result); }
            +      com.google.storage.v2.RestoreObjectRequest result =
            +          new com.google.storage.v2.RestoreObjectRequest(this);
            +      if (bitField0_ != 0) {
            +        buildPartial0(result);
            +      }
                   onBuilt();
                   return result;
                 }
            @@ -748,9 +817,10 @@ private void buildPartial0(com.google.storage.v2.RestoreObjectRequest result) {
                     to_bitField0_ |= 0x00000010;
                   }
                   if (((from_bitField0_ & 0x00000100) != 0)) {
            -        result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null
            -            ? commonObjectRequestParams_
            -            : commonObjectRequestParamsBuilder_.build();
            +        result.commonObjectRequestParams_ =
            +            commonObjectRequestParamsBuilder_ == null
            +                ? commonObjectRequestParams_
            +                : commonObjectRequestParamsBuilder_.build();
                     to_bitField0_ |= 0x00000020;
                   }
                   result.bitField0_ |= to_bitField0_;
            @@ -760,38 +830,39 @@ private void buildPartial0(com.google.storage.v2.RestoreObjectRequest result) {
                 public Builder clone() {
                   return super.clone();
                 }
            +
                 @java.lang.Override
                 public Builder setField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field,
            -        java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                   return super.setField(field, value);
                 }
            +
                 @java.lang.Override
            -    public Builder clearField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field) {
            +    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
                   return super.clearField(field);
                 }
            +
                 @java.lang.Override
            -    public Builder clearOneof(
            -        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
            +    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                   return super.clearOneof(oneof);
                 }
            +
                 @java.lang.Override
                 public Builder setRepeatedField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field,
            -        int index, java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
                   return super.setRepeatedField(field, index, value);
                 }
            +
                 @java.lang.Override
                 public Builder addRepeatedField(
            -        com.google.protobuf.Descriptors.FieldDescriptor field,
            -        java.lang.Object value) {
            +        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                   return super.addRepeatedField(field, value);
                 }
            +
                 @java.lang.Override
                 public Builder mergeFrom(com.google.protobuf.Message other) {
                   if (other instanceof com.google.storage.v2.RestoreObjectRequest) {
            -        return mergeFrom((com.google.storage.v2.RestoreObjectRequest)other);
            +        return mergeFrom((com.google.storage.v2.RestoreObjectRequest) other);
                   } else {
                     super.mergeFrom(other);
                     return this;
            @@ -857,59 +928,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_ |= 0x00000100;
            -              break;
            -            } // case 66
            -            case 72: {
            -              copySourceAcl_ = input.readBool();
            -              bitField0_ |= 0x00000080;
            -              break;
            -            } // case 72
            -            default: {
            -              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            -                done = true; // was an endgroup tag
            -              }
            -              break;
            -            } // default:
            +            case 10:
            +              {
            +                bucket_ = input.readStringRequireUtf8();
            +                bitField0_ |= 0x00000001;
            +                break;
            +              } // case 10
            +            case 18:
            +              {
            +                object_ = input.readStringRequireUtf8();
            +                bitField0_ |= 0x00000002;
            +                break;
            +              } // case 18
            +            case 24:
            +              {
            +                generation_ = input.readInt64();
            +                bitField0_ |= 0x00000004;
            +                break;
            +              } // case 24
            +            case 32:
            +              {
            +                ifGenerationMatch_ = input.readInt64();
            +                bitField0_ |= 0x00000008;
            +                break;
            +              } // case 32
            +            case 40:
            +              {
            +                ifGenerationNotMatch_ = input.readInt64();
            +                bitField0_ |= 0x00000010;
            +                break;
            +              } // case 40
            +            case 48:
            +              {
            +                ifMetagenerationMatch_ = input.readInt64();
            +                bitField0_ |= 0x00000020;
            +                break;
            +              } // case 48
            +            case 56:
            +              {
            +                ifMetagenerationNotMatch_ = input.readInt64();
            +                bitField0_ |= 0x00000040;
            +                break;
            +              } // case 56
            +            case 66:
            +              {
            +                input.readMessage(
            +                    getCommonObjectRequestParamsFieldBuilder().getBuilder(), extensionRegistry);
            +                bitField0_ |= 0x00000100;
            +                break;
            +              } // case 66
            +            case 72:
            +              {
            +                copySourceAcl_ = input.readBool();
            +                bitField0_ |= 0x00000080;
            +                break;
            +              } // case 72
            +            default:
            +              {
            +                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            +                  done = true; // was an endgroup tag
            +                }
            +                break;
            +              } // default:
                       } // switch (tag)
                     } // while (!done)
                   } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            @@ -919,22 +999,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; @@ -943,20 +1028,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 { @@ -964,28 +1052,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() { @@ -995,17 +1094,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; @@ -1015,18 +1120,20 @@ public Builder setBucketBytes( private java.lang.Object object_ = ""; /** + * + * *
                  * Required. The name of the object to restore.
                  * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The object. */ public java.lang.String getObject() { java.lang.Object ref = object_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); object_ = s; return s; @@ -1035,20 +1142,21 @@ public java.lang.String getObject() { } } /** + * + * *
                  * Required. The name of the object to restore.
                  * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for object. */ - public com.google.protobuf.ByteString - getObjectBytes() { + public com.google.protobuf.ByteString getObjectBytes() { java.lang.Object ref = object_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); object_ = b; return b; } else { @@ -1056,28 +1164,35 @@ public java.lang.String getObject() { } } /** + * + * *
                  * Required. The name of the object to restore.
                  * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The object to set. * @return This builder for chaining. */ - public Builder setObject( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setObject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } object_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
                  * Required. The name of the object to restore.
                  * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearObject() { @@ -1087,17 +1202,21 @@ public Builder clearObject() { return this; } /** + * + * *
                  * Required. The name of the object to restore.
                  * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for object to set. * @return This builder for chaining. */ - public Builder setObjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setObjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); object_ = value; bitField0_ |= 0x00000002; @@ -1105,13 +1224,16 @@ public Builder setObjectBytes( return this; } - private long generation_ ; + private long generation_; /** + * + * *
                  * Required. The specific revision of the object to restore.
                  * 
            * * int64 generation = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The generation. */ @java.lang.Override @@ -1119,11 +1241,14 @@ public long getGeneration() { return generation_; } /** + * + * *
                  * Required. The specific revision of the object to restore.
                  * 
            * * int64 generation = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The generation to set. * @return This builder for chaining. */ @@ -1135,11 +1260,14 @@ public Builder setGeneration(long value) { return this; } /** + * + * *
                  * Required. The specific revision of the object to restore.
                  * 
            * * int64 generation = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearGeneration() { @@ -1149,8 +1277,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
            @@ -1158,6 +1288,7 @@ public Builder clearGeneration() {
                  * 
            * * optional int64 if_generation_match = 4; + * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -1165,6 +1296,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
            @@ -1172,6 +1305,7 @@ public boolean hasIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_match = 4; + * * @return The ifGenerationMatch. */ @java.lang.Override @@ -1179,6 +1313,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
            @@ -1186,6 +1322,7 @@ public long getIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_match = 4; + * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ @@ -1197,6 +1334,8 @@ public Builder setIfGenerationMatch(long value) { return this; } /** + * + * *
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -1204,6 +1343,7 @@ public Builder setIfGenerationMatch(long value) {
                  * 
            * * optional int64 if_generation_match = 4; + * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -1213,8 +1353,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
            @@ -1223,6 +1365,7 @@ public Builder clearIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_not_match = 5; + * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -1230,6 +1373,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
            @@ -1238,6 +1383,7 @@ public boolean hasIfGenerationNotMatch() {
                  * 
            * * optional int64 if_generation_not_match = 5; + * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -1245,6 +1391,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
            @@ -1253,6 +1401,7 @@ public long getIfGenerationNotMatch() {
                  * 
            * * optional int64 if_generation_not_match = 5; + * * @param value The ifGenerationNotMatch to set. * @return This builder for chaining. */ @@ -1264,6 +1413,8 @@ public Builder setIfGenerationNotMatch(long value) { return this; } /** + * + * *
                  * Makes the operation conditional on whether the object's live generation
                  * does not match the given value. If no live object exists, the precondition
            @@ -1272,6 +1423,7 @@ public Builder setIfGenerationNotMatch(long value) {
                  * 
            * * optional int64 if_generation_not_match = 5; + * * @return This builder for chaining. */ public Builder clearIfGenerationNotMatch() { @@ -1281,14 +1433,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 @@ -1296,12 +1451,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 @@ -1309,12 +1467,15 @@ 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. */ @@ -1326,12 +1487,15 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** + * + * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 6; + * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -1341,14 +1505,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 @@ -1356,12 +1523,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 @@ -1369,12 +1539,15 @@ 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. */ @@ -1386,12 +1559,15 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** + * + * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 7; + * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -1401,8 +1577,10 @@ public Builder clearIfMetagenerationNotMatch() { return this; } - private boolean copySourceAcl_ ; + private boolean copySourceAcl_; /** + * + * *
                  * If false or unset, the bucket's default object ACL will be used.
                  * If true, copy the source object's access controls.
            @@ -1410,6 +1588,7 @@ public Builder clearIfMetagenerationNotMatch() {
                  * 
            * * optional bool copy_source_acl = 9; + * * @return Whether the copySourceAcl field is set. */ @java.lang.Override @@ -1417,6 +1596,8 @@ public boolean hasCopySourceAcl() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
                  * If false or unset, the bucket's default object ACL will be used.
                  * If true, copy the source object's access controls.
            @@ -1424,6 +1605,7 @@ public boolean hasCopySourceAcl() {
                  * 
            * * optional bool copy_source_acl = 9; + * * @return The copySourceAcl. */ @java.lang.Override @@ -1431,6 +1613,8 @@ public boolean getCopySourceAcl() { return copySourceAcl_; } /** + * + * *
                  * If false or unset, the bucket's default object ACL will be used.
                  * If true, copy the source object's access controls.
            @@ -1438,6 +1622,7 @@ public boolean getCopySourceAcl() {
                  * 
            * * optional bool copy_source_acl = 9; + * * @param value The copySourceAcl to set. * @return This builder for chaining. */ @@ -1449,6 +1634,8 @@ public Builder setCopySourceAcl(boolean value) { return this; } /** + * + * *
                  * If false or unset, the bucket's default object ACL will be used.
                  * If true, copy the source object's access controls.
            @@ -1456,6 +1643,7 @@ public Builder setCopySourceAcl(boolean value) {
                  * 
            * * optional bool copy_source_acl = 9; + * * @return This builder for chaining. */ public Builder clearCopySourceAcl() { @@ -1467,41 +1655,55 @@ public Builder clearCopySourceAcl() { private com.google.storage.v2.CommonObjectRequestParams commonObjectRequestParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.storage.v2.CommonObjectRequestParams, com.google.storage.v2.CommonObjectRequestParams.Builder, com.google.storage.v2.CommonObjectRequestParamsOrBuilder> commonObjectRequestParamsBuilder_; + com.google.storage.v2.CommonObjectRequestParams, + com.google.storage.v2.CommonObjectRequestParams.Builder, + com.google.storage.v2.CommonObjectRequestParamsOrBuilder> + commonObjectRequestParamsBuilder_; /** + * + * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; + * * @return Whether the commonObjectRequestParams field is set. */ public boolean hasCommonObjectRequestParams() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; + * * @return The commonObjectRequestParams. */ public com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams() { if (commonObjectRequestParamsBuilder_ == null) { - return commonObjectRequestParams_ == null ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; + return commonObjectRequestParams_ == null + ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() + : commonObjectRequestParams_; } else { return commonObjectRequestParamsBuilder_.getMessage(); } } /** + * + * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ - public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRequestParams value) { + public Builder setCommonObjectRequestParams( + com.google.storage.v2.CommonObjectRequestParams value) { if (commonObjectRequestParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1515,6 +1717,8 @@ public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRe return this; } /** + * + * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -1533,17 +1737,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_ & 0x00000100) != 0) && - commonObjectRequestParams_ != null && - commonObjectRequestParams_ != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && commonObjectRequestParams_ != null + && commonObjectRequestParams_ + != com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance()) { getCommonObjectRequestParamsBuilder().mergeFrom(value); } else { commonObjectRequestParams_ = value; @@ -1558,6 +1766,8 @@ public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObject return this; } /** + * + * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -1575,33 +1785,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_ |= 0x00000100; onChanged(); return getCommonObjectRequestParamsFieldBuilder().getBuilder(); } /** + * + * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; */ - public com.google.storage.v2.CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder() { + public com.google.storage.v2.CommonObjectRequestParamsOrBuilder + getCommonObjectRequestParamsOrBuilder() { if (commonObjectRequestParamsBuilder_ != null) { return commonObjectRequestParamsBuilder_.getMessageOrBuilder(); } else { - return commonObjectRequestParams_ == null ? - com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() : commonObjectRequestParams_; + return commonObjectRequestParams_ == null + ? com.google.storage.v2.CommonObjectRequestParams.getDefaultInstance() + : commonObjectRequestParams_; } } /** + * + * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -1609,21 +1828,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); } @@ -1633,12 +1855,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.storage.v2.RestoreObjectRequest) } // @@protoc_insertion_point(class_scope:google.storage.v2.RestoreObjectRequest) private static final com.google.storage.v2.RestoreObjectRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.storage.v2.RestoreObjectRequest(); } @@ -1647,27 +1869,27 @@ public static com.google.storage.v2.RestoreObjectRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RestoreObjectRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RestoreObjectRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1682,6 +1904,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.storage.v2.RestoreObjectRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequestOrBuilder.java b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequestOrBuilder.java similarity index 81% rename from owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequestOrBuilder.java rename to proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequestOrBuilder.java index eea6cdc259..b7f8a0f18e 100644 --- a/owl-bot-staging/v2/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequestOrBuilder.java +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/RestoreObjectRequestOrBuilder.java @@ -1,64 +1,99 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 package com.google.storage.v2; -public interface RestoreObjectRequestOrBuilder extends +public interface RestoreObjectRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.storage.v2.RestoreObjectRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
                * Required. Name of the bucket in which the object resides.
                * 
            * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bucket. */ java.lang.String getBucket(); /** + * + * *
                * Required. Name of the bucket in which the object resides.
                * 
            * - * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for bucket. */ - com.google.protobuf.ByteString - getBucketBytes(); + com.google.protobuf.ByteString getBucketBytes(); /** + * + * *
                * Required. The name of the object to restore.
                * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The object. */ java.lang.String getObject(); /** + * + * *
                * Required. The name of the object to restore.
                * 
            * * string object = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for object. */ - com.google.protobuf.ByteString - getObjectBytes(); + com.google.protobuf.ByteString getObjectBytes(); /** + * + * *
                * Required. The specific revision of the object to restore.
                * 
            * * int64 generation = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The generation. */ long getGeneration(); /** + * + * *
                * Makes the operation conditional on whether the object's current generation
                * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -66,10 +101,13 @@ public interface RestoreObjectRequestOrBuilder 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 RestoreObjectRequestOrBuilder 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 RestoreObjectRequestOrBuilder 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,53 +146,68 @@ public interface RestoreObjectRequestOrBuilder 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(); /** + * + * *
                * If false or unset, the bucket's default object ACL will be used.
                * If true, copy the source object's access controls.
            @@ -156,10 +215,13 @@ public interface RestoreObjectRequestOrBuilder extends
                * 
            * * optional bool copy_source_acl = 9; + * * @return Whether the copySourceAcl field is set. */ boolean hasCopySourceAcl(); /** + * + * *
                * If false or unset, the bucket's default object ACL will be used.
                * If true, copy the source object's access controls.
            @@ -167,29 +229,38 @@ public interface RestoreObjectRequestOrBuilder extends
                * 
            * * optional bool copy_source_acl = 9; + * * @return The copySourceAcl. */ boolean getCopySourceAcl(); /** + * + * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; + * * @return Whether the commonObjectRequestParams field is set. */ boolean hasCommonObjectRequestParams(); /** + * + * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            * * .google.storage.v2.CommonObjectRequestParams common_object_request_params = 8; + * * @return The commonObjectRequestParams. */ com.google.storage.v2.CommonObjectRequestParams getCommonObjectRequestParams(); /** + * + * *
                * A set of parameters common to Storage API requests concerning an object.
                * 
            diff --git a/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 b0ccad2414..d5aaa957b4 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,6 +20,8 @@ package com.google.storage.v2; /** + * + * *
              * Request message for RewriteObject.
              * If the source object is encrypted using a Customer-Supplied Encryption Key
            @@ -18,15 +35,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_ = "";
            @@ -42,29 +60,33 @@ private RewriteObjectRequest() {
             
               @java.lang.Override
               @SuppressWarnings({"unused"})
            -  protected java.lang.Object newInstance(
            -      UnusedPrivateParameter unused) {
            +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                 return new RewriteObjectRequest();
               }
             
            -  public static final com.google.protobuf.Descriptors.Descriptor
            -      getDescriptor() {
            -    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_RewriteObjectRequest_descriptor;
            +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            +    return com.google.storage.v2.StorageProto
            +        .internal_static_google_storage_v2_RewriteObjectRequest_descriptor;
               }
             
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
            -    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_RewriteObjectRequest_fieldAccessorTable
            +    return com.google.storage.v2.StorageProto
            +        .internal_static_google_storage_v2_RewriteObjectRequest_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
            -            com.google.storage.v2.RewriteObjectRequest.class, com.google.storage.v2.RewriteObjectRequest.Builder.class);
            +            com.google.storage.v2.RewriteObjectRequest.class,
            +            com.google.storage.v2.RewriteObjectRequest.Builder.class);
               }
             
               private int bitField0_;
               public static final int DESTINATION_NAME_FIELD_NUMBER = 24;
            +
               @SuppressWarnings("serial")
               private volatile java.lang.Object destinationName_ = "";
               /**
            +   *
            +   *
                * 
                * Required. Immutable. The name of the destination object.
                * See the
            @@ -75,7 +97,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 @@ -84,14 +109,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
            @@ -102,17 +128,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 { @@ -121,15 +148,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 @@ -138,30 +171,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 { @@ -170,9 +205,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.
            @@ -182,6 +220,7 @@ public java.lang.String getDestinationBucket() {
                * 
            * * string destination_kms_key = 27 [(.google.api.resource_reference) = { ... } + * * @return The destinationKmsKey. */ @java.lang.Override @@ -190,14 +229,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.
            @@ -207,16 +247,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 { @@ -227,6 +266,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
            @@ -238,6 +279,7 @@ public java.lang.String getDestinationKmsKey() {
                * 
            * * .google.storage.v2.Object destination = 1; + * * @return Whether the destination field is set. */ @java.lang.Override @@ -245,6 +287,8 @@ public boolean hasDestination() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * Properties of the destination, post-rewrite object.
                * The `name`, `bucket` and `kms_key` fields must not be populated (these
            @@ -256,6 +300,7 @@ public boolean hasDestination() {
                * 
            * * .google.storage.v2.Object destination = 1; + * * @return The destination. */ @java.lang.Override @@ -263,6 +308,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
            @@ -281,14 +328,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 @@ -297,29 +350,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 { @@ -328,14 +383,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 @@ -344,29 +403,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 { @@ -377,12 +436,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 @@ -391,9 +453,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
            @@ -403,6 +468,7 @@ public long getSourceGeneration() {
                * 
            * * string rewrite_token = 5; + * * @return The rewriteToken. */ @java.lang.Override @@ -411,14 +477,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
            @@ -428,16 +495,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 { @@ -446,9 +512,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",
            @@ -456,6 +525,7 @@ public java.lang.String getRewriteToken() {
                * 
            * * string destination_predefined_acl = 28; + * * @return The destinationPredefinedAcl. */ @java.lang.Override @@ -464,14 +534,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",
            @@ -479,16 +550,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 { @@ -499,6 +569,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
            @@ -506,6 +578,7 @@ public java.lang.String getDestinationPredefinedAcl() {
                * 
            * * optional int64 if_generation_match = 7; + * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -513,6 +586,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
            @@ -520,6 +595,7 @@ public boolean hasIfGenerationMatch() {
                * 
            * * optional int64 if_generation_match = 7; + * * @return The ifGenerationMatch. */ @java.lang.Override @@ -530,6 +606,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
            @@ -538,6 +616,7 @@ public long getIfGenerationMatch() {
                * 
            * * optional int64 if_generation_not_match = 8; + * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -545,6 +624,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
            @@ -553,6 +634,7 @@ public boolean hasIfGenerationNotMatch() {
                * 
            * * optional int64 if_generation_not_match = 8; + * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -563,12 +645,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 @@ -576,12 +661,15 @@ public boolean hasIfMetagenerationMatch() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
                * Makes the operation conditional on whether the destination object's current
                * metageneration matches the given value.
                * 
            * * optional int64 if_metageneration_match = 9; + * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -592,12 +680,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 @@ -605,12 +696,15 @@ public boolean hasIfMetagenerationNotMatch() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
                * Makes the operation conditional on whether the destination object's current
                * metageneration does not match the given value.
                * 
            * * optional int64 if_metageneration_not_match = 10; + * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -621,12 +715,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 @@ -634,12 +731,15 @@ public boolean hasIfSourceGenerationMatch() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
                * Makes the operation conditional on whether the source object's live
                * generation matches the given value.
                * 
            * * optional int64 if_source_generation_match = 11; + * * @return The ifSourceGenerationMatch. */ @java.lang.Override @@ -650,12 +750,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 @@ -663,12 +766,15 @@ public boolean hasIfSourceGenerationNotMatch() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
                * Makes the operation conditional on whether the source object's live
                * generation does not match the given value.
                * 
            * * optional int64 if_source_generation_not_match = 12; + * * @return The ifSourceGenerationNotMatch. */ @java.lang.Override @@ -679,12 +785,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 @@ -692,12 +801,15 @@ public boolean hasIfSourceMetagenerationMatch() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
                * Makes the operation conditional on whether the source object's current
                * metageneration matches the given value.
                * 
            * * optional int64 if_source_metageneration_match = 13; + * * @return The ifSourceMetagenerationMatch. */ @java.lang.Override @@ -708,12 +820,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 @@ -721,12 +836,15 @@ public boolean hasIfSourceMetagenerationNotMatch() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
                * Makes the operation conditional on whether the source object's current
                * metageneration does not match the given value.
                * 
            * * optional int64 if_source_metageneration_not_match = 14; + * * @return The ifSourceMetagenerationNotMatch. */ @java.lang.Override @@ -737,6 +855,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
            @@ -749,6 +869,7 @@ public long getIfSourceMetagenerationNotMatch() {
                * 
            * * int64 max_bytes_rewritten_per_call = 15; + * * @return The maxBytesRewrittenPerCall. */ @java.lang.Override @@ -757,15 +878,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 @@ -774,30 +899,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 { @@ -806,8 +931,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
            @@ -815,6 +943,7 @@ public java.lang.String getCopySourceEncryptionAlgorithm() {
                * 
            * * bytes copy_source_encryption_key_bytes = 21; + * * @return The copySourceEncryptionKeyBytes. */ @java.lang.Override @@ -823,8 +952,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
            @@ -832,6 +964,7 @@ public com.google.protobuf.ByteString getCopySourceEncryptionKeyBytes() {
                * 
            * * bytes copy_source_encryption_key_sha256_bytes = 22; + * * @return The copySourceEncryptionKeySha256Bytes. */ @java.lang.Override @@ -842,11 +975,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 @@ -854,18 +990,25 @@ 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 = 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.
                * 
            @@ -873,19 +1016,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 @@ -893,19 +1042,26 @@ public boolean hasObjectChecksums() { return ((bitField0_ & 0x00000400) != 0); } /** + * + * *
                * The checksums of the complete object. This will be used to validate the
                * destination object after rewriting.
                * 
            * * .google.storage.v2.ObjectChecksums object_checksums = 29; + * * @return The objectChecksums. */ @java.lang.Override public com.google.storage.v2.ObjectChecksums getObjectChecksums() { - return objectChecksums_ == null ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() : objectChecksums_; + return objectChecksums_ == null + ? com.google.storage.v2.ObjectChecksums.getDefaultInstance() + : objectChecksums_; } /** + * + * *
                * The checksums of the complete object. This will be used to validate the
                * destination object after rewriting.
            @@ -915,10 +1071,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;
            @@ -930,8 +1089,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.writeMessage(1, getDestination());
                 }
            @@ -975,7 +1133,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 (((bitField0_ & 0x00000200) != 0)) {
                   output.writeMessage(19, getCommonObjectRequestParams());
            @@ -1011,8 +1170,7 @@ public int getSerializedSize() {
             
                 size = 0;
                 if (((bitField0_ & 0x00000001) != 0)) {
            -      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_);
            @@ -1021,62 +1179,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_ & 0x00000002) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream
            -        .computeInt64Size(7, ifGenerationMatch_);
            +      size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, ifGenerationMatch_);
                 }
                 if (((bitField0_ & 0x00000004) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream
            -        .computeInt64Size(8, ifGenerationNotMatch_);
            +      size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, ifGenerationNotMatch_);
                 }
                 if (((bitField0_ & 0x00000008) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream
            -        .computeInt64Size(9, ifMetagenerationMatch_);
            +      size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, ifMetagenerationMatch_);
                 }
                 if (((bitField0_ & 0x00000010) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream
            -        .computeInt64Size(10, ifMetagenerationNotMatch_);
            +      size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, ifMetagenerationNotMatch_);
                 }
                 if (((bitField0_ & 0x00000020) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream
            -        .computeInt64Size(11, ifSourceGenerationMatch_);
            +      size += com.google.protobuf.CodedOutputStream.computeInt64Size(11, ifSourceGenerationMatch_);
                 }
                 if (((bitField0_ & 0x00000040) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream
            -        .computeInt64Size(12, ifSourceGenerationNotMatch_);
            +      size +=
            +          com.google.protobuf.CodedOutputStream.computeInt64Size(12, ifSourceGenerationNotMatch_);
                 }
                 if (((bitField0_ & 0x00000080) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream
            -        .computeInt64Size(13, ifSourceMetagenerationMatch_);
            +      size +=
            +          com.google.protobuf.CodedOutputStream.computeInt64Size(13, ifSourceMetagenerationMatch_);
                 }
                 if (((bitField0_ & 0x00000100) != 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 (((bitField0_ & 0x00000200) != 0)) {
            -      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_);
            @@ -1088,11 +1244,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 (((bitField0_ & 0x00000400) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream
            -        .computeMessageSize(29, getObjectChecksums());
            +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getObjectChecksums());
                 }
                 size += getUnknownFields().getSerializedSize();
                 memoizedSize = size;
            @@ -1102,91 +1258,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;
            @@ -1214,55 +1354,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;
            @@ -1282,99 +1413,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
            @@ -1388,21 +1524,23 @@ 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()
            @@ -1410,19 +1548,19 @@ 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) {
                     getDestinationFieldBuilder();
                     getCommonObjectRequestParamsFieldBuilder();
                     getObjectChecksumsFieldBuilder();
                   }
                 }
            +
                 @java.lang.Override
                 public Builder clear() {
                   super.clear();
            @@ -1466,9 +1604,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
            @@ -1487,8 +1625,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;
                 }
            @@ -1506,9 +1647,8 @@ private void buildPartial0(com.google.storage.v2.RewriteObjectRequest result) {
                   }
                   int to_bitField0_ = 0;
                   if (((from_bitField0_ & 0x00000008) != 0)) {
            -        result.destination_ = destinationBuilder_ == null
            -            ? destination_
            -            : destinationBuilder_.build();
            +        result.destination_ =
            +            destinationBuilder_ == null ? destination_ : destinationBuilder_.build();
                     to_bitField0_ |= 0x00000001;
                   }
                   if (((from_bitField0_ & 0x00000010) != 0)) {
            @@ -1571,15 +1711,15 @@ private void buildPartial0(com.google.storage.v2.RewriteObjectRequest result) {
                     result.copySourceEncryptionKeySha256Bytes_ = copySourceEncryptionKeySha256Bytes_;
                   }
                   if (((from_bitField0_ & 0x00200000) != 0)) {
            -        result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null
            -            ? commonObjectRequestParams_
            -            : commonObjectRequestParamsBuilder_.build();
            +        result.commonObjectRequestParams_ =
            +            commonObjectRequestParamsBuilder_ == null
            +                ? commonObjectRequestParams_
            +                : commonObjectRequestParamsBuilder_.build();
                     to_bitField0_ |= 0x00000200;
                   }
                   if (((from_bitField0_ & 0x00400000) != 0)) {
            -        result.objectChecksums_ = objectChecksumsBuilder_ == null
            -            ? objectChecksums_
            -            : objectChecksumsBuilder_.build();
            +        result.objectChecksums_ =
            +            objectChecksumsBuilder_ == null ? objectChecksums_ : objectChecksumsBuilder_.build();
                     to_bitField0_ |= 0x00000400;
                   }
                   result.bitField0_ |= to_bitField0_;
            @@ -1589,38 +1729,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;
            @@ -1740,133 +1881,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) {
            @@ -1876,10 +2036,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
            @@ -1890,14 +2053,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; @@ -1906,6 +2071,8 @@ public java.lang.String getDestinationName() { } } /** + * + * *
                  * Required. Immutable. The name of the destination object.
                  * See the
            @@ -1916,16 +2083,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 { @@ -1933,6 +2101,8 @@ public java.lang.String getDestinationName() { } } /** + * + * *
                  * Required. Immutable. The name of the destination object.
                  * See the
            @@ -1943,19 +2113,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
            @@ -1966,7 +2142,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() { @@ -1976,6 +2155,8 @@ public Builder clearDestinationName() { return this; } /** + * + * *
                  * Required. Immutable. The name of the destination object.
                  * See the
            @@ -1986,13 +2167,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; @@ -2002,19 +2187,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; @@ -2023,21 +2212,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 { @@ -2045,30 +2237,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() { @@ -2078,18 +2281,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; @@ -2099,6 +2308,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.
            @@ -2108,13 +2319,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; @@ -2123,6 +2334,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.
            @@ -2132,15 +2345,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 { @@ -2148,6 +2360,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.
            @@ -2157,18 +2371,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.
            @@ -2178,6 +2396,7 @@ public Builder setDestinationKmsKey(
                  * 
            * * string destination_kms_key = 27 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearDestinationKmsKey() { @@ -2187,6 +2406,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.
            @@ -2196,12 +2417,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; @@ -2211,8 +2434,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
            @@ -2224,12 +2452,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
            @@ -2241,16 +2472,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
            @@ -2277,6 +2513,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
            @@ -2289,8 +2527,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 {
            @@ -2301,6 +2538,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
            @@ -2315,9 +2554,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;
            @@ -2332,6 +2571,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
            @@ -2355,6 +2596,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
            @@ -2373,6 +2616,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
            @@ -2389,11 +2634,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
            @@ -2407,14 +2655,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_;
            @@ -2422,18 +2673,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; @@ -2442,20 +2697,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 { @@ -2463,28 +2721,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() { @@ -2494,17 +2763,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; @@ -2514,18 +2789,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; @@ -2534,20 +2811,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 { @@ -2555,28 +2833,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() { @@ -2586,17 +2871,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; @@ -2604,14 +2893,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 @@ -2619,12 +2911,15 @@ 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. */ @@ -2636,12 +2931,15 @@ public Builder setSourceGeneration(long value) { return this; } /** + * + * *
                  * If present, selects a specific revision of the source object (as opposed to
                  * the latest version, the default).
                  * 
            * * int64 source_generation = 4; + * * @return This builder for chaining. */ public Builder clearSourceGeneration() { @@ -2653,6 +2951,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
            @@ -2662,13 +2962,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; @@ -2677,6 +2977,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
            @@ -2686,15 +2988,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 { @@ -2702,6 +3003,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
            @@ -2711,18 +3014,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
            @@ -2732,6 +3039,7 @@ public Builder setRewriteToken(
                  * 
            * * string rewrite_token = 5; + * * @return This builder for chaining. */ public Builder clearRewriteToken() { @@ -2741,6 +3049,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
            @@ -2750,12 +3060,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; @@ -2765,6 +3077,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",
            @@ -2772,13 +3086,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; @@ -2787,6 +3101,8 @@ public java.lang.String getDestinationPredefinedAcl() { } } /** + * + * *
                  * Apply a predefined set of access controls to the destination object.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -2794,15 +3110,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 { @@ -2810,6 +3125,8 @@ public java.lang.String getDestinationPredefinedAcl() { } } /** + * + * *
                  * Apply a predefined set of access controls to the destination object.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -2817,18 +3134,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",
            @@ -2836,6 +3157,7 @@ public Builder setDestinationPredefinedAcl(
                  * 
            * * string destination_predefined_acl = 28; + * * @return This builder for chaining. */ public Builder clearDestinationPredefinedAcl() { @@ -2845,6 +3167,8 @@ public Builder clearDestinationPredefinedAcl() { return this; } /** + * + * *
                  * Apply a predefined set of access controls to the destination object.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -2852,12 +3176,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; @@ -2865,8 +3191,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
            @@ -2874,6 +3202,7 @@ public Builder setDestinationPredefinedAclBytes(
                  * 
            * * optional int64 if_generation_match = 7; + * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -2881,6 +3210,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
            @@ -2888,6 +3219,7 @@ public boolean hasIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_match = 7; + * * @return The ifGenerationMatch. */ @java.lang.Override @@ -2895,6 +3227,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
            @@ -2902,6 +3236,7 @@ public long getIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_match = 7; + * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ @@ -2913,6 +3248,8 @@ public Builder setIfGenerationMatch(long value) { return this; } /** + * + * *
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -2920,6 +3257,7 @@ public Builder setIfGenerationMatch(long value) {
                  * 
            * * optional int64 if_generation_match = 7; + * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -2929,8 +3267,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
            @@ -2939,6 +3279,7 @@ public Builder clearIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_not_match = 8; + * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -2946,6 +3287,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
            @@ -2954,6 +3297,7 @@ public boolean hasIfGenerationNotMatch() {
                  * 
            * * optional int64 if_generation_not_match = 8; + * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -2961,6 +3305,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
            @@ -2969,6 +3315,7 @@ public long getIfGenerationNotMatch() {
                  * 
            * * optional int64 if_generation_not_match = 8; + * * @param value The ifGenerationNotMatch to set. * @return This builder for chaining. */ @@ -2980,6 +3327,8 @@ public Builder setIfGenerationNotMatch(long value) { return this; } /** + * + * *
                  * Makes the operation conditional on whether the object's live generation
                  * does not match the given value. If no live object exists, the precondition
            @@ -2988,6 +3337,7 @@ public Builder setIfGenerationNotMatch(long value) {
                  * 
            * * optional int64 if_generation_not_match = 8; + * * @return This builder for chaining. */ public Builder clearIfGenerationNotMatch() { @@ -2997,14 +3347,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 @@ -3012,12 +3365,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 @@ -3025,12 +3381,15 @@ 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. */ @@ -3042,12 +3401,15 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** + * + * *
                  * Makes the operation conditional on whether the destination object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 9; + * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -3057,14 +3419,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 @@ -3072,12 +3437,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 @@ -3085,12 +3453,15 @@ 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. */ @@ -3102,12 +3473,15 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** + * + * *
                  * Makes the operation conditional on whether the destination object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 10; + * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -3117,14 +3491,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 @@ -3132,12 +3509,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 @@ -3145,12 +3525,15 @@ 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. */ @@ -3162,12 +3545,15 @@ public Builder setIfSourceGenerationMatch(long value) { return this; } /** + * + * *
                  * Makes the operation conditional on whether the source object's live
                  * generation matches the given value.
                  * 
            * * optional int64 if_source_generation_match = 11; + * * @return This builder for chaining. */ public Builder clearIfSourceGenerationMatch() { @@ -3177,14 +3563,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 @@ -3192,12 +3581,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 @@ -3205,12 +3597,15 @@ 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. */ @@ -3222,12 +3617,15 @@ public Builder setIfSourceGenerationNotMatch(long value) { return this; } /** + * + * *
                  * Makes the operation conditional on whether the source object's live
                  * generation does not match the given value.
                  * 
            * * optional int64 if_source_generation_not_match = 12; + * * @return This builder for chaining. */ public Builder clearIfSourceGenerationNotMatch() { @@ -3237,14 +3635,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 @@ -3252,12 +3653,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 @@ -3265,12 +3669,15 @@ 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. */ @@ -3282,12 +3689,15 @@ public Builder setIfSourceMetagenerationMatch(long value) { return this; } /** + * + * *
                  * Makes the operation conditional on whether the source object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_source_metageneration_match = 13; + * * @return This builder for chaining. */ public Builder clearIfSourceMetagenerationMatch() { @@ -3297,14 +3707,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 @@ -3312,12 +3725,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 @@ -3325,12 +3741,15 @@ 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. */ @@ -3342,12 +3761,15 @@ public Builder setIfSourceMetagenerationNotMatch(long value) { return this; } /** + * + * *
                  * Makes the operation conditional on whether the source object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_source_metageneration_not_match = 14; + * * @return This builder for chaining. */ public Builder clearIfSourceMetagenerationNotMatch() { @@ -3357,8 +3779,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
            @@ -3371,6 +3795,7 @@ public Builder clearIfSourceMetagenerationNotMatch() {
                  * 
            * * int64 max_bytes_rewritten_per_call = 15; + * * @return The maxBytesRewrittenPerCall. */ @java.lang.Override @@ -3378,6 +3803,8 @@ public long getMaxBytesRewrittenPerCall() { return maxBytesRewrittenPerCall_; } /** + * + * *
                  * The maximum number of bytes that will be rewritten per rewrite request.
                  * Most callers
            @@ -3390,6 +3817,7 @@ public long getMaxBytesRewrittenPerCall() {
                  * 
            * * int64 max_bytes_rewritten_per_call = 15; + * * @param value The maxBytesRewrittenPerCall to set. * @return This builder for chaining. */ @@ -3401,6 +3829,8 @@ public Builder setMaxBytesRewrittenPerCall(long value) { return this; } /** + * + * *
                  * The maximum number of bytes that will be rewritten per rewrite request.
                  * Most callers
            @@ -3413,6 +3843,7 @@ public Builder setMaxBytesRewrittenPerCall(long value) {
                  * 
            * * int64 max_bytes_rewritten_per_call = 15; + * * @return This builder for chaining. */ public Builder clearMaxBytesRewrittenPerCall() { @@ -3424,19 +3855,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; @@ -3445,21 +3878,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 { @@ -3467,30 +3901,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() { @@ -3500,18 +3941,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; @@ -3519,8 +3964,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
            @@ -3528,6 +3976,7 @@ public Builder setCopySourceEncryptionAlgorithmBytes(
                  * 
            * * bytes copy_source_encryption_key_bytes = 21; + * * @return The copySourceEncryptionKeyBytes. */ @java.lang.Override @@ -3535,6 +3984,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
            @@ -3542,17 +3993,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
            @@ -3560,6 +4016,7 @@ public Builder setCopySourceEncryptionKeyBytes(com.google.protobuf.ByteString va
                  * 
            * * bytes copy_source_encryption_key_bytes = 21; + * * @return This builder for chaining. */ public Builder clearCopySourceEncryptionKeyBytes() { @@ -3569,8 +4026,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
            @@ -3578,6 +4038,7 @@ public Builder clearCopySourceEncryptionKeyBytes() {
                  * 
            * * bytes copy_source_encryption_key_sha256_bytes = 22; + * * @return The copySourceEncryptionKeySha256Bytes. */ @java.lang.Override @@ -3585,6 +4046,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
            @@ -3592,17 +4055,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
            @@ -3610,52 +4078,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(); @@ -3669,6 +4153,8 @@ public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRe return this; } /** + * + * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -3687,17 +4173,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; @@ -3712,6 +4202,8 @@ public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObject return this; } /** + * + * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -3729,33 +4221,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.
                  * 
            @@ -3763,14 +4264,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_; @@ -3778,36 +4282,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.
            @@ -3829,6 +4346,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.
            @@ -3848,6 +4367,8 @@ public Builder setObjectChecksums(
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * The checksums of the complete object. This will be used to validate the
                  * destination object after rewriting.
            @@ -3857,9 +4378,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;
            @@ -3874,6 +4395,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.
            @@ -3892,6 +4415,8 @@ public Builder clearObjectChecksums() {
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * The checksums of the complete object. This will be used to validate the
                  * destination object after rewriting.
            @@ -3905,6 +4430,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.
            @@ -3916,11 +4443,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.
            @@ -3929,21 +4459,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);
                 }
             
            @@ -3953,12 +4486,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();
               }
            @@ -3967,27 +4500,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;
            @@ -4002,6 +4535,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 583be9e03d..2ea2851176 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,14 +1,32 @@
            +/*
            + * Copyright 2024 Google LLC
            + *
            + * Licensed under the Apache License, Version 2.0 (the "License");
            + * you may not use this file except in compliance with the License.
            + * You may obtain a copy of the License at
            + *
            + *     https://www.apache.org/licenses/LICENSE-2.0
            + *
            + * Unless required by applicable law or agreed to in writing, software
            + * distributed under the License is distributed on an "AS IS" BASIS,
            + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            + * See the License for the specific language governing permissions and
            + * limitations under the License.
            + */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
             // Protobuf Java Version: 3.25.3
             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
            @@ -19,11 +37,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
            @@ -34,35 +57,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.
            @@ -72,10 +108,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.
            @@ -85,12 +124,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
            @@ -102,10 +143,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
            @@ -117,10 +161,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
            @@ -136,57 +183,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
            @@ -196,10 +262,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
            @@ -209,12 +278,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",
            @@ -222,10 +293,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",
            @@ -233,12 +307,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
            @@ -246,10 +322,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
            @@ -257,11 +336,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
            @@ -270,10 +352,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
            @@ -282,137 +367,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
            @@ -425,33 +549,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
            @@ -459,11 +591,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
            @@ -471,29 +606,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.
                * 
            @@ -503,26 +647,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 73%
            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 cd70c396ec..2e6aaf6873 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,3 +1,18 @@
            +/*
            + * Copyright 2024 Google LLC
            + *
            + * Licensed under the Apache License, Version 2.0 (the "License");
            + * you may not use this file except in compliance with the License.
            + * You may obtain a copy of the License at
            + *
            + *     https://www.apache.org/licenses/LICENSE-2.0
            + *
            + * Unless required by applicable law or agreed to in writing, software
            + * distributed under the License is distributed on an "AS IS" BASIS,
            + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            + * See the License for the specific language governing permissions and
            + * limitations under the License.
            + */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
            @@ -5,55 +20,62 @@
             package com.google.storage.v2;
             
             /**
            + *
            + *
              * 
              * A rewrite response.
              * 
            * * Protobuf type {@code google.storage.v2.RewriteResponse} */ -public final class RewriteResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RewriteResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.v2.RewriteResponse) RewriteResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RewriteResponse.newBuilder() to construct. private RewriteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RewriteResponse() { rewriteToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RewriteResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_RewriteResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_RewriteResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_RewriteResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_RewriteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.RewriteResponse.class, com.google.storage.v2.RewriteResponse.Builder.class); + com.google.storage.v2.RewriteResponse.class, + com.google.storage.v2.RewriteResponse.Builder.class); } private int bitField0_; public static final int TOTAL_BYTES_REWRITTEN_FIELD_NUMBER = 1; private long totalBytesRewritten_ = 0L; /** + * + * *
                * The total bytes written so far, which can be used to provide a waiting user
                * with a progress indicator. This property is always present in the response.
                * 
            * * int64 total_bytes_rewritten = 1; + * * @return The totalBytesRewritten. */ @java.lang.Override @@ -64,12 +86,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 @@ -80,12 +105,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 @@ -94,15 +122,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 @@ -111,30 +143,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 { @@ -145,12 +177,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 @@ -158,12 +193,15 @@ public boolean hasResource() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * A resource containing the metadata for the copied-to object. This property
                * is present in the response only when copying completes.
                * 
            * * .google.storage.v2.Object resource = 5; + * * @return The resource. */ @java.lang.Override @@ -171,6 +209,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.
            @@ -184,6 +224,7 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
               }
             
               private byte memoizedIsInitialized = -1;
            +
               @java.lang.Override
               public final boolean isInitialized() {
                 byte isInitialized = memoizedIsInitialized;
            @@ -195,8 +236,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_);
                 }
            @@ -222,23 +262,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 (((bitField0_ & 0x00000001) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream
            -        .computeMessageSize(5, getResource());
            +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getResource());
                 }
                 size += getUnknownFields().getSerializedSize();
                 memoizedSize = size;
            @@ -248,25 +284,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;
            @@ -280,14 +311,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()) {
            @@ -299,120 +327,126 @@ 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() @@ -420,17 +454,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) { getResourceFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -448,9 +482,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 @@ -469,8 +503,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; } @@ -491,9 +528,7 @@ private void buildPartial0(com.google.storage.v2.RewriteResponse result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { - result.resource_ = resourceBuilder_ == null - ? resource_ - : resourceBuilder_.build(); + result.resource_ = resourceBuilder_ == null ? resource_ : resourceBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -503,38 +538,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; @@ -586,39 +622,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) { @@ -628,16 +668,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 @@ -645,12 +689,15 @@ 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. */ @@ -662,12 +709,15 @@ public Builder setTotalBytesRewritten(long value) { return this; } /** + * + * *
                  * The total bytes written so far, which can be used to provide a waiting user
                  * with a progress indicator. This property is always present in the response.
                  * 
            * * int64 total_bytes_rewritten = 1; + * * @return This builder for chaining. */ public Builder clearTotalBytesRewritten() { @@ -677,14 +727,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 @@ -692,12 +745,15 @@ 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. */ @@ -709,12 +765,15 @@ public Builder setObjectSize(long value) { return this; } /** + * + * *
                  * The total size of the object being copied in bytes. This property is always
                  * present in the response.
                  * 
            * * int64 object_size = 2; + * * @return This builder for chaining. */ public Builder clearObjectSize() { @@ -724,14 +783,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 @@ -739,12 +801,15 @@ 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. */ @@ -756,12 +821,15 @@ public Builder setDone(boolean value) { return this; } /** + * + * *
                  * `true` if the copy is finished; otherwise, `false` if
                  * the copy is in progress. This property is always present in the response.
                  * 
            * * bool done = 3; + * * @return This builder for chaining. */ public Builder clearDone() { @@ -773,19 +841,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; @@ -794,21 +864,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 { @@ -816,30 +887,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() { @@ -849,18 +927,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; @@ -870,26 +952,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() { @@ -900,6 +991,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.
            @@ -921,6 +1014,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.
            @@ -928,8 +1023,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 {
            @@ -940,6 +1034,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.
            @@ -949,9 +1045,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;
            @@ -966,6 +1062,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.
            @@ -984,6 +1082,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.
            @@ -997,6 +1097,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.
            @@ -1008,11 +1110,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.
            @@ -1021,21 +1124,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);
                 }
             
            @@ -1045,12 +1151,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();
               }
            @@ -1059,27 +1165,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;
            @@ -1094,6 +1200,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 7ee3cbc7a4..47a97cacb2 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,89 +1,127 @@
            +/*
            + * Copyright 2024 Google LLC
            + *
            + * Licensed under the Apache License, Version 2.0 (the "License");
            + * you may not use this file except in compliance with the License.
            + * You may obtain a copy of the License at
            + *
            + *     https://www.apache.org/licenses/LICENSE-2.0
            + *
            + * Unless required by applicable law or agreed to in writing, software
            + * distributed under the License is distributed on an "AS IS" BASIS,
            + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            + * See the License for the specific language governing permissions and
            + * limitations under the License.
            + */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
             // Protobuf Java Version: 3.25.3
             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 66%
            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 6bab9ebeec..775517f952 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,3 +1,18 @@
            +/*
            + * Copyright 2024 Google LLC
            + *
            + * Licensed under the Apache License, Version 2.0 (the "License");
            + * you may not use this file except in compliance with the License.
            + * You may obtain a copy of the License at
            + *
            + *     https://www.apache.org/licenses/LICENSE-2.0
            + *
            + * Unless required by applicable law or agreed to in writing, software
            + * distributed under the License is distributed on an "AS IS" BASIS,
            + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            + * See the License for the specific language governing permissions and
            + * limitations under the License.
            + */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
            @@ -5,6 +20,8 @@
             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
            @@ -13,48 +30,54 @@
              *
              * Protobuf type {@code google.storage.v2.ServiceAccount}
              */
            -public final class ServiceAccount extends
            -    com.google.protobuf.GeneratedMessageV3 implements
            +public final class ServiceAccount extends com.google.protobuf.GeneratedMessageV3
            +    implements
                 // @@protoc_insertion_point(message_implements:google.storage.v2.ServiceAccount)
                 ServiceAccountOrBuilder {
            -private static final long serialVersionUID = 0L;
            +  private static final long serialVersionUID = 0L;
               // Use ServiceAccount.newBuilder() to construct.
               private ServiceAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                 super(builder);
               }
            +
               private ServiceAccount() {
                 emailAddress_ = "";
               }
             
               @java.lang.Override
               @SuppressWarnings({"unused"})
            -  protected java.lang.Object newInstance(
            -      UnusedPrivateParameter unused) {
            +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                 return new ServiceAccount();
               }
             
            -  public static final com.google.protobuf.Descriptors.Descriptor
            -      getDescriptor() {
            -    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ServiceAccount_descriptor;
            +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            +    return com.google.storage.v2.StorageProto
            +        .internal_static_google_storage_v2_ServiceAccount_descriptor;
               }
             
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
            -    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ServiceAccount_fieldAccessorTable
            +    return com.google.storage.v2.StorageProto
            +        .internal_static_google_storage_v2_ServiceAccount_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
            -            com.google.storage.v2.ServiceAccount.class, com.google.storage.v2.ServiceAccount.Builder.class);
            +            com.google.storage.v2.ServiceAccount.class,
            +            com.google.storage.v2.ServiceAccount.Builder.class);
               }
             
               public static final int EMAIL_ADDRESS_FIELD_NUMBER = 1;
            +
               @SuppressWarnings("serial")
               private volatile java.lang.Object emailAddress_ = "";
               /**
            +   *
            +   *
                * 
                * The ID of the notification.
                * 
            * * string email_address = 1; + * * @return The emailAddress. */ @java.lang.Override @@ -63,29 +86,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 { @@ -94,6 +117,7 @@ public java.lang.String getEmailAddress() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -105,8 +129,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_); } @@ -130,15 +153,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; } @@ -157,99 +179,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
            @@ -258,33 +284,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();
            @@ -294,9 +319,9 @@ public Builder clear() {
                 }
             
                 @java.lang.Override
            -    public com.google.protobuf.Descriptors.Descriptor
            -        getDescriptorForType() {
            -      return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_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
            @@ -316,7 +341,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;
                 }
            @@ -332,38 +359,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;
            @@ -403,17 +431,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) {
            @@ -423,22 +453,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; @@ -447,20 +480,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 { @@ -468,28 +502,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() { @@ -499,26 +540,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); } @@ -528,12 +573,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(); } @@ -542,27 +587,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; @@ -577,6 +622,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..835c27b6af --- /dev/null +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceAccountOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/storage/v2/storage.proto + +// Protobuf Java Version: 3.25.3 +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 341dc7c9ba..ebe87b2582 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,54 +20,60 @@ package com.google.storage.v2; /** + * + * *
              * Shared constants.
              * 
            * * Protobuf type {@code google.storage.v2.ServiceConstants} */ -public final class ServiceConstants extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ServiceConstants extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.v2.ServiceConstants) ServiceConstantsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ServiceConstants.newBuilder() to construct. private ServiceConstants(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ServiceConstants() { - } + + private ServiceConstants() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ServiceConstants(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ServiceConstants_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_ServiceConstants_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_ServiceConstants_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_ServiceConstants_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.ServiceConstants.class, com.google.storage.v2.ServiceConstants.Builder.class); + com.google.storage.v2.ServiceConstants.class, + com.google.storage.v2.ServiceConstants.Builder.class); } /** + * + * *
                * A collection of constant values meaningful to the Storage API.
                * 
            * * Protobuf enum {@code google.storage.v2.ServiceConstants.Values} */ - public enum Values - implements com.google.protobuf.ProtocolMessageEnum { + public enum Values implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
                  * Unused. Proto3 requires first enum to be 0.
                  * 
            @@ -61,6 +82,8 @@ public enum Values */ VALUES_UNSPECIFIED(0, 0), /** + * + * *
                  * The maximum size chunk that can will be returned in a single
                  * ReadRequest.
            @@ -71,6 +94,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.
            @@ -81,6 +106,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.
            @@ -91,6 +118,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.
            @@ -101,6 +130,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.
            @@ -111,6 +142,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.
            @@ -121,6 +154,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.
            @@ -130,6 +165,8 @@ public enum Values
                  */
                 MAX_NOTIFICATION_CONFIGS_PER_BUCKET(8, 100),
                 /**
            +     *
            +     *
                  * 
                  * The maximum number of custom attributes per NotificationConfigs.
                  * 
            @@ -138,6 +175,8 @@ public enum Values */ MAX_NOTIFICATION_CUSTOM_ATTRIBUTES(10, 5), /** + * + * *
                  * The maximum length of a custom attribute key included in
                  * NotificationConfig.
            @@ -147,6 +186,8 @@ public enum Values
                  */
                 MAX_NOTIFICATION_CUSTOM_ATTRIBUTE_KEY_LENGTH(11, 256),
                 /**
            +     *
            +     *
                  * 
                  * The maximum number of key/value entries per bucket label.
                  * 
            @@ -155,6 +196,8 @@ public enum Values */ MAX_LABELS_ENTRIES_COUNT(13, 64), /** + * + * *
                  * The maximum character length of the key or value in a bucket
                  * label map.
            @@ -164,6 +207,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.
            @@ -173,6 +218,8 @@ public enum Values
                  */
                 MAX_LABELS_KEY_VALUE_BYTES(15, 128),
                 /**
            +     *
            +     *
                  * 
                  * The maximum number of object IDs that can be included in a
                  * DeleteObjectsRequest.
            @@ -182,6 +229,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.
            @@ -194,6 +243,8 @@ public enum Values
                 ;
             
                 /**
            +     *
            +     *
                  * 
                  * The maximum size chunk that can be sent in a single WriteObjectRequest.
                  * 2 MiB.
            @@ -203,6 +254,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.
            @@ -212,6 +265,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.
            @@ -219,8 +274,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.
                  * 
            @@ -229,6 +287,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.
            @@ -239,6 +299,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.
            @@ -248,6 +310,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.
            @@ -258,6 +322,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.
            @@ -268,6 +334,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.
            @@ -278,6 +346,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.
            @@ -288,6 +358,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.
            @@ -298,6 +370,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.
            @@ -307,6 +381,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.
            @@ -316,6 +392,8 @@ public enum Values
                  */
                 public static final int MAX_LIFECYCLE_RULES_PER_BUCKET_VALUE = 100;
                 /**
            +     *
            +     *
                  * 
                  * The maximum number of custom attributes per NotificationConfigs.
                  * 
            @@ -324,6 +402,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.
            @@ -333,6 +413,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.
            @@ -342,6 +424,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.
                  * 
            @@ -350,6 +434,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.
            @@ -359,6 +445,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.
            @@ -368,6 +456,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.
            @@ -377,6 +467,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.
            @@ -386,7 +478,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(
            @@ -411,65 +502,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;
            @@ -489,6 +611,7 @@ private Values(int index, int value) {
               }
             
               private byte memoizedIsInitialized = -1;
            +
               @java.lang.Override
               public final boolean isInitialized() {
                 byte isInitialized = memoizedIsInitialized;
            @@ -500,8 +623,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);
               }
             
            @@ -519,7 +641,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);
            @@ -542,132 +664,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(); @@ -675,9 +801,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 @@ -696,7 +822,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; } @@ -705,38 +832,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; @@ -771,12 +899,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) { @@ -786,9 +915,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); } @@ -798,12 +927,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(); } @@ -812,27 +941,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; @@ -847,6 +976,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..db818ba878 --- /dev/null +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/ServiceConstantsOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/storage/v2/storage.proto + +// Protobuf Java Version: 3.25.3 +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 36e31694a0..626db2a07d 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,54 +20,62 @@ package com.google.storage.v2; /** + * + * *
              * Request message StartResumableWrite.
              * 
            * * Protobuf type {@code google.storage.v2.StartResumableWriteRequest} */ -public final class StartResumableWriteRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StartResumableWriteRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.v2.StartResumableWriteRequest) StartResumableWriteRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StartResumableWriteRequest.newBuilder() to construct. private StartResumableWriteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StartResumableWriteRequest() { - } + + private StartResumableWriteRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StartResumableWriteRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_StartResumableWriteRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_StartResumableWriteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_StartResumableWriteRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_StartResumableWriteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.StartResumableWriteRequest.class, com.google.storage.v2.StartResumableWriteRequest.Builder.class); + com.google.storage.v2.StartResumableWriteRequest.class, + com.google.storage.v2.StartResumableWriteRequest.Builder.class); } private int bitField0_; public static final int WRITE_OBJECT_SPEC_FIELD_NUMBER = 1; private com.google.storage.v2.WriteObjectSpec writeObjectSpec_; /** + * + * *
                * Required. The destination bucket, object, and metadata, as well as any
                * preconditions.
                * 
            * - * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the writeObjectSpec field is set. */ @java.lang.Override @@ -60,39 +83,55 @@ 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. */ @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 @@ -100,18 +139,25 @@ 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. */ @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.
                * 
            @@ -119,13 +165,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
            @@ -134,6 +185,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 @@ -141,6 +193,8 @@ 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
            @@ -149,13 +203,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
            @@ -167,10 +226,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;
            @@ -182,8 +244,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.writeMessage(1, getWriteObjectSpec());
                 }
            @@ -203,16 +264,15 @@ public int getSerializedSize() {
             
                 size = 0;
                 if (((bitField0_ & 0x00000001) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream
            -        .computeMessageSize(1, getWriteObjectSpec());
            +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWriteObjectSpec());
                 }
                 if (((bitField0_ & 0x00000002) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream
            -        .computeMessageSize(3, getCommonObjectRequestParams());
            +      size +=
            +          com.google.protobuf.CodedOutputStream.computeMessageSize(
            +              3, getCommonObjectRequestParams());
                 }
                 if (((bitField0_ & 0x00000004) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream
            -        .computeMessageSize(5, getObjectChecksums());
            +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getObjectChecksums());
                 }
                 size += getUnknownFields().getSerializedSize();
                 memoizedSize = size;
            @@ -222,27 +282,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;
            @@ -272,120 +331,127 @@ 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() @@ -393,19 +459,19 @@ 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) { getWriteObjectSpecFieldBuilder(); getCommonObjectRequestParamsFieldBuilder(); getObjectChecksumsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -429,9 +495,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 @@ -450,8 +516,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; } @@ -460,21 +529,20 @@ private void buildPartial0(com.google.storage.v2.StartResumableWriteRequest resu int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.writeObjectSpec_ = writeObjectSpecBuilder_ == null - ? writeObjectSpec_ - : writeObjectSpecBuilder_.build(); + result.writeObjectSpec_ = + writeObjectSpecBuilder_ == null ? writeObjectSpec_ : writeObjectSpecBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null - ? commonObjectRequestParams_ - : commonObjectRequestParamsBuilder_.build(); + result.commonObjectRequestParams_ = + commonObjectRequestParamsBuilder_ == null + ? commonObjectRequestParams_ + : commonObjectRequestParamsBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.objectChecksums_ = objectChecksumsBuilder_ == null - ? objectChecksums_ - : objectChecksumsBuilder_.build(); + result.objectChecksums_ = + objectChecksumsBuilder_ == null ? objectChecksums_ : objectChecksumsBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; @@ -484,38 +552,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; @@ -523,7 +592,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()); } @@ -559,33 +629,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) { @@ -595,46 +664,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) { @@ -650,12 +739,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) { @@ -669,18 +762,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; @@ -695,12 +792,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); @@ -713,12 +814,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; @@ -726,38 +831,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_; @@ -765,41 +882,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(); @@ -813,6 +944,8 @@ public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRe return this; } /** + * + * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -831,17 +964,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; @@ -856,6 +993,8 @@ public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObject return this; } /** + * + * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -873,33 +1012,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.
                  * 
            @@ -907,14 +1055,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_; @@ -922,8 +1073,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
            @@ -932,12 +1088,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
            @@ -946,16 +1105,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
            @@ -979,6 +1143,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
            @@ -1000,6 +1166,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
            @@ -1011,9 +1179,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;
            @@ -1028,6 +1196,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
            @@ -1048,6 +1218,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
            @@ -1063,6 +1235,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
            @@ -1076,11 +1250,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
            @@ -1091,21 +1268,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);
                 }
             
            @@ -1115,12 +1295,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();
               }
            @@ -1129,27 +1309,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;
            @@ -1164,6 +1344,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 74%
            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 1e1e4df8cb..1d1a842a25 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,62 +1,100 @@
            +/*
            + * Copyright 2024 Google LLC
            + *
            + * Licensed under the Apache License, Version 2.0 (the "License");
            + * you may not use this file except in compliance with the License.
            + * You may obtain a copy of the License at
            + *
            + *     https://www.apache.org/licenses/LICENSE-2.0
            + *
            + * Unless required by applicable law or agreed to in writing, software
            + * distributed under the License is distributed on an "AS IS" BASIS,
            + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            + * See the License for the specific language governing permissions and
            + * limitations under the License.
            + */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
             // Protobuf Java Version: 3.25.3
             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.
                * 
            @@ -66,6 +104,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
            @@ -74,10 +114,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
            @@ -86,10 +129,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 32cb25bc76..a1fda1a6ca 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,3 +1,18 @@
            +/*
            + * Copyright 2024 Google LLC
            + *
            + * Licensed under the Apache License, Version 2.0 (the "License");
            + * you may not use this file except in compliance with the License.
            + * You may obtain a copy of the License at
            + *
            + *     https://www.apache.org/licenses/LICENSE-2.0
            + *
            + * Unless required by applicable law or agreed to in writing, software
            + * distributed under the License is distributed on an "AS IS" BASIS,
            + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            + * See the License for the specific language governing permissions and
            + * limitations under the License.
            + */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
            @@ -5,55 +20,63 @@
             package com.google.storage.v2;
             
             /**
            + *
            + *
              * 
              * Response object for `StartResumableWrite`.
              * 
            * * Protobuf type {@code google.storage.v2.StartResumableWriteResponse} */ -public final class StartResumableWriteResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StartResumableWriteResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.v2.StartResumableWriteResponse) StartResumableWriteResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StartResumableWriteResponse.newBuilder() to construct. private StartResumableWriteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StartResumableWriteResponse() { uploadId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StartResumableWriteResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_StartResumableWriteResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_StartResumableWriteResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_StartResumableWriteResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_StartResumableWriteResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.StartResumableWriteResponse.class, com.google.storage.v2.StartResumableWriteResponse.Builder.class); + com.google.storage.v2.StartResumableWriteResponse.class, + com.google.storage.v2.StartResumableWriteResponse.Builder.class); } public static final int UPLOAD_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object uploadId_ = ""; /** + * + * *
                * The upload_id of the newly started resumable write operation. This
                * value should be copied into the `WriteObjectRequest.upload_id` field.
                * 
            * * string upload_id = 1; + * * @return The uploadId. */ @java.lang.Override @@ -62,30 +85,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 { @@ -94,6 +117,7 @@ public java.lang.String getUploadId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -105,8 +129,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_); } @@ -130,15 +153,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; } @@ -158,131 +181,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(); @@ -292,9 +319,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_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 @@ -313,8 +340,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; } @@ -330,38 +360,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; @@ -369,7 +400,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; @@ -401,17 +433,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) { @@ -421,23 +455,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; @@ -446,21 +483,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 { @@ -468,30 +506,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() { @@ -501,27 +546,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); } @@ -531,12 +580,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(); } @@ -545,27 +594,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; @@ -580,6 +629,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 53% 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 4f34b3e796..d0ec115de3 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,32 +1,53 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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..caa3bf077d --- /dev/null +++ b/proto-google-cloud-storage-v2/src/main/java/com/google/storage/v2/StorageProto.java @@ -0,0 +1,1830 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/storage/v2/storage.proto + +// Protobuf Java Version: 3.25.3 +package com.google.storage.v2; + +public final class StorageProto { + private StorageProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_DeleteBucketRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_DeleteBucketRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_GetBucketRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_GetBucketRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_CreateBucketRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_CreateBucketRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ListBucketsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ListBucketsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ListBucketsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ListBucketsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_UpdateBucketRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_UpdateBucketRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_DeleteNotificationConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_DeleteNotificationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_GetNotificationConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_GetNotificationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_CreateNotificationConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_CreateNotificationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ListNotificationConfigsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ListNotificationConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ListNotificationConfigsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ListNotificationConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ComposeObjectRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ComposeObjectRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_DeleteObjectRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_DeleteObjectRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_RestoreObjectRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_RestoreObjectRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_CancelResumableWriteRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_CancelResumableWriteRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_CancelResumableWriteResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_CancelResumableWriteResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ReadObjectRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ReadObjectRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_GetObjectRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_GetObjectRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ReadObjectResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ReadObjectResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_WriteObjectSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_WriteObjectSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_WriteObjectRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_WriteObjectRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_WriteObjectResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_WriteObjectResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_BidiWriteObjectRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_BidiWriteObjectRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_BidiWriteObjectResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_BidiWriteObjectResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ListObjectsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ListObjectsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_QueryWriteStatusRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_QueryWriteStatusRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_QueryWriteStatusResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_QueryWriteStatusResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_RewriteObjectRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_RewriteObjectRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_RewriteResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_RewriteResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_StartResumableWriteRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_StartResumableWriteRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_StartResumableWriteResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_StartResumableWriteResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_UpdateObjectRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_UpdateObjectRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_GetServiceAccountRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_GetServiceAccountRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_CreateHmacKeyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_CreateHmacKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_CreateHmacKeyResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_CreateHmacKeyResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_DeleteHmacKeyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_DeleteHmacKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_GetHmacKeyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_GetHmacKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ListHmacKeysRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ListHmacKeysRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ListHmacKeysResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ListHmacKeysResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_UpdateHmacKeyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_UpdateHmacKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_CommonObjectRequestParams_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_CommonObjectRequestParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ServiceConstants_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ServiceConstants_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_Billing_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_Billing_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_Cors_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_Cors_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_Encryption_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_Encryption_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_IamConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_IamConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_Lifecycle_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_Lifecycle_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_Logging_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_Logging_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_RetentionPolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_RetentionPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_SoftDeletePolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_Versioning_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_Versioning_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_Website_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_Website_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_CustomPlacementConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_CustomPlacementConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_Autoclass_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_Autoclass_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_HierarchicalNamespace_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_HierarchicalNamespace_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Bucket_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Bucket_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_BucketAccessControl_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_BucketAccessControl_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ChecksummedData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ChecksummedData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ObjectChecksums_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ObjectChecksums_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_HmacKeyMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_HmacKeyMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_NotificationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_NotificationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_NotificationConfig_CustomAttributesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_NotificationConfig_CustomAttributesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_CustomerEncryption_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_CustomerEncryption_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Object_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Object_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Object_MetadataEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Object_MetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ObjectAccessControl_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ObjectAccessControl_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ListObjectsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ListObjectsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ProjectTeam_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ProjectTeam_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ServiceAccount_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ServiceAccount_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_Owner_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_Owner_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_storage_v2_ContentRange_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_storage_v2_ContentRange_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\037google/storage/v2/storage.proto\022\021googl" + + "e.storage.v2\032\027google/api/client.proto\032\037g" + + "oogle/api/field_behavior.proto\032\031google/a" + + "pi/resource.proto\032\030google/api/routing.pr" + + "oto\032\036google/iam/v1/iam_policy.proto\032\032goo" + + "gle/iam/v1/policy.proto\032\036google/protobuf" + + "/duration.proto\032\033google/protobuf/empty.p" + + "roto\032 google/protobuf/field_mask.proto\032\037" + + "google/protobuf/timestamp.proto\032\026google/" + + "type/date.proto\"\326\001\n\023DeleteBucketRequest\022" + + "3\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035storage.googleapi" + + "s.com/Bucket\022$\n\027if_metageneration_match\030" + + "\002 \001(\003H\000\210\001\001\022(\n\033if_metageneration_not_matc" + + "h\030\003 \001(\003H\001\210\001\001B\032\n\030_if_metageneration_match" + + "B\036\n\034_if_metageneration_not_match\"\225\002\n\020Get" + + "BucketRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035sto" + + "rage.googleapis.com/Bucket\022$\n\027if_metagen" + + "eration_match\030\002 \001(\003H\000\210\001\001\022(\n\033if_metagener" + + "ation_not_match\030\003 \001(\003H\001\210\001\001\0222\n\tread_mask\030" + + "\005 \001(\0132\032.google.protobuf.FieldMaskH\002\210\001\001B\032" + + "\n\030_if_metageneration_matchB\036\n\034_if_metage" + + "neration_not_matchB\014\n\n_read_mask\"\316\001\n\023Cre" + + "ateBucketRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037" + + "\022\035storage.googleapis.com/Bucket\022)\n\006bucke" + + "t\030\002 \001(\0132\031.google.storage.v2.Bucket\022\026\n\tbu" + + "cket_id\030\003 \001(\tB\003\340A\002\022\026\n\016predefined_acl\030\006 \001" + + "(\t\022%\n\035predefined_default_object_acl\030\007 \001(" + + "\t\"\304\001\n\022ListBucketsRequest\0225\n\006parent\030\001 \001(\t" + + "B%\340A\002\372A\037\022\035storage.googleapis.com/Bucket\022" + + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016" + + "\n\006prefix\030\004 \001(\t\0222\n\tread_mask\030\005 \001(\0132\032.goog" + + "le.protobuf.FieldMaskH\000\210\001\001B\014\n\n_read_mask" + + "\"Z\n\023ListBucketsResponse\022*\n\007buckets\030\001 \003(\013" + + "2\031.google.storage.v2.Bucket\022\027\n\017next_page" + + "_token\030\002 \001(\t\"\177\n LockBucketRetentionPolic" + + "yRequest\0225\n\006bucket\030\001 \001(\tB%\340A\002\372A\037\n\035storag" + + "e.googleapis.com/Bucket\022$\n\027if_metagenera" + + "tion_match\030\002 \001(\003B\003\340A\002\"\306\002\n\023UpdateBucketRe" + + "quest\022.\n\006bucket\030\001 \001(\0132\031.google.storage.v" + + "2.BucketB\003\340A\002\022$\n\027if_metageneration_match" + + "\030\002 \001(\003H\000\210\001\001\022(\n\033if_metageneration_not_mat" + + "ch\030\003 \001(\003H\001\210\001\001\022\026\n\016predefined_acl\030\010 \001(\t\022%\n" + + "\035predefined_default_object_acl\030\t \001(\t\0224\n\013" + + "update_mask\030\006 \001(\0132\032.google.protobuf.Fiel" + + "dMaskB\003\340A\002B\032\n\030_if_metageneration_matchB\036" + + "\n\034_if_metageneration_not_match\"b\n\037Delete" + + "NotificationConfigRequest\022?\n\004name\030\001 \001(\tB" + + "1\340A\002\372A+\n)storage.googleapis.com/Notifica" + + "tionConfig\"_\n\034GetNotificationConfigReque" + + "st\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)storage.google" + + "apis.com/NotificationConfig\"\255\001\n\037CreateNo" + + "tificationConfigRequest\022A\n\006parent\030\001 \001(\tB" + + "1\340A\002\372A+\022)storage.googleapis.com/Notifica" + + "tionConfig\022G\n\023notification_config\030\002 \001(\0132" + + "%.google.storage.v2.NotificationConfigB\003" + + "\340A\002\"\212\001\n\036ListNotificationConfigsRequest\022A" + + "\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)storage.googleap" + + "is.com/NotificationConfig\022\021\n\tpage_size\030\002" + + " \001(\005\022\022\n\npage_token\030\003 \001(\t\"\177\n\037ListNotifica" + + "tionConfigsResponse\022C\n\024notification_conf" + + "igs\030\001 \003(\0132%.google.storage.v2.Notificati" + + "onConfig\022\027\n\017next_page_token\030\002 \001(\t\"\365\005\n\024Co" + + "mposeObjectRequest\0223\n\013destination\030\001 \001(\0132" + + "\031.google.storage.v2.ObjectB\003\340A\002\022L\n\016sourc" + + "e_objects\030\002 \003(\01324.google.storage.v2.Comp" + + "oseObjectRequest.SourceObject\022\"\n\032destina" + + "tion_predefined_acl\030\t \001(\t\022 \n\023if_generati" + + "on_match\030\004 \001(\003H\000\210\001\001\022$\n\027if_metageneration" + + "_match\030\005 \001(\003H\001\210\001\001\0227\n\007kms_key\030\006 \001(\tB&\372A#\n" + + "!cloudkms.googleapis.com/CryptoKey\022R\n\034co" + + "mmon_object_request_params\030\007 \001(\0132,.googl" + + "e.storage.v2.CommonObjectRequestParams\022<" + + "\n\020object_checksums\030\n \001(\0132\".google.storag" + + "e.v2.ObjectChecksums\032\356\001\n\014SourceObject\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\022\022\n\ngeneration\030\002 \001(\003\022f\n\024" + + "object_preconditions\030\003 \001(\0132H.google.stor" + + "age.v2.ComposeObjectRequest.SourceObject" + + ".ObjectPreconditions\032O\n\023ObjectPreconditi" + + "ons\022 \n\023if_generation_match\030\001 \001(\003H\000\210\001\001B\026\n" + + "\024_if_generation_matchB\026\n\024_if_generation_" + + "matchB\032\n\030_if_metageneration_match\"\321\003\n\023De" + + "leteObjectRequest\0225\n\006bucket\030\001 \001(\tB%\340A\002\372A" + + "\037\n\035storage.googleapis.com/Bucket\022\023\n\006obje" + + "ct\030\002 \001(\tB\003\340A\002\022\022\n\ngeneration\030\004 \001(\003\022 \n\023if_" + + "generation_match\030\005 \001(\003H\000\210\001\001\022$\n\027if_genera" + + "tion_not_match\030\006 \001(\003H\001\210\001\001\022$\n\027if_metagene" + + "ration_match\030\007 \001(\003H\002\210\001\001\022(\n\033if_metagenera" + + "tion_not_match\030\010 \001(\003H\003\210\001\001\022R\n\034common_obje" + + "ct_request_params\030\n \001(\0132,.google.storage" + + ".v2.CommonObjectRequestParamsB\026\n\024_if_gen" + + "eration_matchB\032\n\030_if_generation_not_matc" + + "hB\032\n\030_if_metageneration_matchB\036\n\034_if_met" + + "ageneration_not_match\"\211\004\n\024RestoreObjectR" + + "equest\0225\n\006bucket\030\001 \001(\tB%\340A\002\372A\037\n\035storage." + + "googleapis.com/Bucket\022\023\n\006object\030\002 \001(\tB\003\340" + + "A\002\022\027\n\ngeneration\030\003 \001(\003B\003\340A\002\022 \n\023if_genera" + + "tion_match\030\004 \001(\003H\000\210\001\001\022$\n\027if_generation_n" + + "ot_match\030\005 \001(\003H\001\210\001\001\022$\n\027if_metageneration" + + "_match\030\006 \001(\003H\002\210\001\001\022(\n\033if_metageneration_n" + + "ot_match\030\007 \001(\003H\003\210\001\001\022\034\n\017copy_source_acl\030\t" + + " \001(\010H\004\210\001\001\022R\n\034common_object_request_param" + + "s\030\010 \001(\0132,.google.storage.v2.CommonObject" + + "RequestParamsB\026\n\024_if_generation_matchB\032\n" + + "\030_if_generation_not_matchB\032\n\030_if_metagen" + + "eration_matchB\036\n\034_if_metageneration_not_" + + "matchB\022\n\020_copy_source_acl\"5\n\033CancelResum" + + "ableWriteRequest\022\026\n\tupload_id\030\001 \001(\tB\003\340A\002" + + "\"\036\n\034CancelResumableWriteResponse\"\272\004\n\021Rea" + + "dObjectRequest\0225\n\006bucket\030\001 \001(\tB%\340A\002\372A\037\n\035" + + "storage.googleapis.com/Bucket\022\023\n\006object\030" + + "\002 \001(\tB\003\340A\002\022\022\n\ngeneration\030\003 \001(\003\022\023\n\013read_o" + + "ffset\030\004 \001(\003\022\022\n\nread_limit\030\005 \001(\003\022 \n\023if_ge" + + "neration_match\030\006 \001(\003H\000\210\001\001\022$\n\027if_generati" + + "on_not_match\030\007 \001(\003H\001\210\001\001\022$\n\027if_metagenera" + + "tion_match\030\010 \001(\003H\002\210\001\001\022(\n\033if_metagenerati" + + "on_not_match\030\t \001(\003H\003\210\001\001\022R\n\034common_object" + + "_request_params\030\n \001(\0132,.google.storage.v" + + "2.CommonObjectRequestParams\0222\n\tread_mask" + + "\030\014 \001(\0132\032.google.protobuf.FieldMaskH\004\210\001\001B" + + "\026\n\024_if_generation_matchB\032\n\030_if_generatio" + + "n_not_matchB\032\n\030_if_metageneration_matchB" + + "\036\n\034_if_metageneration_not_matchB\014\n\n_read" + + "_mask\"\274\004\n\020GetObjectRequest\0225\n\006bucket\030\001 \001" + + "(\tB%\340A\002\372A\037\n\035storage.googleapis.com/Bucke" + + "t\022\023\n\006object\030\002 \001(\tB\003\340A\002\022\022\n\ngeneration\030\003 \001" + + "(\003\022\031\n\014soft_deleted\030\013 \001(\010H\000\210\001\001\022 \n\023if_gene" + + "ration_match\030\004 \001(\003H\001\210\001\001\022$\n\027if_generation" + + "_not_match\030\005 \001(\003H\002\210\001\001\022$\n\027if_metagenerati" + + "on_match\030\006 \001(\003H\003\210\001\001\022(\n\033if_metageneration" + + "_not_match\030\007 \001(\003H\004\210\001\001\022R\n\034common_object_r" + + "equest_params\030\010 \001(\0132,.google.storage.v2." + + "CommonObjectRequestParams\0222\n\tread_mask\030\n" + + " \001(\0132\032.google.protobuf.FieldMaskH\005\210\001\001B\017\n" + + "\r_soft_deletedB\026\n\024_if_generation_matchB\032" + + "\n\030_if_generation_not_matchB\032\n\030_if_metage" + + "neration_matchB\036\n\034_if_metageneration_not" + + "_matchB\014\n\n_read_mask\"\365\001\n\022ReadObjectRespo" + + "nse\022<\n\020checksummed_data\030\001 \001(\0132\".google.s" + + "torage.v2.ChecksummedData\022<\n\020object_chec" + + "ksums\030\002 \001(\0132\".google.storage.v2.ObjectCh" + + "ecksums\0226\n\rcontent_range\030\003 \001(\0132\037.google." + + "storage.v2.ContentRange\022+\n\010metadata\030\004 \001(" + + "\0132\031.google.storage.v2.Object\"\215\003\n\017WriteOb" + + "jectSpec\0220\n\010resource\030\001 \001(\0132\031.google.stor" + + "age.v2.ObjectB\003\340A\002\022\026\n\016predefined_acl\030\007 \001" + + "(\t\022 \n\023if_generation_match\030\003 \001(\003H\000\210\001\001\022$\n\027" + + "if_generation_not_match\030\004 \001(\003H\001\210\001\001\022$\n\027if" + + "_metageneration_match\030\005 \001(\003H\002\210\001\001\022(\n\033if_m" + + "etageneration_not_match\030\006 \001(\003H\003\210\001\001\022\030\n\013ob" + + "ject_size\030\010 \001(\003H\004\210\001\001B\026\n\024_if_generation_m" + + "atchB\032\n\030_if_generation_not_matchB\032\n\030_if_" + + "metageneration_matchB\036\n\034_if_metagenerati" + + "on_not_matchB\016\n\014_object_size\"\206\003\n\022WriteOb" + + "jectRequest\022\023\n\tupload_id\030\001 \001(\tH\000\022?\n\021writ" + + "e_object_spec\030\002 \001(\0132\".google.storage.v2." + + "WriteObjectSpecH\000\022\031\n\014write_offset\030\003 \001(\003B" + + "\003\340A\002\022>\n\020checksummed_data\030\004 \001(\0132\".google." + + "storage.v2.ChecksummedDataH\001\022<\n\020object_c" + + "hecksums\030\006 \001(\0132\".google.storage.v2.Objec" + + "tChecksums\022\024\n\014finish_write\030\007 \001(\010\022R\n\034comm" + + "on_object_request_params\030\010 \001(\0132,.google." + + "storage.v2.CommonObjectRequestParamsB\017\n\r" + + "first_messageB\006\n\004data\"n\n\023WriteObjectResp" + + "onse\022\030\n\016persisted_size\030\001 \001(\003H\000\022-\n\010resour" + + "ce\030\002 \001(\0132\031.google.storage.v2.ObjectH\000B\016\n" + + "\014write_status\"\257\003\n\026BidiWriteObjectRequest" + + "\022\023\n\tupload_id\030\001 \001(\tH\000\022?\n\021write_object_sp" + + "ec\030\002 \001(\0132\".google.storage.v2.WriteObject" + + "SpecH\000\022\031\n\014write_offset\030\003 \001(\003B\003\340A\002\022>\n\020che" + + "cksummed_data\030\004 \001(\0132\".google.storage.v2." + + "ChecksummedDataH\001\022<\n\020object_checksums\030\006 " + + "\001(\0132\".google.storage.v2.ObjectChecksums\022" + + "\024\n\014state_lookup\030\007 \001(\010\022\r\n\005flush\030\010 \001(\010\022\024\n\014" + + "finish_write\030\t \001(\010\022R\n\034common_object_requ" + + "est_params\030\n \001(\0132,.google.storage.v2.Com" + + "monObjectRequestParamsB\017\n\rfirst_messageB" + + "\006\n\004data\"r\n\027BidiWriteObjectResponse\022\030\n\016pe" + + "rsisted_size\030\001 \001(\003H\000\022-\n\010resource\030\002 \001(\0132\031" + + ".google.storage.v2.ObjectH\000B\016\n\014write_sta" + + "tus\"\255\003\n\022ListObjectsRequest\0225\n\006parent\030\001 \001" + + "(\tB%\340A\002\372A\037\n\035storage.googleapis.com/Bucke" + + "t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t" + + "\022\021\n\tdelimiter\030\004 \001(\t\022\"\n\032include_trailing_" + + "delimiter\030\005 \001(\010\022\016\n\006prefix\030\006 \001(\t\022\020\n\010versi" + + "ons\030\007 \001(\010\0222\n\tread_mask\030\010 \001(\0132\032.google.pr" + + "otobuf.FieldMaskH\000\210\001\001\022 \n\023lexicographic_s" + + "tart\030\n \001(\tB\003\340A\001\022\036\n\021lexicographic_end\030\013 \001" + + "(\tB\003\340A\001\022\031\n\014soft_deleted\030\014 \001(\010B\003\340A\001\022(\n\033in" + + "clude_folders_as_prefixes\030\r \001(\010B\003\340A\001\022\027\n\n" + + "match_glob\030\016 \001(\tB\003\340A\001B\014\n\n_read_mask\"\205\001\n\027" + + "QueryWriteStatusRequest\022\026\n\tupload_id\030\001 \001" + + "(\tB\003\340A\002\022R\n\034common_object_request_params\030" + + "\002 \001(\0132,.google.storage.v2.CommonObjectRe" + + "questParams\"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\014writ" + + "e_status\"\250\n\n\024RewriteObjectRequest\022 \n\020des" + + "tination_name\030\030 \001(\tB\006\340A\002\340A\005\022D\n\022destinati" + + "on_bucket\030\031 \001(\tB(\340A\002\340A\005\372A\037\n\035storage.goog" + + "leapis.com/Bucket\022C\n\023destination_kms_key" + + "\030\033 \001(\tB&\372A#\n!cloudkms.googleapis.com/Cry" + + "ptoKey\022.\n\013destination\030\001 \001(\0132\031.google.sto" + + "rage.v2.Object\022<\n\rsource_bucket\030\002 \001(\tB%\340" + + "A\002\372A\037\n\035storage.googleapis.com/Bucket\022\032\n\r" + + "source_object\030\003 \001(\tB\003\340A\002\022\031\n\021source_gener" + + "ation\030\004 \001(\003\022\025\n\rrewrite_token\030\005 \001(\t\022\"\n\032de" + + "stination_predefined_acl\030\034 \001(\t\022 \n\023if_gen" + + "eration_match\030\007 \001(\003H\000\210\001\001\022$\n\027if_generatio" + + "n_not_match\030\010 \001(\003H\001\210\001\001\022$\n\027if_metagenerat" + + "ion_match\030\t \001(\003H\002\210\001\001\022(\n\033if_metageneratio" + + "n_not_match\030\n \001(\003H\003\210\001\001\022\'\n\032if_source_gene" + + "ration_match\030\013 \001(\003H\004\210\001\001\022+\n\036if_source_gen" + + "eration_not_match\030\014 \001(\003H\005\210\001\001\022+\n\036if_sourc" + + "e_metageneration_match\030\r \001(\003H\006\210\001\001\022/\n\"if_" + + "source_metageneration_not_match\030\016 \001(\003H\007\210" + + "\001\001\022$\n\034max_bytes_rewritten_per_call\030\017 \001(\003" + + "\022(\n copy_source_encryption_algorithm\030\020 \001" + + "(\t\022(\n copy_source_encryption_key_bytes\030\025" + + " \001(\014\022/\n\'copy_source_encryption_key_sha25" + + "6_bytes\030\026 \001(\014\022R\n\034common_object_request_p" + + "arams\030\023 \001(\0132,.google.storage.v2.CommonOb" + + "jectRequestParams\022<\n\020object_checksums\030\035 " + + "\001(\0132\".google.storage.v2.ObjectChecksumsB" + + "\026\n\024_if_generation_matchB\032\n\030_if_generatio" + + "n_not_matchB\032\n\030_if_metageneration_matchB" + + "\036\n\034_if_metageneration_not_matchB\035\n\033_if_s" + + "ource_generation_matchB!\n\037_if_source_gen" + + "eration_not_matchB!\n\037_if_source_metagene" + + "ration_matchB%\n#_if_source_metageneratio" + + "n_not_match\"\227\001\n\017RewriteResponse\022\035\n\025total" + + "_bytes_rewritten\030\001 \001(\003\022\023\n\013object_size\030\002 " + + "\001(\003\022\014\n\004done\030\003 \001(\010\022\025\n\rrewrite_token\030\004 \001(\t" + + "\022+\n\010resource\030\005 \001(\0132\031.google.storage.v2.O" + + "bject\"\362\001\n\032StartResumableWriteRequest\022B\n\021" + + "write_object_spec\030\001 \001(\0132\".google.storage" + + ".v2.WriteObjectSpecB\003\340A\002\022R\n\034common_objec" + + "t_request_params\030\003 \001(\0132,.google.storage." + + "v2.CommonObjectRequestParams\022<\n\020object_c" + + "hecksums\030\005 \001(\0132\".google.storage.v2.Objec" + + "tChecksums\"0\n\033StartResumableWriteRespons" + + "e\022\021\n\tupload_id\030\001 \001(\t\"\357\003\n\023UpdateObjectReq" + + "uest\022.\n\006object\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_metageneration_match\030\004 \001(\003H\002\210" + + "\001\001\022(\n\033if_metageneration_not_match\030\005 \001(\003H" + + "\003\210\001\001\022\026\n\016predefined_acl\030\n \001(\t\0224\n\013update_m" + + "ask\030\007 \001(\0132\032.google.protobuf.FieldMaskB\003\340" + + "A\002\022R\n\034common_object_request_params\030\010 \001(\013" + + "2,.google.storage.v2.CommonObjectRequest" + + "ParamsB\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_match\"`" + + "\n\030GetServiceAccountRequest\022D\n\007project\030\001 " + + "\001(\tB3\340A\002\372A-\n+cloudresourcemanager.google" + + "apis.com/Project\"\200\001\n\024CreateHmacKeyReques" + + "t\022D\n\007project\030\001 \001(\tB3\340A\002\372A-\n+cloudresourc" + + "emanager.googleapis.com/Project\022\"\n\025servi" + + "ce_account_email\030\002 \001(\tB\003\340A\002\"g\n\025CreateHma" + + "cKeyResponse\0224\n\010metadata\030\001 \001(\0132\".google." + + "storage.v2.HmacKeyMetadata\022\030\n\020secret_key" + + "_bytes\030\003 \001(\014\"t\n\024DeleteHmacKeyRequest\022\026\n\t" + + "access_id\030\001 \001(\tB\003\340A\002\022D\n\007project\030\002 \001(\tB3\340" + + "A\002\372A-\n+cloudresourcemanager.googleapis.c" + + "om/Project\"q\n\021GetHmacKeyRequest\022\026\n\tacces" + + "s_id\030\001 \001(\tB\003\340A\002\022D\n\007project\030\002 \001(\tB3\340A\002\372A-" + + "\n+cloudresourcemanager.googleapis.com/Pr" + + "oject\"\274\001\n\023ListHmacKeysRequest\022D\n\007project" + + "\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.goo" + + "gleapis.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_em" + + "ail\030\004 \001(\t\022\031\n\021show_deleted_keys\030\005 \001(\010\"f\n\024" + + "ListHmacKeysResponse\0225\n\thmac_keys\030\001 \003(\0132" + + "\".google.storage.v2.HmacKeyMetadata\022\027\n\017n" + + "ext_page_token\030\002 \001(\t\"\202\001\n\024UpdateHmacKeyRe" + + "quest\0229\n\010hmac_key\030\001 \001(\0132\".google.storage" + + ".v2.HmacKeyMetadataB\003\340A\002\022/\n\013update_mask\030" + + "\003 \001(\0132\032.google.protobuf.FieldMask\"|\n\031Com" + + "monObjectRequestParams\022\034\n\024encryption_alg" + + "orithm\030\001 \001(\t\022\034\n\024encryption_key_bytes\030\004 \001" + + "(\014\022#\n\033encryption_key_sha256_bytes\030\005 \001(\014\"" + + "\312\005\n\020ServiceConstants\"\265\005\n\006Values\022\026\n\022VALUE" + + "S_UNSPECIFIED\020\000\022\033\n\024MAX_READ_CHUNK_BYTES\020" + + "\200\200\200\001\022\034\n\025MAX_WRITE_CHUNK_BYTES\020\200\200\200\001\022\031\n\022MA" + + "X_OBJECT_SIZE_MB\020\200\200\300\002\022)\n$MAX_CUSTOM_META" + + "DATA_FIELD_NAME_BYTES\020\200\010\022*\n%MAX_CUSTOM_M" + + "ETADATA_FIELD_VALUE_BYTES\020\200 \022)\n$MAX_CUST" + + "OM_METADATA_TOTAL_SIZE_BYTES\020\200@\022*\n$MAX_B" + + "UCKET_METADATA_TOTAL_SIZE_BYTES\020\200\240\001\022\'\n#M" + + "AX_NOTIFICATION_CONFIGS_PER_BUCKET\020d\022\"\n\036" + + "MAX_LIFECYCLE_RULES_PER_BUCKET\020d\022&\n\"MAX_" + + "NOTIFICATION_CUSTOM_ATTRIBUTES\020\005\0221\n,MAX_" + + "NOTIFICATION_CUSTOM_ATTRIBUTE_KEY_LENGTH" + + "\020\200\002\0223\n.MAX_NOTIFICATION_CUSTOM_ATTRIBUTE" + + "_VALUE_LENGTH\020\200\010\022\034\n\030MAX_LABELS_ENTRIES_C" + + "OUNT\020@\022\037\n\033MAX_LABELS_KEY_VALUE_LENGTH\020?\022" + + "\037\n\032MAX_LABELS_KEY_VALUE_BYTES\020\200\001\022.\n)MAX_" + + "OBJECT_IDS_PER_DELETE_OBJECTS_REQUEST\020\350\007" + + "\022\036\n\032SPLIT_TOKEN_MAX_VALID_DAYS\020\016\032\002\020\001\"\222\034\n" + + "\006Bucket\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\026\n\tbucket_id\030" + + "\002 \001(\tB\003\340A\003\022\014\n\004etag\030\035 \001(\t\022D\n\007project\030\003 \001(" + + "\tB3\340A\005\372A-\n+cloudresourcemanager.googleap" + + "is.com/Project\022\033\n\016metageneration\030\004 \001(\003B\003" + + "\340A\003\022\025\n\010location\030\005 \001(\tB\003\340A\005\022\032\n\rlocation_t" + + "ype\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.BucketAccessControl\022B\n\022default_objec" + + "t_acl\030\t \003(\0132&.google.storage.v2.ObjectAc" + + "cessControl\0226\n\tlifecycle\030\n \001(\0132#.google." + + "storage.v2.Bucket.Lifecycle\0224\n\013create_ti" + + "me\030\013 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\022,\n\004cors\030\014 \003(\0132\036.google.storage.v2.Buck" + + "et.Cors\0224\n\013update_time\030\r \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\022 \n\030default_event_b" + + "ased_hold\030\016 \001(\010\0225\n\006labels\030\017 \003(\0132%.google" + + ".storage.v2.Bucket.LabelsEntry\0222\n\007websit" + + "e\030\020 \001(\0132!.google.storage.v2.Bucket.Websi" + + "te\0228\n\nversioning\030\021 \001(\0132$.google.storage." + + "v2.Bucket.Versioning\0222\n\007logging\030\022 \001(\0132!." + + "google.storage.v2.Bucket.Logging\022,\n\005owne" + + "r\030\023 \001(\0132\030.google.storage.v2.OwnerB\003\340A\003\0228" + + "\n\nencryption\030\024 \001(\0132$.google.storage.v2.B" + + "ucket.Encryption\0222\n\007billing\030\025 \001(\0132!.goog" + + "le.storage.v2.Bucket.Billing\022C\n\020retentio" + + "n_policy\030\026 \001(\0132).google.storage.v2.Bucke" + + "t.RetentionPolicy\0227\n\niam_config\030\027 \001(\0132#." + + "google.storage.v2.Bucket.IamConfig\022\025\n\rsa" + + "tisfies_pzs\030\031 \001(\010\022P\n\027custom_placement_co" + + "nfig\030\032 \001(\0132/.google.storage.v2.Bucket.Cu" + + "stomPlacementConfig\0226\n\tautoclass\030\034 \001(\0132#" + + ".google.storage.v2.Bucket.Autoclass\022T\n\026h" + + "ierarchical_namespace\030 \001(\0132/.google.sto" + + "rage.v2.Bucket.HierarchicalNamespaceB\003\340A" + + "\001\022K\n\022soft_delete_policy\030\037 \001(\0132*.google.s" + + "torage.v2.Bucket.SoftDeletePolicyB\003\340A\001\032!" + + "\n\007Billing\022\026\n\016requester_pays\030\001 \001(\010\032X\n\004Cor" + + "s\022\016\n\006origin\030\001 \003(\t\022\016\n\006method\030\002 \003(\t\022\027\n\017res" + + "ponse_header\030\003 \003(\t\022\027\n\017max_age_seconds\030\004 " + + "\001(\005\032M\n\nEncryption\022?\n\017default_kms_key\030\001 \001" + + "(\tB&\372A#\n!cloudkms.googleapis.com/CryptoK" + + "ey\032\354\001\n\tIamConfig\022a\n\033uniform_bucket_level" + + "_access\030\001 \001(\0132<.google.storage.v2.Bucket" + + ".IamConfig.UniformBucketLevelAccess\022 \n\030p" + + "ublic_access_prevention\030\003 \001(\t\032Z\n\030Uniform" + + "BucketLevelAccess\022\017\n\007enabled\030\001 \001(\010\022-\n\tlo" + + "ck_time\030\002 \001(\0132\032.google.protobuf.Timestam" + + "p\032\363\005\n\tLifecycle\0226\n\004rule\030\001 \003(\0132(.google.s" + + "torage.v2.Bucket.Lifecycle.Rule\032\255\005\n\004Rule" + + "\022?\n\006action\030\001 \001(\0132/.google.storage.v2.Buc" + + "ket.Lifecycle.Rule.Action\022E\n\tcondition\030\002" + + " \001(\01322.google.storage.v2.Bucket.Lifecycl" + + "e.Rule.Condition\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.google.type.Date\022\024\n\007is_live\030\003 \001(\010" + + "H\001\210\001\001\022\037\n\022num_newer_versions\030\004 \001(\005H\002\210\001\001\022\035" + + "\n\025matches_storage_class\030\005 \003(\t\022#\n\026days_si" + + "nce_custom_time\030\007 \001(\005H\003\210\001\001\022-\n\022custom_tim" + + "e_before\030\010 \001(\0132\021.google.type.Date\022\'\n\032day" + + "s_since_noncurrent_time\030\t \001(\005H\004\210\001\001\0221\n\026no" + + "ncurrent_time_before\030\n \001(\0132\021.google.type" + + ".Date\022\026\n\016matches_prefix\030\013 \003(\t\022\026\n\016matches" + + "_suffix\030\014 \003(\tB\013\n\t_age_daysB\n\n\010_is_liveB\025" + + "\n\023_num_newer_versionsB\031\n\027_days_since_cus" + + "tom_timeB\035\n\033_days_since_noncurrent_time\032" + + "8\n\007Logging\022\022\n\nlog_bucket\030\001 \001(\t\022\031\n\021log_ob" + + "ject_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\022retentio" + + "n_duration\030\004 \001(\0132\031.google.protobuf.Durat" + + "ion\032\261\001\n\020SoftDeletePolicy\022:\n\022retention_du" + + "ration\030\001 \001(\0132\031.google.protobuf.DurationH" + + "\000\210\001\001\0227\n\016effective_time\030\002 \001(\0132\032.google.pr" + + "otobuf.TimestampH\001\210\001\001B\025\n\023_retention_dura" + + "tionB\021\n\017_effective_time\032\035\n\nVersioning\022\017\n" + + "\007enabled\030\001 \001(\010\032;\n\007Website\022\030\n\020main_page_s" + + "uffix\030\001 \001(\t\022\026\n\016not_found_page\030\002 \001(\t\032/\n\025C" + + "ustomPlacementConfig\022\026\n\016data_locations\030\001" + + " \003(\t\032\213\002\n\tAutoclass\022\017\n\007enabled\030\001 \001(\010\0224\n\013t" + + "oggle_time\030\002 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\022#\n\026terminal_storage_class\030\003 \001(" + + "\tH\000\210\001\001\022P\n\"terminal_storage_class_update_" + + "time\030\004 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\003H\001\210\001\001B\031\n\027_terminal_storage_classB%\n#_" + + "terminal_storage_class_update_time\032-\n\025Hi" + + "erarchicalNamespace\022\024\n\007enabled\030\001 \001(\010B\003\340A" + + "\001\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.googleapis.com/Bu" + + "cket\022#projects/{project}/buckets/{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_al" + + "t\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\014" + + "project_team\030\007 \001(\0132\036.google.storage.v2.P" + + "rojectTeam\"I\n\017ChecksummedData\022\026\n\007content" + + "\030\001 \001(\014B\005\010\001\340A\001\022\023\n\006crc32c\030\002 \001(\007H\000\210\001\001B\t\n\007_c" + + "rc32c\"C\n\017ObjectChecksums\022\023\n\006crc32c\030\001 \001(\007" + + "H\000\210\001\001\022\020\n\010md5_hash\030\002 \001(\014B\t\n\007_crc32c\"\255\002\n\017H" + + "macKeyMetadata\022\017\n\002id\030\001 \001(\tB\003\340A\005\022\026\n\tacces" + + "s_id\030\002 \001(\tB\003\340A\005\022D\n\007project\030\003 \001(\tB3\340A\005\372A-", + "\n+cloudresourcemanager.googleapis.com/Pr" + + "oject\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\0224\n\013update" + + "_time\030\007 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\022\014\n\004etag\030\010 \001(\t\"\247\003\n\022NotificationConfi" + + "g\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\021c" + + "ustom_attributes\030\004 \003(\0132;.google.storage." + + "v2.NotificationConfig.CustomAttributesEn" + + "try\022\032\n\022object_name_prefix\030\005 \001(\t\022\033\n\016paylo" + + "ad_format\030\006 \001(\tB\003\340A\002\0327\n\025CustomAttributes" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:}\352" + + "Az\n)storage.googleapis.com/NotificationC" + + "onfig\022Mprojects/{project}/buckets/{bucke" + + "t}/notificationConfigs/{notification_con" + + "fig}\"L\n\022CustomerEncryption\022\034\n\024encryption" + + "_algorithm\030\001 \001(\t\022\030\n\020key_sha256_bytes\030\003 \001" + + "(\014\"\254\n\n\006Object\022\021\n\004name\030\001 \001(\tB\003\340A\005\0225\n\006buck" + + "et\030\002 \001(\tB%\340A\005\372A\037\n\035storage.googleapis.com" + + "/Bucket\022\014\n\004etag\030\033 \001(\t\022\027\n\ngeneration\030\003 \001(" + + "\003B\003\340A\005\022\033\n\016metageneration\030\004 \001(\003B\003\340A\003\022\025\n\rs" + + "torage_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\023content_dispo" + + "sition\030\010 \001(\t\022\025\n\rcache_control\030\t \001(\t\0223\n\003a" + + "cl\030\n \003(\0132&.google.storage.v2.ObjectAcces" + + "sControl\022\030\n\020content_language\030\013 \001(\t\0224\n\013de" + + "lete_time\030\014 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\022\024\n\014content_type\030\r \001(\t\0224\n\013create" + + "_time\030\016 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\022\034\n\017component_count\030\017 \001(\005B\003\340A\003\022:\n\tch" + + "ecksums\030\020 \001(\0132\".google.storage.v2.Object" + + "ChecksumsB\003\340A\003\0224\n\013update_time\030\021 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\0227\n\007kms_key\030" + + "\022 \001(\tB&\372A#\n!cloudkms.googleapis.com/Cryp" + + "toKey\022B\n\031update_storage_class_time\030\023 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\022\026\n\016tem" + + "porary_hold\030\024 \001(\010\0229\n\025retention_expire_ti" + + "me\030\025 \001(\0132\032.google.protobuf.Timestamp\0229\n\010" + + "metadata\030\026 \003(\0132\'.google.storage.v2.Objec" + + "t.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.v" + + "2.OwnerB\003\340A\003\022B\n\023customer_encryption\030\031 \001(" + + "\0132%.google.storage.v2.CustomerEncryption" + + "\022/\n\013custom_time\030\032 \001(\0132\032.google.protobuf." + + "Timestamp\022>\n\020soft_delete_time\030\034 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003H\001\210\001\001\022>\n\020har" + + "d_delete_time\030\035 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003H\002\210\001\001\032/\n\rMetadataEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\023\n\021_event_bas" + + "ed_holdB\023\n\021_soft_delete_timeB\023\n\021_hard_de" + + "lete_time\"\316\001\n\023ObjectAccessControl\022\014\n\004rol" + + "e\030\001 \001(\t\022\n\n\002id\030\002 \001(\t\022\016\n\006entity\030\003 \001(\t\022\027\n\ne" + + "ntity_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.stor" + + "age.v2.ProjectTeam\"l\n\023ListObjectsRespons" + + "e\022*\n\007objects\030\001 \003(\0132\031.google.storage.v2.O" + + "bject\022\020\n\010prefixes\030\002 \003(\t\022\027\n\017next_page_tok" + + "en\030\003 \001(\t\"3\n\013ProjectTeam\022\026\n\016project_numbe" + + "r\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\006entit" + + "y\030\001 \001(\t\022\021\n\tentity_id\030\002 \001(\t\"C\n\014ContentRan" + + "ge\022\r\n\005start\030\001 \001(\003\022\013\n\003end\030\002 \001(\003\022\027\n\017comple" + + "te_length\030\003 \001(\0032\252\'\n\007Storage\022r\n\014DeleteBuc" + + "ket\022&.google.storage.v2.DeleteBucketRequ" + + "est\032\026.google.protobuf.Empty\"\"\332A\004name\212\323\344\223" + + "\002\025\022\023\n\004name\022\013{bucket=**}\022o\n\tGetBucket\022#.g" + + "oogle.storage.v2.GetBucketRequest\032\031.goog" + + "le.storage.v2.Bucket\"\"\332A\004name\212\323\344\223\002\025\022\023\n\004n" + + "ame\022\013{bucket=**}\022\253\001\n\014CreateBucket\022&.goog" + + "le.storage.v2.CreateBucketRequest\032\031.goog" + + "le.storage.v2.Bucket\"X\332A\027parent,bucket,b" + + "ucket_id\212\323\344\223\0028\022\026\n\006parent\022\014{project=**}\022\036" + + "\n\016bucket.project\022\014{project=**}\022\205\001\n\013ListB" + + "uckets\022%.google.storage.v2.ListBucketsRe" + + "quest\032&.google.storage.v2.ListBucketsRes" + + "ponse\"\'\332A\006parent\212\323\344\223\002\030\022\026\n\006parent\022\014{proje" + + "ct=**}\022\223\001\n\031LockBucketRetentionPolicy\0223.g" + + "oogle.storage.v2.LockBucketRetentionPoli" + + "cyRequest\032\031.google.storage.v2.Bucket\"&\332A" + + "\006bucket\212\323\344\223\002\027\022\025\n\006bucket\022\013{bucket=**}\022u\n\014" + + "GetIamPolicy\022\".google.iam.v1.GetIamPolic" + + "yRequest\032\025.google.iam.v1.Policy\"*\332A\010reso" + + "urce\212\323\344\223\002\031\022\027\n\010resource\022\013{bucket=**}\022|\n\014S" + + "etIamPolicy\022\".google.iam.v1.SetIamPolicy" + + "Request\032\025.google.iam.v1.Policy\"1\332A\017resou" + + "rce,policy\212\323\344\223\002\031\022\027\n\010resource\022\013{bucket=**" + + "}\022\327\001\n\022TestIamPermissions\022(.google.iam.v1" + + ".TestIamPermissionsRequest\032).google.iam." + + "v1.TestIamPermissionsResponse\"l\332A\024resour" + + "ce,permissions\212\323\344\223\002O\022\027\n\010resource\022\013{bucke" + + "t=**}\0224\n\010resource\022({bucket=projects/*/bu" + + "ckets/*}/objects/**\022\212\001\n\014UpdateBucket\022&.g" + + "oogle.storage.v2.UpdateBucketRequest\032\031.g" + + "oogle.storage.v2.Bucket\"7\332A\022bucket,updat" + + "e_mask\212\323\344\223\002\034\022\032\n\013bucket.name\022\013{bucket=**}" + + "\022\237\001\n\030DeleteNotificationConfig\0222.google.s" + + "torage.v2.DeleteNotificationConfigReques" + + "t\032\026.google.protobuf.Empty\"7\332A\004name\212\323\344\223\002*" + + "\022(\n\004name\022 {bucket=projects/*/buckets/*}/" + + "**\022\250\001\n\025GetNotificationConfig\022/.google.st" + + "orage.v2.GetNotificationConfigRequest\032%." + + "google.storage.v2.NotificationConfig\"7\332A" + + "\004name\212\323\344\223\002*\022(\n\004name\022 {bucket=projects/*/" + + "buckets/*}/**\022\261\001\n\030CreateNotificationConf" + + "ig\0222.google.storage.v2.CreateNotificatio" + + "nConfigRequest\032%.google.storage.v2.Notif" + + "icationConfig\":\332A\032parent,notification_co" + + "nfig\212\323\344\223\002\027\022\025\n\006parent\022\013{bucket=**}\022\250\001\n\027Li" + + "stNotificationConfigs\0221.google.storage.v" + + "2.ListNotificationConfigsRequest\0322.googl" + + "e.storage.v2.ListNotificationConfigsResp" + + "onse\"&\332A\006parent\212\323\344\223\002\027\022\025\n\006parent\022\013{bucket" + + "=**}\022~\n\rComposeObject\022\'.google.storage.v" + + "2.ComposeObjectRequest\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.s" + + "torage.v2.DeleteObjectRequest\032\026.google.p" + + "rotobuf.Empty\"H\332A\rbucket,object\332A\030bucket" + + ",object,generation\212\323\344\223\002\027\022\025\n\006bucket\022\013{buc" + + "ket=**}\022\215\001\n\rRestoreObject\022\'.google.stora" + + "ge.v2.RestoreObjectRequest\032\031.google.stor" + + "age.v2.Object\"8\332A\030bucket,object,generati" + + "on\212\323\344\223\002\027\022\025\n\006bucket\022\013{bucket=**}\022\272\001\n\024Canc" + + "elResumableWrite\022..google.storage.v2.Can" + + "celResumableWriteRequest\032/.google.storag" + + "e.v2.CancelResumableWriteResponse\"A\332A\tup" + + "load_id\212\323\344\223\002/\022-\n\tupload_id\022 {bucket=proj" + + "ects/*/buckets/*}/**\022\225\001\n\tGetObject\022#.goo" + + "gle.storage.v2.GetObjectRequest\032\031.google" + + ".storage.v2.Object\"H\332A\rbucket,object\332A\030b" + + "ucket,object,generation\212\323\344\223\002\027\022\025\n\006bucket\022" + + "\013{bucket=**}\022\245\001\n\nReadObject\022$.google.sto" + + "rage.v2.ReadObjectRequest\032%.google.stora" + + "ge.v2.ReadObjectResponse\"H\332A\rbucket,obje" + + "ct\332A\030bucket,object,generation\212\323\344\223\002\027\022\025\n\006b" + + "ucket\022\013{bucket=**}0\001\022\214\001\n\014UpdateObject\022&." + + "google.storage.v2.UpdateObjectRequest\032\031." + + "google.storage.v2.Object\"9\332A\022object,upda" + + "te_mask\212\323\344\223\002\036\022\034\n\robject.bucket\022\013{bucket=" + + "**}\022`\n\013WriteObject\022%.google.storage.v2.W" + + "riteObjectRequest\032&.google.storage.v2.Wr" + + "iteObjectResponse\"\000(\001\022n\n\017BidiWriteObject" + + "\022).google.storage.v2.BidiWriteObjectRequ" + + "est\032*.google.storage.v2.BidiWriteObjectR" + + "esponse\"\000(\0010\001\022\204\001\n\013ListObjects\022%.google.s" + + "torage.v2.ListObjectsRequest\032&.google.st" + + "orage.v2.ListObjectsResponse\"&\332A\006parent\212" + + "\323\344\223\002\027\022\025\n\006parent\022\013{bucket=**}\022\230\001\n\rRewrite" + + "Object\022\'.google.storage.v2.RewriteObject" + + "Request\032\".google.storage.v2.RewriteRespo" + + "nse\":\212\323\344\223\0024\022\017\n\rsource_bucket\022!\n\022destinat" + + "ion_bucket\022\013{bucket=**}\022\256\001\n\023StartResumab" + + "leWrite\022-.google.storage.v2.StartResumab" + + "leWriteRequest\032..google.storage.v2.Start" + + "ResumableWriteResponse\"8\212\323\344\223\0022\0220\n!write_" + + "object_spec.resource.bucket\022\013{bucket=**}" + + "\022\256\001\n\020QueryWriteStatus\022*.google.storage.v" + + "2.QueryWriteStatusRequest\032+.google.stora" + + "ge.v2.QueryWriteStatusResponse\"A\332A\tuploa" + + "d_id\212\323\344\223\002/\022-\n\tupload_id\022 {bucket=project" + + "s/*/buckets/*}/**\022\200\001\n\021GetServiceAccount\022" + + "+.google.storage.v2.GetServiceAccountReq" + + "uest\032!.google.storage.v2.ServiceAccount\"" + + "\033\332A\007project\212\323\344\223\002\013\022\t\n\007project\022\225\001\n\rCreateH" + + "macKey\022\'.google.storage.v2.CreateHmacKey" + + "Request\032(.google.storage.v2.CreateHmacKe" + + "yResponse\"1\332A\035project,service_account_em" + + "ail\212\323\344\223\002\013\022\t\n\007project\022w\n\rDeleteHmacKey\022\'." + + "google.storage.v2.DeleteHmacKeyRequest\032\026" + + ".google.protobuf.Empty\"%\332A\021access_id,pro" + + "ject\212\323\344\223\002\013\022\t\n\007project\022}\n\nGetHmacKey\022$.go" + + "ogle.storage.v2.GetHmacKeyRequest\032\".goog" + + "le.storage.v2.HmacKeyMetadata\"%\332A\021access" + + "_id,project\212\323\344\223\002\013\022\t\n\007project\022|\n\014ListHmac" + + "Keys\022&.google.storage.v2.ListHmacKeysReq" + + "uest\032\'.google.storage.v2.ListHmacKeysRes" + + "ponse\"\033\332A\007project\212\323\344\223\002\013\022\t\n\007project\022\235\001\n\rU" + + "pdateHmacKey\022\'.google.storage.v2.UpdateH" + + "macKeyRequest\032\".google.storage.v2.HmacKe" + + "yMetadata\"?\332A\024hmac_key,update_mask\212\323\344\223\002\"" + + "\022 \n\020hmac_key.project\022\014{project=**}\032\247\002\312A\026" + + "storage.googleapis.com\322A\212\002https://www.go" + + "ogleapis.com/auth/cloud-platform,https:/" + + "/www.googleapis.com/auth/cloud-platform." + + "read-only,https://www.googleapis.com/aut" + + "h/devstorage.full_control,https://www.go" + + "ogleapis.com/auth/devstorage.read_only,h" + + "ttps://www.googleapis.com/auth/devstorag" + + "e.read_writeB\342\001\n\025com.google.storage.v2B\014" + + "StorageProtoP\001Z>cloud.google.com/go/stor" + + "age/internal/apiv2/storagepb;storagepb\352A" + + "x\n!cloudkms.googleapis.com/CryptoKey\022Spr" + + "ojects/{project}/locations/{location}/ke" + + "yRings/{key_ring}/cryptoKeys/{crypto_key" + + "}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.api.RoutingProto.getDescriptor(), + com.google.iam.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.DateProto.getDescriptor(), + }); + internal_static_google_storage_v2_DeleteBucketRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_storage_v2_DeleteBucketRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_DeleteBucketRequest_descriptor, + new java.lang.String[] { + "Name", "IfMetagenerationMatch", "IfMetagenerationNotMatch", + }); + internal_static_google_storage_v2_GetBucketRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_storage_v2_GetBucketRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_GetBucketRequest_descriptor, + new java.lang.String[] { + "Name", "IfMetagenerationMatch", "IfMetagenerationNotMatch", "ReadMask", + }); + internal_static_google_storage_v2_CreateBucketRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_storage_v2_CreateBucketRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_CreateBucketRequest_descriptor, + new java.lang.String[] { + "Parent", "Bucket", "BucketId", "PredefinedAcl", "PredefinedDefaultObjectAcl", + }); + internal_static_google_storage_v2_ListBucketsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_storage_v2_ListBucketsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ListBucketsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Prefix", "ReadMask", + }); + internal_static_google_storage_v2_ListBucketsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_storage_v2_ListBucketsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ListBucketsResponse_descriptor, + new java.lang.String[] { + "Buckets", "NextPageToken", + }); + internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_LockBucketRetentionPolicyRequest_descriptor, + new java.lang.String[] { + "Bucket", "IfMetagenerationMatch", + }); + internal_static_google_storage_v2_UpdateBucketRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_storage_v2_UpdateBucketRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_UpdateBucketRequest_descriptor, + new java.lang.String[] { + "Bucket", + "IfMetagenerationMatch", + "IfMetagenerationNotMatch", + "PredefinedAcl", + "PredefinedDefaultObjectAcl", + "UpdateMask", + }); + internal_static_google_storage_v2_DeleteNotificationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_storage_v2_DeleteNotificationConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_DeleteNotificationConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_storage_v2_GetNotificationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_storage_v2_GetNotificationConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_GetNotificationConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_storage_v2_CreateNotificationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_storage_v2_CreateNotificationConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_CreateNotificationConfigRequest_descriptor, + new java.lang.String[] { + "Parent", "NotificationConfig", + }); + internal_static_google_storage_v2_ListNotificationConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_storage_v2_ListNotificationConfigsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ListNotificationConfigsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_storage_v2_ListNotificationConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_storage_v2_ListNotificationConfigsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ListNotificationConfigsResponse_descriptor, + new java.lang.String[] { + "NotificationConfigs", "NextPageToken", + }); + internal_static_google_storage_v2_ComposeObjectRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_storage_v2_ComposeObjectRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ComposeObjectRequest_descriptor, + new java.lang.String[] { + "Destination", + "SourceObjects", + "DestinationPredefinedAcl", + "IfGenerationMatch", + "IfMetagenerationMatch", + "KmsKey", + "CommonObjectRequestParams", + "ObjectChecksums", + }); + internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor = + internal_static_google_storage_v2_ComposeObjectRequest_descriptor.getNestedTypes().get(0); + internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor, + new java.lang.String[] { + "Name", "Generation", "ObjectPreconditions", + }); + internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_descriptor = + internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_descriptor + .getNestedTypes() + .get(0); + internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ComposeObjectRequest_SourceObject_ObjectPreconditions_descriptor, + new java.lang.String[] { + "IfGenerationMatch", + }); + internal_static_google_storage_v2_DeleteObjectRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_storage_v2_DeleteObjectRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_DeleteObjectRequest_descriptor, + new java.lang.String[] { + "Bucket", + "Object", + "Generation", + "IfGenerationMatch", + "IfGenerationNotMatch", + "IfMetagenerationMatch", + "IfMetagenerationNotMatch", + "CommonObjectRequestParams", + }); + internal_static_google_storage_v2_RestoreObjectRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_storage_v2_RestoreObjectRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_RestoreObjectRequest_descriptor, + new java.lang.String[] { + "Bucket", + "Object", + "Generation", + "IfGenerationMatch", + "IfGenerationNotMatch", + "IfMetagenerationMatch", + "IfMetagenerationNotMatch", + "CopySourceAcl", + "CommonObjectRequestParams", + }); + internal_static_google_storage_v2_CancelResumableWriteRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_storage_v2_CancelResumableWriteRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_CancelResumableWriteRequest_descriptor, + new java.lang.String[] { + "UploadId", + }); + internal_static_google_storage_v2_CancelResumableWriteResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_storage_v2_CancelResumableWriteResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_CancelResumableWriteResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_storage_v2_ReadObjectRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_storage_v2_ReadObjectRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ReadObjectRequest_descriptor, + new java.lang.String[] { + "Bucket", + "Object", + "Generation", + "ReadOffset", + "ReadLimit", + "IfGenerationMatch", + "IfGenerationNotMatch", + "IfMetagenerationMatch", + "IfMetagenerationNotMatch", + "CommonObjectRequestParams", + "ReadMask", + }); + internal_static_google_storage_v2_GetObjectRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_storage_v2_GetObjectRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_GetObjectRequest_descriptor, + new java.lang.String[] { + "Bucket", + "Object", + "Generation", + "SoftDeleted", + "IfGenerationMatch", + "IfGenerationNotMatch", + "IfMetagenerationMatch", + "IfMetagenerationNotMatch", + "CommonObjectRequestParams", + "ReadMask", + }); + internal_static_google_storage_v2_ReadObjectResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_storage_v2_ReadObjectResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ReadObjectResponse_descriptor, + new java.lang.String[] { + "ChecksummedData", "ObjectChecksums", "ContentRange", "Metadata", + }); + internal_static_google_storage_v2_WriteObjectSpec_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_storage_v2_WriteObjectSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_WriteObjectSpec_descriptor, + new java.lang.String[] { + "Resource", + "PredefinedAcl", + "IfGenerationMatch", + "IfGenerationNotMatch", + "IfMetagenerationMatch", + "IfMetagenerationNotMatch", + "ObjectSize", + }); + internal_static_google_storage_v2_WriteObjectRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_storage_v2_WriteObjectRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_WriteObjectRequest_descriptor, + new java.lang.String[] { + "UploadId", + "WriteObjectSpec", + "WriteOffset", + "ChecksummedData", + "ObjectChecksums", + "FinishWrite", + "CommonObjectRequestParams", + "FirstMessage", + "Data", + }); + internal_static_google_storage_v2_WriteObjectResponse_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_storage_v2_WriteObjectResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_WriteObjectResponse_descriptor, + new java.lang.String[] { + "PersistedSize", "Resource", "WriteStatus", + }); + internal_static_google_storage_v2_BidiWriteObjectRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_storage_v2_BidiWriteObjectRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_BidiWriteObjectRequest_descriptor, + new java.lang.String[] { + "UploadId", + "WriteObjectSpec", + "WriteOffset", + "ChecksummedData", + "ObjectChecksums", + "StateLookup", + "Flush", + "FinishWrite", + "CommonObjectRequestParams", + "FirstMessage", + "Data", + }); + internal_static_google_storage_v2_BidiWriteObjectResponse_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_storage_v2_BidiWriteObjectResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_BidiWriteObjectResponse_descriptor, + new java.lang.String[] { + "PersistedSize", "Resource", "WriteStatus", + }); + internal_static_google_storage_v2_ListObjectsRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_storage_v2_ListObjectsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ListObjectsRequest_descriptor, + new java.lang.String[] { + "Parent", + "PageSize", + "PageToken", + "Delimiter", + "IncludeTrailingDelimiter", + "Prefix", + "Versions", + "ReadMask", + "LexicographicStart", + "LexicographicEnd", + "SoftDeleted", + "IncludeFoldersAsPrefixes", + "MatchGlob", + }); + internal_static_google_storage_v2_QueryWriteStatusRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_storage_v2_QueryWriteStatusRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_QueryWriteStatusRequest_descriptor, + new java.lang.String[] { + "UploadId", "CommonObjectRequestParams", + }); + internal_static_google_storage_v2_QueryWriteStatusResponse_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_storage_v2_QueryWriteStatusResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_QueryWriteStatusResponse_descriptor, + new java.lang.String[] { + "PersistedSize", "Resource", "WriteStatus", + }); + internal_static_google_storage_v2_RewriteObjectRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_storage_v2_RewriteObjectRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_RewriteObjectRequest_descriptor, + new java.lang.String[] { + "DestinationName", + "DestinationBucket", + "DestinationKmsKey", + "Destination", + "SourceBucket", + "SourceObject", + "SourceGeneration", + "RewriteToken", + "DestinationPredefinedAcl", + "IfGenerationMatch", + "IfGenerationNotMatch", + "IfMetagenerationMatch", + "IfMetagenerationNotMatch", + "IfSourceGenerationMatch", + "IfSourceGenerationNotMatch", + "IfSourceMetagenerationMatch", + "IfSourceMetagenerationNotMatch", + "MaxBytesRewrittenPerCall", + "CopySourceEncryptionAlgorithm", + "CopySourceEncryptionKeyBytes", + "CopySourceEncryptionKeySha256Bytes", + "CommonObjectRequestParams", + "ObjectChecksums", + }); + internal_static_google_storage_v2_RewriteResponse_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_storage_v2_RewriteResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_RewriteResponse_descriptor, + new java.lang.String[] { + "TotalBytesRewritten", "ObjectSize", "Done", "RewriteToken", "Resource", + }); + internal_static_google_storage_v2_StartResumableWriteRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_storage_v2_StartResumableWriteRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_StartResumableWriteRequest_descriptor, + new java.lang.String[] { + "WriteObjectSpec", "CommonObjectRequestParams", "ObjectChecksums", + }); + internal_static_google_storage_v2_StartResumableWriteResponse_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_storage_v2_StartResumableWriteResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_StartResumableWriteResponse_descriptor, + new java.lang.String[] { + "UploadId", + }); + internal_static_google_storage_v2_UpdateObjectRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_storage_v2_UpdateObjectRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_UpdateObjectRequest_descriptor, + new java.lang.String[] { + "Object", + "IfGenerationMatch", + "IfGenerationNotMatch", + "IfMetagenerationMatch", + "IfMetagenerationNotMatch", + "PredefinedAcl", + "UpdateMask", + "CommonObjectRequestParams", + }); + internal_static_google_storage_v2_GetServiceAccountRequest_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_storage_v2_GetServiceAccountRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_GetServiceAccountRequest_descriptor, + new java.lang.String[] { + "Project", + }); + internal_static_google_storage_v2_CreateHmacKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_storage_v2_CreateHmacKeyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_CreateHmacKeyRequest_descriptor, + new java.lang.String[] { + "Project", "ServiceAccountEmail", + }); + internal_static_google_storage_v2_CreateHmacKeyResponse_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_storage_v2_CreateHmacKeyResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_CreateHmacKeyResponse_descriptor, + new java.lang.String[] { + "Metadata", "SecretKeyBytes", + }); + internal_static_google_storage_v2_DeleteHmacKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_storage_v2_DeleteHmacKeyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_DeleteHmacKeyRequest_descriptor, + new java.lang.String[] { + "AccessId", "Project", + }); + internal_static_google_storage_v2_GetHmacKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_storage_v2_GetHmacKeyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_GetHmacKeyRequest_descriptor, + new java.lang.String[] { + "AccessId", "Project", + }); + internal_static_google_storage_v2_ListHmacKeysRequest_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_storage_v2_ListHmacKeysRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ListHmacKeysRequest_descriptor, + new java.lang.String[] { + "Project", "PageSize", "PageToken", "ServiceAccountEmail", "ShowDeletedKeys", + }); + internal_static_google_storage_v2_ListHmacKeysResponse_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_storage_v2_ListHmacKeysResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ListHmacKeysResponse_descriptor, + new java.lang.String[] { + "HmacKeys", "NextPageToken", + }); + internal_static_google_storage_v2_UpdateHmacKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_storage_v2_UpdateHmacKeyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_UpdateHmacKeyRequest_descriptor, + new java.lang.String[] { + "HmacKey", "UpdateMask", + }); + internal_static_google_storage_v2_CommonObjectRequestParams_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_storage_v2_CommonObjectRequestParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_CommonObjectRequestParams_descriptor, + new java.lang.String[] { + "EncryptionAlgorithm", "EncryptionKeyBytes", "EncryptionKeySha256Bytes", + }); + internal_static_google_storage_v2_ServiceConstants_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_google_storage_v2_ServiceConstants_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ServiceConstants_descriptor, + new java.lang.String[] {}); + internal_static_google_storage_v2_Bucket_descriptor = getDescriptor().getMessageTypes().get(43); + internal_static_google_storage_v2_Bucket_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_descriptor, + new java.lang.String[] { + "Name", + "BucketId", + "Etag", + "Project", + "Metageneration", + "Location", + "LocationType", + "StorageClass", + "Rpo", + "Acl", + "DefaultObjectAcl", + "Lifecycle", + "CreateTime", + "Cors", + "UpdateTime", + "DefaultEventBasedHold", + "Labels", + "Website", + "Versioning", + "Logging", + "Owner", + "Encryption", + "Billing", + "RetentionPolicy", + "IamConfig", + "SatisfiesPzs", + "CustomPlacementConfig", + "Autoclass", + "HierarchicalNamespace", + "SoftDeletePolicy", + }); + internal_static_google_storage_v2_Bucket_Billing_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(0); + internal_static_google_storage_v2_Bucket_Billing_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_Billing_descriptor, + new java.lang.String[] { + "RequesterPays", + }); + internal_static_google_storage_v2_Bucket_Cors_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(1); + internal_static_google_storage_v2_Bucket_Cors_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_Cors_descriptor, + new java.lang.String[] { + "Origin", "Method", "ResponseHeader", "MaxAgeSeconds", + }); + internal_static_google_storage_v2_Bucket_Encryption_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(2); + internal_static_google_storage_v2_Bucket_Encryption_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_Encryption_descriptor, + new java.lang.String[] { + "DefaultKmsKey", + }); + internal_static_google_storage_v2_Bucket_IamConfig_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(3); + internal_static_google_storage_v2_Bucket_IamConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_IamConfig_descriptor, + new java.lang.String[] { + "UniformBucketLevelAccess", "PublicAccessPrevention", + }); + internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_descriptor = + internal_static_google_storage_v2_Bucket_IamConfig_descriptor.getNestedTypes().get(0); + internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_IamConfig_UniformBucketLevelAccess_descriptor, + new java.lang.String[] { + "Enabled", "LockTime", + }); + internal_static_google_storage_v2_Bucket_Lifecycle_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(4); + internal_static_google_storage_v2_Bucket_Lifecycle_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_Lifecycle_descriptor, + new java.lang.String[] { + "Rule", + }); + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor = + internal_static_google_storage_v2_Bucket_Lifecycle_descriptor.getNestedTypes().get(0); + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor, + new java.lang.String[] { + "Action", "Condition", + }); + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_descriptor = + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor.getNestedTypes().get(0); + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Action_descriptor, + new java.lang.String[] { + "Type", "StorageClass", + }); + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_descriptor = + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_descriptor.getNestedTypes().get(1); + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_Lifecycle_Rule_Condition_descriptor, + new java.lang.String[] { + "AgeDays", + "CreatedBefore", + "IsLive", + "NumNewerVersions", + "MatchesStorageClass", + "DaysSinceCustomTime", + "CustomTimeBefore", + "DaysSinceNoncurrentTime", + "NoncurrentTimeBefore", + "MatchesPrefix", + "MatchesSuffix", + }); + internal_static_google_storage_v2_Bucket_Logging_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(5); + internal_static_google_storage_v2_Bucket_Logging_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_Logging_descriptor, + new java.lang.String[] { + "LogBucket", "LogObjectPrefix", + }); + internal_static_google_storage_v2_Bucket_RetentionPolicy_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(6); + internal_static_google_storage_v2_Bucket_RetentionPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_RetentionPolicy_descriptor, + new java.lang.String[] { + "EffectiveTime", "IsLocked", "RetentionDuration", + }); + internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(7); + internal_static_google_storage_v2_Bucket_SoftDeletePolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_SoftDeletePolicy_descriptor, + new java.lang.String[] { + "RetentionDuration", "EffectiveTime", + }); + internal_static_google_storage_v2_Bucket_Versioning_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(8); + internal_static_google_storage_v2_Bucket_Versioning_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_Versioning_descriptor, + new java.lang.String[] { + "Enabled", + }); + internal_static_google_storage_v2_Bucket_Website_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(9); + internal_static_google_storage_v2_Bucket_Website_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_Website_descriptor, + new java.lang.String[] { + "MainPageSuffix", "NotFoundPage", + }); + internal_static_google_storage_v2_Bucket_CustomPlacementConfig_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(10); + internal_static_google_storage_v2_Bucket_CustomPlacementConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_CustomPlacementConfig_descriptor, + new java.lang.String[] { + "DataLocations", + }); + internal_static_google_storage_v2_Bucket_Autoclass_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(11); + internal_static_google_storage_v2_Bucket_Autoclass_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_Autoclass_descriptor, + new java.lang.String[] { + "Enabled", "ToggleTime", "TerminalStorageClass", "TerminalStorageClassUpdateTime", + }); + internal_static_google_storage_v2_Bucket_HierarchicalNamespace_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(12); + internal_static_google_storage_v2_Bucket_HierarchicalNamespace_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_HierarchicalNamespace_descriptor, + new java.lang.String[] { + "Enabled", + }); + internal_static_google_storage_v2_Bucket_LabelsEntry_descriptor = + internal_static_google_storage_v2_Bucket_descriptor.getNestedTypes().get(13); + internal_static_google_storage_v2_Bucket_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Bucket_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_storage_v2_BucketAccessControl_descriptor = + getDescriptor().getMessageTypes().get(44); + internal_static_google_storage_v2_BucketAccessControl_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_BucketAccessControl_descriptor, + new java.lang.String[] { + "Role", + "Id", + "Entity", + "EntityAlt", + "EntityId", + "Etag", + "Email", + "Domain", + "ProjectTeam", + }); + internal_static_google_storage_v2_ChecksummedData_descriptor = + getDescriptor().getMessageTypes().get(45); + internal_static_google_storage_v2_ChecksummedData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ChecksummedData_descriptor, + new java.lang.String[] { + "Content", "Crc32C", + }); + internal_static_google_storage_v2_ObjectChecksums_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_google_storage_v2_ObjectChecksums_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ObjectChecksums_descriptor, + new java.lang.String[] { + "Crc32C", "Md5Hash", + }); + internal_static_google_storage_v2_HmacKeyMetadata_descriptor = + getDescriptor().getMessageTypes().get(47); + internal_static_google_storage_v2_HmacKeyMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_HmacKeyMetadata_descriptor, + new java.lang.String[] { + "Id", + "AccessId", + "Project", + "ServiceAccountEmail", + "State", + "CreateTime", + "UpdateTime", + "Etag", + }); + internal_static_google_storage_v2_NotificationConfig_descriptor = + getDescriptor().getMessageTypes().get(48); + internal_static_google_storage_v2_NotificationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_NotificationConfig_descriptor, + new java.lang.String[] { + "Name", + "Topic", + "Etag", + "EventTypes", + "CustomAttributes", + "ObjectNamePrefix", + "PayloadFormat", + }); + internal_static_google_storage_v2_NotificationConfig_CustomAttributesEntry_descriptor = + internal_static_google_storage_v2_NotificationConfig_descriptor.getNestedTypes().get(0); + internal_static_google_storage_v2_NotificationConfig_CustomAttributesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_NotificationConfig_CustomAttributesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_storage_v2_CustomerEncryption_descriptor = + getDescriptor().getMessageTypes().get(49); + internal_static_google_storage_v2_CustomerEncryption_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_CustomerEncryption_descriptor, + new java.lang.String[] { + "EncryptionAlgorithm", "KeySha256Bytes", + }); + internal_static_google_storage_v2_Object_descriptor = getDescriptor().getMessageTypes().get(50); + internal_static_google_storage_v2_Object_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Object_descriptor, + new java.lang.String[] { + "Name", + "Bucket", + "Etag", + "Generation", + "Metageneration", + "StorageClass", + "Size", + "ContentEncoding", + "ContentDisposition", + "CacheControl", + "Acl", + "ContentLanguage", + "DeleteTime", + "ContentType", + "CreateTime", + "ComponentCount", + "Checksums", + "UpdateTime", + "KmsKey", + "UpdateStorageClassTime", + "TemporaryHold", + "RetentionExpireTime", + "Metadata", + "EventBasedHold", + "Owner", + "CustomerEncryption", + "CustomTime", + "SoftDeleteTime", + "HardDeleteTime", + }); + internal_static_google_storage_v2_Object_MetadataEntry_descriptor = + internal_static_google_storage_v2_Object_descriptor.getNestedTypes().get(0); + internal_static_google_storage_v2_Object_MetadataEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Object_MetadataEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_storage_v2_ObjectAccessControl_descriptor = + getDescriptor().getMessageTypes().get(51); + internal_static_google_storage_v2_ObjectAccessControl_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ObjectAccessControl_descriptor, + new java.lang.String[] { + "Role", + "Id", + "Entity", + "EntityAlt", + "EntityId", + "Etag", + "Email", + "Domain", + "ProjectTeam", + }); + internal_static_google_storage_v2_ListObjectsResponse_descriptor = + getDescriptor().getMessageTypes().get(52); + internal_static_google_storage_v2_ListObjectsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ListObjectsResponse_descriptor, + new java.lang.String[] { + "Objects", "Prefixes", "NextPageToken", + }); + internal_static_google_storage_v2_ProjectTeam_descriptor = + getDescriptor().getMessageTypes().get(53); + internal_static_google_storage_v2_ProjectTeam_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ProjectTeam_descriptor, + new java.lang.String[] { + "ProjectNumber", "Team", + }); + internal_static_google_storage_v2_ServiceAccount_descriptor = + getDescriptor().getMessageTypes().get(54); + internal_static_google_storage_v2_ServiceAccount_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ServiceAccount_descriptor, + new java.lang.String[] { + "EmailAddress", + }); + internal_static_google_storage_v2_Owner_descriptor = getDescriptor().getMessageTypes().get(55); + internal_static_google_storage_v2_Owner_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_Owner_descriptor, + new java.lang.String[] { + "Entity", "EntityId", + }); + internal_static_google_storage_v2_ContentRange_descriptor = + getDescriptor().getMessageTypes().get(56); + internal_static_google_storage_v2_ContentRange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_storage_v2_ContentRange_descriptor, + new java.lang.String[] { + "Start", "End", "CompleteLength", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.api.RoutingProto.routing); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.api.RoutingProto.getDescriptor(); + com.google.iam.v1.IamPolicyProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.DateProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/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 76% 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 31b018a999..85cd112fc2 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,21 +20,24 @@ 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_ = ""; @@ -27,34 +45,38 @@ private UpdateBucketRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateBucketRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_UpdateBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_UpdateBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_UpdateBucketRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_UpdateBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.UpdateBucketRequest.class, com.google.storage.v2.UpdateBucketRequest.Builder.class); + com.google.storage.v2.UpdateBucketRequest.class, + com.google.storage.v2.UpdateBucketRequest.Builder.class); } private int bitField0_; public static final int BUCKET_FIELD_NUMBER = 1; private com.google.storage.v2.Bucket bucket_; /** + * + * *
                * Required. The bucket to update.
                * The bucket's `name` field will be used to identify the bucket.
                * 
            * * .google.storage.v2.Bucket bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the bucket field is set. */ @java.lang.Override @@ -62,12 +84,15 @@ 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. */ @java.lang.Override @@ -75,6 +100,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.
            @@ -90,12 +117,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 @@ -103,12 +133,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 @@ -119,12 +152,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 @@ -132,12 +168,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 @@ -146,9 +185,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",
            @@ -156,6 +198,7 @@ public long getIfMetagenerationNotMatch() {
                * 
            * * string predefined_acl = 8; + * * @return The predefinedAcl. */ @java.lang.Override @@ -164,14 +207,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",
            @@ -179,16 +223,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 { @@ -197,9 +240,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",
            @@ -207,6 +253,7 @@ public java.lang.String getPredefinedAcl() {
                * 
            * * string predefined_default_object_acl = 9; + * * @return The predefinedDefaultObjectAcl. */ @java.lang.Override @@ -215,14 +262,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",
            @@ -230,16 +278,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 { @@ -250,6 +297,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.
                *
            @@ -261,7 +310,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 @@ -269,6 +320,8 @@ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
                * Required. List of fields to be updated.
                *
            @@ -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.
                *
            @@ -299,7 +356,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() { @@ -307,6 +365,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -318,8 +377,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.writeMessage(1, getBucket()); } @@ -348,26 +406,23 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBucket()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBucket()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, ifMetagenerationMatch_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, ifMetagenerationMatch_); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, ifMetagenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, ifMetagenerationNotMatch_); } if (((bitField0_ & 0x00000008) != 0)) { - 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; @@ -377,36 +432,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; @@ -425,13 +476,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(); @@ -446,120 +495,127 @@ 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() @@ -567,18 +623,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) { getBucketFieldBuilder(); getUpdateMaskFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -601,9 +657,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 @@ -622,8 +678,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; } @@ -632,9 +691,7 @@ private void buildPartial0(com.google.storage.v2.UpdateBucketRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.bucket_ = bucketBuilder_ == null - ? bucket_ - : bucketBuilder_.build(); + result.bucket_ = bucketBuilder_ == null ? bucket_ : bucketBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { @@ -652,9 +709,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(); to_bitField0_ |= 0x00000008; } result.bitField0_ |= to_bitField0_; @@ -664,38 +719,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; @@ -752,46 +808,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) { @@ -801,30 +860,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() { @@ -835,6 +904,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.
            @@ -856,6 +927,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.
            @@ -863,8 +936,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 {
            @@ -875,6 +947,8 @@ public Builder setBucket(
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * Required. The bucket to update.
                  * The bucket's `name` field will be used to identify the bucket.
            @@ -884,9 +958,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;
            @@ -901,6 +975,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.
            @@ -919,6 +995,8 @@ public Builder clearBucket() {
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * Required. The bucket to update.
                  * The bucket's `name` field will be used to identify the bucket.
            @@ -932,6 +1010,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.
            @@ -943,11 +1023,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.
            @@ -956,27 +1037,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 @@ -984,12 +1071,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 @@ -997,12 +1087,15 @@ 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. */ @@ -1014,12 +1107,15 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** + * + * *
                  * If set, will only modify the bucket if its metageneration matches this
                  * value.
                  * 
            * * optional int64 if_metageneration_match = 2; + * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -1029,14 +1125,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 @@ -1044,12 +1143,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 @@ -1057,12 +1159,15 @@ 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. */ @@ -1074,12 +1179,15 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** + * + * *
                  * If set, will only modify the bucket if its metageneration does not match
                  * this value.
                  * 
            * * optional int64 if_metageneration_not_match = 3; + * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -1091,6 +1199,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",
            @@ -1098,13 +1208,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; @@ -1113,6 +1223,8 @@ public java.lang.String getPredefinedAcl() { } } /** + * + * *
                  * Apply a predefined set of access controls to this bucket.
                  * Valid values are "authenticatedRead", "private", "projectPrivate",
            @@ -1120,15 +1232,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 { @@ -1136,6 +1247,8 @@ public java.lang.String getPredefinedAcl() { } } /** + * + * *
                  * Apply a predefined set of access controls to this bucket.
                  * Valid values are "authenticatedRead", "private", "projectPrivate",
            @@ -1143,18 +1256,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",
            @@ -1162,6 +1279,7 @@ public Builder setPredefinedAcl(
                  * 
            * * string predefined_acl = 8; + * * @return This builder for chaining. */ public Builder clearPredefinedAcl() { @@ -1171,6 +1289,8 @@ public Builder clearPredefinedAcl() { return this; } /** + * + * *
                  * Apply a predefined set of access controls to this bucket.
                  * Valid values are "authenticatedRead", "private", "projectPrivate",
            @@ -1178,12 +1298,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; @@ -1193,6 +1315,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",
            @@ -1200,13 +1324,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; @@ -1215,6 +1339,8 @@ public java.lang.String getPredefinedDefaultObjectAcl() { } } /** + * + * *
                  * Apply a predefined set of default object access controls to this bucket.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -1222,15 +1348,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 { @@ -1238,6 +1363,8 @@ public java.lang.String getPredefinedDefaultObjectAcl() { } } /** + * + * *
                  * Apply a predefined set of default object access controls to this bucket.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -1245,18 +1372,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",
            @@ -1264,6 +1395,7 @@ public Builder setPredefinedDefaultObjectAcl(
                  * 
            * * string predefined_default_object_acl = 9; + * * @return This builder for chaining. */ public Builder clearPredefinedDefaultObjectAcl() { @@ -1273,6 +1405,8 @@ public Builder clearPredefinedDefaultObjectAcl() { return this; } /** + * + * *
                  * Apply a predefined set of default object access controls to this bucket.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -1280,12 +1414,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; @@ -1295,8 +1431,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.
                  *
            @@ -1308,13 +1449,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.
                  *
            @@ -1326,17 +1471,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.
                  *
            @@ -1348,7 +1499,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) { @@ -1364,6 +1516,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
                  * Required. List of fields to be updated.
                  *
            @@ -1375,10 +1529,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 { @@ -1389,6 +1543,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
                  * Required. List of fields to be updated.
                  *
            @@ -1400,13 +1556,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; @@ -1421,6 +1578,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
                  * Required. List of fields to be updated.
                  *
            @@ -1432,7 +1591,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); @@ -1445,6 +1605,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
                  * Required. List of fields to be updated.
                  *
            @@ -1456,7 +1618,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; @@ -1464,6 +1627,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
                  * Required. List of fields to be updated.
                  *
            @@ -1475,17 +1640,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.
                  *
            @@ -1497,24 +1666,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); } @@ -1524,12 +1697,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(); } @@ -1538,27 +1711,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; @@ -1573,6 +1746,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 83% 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 56fb05950c..98179a9935 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,34 +1,58 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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.
            @@ -39,48 +63,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",
            @@ -88,10 +126,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",
            @@ -99,12 +140,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",
            @@ -112,10 +155,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",
            @@ -123,12 +169,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.
                *
            @@ -140,11 +188,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.
                *
            @@ -156,11 +208,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.
                *
            @@ -172,7 +228,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 df6d32899f..b6f06d1fe1 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,6 +20,8 @@ package com.google.storage.v2; /** + * + * *
              * Request object to update an HMAC key state.
              * HmacKeyMetadata.state is required and the only writable field in
            @@ -14,42 +31,45 @@
              *
              * Protobuf type {@code google.storage.v2.UpdateHmacKeyRequest}
              */
            -public final class UpdateHmacKeyRequest extends
            -    com.google.protobuf.GeneratedMessageV3 implements
            +public final class UpdateHmacKeyRequest extends com.google.protobuf.GeneratedMessageV3
            +    implements
                 // @@protoc_insertion_point(message_implements:google.storage.v2.UpdateHmacKeyRequest)
                 UpdateHmacKeyRequestOrBuilder {
            -private static final long serialVersionUID = 0L;
            +  private static final long serialVersionUID = 0L;
               // Use UpdateHmacKeyRequest.newBuilder() to construct.
               private UpdateHmacKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
                 super(builder);
               }
            -  private UpdateHmacKeyRequest() {
            -  }
            +
            +  private UpdateHmacKeyRequest() {}
             
               @java.lang.Override
               @SuppressWarnings({"unused"})
            -  protected java.lang.Object newInstance(
            -      UnusedPrivateParameter unused) {
            +  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
                 return new UpdateHmacKeyRequest();
               }
             
            -  public static final com.google.protobuf.Descriptors.Descriptor
            -      getDescriptor() {
            -    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_UpdateHmacKeyRequest_descriptor;
            +  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            +    return com.google.storage.v2.StorageProto
            +        .internal_static_google_storage_v2_UpdateHmacKeyRequest_descriptor;
               }
             
               @java.lang.Override
               protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internalGetFieldAccessorTable() {
            -    return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_UpdateHmacKeyRequest_fieldAccessorTable
            +    return com.google.storage.v2.StorageProto
            +        .internal_static_google_storage_v2_UpdateHmacKeyRequest_fieldAccessorTable
                     .ensureFieldAccessorsInitialized(
            -            com.google.storage.v2.UpdateHmacKeyRequest.class, com.google.storage.v2.UpdateHmacKeyRequest.Builder.class);
            +            com.google.storage.v2.UpdateHmacKeyRequest.class,
            +            com.google.storage.v2.UpdateHmacKeyRequest.Builder.class);
               }
             
               private int bitField0_;
               public static final int HMAC_KEY_FIELD_NUMBER = 1;
               private com.google.storage.v2.HmacKeyMetadata hmacKey_;
               /**
            +   *
            +   *
                * 
                * Required. The HMAC key to update.
                * If present, the hmac_key's `id` field will be used to identify the key.
            @@ -57,7 +77,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 @@ -65,6 +88,8 @@ 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.
            @@ -72,7 +97,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 @@ -80,6 +108,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.
            @@ -87,7 +117,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() { @@ -97,6 +129,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
            @@ -104,6 +138,7 @@ public com.google.storage.v2.HmacKeyMetadataOrBuilder getHmacKeyOrBuilder() {
                * 
            * * .google.protobuf.FieldMask update_mask = 3; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -111,6 +146,8 @@ 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
            @@ -118,6 +155,7 @@ public boolean hasUpdateMask() {
                * 
            * * .google.protobuf.FieldMask update_mask = 3; + * * @return The updateMask. */ @java.lang.Override @@ -125,6 +163,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
            @@ -139,6 +179,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
               }
             
               private byte memoizedIsInitialized = -1;
            +
               @java.lang.Override
               public final boolean isInitialized() {
                 byte isInitialized = memoizedIsInitialized;
            @@ -150,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 (((bitField0_ & 0x00000001) != 0)) {
                   output.writeMessage(1, getHmacKey());
                 }
            @@ -168,12 +208,10 @@ public int getSerializedSize() {
             
                 size = 0;
                 if (((bitField0_ & 0x00000001) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream
            -        .computeMessageSize(1, getHmacKey());
            +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getHmacKey());
                 }
                 if (((bitField0_ & 0x00000002) != 0)) {
            -      size += com.google.protobuf.CodedOutputStream
            -        .computeMessageSize(3, getUpdateMask());
            +      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask());
                 }
                 size += getUnknownFields().getSerializedSize();
                 memoizedSize = size;
            @@ -183,22 +221,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;
            @@ -224,99 +261,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
            @@ -326,21 +368,23 @@ 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()
            @@ -348,18 +392,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) {
                     getHmacKeyFieldBuilder();
                     getUpdateMaskFieldBuilder();
                   }
                 }
            +
                 @java.lang.Override
                 public Builder clear() {
                   super.clear();
            @@ -378,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_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
            @@ -399,8 +443,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;
                 }
            @@ -409,15 +456,11 @@ private void buildPartial0(com.google.storage.v2.UpdateHmacKeyRequest result) {
                   int from_bitField0_ = bitField0_;
                   int to_bitField0_ = 0;
                   if (((from_bitField0_ & 0x00000001) != 0)) {
            -        result.hmacKey_ = hmacKeyBuilder_ == null
            -            ? hmacKey_
            -            : hmacKeyBuilder_.build();
            +        result.hmacKey_ = hmacKeyBuilder_ == null ? hmacKey_ : hmacKeyBuilder_.build();
                     to_bitField0_ |= 0x00000001;
                   }
                   if (((from_bitField0_ & 0x00000002) != 0)) {
            -        result.updateMask_ = updateMaskBuilder_ == null
            -            ? updateMask_
            -            : updateMaskBuilder_.build();
            +        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
                     to_bitField0_ |= 0x00000002;
                   }
                   result.bitField0_ |= to_bitField0_;
            @@ -427,38 +470,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;
            @@ -499,26 +543,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) {
            @@ -528,12 +571,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.
            @@ -541,13 +590,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.
            @@ -555,17 +609,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.
            @@ -573,7 +634,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) { @@ -589,6 +652,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.
            @@ -596,10 +661,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 { @@ -610,6 +676,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.
            @@ -617,13 +685,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; @@ -638,6 +708,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.
            @@ -645,7 +717,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); @@ -658,6 +732,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.
            @@ -665,7 +741,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; @@ -673,6 +751,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.
            @@ -680,17 +760,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.
            @@ -698,17 +783,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_; @@ -716,8 +806,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
            @@ -725,12 +820,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
            @@ -738,16 +836,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
            @@ -770,6 +873,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
            @@ -778,8 +883,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 {
            @@ -790,6 +894,8 @@ public Builder setUpdateMask(
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * Update mask for hmac_key.
                  * Not specifying any fields will mean only the `state` field is updated to
            @@ -800,9 +906,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;
            @@ -817,6 +923,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
            @@ -836,6 +944,8 @@ public Builder clearUpdateMask() {
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * Update mask for hmac_key.
                  * Not specifying any fields will mean only the `state` field is updated to
            @@ -850,6 +960,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
            @@ -862,11 +974,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
            @@ -876,21 +991,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);
                 }
             
            @@ -900,12 +1018,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();
               }
            @@ -914,27 +1032,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;
            @@ -949,6 +1067,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 34486a5598..8683e6816d 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,14 +1,32 @@
            +/*
            + * Copyright 2024 Google LLC
            + *
            + * Licensed under the Apache License, Version 2.0 (the "License");
            + * you may not use this file except in compliance with the License.
            + * You may obtain a copy of the License at
            + *
            + *     https://www.apache.org/licenses/LICENSE-2.0
            + *
            + * Unless required by applicable law or agreed to in writing, software
            + * distributed under the License is distributed on an "AS IS" BASIS,
            + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            + * See the License for the specific language governing permissions and
            + * limitations under the License.
            + */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
             // Protobuf Java Version: 3.25.3
             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.
            @@ -16,11 +34,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.
            @@ -28,11 +51,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.
            @@ -40,11 +68,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
            @@ -52,10 +84,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
            @@ -63,10 +98,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 a821d05a49..f1583c5781 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,3 +1,18 @@
            +/*
            + * Copyright 2024 Google LLC
            + *
            + * Licensed under the Apache License, Version 2.0 (the "License");
            + * you may not use this file except in compliance with the License.
            + * You may obtain a copy of the License at
            + *
            + *     https://www.apache.org/licenses/LICENSE-2.0
            + *
            + * Unless required by applicable law or agreed to in writing, software
            + * distributed under the License is distributed on an "AS IS" BASIS,
            + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            + * See the License for the specific language governing permissions and
            + * limitations under the License.
            + */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
            @@ -5,49 +20,55 @@
             package com.google.storage.v2;
             
             /**
            + *
            + *
              * 
              * Request message for UpdateObject.
              * 
            * * Protobuf type {@code google.storage.v2.UpdateObjectRequest} */ -public final class UpdateObjectRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateObjectRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.v2.UpdateObjectRequest) UpdateObjectRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateObjectRequest.newBuilder() to construct. private UpdateObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateObjectRequest() { predefinedAcl_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateObjectRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_UpdateObjectRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_UpdateObjectRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_UpdateObjectRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_UpdateObjectRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.UpdateObjectRequest.class, com.google.storage.v2.UpdateObjectRequest.Builder.class); + com.google.storage.v2.UpdateObjectRequest.class, + com.google.storage.v2.UpdateObjectRequest.Builder.class); } private int bitField0_; public static final int OBJECT_FIELD_NUMBER = 1; private com.google.storage.v2.Object object_; /** + * + * *
                * Required. The object to update.
                * The object's bucket and name fields are used to identify the object to
            @@ -57,6 +78,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 @@ -64,6 +86,8 @@ 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
            @@ -73,6 +97,7 @@ public boolean hasObject() {
                * 
            * * .google.storage.v2.Object object = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The object. */ @java.lang.Override @@ -80,6 +105,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
            @@ -98,6 +125,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
            @@ -105,6 +134,7 @@ public com.google.storage.v2.ObjectOrBuilder getObjectOrBuilder() {
                * 
            * * optional int64 if_generation_match = 2; + * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -112,6 +142,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
            @@ -119,6 +151,7 @@ public boolean hasIfGenerationMatch() {
                * 
            * * optional int64 if_generation_match = 2; + * * @return The ifGenerationMatch. */ @java.lang.Override @@ -129,6 +162,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
            @@ -137,6 +172,7 @@ public long getIfGenerationMatch() {
                * 
            * * optional int64 if_generation_not_match = 3; + * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -144,6 +180,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
            @@ -152,6 +190,7 @@ public boolean hasIfGenerationNotMatch() {
                * 
            * * optional int64 if_generation_not_match = 3; + * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -162,12 +201,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 @@ -175,12 +217,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 @@ -191,12 +236,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 @@ -204,12 +252,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 @@ -218,9 +269,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",
            @@ -228,6 +282,7 @@ public long getIfMetagenerationNotMatch() {
                * 
            * * string predefined_acl = 10; + * * @return The predefinedAcl. */ @java.lang.Override @@ -236,14 +291,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",
            @@ -251,16 +307,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 { @@ -271,6 +326,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.
                *
            @@ -282,7 +339,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 @@ -290,6 +349,8 @@ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
                * Required. List of fields to be updated.
                *
            @@ -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.
                *
            @@ -320,7 +385,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() { @@ -330,11 +396,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 @@ -342,18 +411,25 @@ 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. */ @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.
                * 
            @@ -361,11 +437,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; @@ -377,8 +457,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.writeMessage(1, getObject()); } @@ -413,32 +492,27 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getObject()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getObject()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, ifGenerationMatch_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, ifGenerationMatch_); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, ifGenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, ifGenerationNotMatch_); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, ifMetagenerationMatch_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ifMetagenerationMatch_); } if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, ifMetagenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, ifMetagenerationNotMatch_); } if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateMask()); } if (((bitField0_ & 0x00000040) != 0)) { - 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_); @@ -451,49 +525,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; @@ -512,23 +580,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(); @@ -545,120 +609,127 @@ 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() @@ -666,19 +737,19 @@ 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) { getObjectFieldBuilder(); getUpdateMaskFieldBuilder(); getCommonObjectRequestParamsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -707,9 +778,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 @@ -728,8 +799,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; } @@ -738,9 +812,7 @@ private void buildPartial0(com.google.storage.v2.UpdateObjectRequest result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.object_ = objectBuilder_ == null - ? object_ - : objectBuilder_.build(); + result.object_ = objectBuilder_ == null ? object_ : objectBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { @@ -763,15 +835,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(); to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null - ? commonObjectRequestParams_ - : commonObjectRequestParamsBuilder_.build(); + result.commonObjectRequestParams_ = + commonObjectRequestParamsBuilder_ == null + ? commonObjectRequestParams_ + : commonObjectRequestParamsBuilder_.build(); to_bitField0_ |= 0x00000040; } result.bitField0_ |= to_bitField0_; @@ -781,38 +852,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; @@ -873,58 +945,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) { @@ -934,12 +1010,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
            @@ -949,12 +1031,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
            @@ -964,6 +1049,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() { @@ -974,6 +1060,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
            @@ -998,6 +1086,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
            @@ -1008,8 +1098,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 {
            @@ -1020,6 +1109,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
            @@ -1032,9 +1123,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;
            @@ -1049,6 +1140,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
            @@ -1070,6 +1163,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
            @@ -1086,6 +1181,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
            @@ -1100,11 +1197,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
            @@ -1116,21 +1214,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
            @@ -1138,6 +1241,7 @@ public com.google.storage.v2.ObjectOrBuilder getObjectOrBuilder() {
                  * 
            * * optional int64 if_generation_match = 2; + * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -1145,6 +1249,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
            @@ -1152,6 +1258,7 @@ public boolean hasIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_match = 2; + * * @return The ifGenerationMatch. */ @java.lang.Override @@ -1159,6 +1266,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
            @@ -1166,6 +1275,7 @@ public long getIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_match = 2; + * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ @@ -1177,6 +1287,8 @@ public Builder setIfGenerationMatch(long value) { return this; } /** + * + * *
                  * Makes the operation conditional on whether the object's current generation
                  * matches the given value. Setting to 0 makes the operation succeed only if
            @@ -1184,6 +1296,7 @@ public Builder setIfGenerationMatch(long value) {
                  * 
            * * optional int64 if_generation_match = 2; + * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -1193,8 +1306,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
            @@ -1203,6 +1318,7 @@ public Builder clearIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_not_match = 3; + * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -1210,6 +1326,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
            @@ -1218,6 +1336,7 @@ public boolean hasIfGenerationNotMatch() {
                  * 
            * * optional int64 if_generation_not_match = 3; + * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -1225,6 +1344,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
            @@ -1233,6 +1354,7 @@ public long getIfGenerationNotMatch() {
                  * 
            * * optional int64 if_generation_not_match = 3; + * * @param value The ifGenerationNotMatch to set. * @return This builder for chaining. */ @@ -1244,6 +1366,8 @@ public Builder setIfGenerationNotMatch(long value) { return this; } /** + * + * *
                  * Makes the operation conditional on whether the object's live generation
                  * does not match the given value. If no live object exists, the precondition
            @@ -1252,6 +1376,7 @@ public Builder setIfGenerationNotMatch(long value) {
                  * 
            * * optional int64 if_generation_not_match = 3; + * * @return This builder for chaining. */ public Builder clearIfGenerationNotMatch() { @@ -1261,14 +1386,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 @@ -1276,12 +1404,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 @@ -1289,12 +1420,15 @@ 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. */ @@ -1306,12 +1440,15 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** + * + * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 4; + * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -1321,14 +1458,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 @@ -1336,12 +1476,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 @@ -1349,12 +1492,15 @@ 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. */ @@ -1366,12 +1512,15 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** + * + * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 5; + * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -1383,6 +1532,8 @@ public Builder clearIfMetagenerationNotMatch() { private java.lang.Object predefinedAcl_ = ""; /** + * + * *
                  * Apply a predefined set of access controls to this object.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -1390,13 +1541,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; @@ -1405,6 +1556,8 @@ public java.lang.String getPredefinedAcl() { } } /** + * + * *
                  * Apply a predefined set of access controls to this object.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -1412,15 +1565,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 { @@ -1428,6 +1580,8 @@ public java.lang.String getPredefinedAcl() { } } /** + * + * *
                  * Apply a predefined set of access controls to this object.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -1435,18 +1589,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",
            @@ -1454,6 +1612,7 @@ public Builder setPredefinedAcl(
                  * 
            * * string predefined_acl = 10; + * * @return This builder for chaining. */ public Builder clearPredefinedAcl() { @@ -1463,6 +1622,8 @@ public Builder clearPredefinedAcl() { return this; } /** + * + * *
                  * Apply a predefined set of access controls to this object.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -1470,12 +1631,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; @@ -1485,8 +1648,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.
                  *
            @@ -1498,13 +1666,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.
                  *
            @@ -1516,17 +1688,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.
                  *
            @@ -1538,7 +1716,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) { @@ -1554,6 +1733,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
                  * Required. List of fields to be updated.
                  *
            @@ -1565,10 +1746,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 { @@ -1579,6 +1760,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
                  * Required. List of fields to be updated.
                  *
            @@ -1590,13 +1773,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; @@ -1611,6 +1795,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
                  * Required. List of fields to be updated.
                  *
            @@ -1622,7 +1808,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); @@ -1635,6 +1822,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
                  * Required. List of fields to be updated.
                  *
            @@ -1646,7 +1835,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; @@ -1654,6 +1844,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
                  * Required. List of fields to be updated.
                  *
            @@ -1665,17 +1857,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.
                  *
            @@ -1687,17 +1883,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_; @@ -1705,41 +1905,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(); @@ -1753,6 +1967,8 @@ public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRe return this; } /** + * + * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -1771,17 +1987,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; @@ -1796,6 +2016,8 @@ public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObject return this; } /** + * + * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -1813,33 +2035,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.
                  * 
            @@ -1847,21 +2078,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); } @@ -1871,12 +2105,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(); } @@ -1885,27 +2119,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; @@ -1920,6 +2154,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 bfa5d3848e..962d3e3881 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,14 +1,32 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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
            @@ -18,10 +36,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
            @@ -31,10 +52,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
            @@ -48,6 +72,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
            @@ -55,10 +81,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
            @@ -66,11 +95,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
            @@ -79,10 +111,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
            @@ -91,53 +126,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",
            @@ -145,10 +195,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",
            @@ -156,12 +209,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.
                *
            @@ -173,11 +228,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.
                *
            @@ -189,11 +248,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.
                *
            @@ -205,29 +268,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 8fb8d5ed26..aeabc66494 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,55 +20,62 @@ package com.google.storage.v2; /** + * + * *
              * Request message for WriteObject.
              * 
            * * Protobuf type {@code google.storage.v2.WriteObjectRequest} */ -public final class WriteObjectRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class WriteObjectRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.v2.WriteObjectRequest) WriteObjectRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WriteObjectRequest.newBuilder() to construct. private WriteObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WriteObjectRequest() { - } + + private WriteObjectRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WriteObjectRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_WriteObjectRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_WriteObjectRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_WriteObjectRequest_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_WriteObjectRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.WriteObjectRequest.class, com.google.storage.v2.WriteObjectRequest.Builder.class); + com.google.storage.v2.WriteObjectRequest.class, + com.google.storage.v2.WriteObjectRequest.Builder.class); } private int bitField0_; private int firstMessageCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object firstMessage_; + public enum FirstMessageCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { UPLOAD_ID(1), WRITE_OBJECT_SPEC(2), FIRSTMESSAGE_NOT_SET(0); private final int value; + private FirstMessageCase(int value) { this.value = value; } @@ -69,32 +91,39 @@ public static FirstMessageCase valueOf(int value) { public static FirstMessageCase forNumber(int value) { switch (value) { - case 1: return UPLOAD_ID; - case 2: return WRITE_OBJECT_SPEC; - case 0: return FIRSTMESSAGE_NOT_SET; - default: return null; + case 1: + return UPLOAD_ID; + case 2: + return WRITE_OBJECT_SPEC; + case 0: + return FIRSTMESSAGE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public FirstMessageCase - getFirstMessageCase() { - return FirstMessageCase.forNumber( - firstMessageCase_); + public FirstMessageCase getFirstMessageCase() { + return FirstMessageCase.forNumber(firstMessageCase_); } private int dataCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object data_; + public enum DataCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CHECKSUMMED_DATA(4), DATA_NOT_SET(0); private final int value; + private DataCase(int value) { this.value = value; } @@ -110,42 +139,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() { @@ -156,8 +193,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; @@ -166,24 +202,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; } @@ -195,12 +232,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 @@ -208,22 +248,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.
            @@ -234,7 +279,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();
               }
            @@ -242,6 +287,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.
            @@ -259,6 +306,7 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde
                * 
            * * int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The writeOffset. */ @java.lang.Override @@ -268,12 +316,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 @@ -281,22 +332,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.
            @@ -307,7 +363,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();
               }
            @@ -315,6 +371,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 specified checksums the call will fail. May only be
            @@ -323,6 +381,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 @@ -330,6 +389,8 @@ public boolean hasObjectChecksums() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
                * Checksums for the complete object. If the checksums computed by the service
                * don't match the specified checksums the call will fail. May only be
            @@ -338,13 +399,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 specified checksums the call will fail. May only be
            @@ -356,12 +422,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`
            @@ -372,6 +442,7 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
                * 
            * * bool finish_write = 7; + * * @return The finishWrite. */ @java.lang.Override @@ -382,11 +453,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 @@ -394,18 +468,25 @@ 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 = 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.
                * 
            @@ -413,11 +494,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; @@ -429,8 +514,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_); } @@ -465,28 +549,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 (((bitField0_ & 0x00000001) != 0)) { - 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 (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getCommonObjectRequestParams()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, getCommonObjectRequestParams()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -496,36 +580,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: @@ -533,8 +612,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: @@ -551,15 +629,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(); @@ -589,120 +665,127 @@ 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() @@ -710,18 +793,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) { getObjectChecksumsFieldBuilder(); getCommonObjectRequestParamsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -752,9 +835,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 @@ -773,8 +856,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; @@ -787,18 +873,18 @@ private void buildPartial0(com.google.storage.v2.WriteObjectRequest result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { - result.objectChecksums_ = objectChecksumsBuilder_ == null - ? objectChecksums_ - : objectChecksumsBuilder_.build(); + result.objectChecksums_ = + objectChecksumsBuilder_ == null ? objectChecksums_ : objectChecksumsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000020) != 0)) { result.finishWrite_ = finishWrite_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.commonObjectRequestParams_ = commonObjectRequestParamsBuilder_ == null - ? commonObjectRequestParams_ - : commonObjectRequestParamsBuilder_.build(); + result.commonObjectRequestParams_ = + commonObjectRequestParamsBuilder_ == null + ? commonObjectRequestParams_ + : commonObjectRequestParamsBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -807,14 +893,12 @@ private void buildPartial0(com.google.storage.v2.WriteObjectRequest result) { 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(); } } @@ -823,38 +907,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; @@ -876,28 +961,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(); @@ -925,56 +1015,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) { @@ -984,12 +1075,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() { @@ -1001,10 +1092,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() { @@ -1017,12 +1107,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 @@ -1030,12 +1123,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 @@ -1045,8 +1141,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; @@ -1057,25 +1152,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; } @@ -1085,30 +1181,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() { @@ -1120,18 +1223,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; @@ -1140,14 +1247,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 @@ -1155,12 +1268,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 @@ -1178,6 +1294,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.
            @@ -1199,6 +1317,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.
            @@ -1218,6 +1338,8 @@ public Builder setWriteObjectSpec(
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * For non-resumable uploads. Describes the overall upload, including the
                  * destination bucket and object name, preconditions, etc.
            @@ -1227,10 +1349,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;
                     }
            @@ -1246,6 +1371,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.
            @@ -1270,6 +1397,8 @@ public Builder clearWriteObjectSpec() {
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * For non-resumable uploads. Describes the overall upload, including the
                  * destination bucket and object name, preconditions, etc.
            @@ -1281,6 +1410,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.
            @@ -1300,6 +1431,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.
            @@ -1308,14 +1441,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());
            @@ -1326,8 +1464,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.
            @@ -1345,6 +1485,7 @@ public com.google.storage.v2.WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilde
                  * 
            * * int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The writeOffset. */ @java.lang.Override @@ -1352,6 +1493,8 @@ public long getWriteOffset() { return writeOffset_; } /** + * + * *
                  * Required. The offset from the beginning of the object at which the data
                  * should be written.
            @@ -1369,6 +1512,7 @@ public long getWriteOffset() {
                  * 
            * * int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The writeOffset to set. * @return This builder for chaining. */ @@ -1380,6 +1524,8 @@ public Builder setWriteOffset(long value) { return this; } /** + * + * *
                  * Required. The offset from the beginning of the object at which the data
                  * should be written.
            @@ -1397,6 +1543,7 @@ public Builder setWriteOffset(long value) {
                  * 
            * * int64 write_offset = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearWriteOffset() { @@ -1407,14 +1554,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 @@ -1422,12 +1575,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 @@ -1445,6 +1601,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.
            @@ -1466,6 +1624,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.
            @@ -1485,6 +1645,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.
            @@ -1494,10 +1656,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;
                     }
            @@ -1513,6 +1677,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.
            @@ -1537,6 +1703,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.
            @@ -1548,6 +1716,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.
            @@ -1567,6 +1737,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.
            @@ -1575,17 +1747,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;
            @@ -1595,8 +1770,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 specified checksums the call will fail. May only be
            @@ -1605,12 +1785,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 specified checksums the call will fail. May only be
            @@ -1619,16 +1802,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 specified checksums the call will fail. May only be
            @@ -1652,6 +1840,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 specified checksums the call will fail. May only be
            @@ -1673,6 +1863,8 @@ public Builder setObjectChecksums(
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * Checksums for the complete object. If the checksums computed by the service
                  * don't match the specified checksums the call will fail. May only be
            @@ -1684,9 +1876,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;
            @@ -1701,6 +1893,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 specified checksums the call will fail. May only be
            @@ -1721,6 +1915,8 @@ public Builder clearObjectChecksums() {
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * Checksums for the complete object. If the checksums computed by the service
                  * don't match the specified checksums the call will fail. May only be
            @@ -1736,6 +1932,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 specified checksums the call will fail. May only be
            @@ -1749,11 +1947,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 specified checksums the call will fail. May only be
            @@ -1764,21 +1965,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`
            @@ -1789,6 +1995,7 @@ public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilde
                  * 
            * * bool finish_write = 7; + * * @return The finishWrite. */ @java.lang.Override @@ -1796,6 +2003,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`
            @@ -1806,6 +2015,7 @@ public boolean getFinishWrite() {
                  * 
            * * bool finish_write = 7; + * * @param value The finishWrite to set. * @return This builder for chaining. */ @@ -1817,6 +2027,8 @@ public Builder setFinishWrite(boolean value) { return this; } /** + * + * *
                  * If `true`, this indicates that the write is complete. Sending any
                  * `WriteObjectRequest`s subsequent to one in which `finish_write` is `true`
            @@ -1827,6 +2039,7 @@ public Builder setFinishWrite(boolean value) {
                  * 
            * * bool finish_write = 7; + * * @return This builder for chaining. */ public Builder clearFinishWrite() { @@ -1838,41 +2051,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(); @@ -1886,6 +2113,8 @@ public Builder setCommonObjectRequestParams(com.google.storage.v2.CommonObjectRe return this; } /** + * + * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -1904,17 +2133,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; @@ -1929,6 +2162,8 @@ public Builder mergeCommonObjectRequestParams(com.google.storage.v2.CommonObject return this; } /** + * + * *
                  * A set of parameters common to Storage API requests concerning an object.
                  * 
            @@ -1946,33 +2181,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.
                  * 
            @@ -1980,21 +2224,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); } @@ -2004,12 +2251,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(); } @@ -2018,27 +2265,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; @@ -2053,6 +2300,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 88% 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 fe33c03f29..fd2a6639a1 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,66 +1,98 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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.
            @@ -71,6 +103,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.
            @@ -88,31 +122,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.
            @@ -123,6 +166,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 specified checksums the call will fail. May only be
            @@ -131,10 +176,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 specified checksums the call will fail. May only be
            @@ -143,10 +191,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 specified checksums the call will fail. May only be
            @@ -159,6 +210,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`
            @@ -169,29 +222,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 8f81772c0f..b01fd73775 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,3 +1,18 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto @@ -5,54 +20,61 @@ package com.google.storage.v2; /** + * + * *
              * Response message for WriteObject.
              * 
            * * Protobuf type {@code google.storage.v2.WriteObjectResponse} */ -public final class WriteObjectResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class WriteObjectResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.v2.WriteObjectResponse) WriteObjectResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WriteObjectResponse.newBuilder() to construct. private WriteObjectResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WriteObjectResponse() { - } + + private WriteObjectResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WriteObjectResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_WriteObjectResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_WriteObjectResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_WriteObjectResponse_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_WriteObjectResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.WriteObjectResponse.class, com.google.storage.v2.WriteObjectResponse.Builder.class); + com.google.storage.v2.WriteObjectResponse.class, + com.google.storage.v2.WriteObjectResponse.Builder.class); } private int writeStatusCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object writeStatus_; + public enum WriteStatusCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PERSISTED_SIZE(1), RESOURCE(2), WRITESTATUS_NOT_SET(0); private final int value; + private WriteStatusCase(int value) { this.value = value; } @@ -68,31 +90,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 @@ -100,12 +128,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 @@ -118,12 +149,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 @@ -131,22 +165,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.
            @@ -157,12 +196,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;
            @@ -174,11 +214,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_);
            @@ -193,13 +231,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;
            @@ -209,22 +248,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:
            @@ -243,8 +281,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;
            @@ -258,132 +295,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(); @@ -397,9 +438,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 @@ -418,8 +459,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; @@ -432,8 +476,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(); } } @@ -442,38 +485,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; @@ -483,17 +527,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(); @@ -521,24 +568,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) { @@ -548,12 +596,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() { @@ -566,24 +614,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() { @@ -593,12 +647,15 @@ 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. */ @@ -610,12 +667,15 @@ public Builder setPersistedSize(long value) { return this; } /** + * + * *
                  * The total number of bytes that have been processed for the given object
                  * from all `WriteObject` calls. Only set if the upload has not finalized.
                  * 
            * * int64 persisted_size = 1; + * * @return This builder for chaining. */ public Builder clearPersistedSize() { @@ -628,14 +688,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 @@ -643,12 +709,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 @@ -666,6 +735,8 @@ public com.google.storage.v2.Object getResource() { } } /** + * + * *
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
            @@ -687,6 +758,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.
            @@ -694,8 +767,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();
            @@ -706,6 +778,8 @@ public Builder setResource(
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
            @@ -715,10 +789,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;
                     }
            @@ -734,6 +810,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.
            @@ -758,6 +836,8 @@ public Builder clearResource() {
                   return this;
                 }
                 /**
            +     *
            +     *
                  * 
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
            @@ -769,6 +849,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.
            @@ -788,6 +870,8 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
                   }
                 }
                 /**
            +     *
            +     *
                  * 
                  * A resource containing the metadata for the uploaded object. Only set if
                  * the upload has finalized.
            @@ -796,26 +880,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);
                 }
             
            @@ -825,12 +912,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();
               }
            @@ -839,27 +926,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;
            @@ -874,6 +961,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 4d3ed1afa1..536ca8263e 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,55 +1,85 @@
            +/*
            + * Copyright 2024 Google LLC
            + *
            + * Licensed under the Apache License, Version 2.0 (the "License");
            + * you may not use this file except in compliance with the License.
            + * You may obtain a copy of the License at
            + *
            + *     https://www.apache.org/licenses/LICENSE-2.0
            + *
            + * Unless required by applicable law or agreed to in writing, software
            + * distributed under the License is distributed on an "AS IS" BASIS,
            + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            + * See the License for the specific language governing permissions and
            + * limitations under the License.
            + */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
             // Protobuf Java Version: 3.25.3
             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 7927cbe8c6..867a6ade1d 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,3 +1,18 @@
            +/*
            + * Copyright 2024 Google LLC
            + *
            + * Licensed under the Apache License, Version 2.0 (the "License");
            + * you may not use this file except in compliance with the License.
            + * You may obtain a copy of the License at
            + *
            + *     https://www.apache.org/licenses/LICENSE-2.0
            + *
            + * Unless required by applicable law or agreed to in writing, software
            + * distributed under the License is distributed on an "AS IS" BASIS,
            + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            + * See the License for the specific language governing permissions and
            + * limitations under the License.
            + */
             // Generated by the protocol buffer compiler.  DO NOT EDIT!
             // source: google/storage/v2/storage.proto
             
            @@ -5,54 +20,61 @@
             package com.google.storage.v2;
             
             /**
            + *
            + *
              * 
              * Describes an attempt to insert an object, possibly over multiple requests.
              * 
            * * Protobuf type {@code google.storage.v2.WriteObjectSpec} */ -public final class WriteObjectSpec extends - com.google.protobuf.GeneratedMessageV3 implements +public final class WriteObjectSpec extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.storage.v2.WriteObjectSpec) WriteObjectSpecOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WriteObjectSpec.newBuilder() to construct. private WriteObjectSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WriteObjectSpec() { predefinedAcl_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WriteObjectSpec(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_WriteObjectSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_WriteObjectSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.storage.v2.StorageProto.internal_static_google_storage_v2_WriteObjectSpec_fieldAccessorTable + return com.google.storage.v2.StorageProto + .internal_static_google_storage_v2_WriteObjectSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.storage.v2.WriteObjectSpec.class, com.google.storage.v2.WriteObjectSpec.Builder.class); + com.google.storage.v2.WriteObjectSpec.class, + com.google.storage.v2.WriteObjectSpec.Builder.class); } private int bitField0_; public static final int RESOURCE_FIELD_NUMBER = 1; private com.google.storage.v2.Object resource_; /** + * + * *
                * Required. Destination object, including its name and its metadata.
                * 
            * * .google.storage.v2.Object resource = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the resource field is set. */ @java.lang.Override @@ -60,11 +82,14 @@ 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]; + * * @return The resource. */ @java.lang.Override @@ -72,6 +97,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.
                * 
            @@ -84,9 +111,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",
            @@ -94,6 +124,7 @@ public com.google.storage.v2.ObjectOrBuilder getResourceOrBuilder() {
                * 
            * * string predefined_acl = 7; + * * @return The predefinedAcl. */ @java.lang.Override @@ -102,14 +133,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",
            @@ -117,16 +149,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 { @@ -137,6 +168,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
            @@ -144,6 +177,7 @@ public java.lang.String getPredefinedAcl() {
                * 
            * * optional int64 if_generation_match = 3; + * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -151,6 +185,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
            @@ -158,6 +194,7 @@ public boolean hasIfGenerationMatch() {
                * 
            * * optional int64 if_generation_match = 3; + * * @return The ifGenerationMatch. */ @java.lang.Override @@ -168,6 +205,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
            @@ -176,6 +215,7 @@ public long getIfGenerationMatch() {
                * 
            * * optional int64 if_generation_not_match = 4; + * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -183,6 +223,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
            @@ -191,6 +233,7 @@ public boolean hasIfGenerationNotMatch() {
                * 
            * * optional int64 if_generation_not_match = 4; + * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -201,12 +244,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 @@ -214,12 +260,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 = 5; + * * @return The ifMetagenerationMatch. */ @java.lang.Override @@ -230,12 +279,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 @@ -243,12 +295,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 = 6; + * * @return The ifMetagenerationNotMatch. */ @java.lang.Override @@ -259,6 +314,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
            @@ -270,6 +327,7 @@ public long getIfMetagenerationNotMatch() {
                * 
            * * optional int64 object_size = 8; + * * @return Whether the objectSize field is set. */ @java.lang.Override @@ -277,6 +335,8 @@ public boolean hasObjectSize() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
                * The expected final object size being uploaded.
                * If this value is set, closing the stream after writing fewer or more than
            @@ -288,6 +348,7 @@ public boolean hasObjectSize() {
                * 
            * * optional int64 object_size = 8; + * * @return The objectSize. */ @java.lang.Override @@ -296,6 +357,7 @@ public long getObjectSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -307,8 +369,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.writeMessage(1, getResource()); } @@ -340,31 +401,25 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getResource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getResource()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, ifGenerationMatch_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, ifGenerationMatch_); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, ifGenerationNotMatch_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ifGenerationNotMatch_); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, ifMetagenerationMatch_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, ifMetagenerationMatch_); } if (((bitField0_ & 0x00000010) != 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_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(8, objectSize_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, objectSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -374,7 +429,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); @@ -383,35 +438,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; @@ -432,148 +480,149 @@ 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() @@ -581,17 +630,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) { getResourceFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -611,9 +660,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 @@ -632,8 +681,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; } @@ -642,9 +694,7 @@ private void buildPartial0(com.google.storage.v2.WriteObjectSpec result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.resource_ = resourceBuilder_ == null - ? resource_ - : resourceBuilder_.build(); + result.resource_ = resourceBuilder_ == null ? resource_ : resourceBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { @@ -677,38 +727,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; @@ -766,49 +817,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) { @@ -818,28 +875,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() { @@ -850,11 +919,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) { @@ -870,14 +942,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 { @@ -888,17 +962,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; @@ -913,11 +990,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); @@ -930,11 +1010,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; @@ -942,36 +1025,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_; @@ -979,6 +1070,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",
            @@ -986,13 +1079,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; @@ -1001,6 +1094,8 @@ public java.lang.String getPredefinedAcl() { } } /** + * + * *
                  * Apply a predefined set of access controls to this object.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -1008,15 +1103,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 { @@ -1024,6 +1118,8 @@ public java.lang.String getPredefinedAcl() { } } /** + * + * *
                  * Apply a predefined set of access controls to this object.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -1031,18 +1127,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",
            @@ -1050,6 +1150,7 @@ public Builder setPredefinedAcl(
                  * 
            * * string predefined_acl = 7; + * * @return This builder for chaining. */ public Builder clearPredefinedAcl() { @@ -1059,6 +1160,8 @@ public Builder clearPredefinedAcl() { return this; } /** + * + * *
                  * Apply a predefined set of access controls to this object.
                  * Valid values are "authenticatedRead", "bucketOwnerFullControl",
            @@ -1066,12 +1169,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; @@ -1079,8 +1184,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
            @@ -1088,6 +1195,7 @@ public Builder setPredefinedAclBytes(
                  * 
            * * optional int64 if_generation_match = 3; + * * @return Whether the ifGenerationMatch field is set. */ @java.lang.Override @@ -1095,6 +1203,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
            @@ -1102,6 +1212,7 @@ public boolean hasIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_match = 3; + * * @return The ifGenerationMatch. */ @java.lang.Override @@ -1109,6 +1220,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
            @@ -1116,6 +1229,7 @@ public long getIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_match = 3; + * * @param value The ifGenerationMatch to set. * @return This builder for chaining. */ @@ -1127,6 +1241,8 @@ public Builder setIfGenerationMatch(long value) { return this; } /** + * + * *
                  * Makes the operation conditional on whether the object's current
                  * generation matches the given value. Setting to 0 makes the operation
            @@ -1134,6 +1250,7 @@ public Builder setIfGenerationMatch(long value) {
                  * 
            * * optional int64 if_generation_match = 3; + * * @return This builder for chaining. */ public Builder clearIfGenerationMatch() { @@ -1143,8 +1260,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
            @@ -1153,6 +1272,7 @@ public Builder clearIfGenerationMatch() {
                  * 
            * * optional int64 if_generation_not_match = 4; + * * @return Whether the ifGenerationNotMatch field is set. */ @java.lang.Override @@ -1160,6 +1280,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
            @@ -1168,6 +1290,7 @@ public boolean hasIfGenerationNotMatch() {
                  * 
            * * optional int64 if_generation_not_match = 4; + * * @return The ifGenerationNotMatch. */ @java.lang.Override @@ -1175,6 +1298,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
            @@ -1183,6 +1308,7 @@ public long getIfGenerationNotMatch() {
                  * 
            * * optional int64 if_generation_not_match = 4; + * * @param value The ifGenerationNotMatch to set. * @return This builder for chaining. */ @@ -1194,6 +1320,8 @@ public Builder setIfGenerationNotMatch(long value) { return this; } /** + * + * *
                  * Makes the operation conditional on whether the object's live
                  * generation does not match the given value. If no live object exists, the
            @@ -1202,6 +1330,7 @@ public Builder setIfGenerationNotMatch(long value) {
                  * 
            * * optional int64 if_generation_not_match = 4; + * * @return This builder for chaining. */ public Builder clearIfGenerationNotMatch() { @@ -1211,14 +1340,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 @@ -1226,12 +1358,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 @@ -1239,12 +1374,15 @@ 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. */ @@ -1256,12 +1394,15 @@ public Builder setIfMetagenerationMatch(long value) { return this; } /** + * + * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration matches the given value.
                  * 
            * * optional int64 if_metageneration_match = 5; + * * @return This builder for chaining. */ public Builder clearIfMetagenerationMatch() { @@ -1271,14 +1412,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 @@ -1286,12 +1430,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 @@ -1299,12 +1446,15 @@ 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. */ @@ -1316,12 +1466,15 @@ public Builder setIfMetagenerationNotMatch(long value) { return this; } /** + * + * *
                  * Makes the operation conditional on whether the object's current
                  * metageneration does not match the given value.
                  * 
            * * optional int64 if_metageneration_not_match = 6; + * * @return This builder for chaining. */ public Builder clearIfMetagenerationNotMatch() { @@ -1331,8 +1484,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
            @@ -1344,6 +1499,7 @@ public Builder clearIfMetagenerationNotMatch() {
                  * 
            * * optional int64 object_size = 8; + * * @return Whether the objectSize field is set. */ @java.lang.Override @@ -1351,6 +1507,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
            @@ -1362,6 +1520,7 @@ public boolean hasObjectSize() {
                  * 
            * * optional int64 object_size = 8; + * * @return The objectSize. */ @java.lang.Override @@ -1369,6 +1528,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
            @@ -1380,6 +1541,7 @@ public long getObjectSize() {
                  * 
            * * optional int64 object_size = 8; + * * @param value The objectSize to set. * @return This builder for chaining. */ @@ -1391,6 +1553,8 @@ public Builder setObjectSize(long value) { return this; } /** + * + * *
                  * The expected final object size being uploaded.
                  * If this value is set, closing the stream after writing fewer or more than
            @@ -1402,6 +1566,7 @@ public Builder setObjectSize(long value) {
                  * 
            * * optional int64 object_size = 8; + * * @return This builder for chaining. */ public Builder clearObjectSize() { @@ -1410,9 +1575,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); } @@ -1422,12 +1587,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(); } @@ -1436,27 +1601,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; @@ -1471,6 +1636,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 800cf69b90..6c0bdb6b6f 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,32 +1,56 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/storage/v2/storage.proto // Protobuf Java Version: 3.25.3 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.
                * 
            @@ -36,6 +60,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",
            @@ -43,10 +69,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",
            @@ -54,12 +83,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
            @@ -67,10 +98,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
            @@ -78,11 +112,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
            @@ -91,10 +128,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
            @@ -103,53 +143,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
            @@ -161,10 +216,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
            @@ -176,6 +234,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